'unable to create tcserver v4.1.x instance in centos

Problem

I am trying to create/setup pivotal tcserver instance in CentOS. Execution of tcserver command with 'create' option, returns nothing other than a blank screen. At least getting some response when I execute tcserver command with other available options though.

tool details

  • Java: RedHat OpenJDK 11.0.14
  • tc-server: pivotal-tc-server-standard-4.1.12.RELEASE.tar.gz
  • OS: CentOS 7

Steps followed to create/setup the instance

  • Create Groups and Users for tcServer:
    • groupadd pivotal
    • useradd tcserver -g pivotal
  • Extract tcserver:
    • mkdir -p /opt/pivotal/tcserver
    • cd /opt/pivotal/tcserver
    • copy the pivotal-tc-server-standard-4.1.12.RELEASE.tar.gz to /opt/pivotal/tcserver
    • tar -zxvf pivotal-tc-server-standard-4.1.12.RELEASE.tar.gz
  • Verify:
    • ls -ltr /opt/pivotal/tcserver/pivotal-tc-server
    • You should see 2 directories as below:
      • standard-4.1.12.RELEASE
      • runtimes
  • Change Ownership:
    • cd /opt
    • chown -R tcserver:pivotalpivotal/
  • Add tcserverto your PATH variable
    • cd /opt/pivotal/tcserver/pivotal-tc-server/standard-4.1.12.RELEASE/
    • execute pwd command and copy the path.
    • create a file named tcserver.sh under /etc/profile.d/ and add the following export PATH=/opt/pivotal/tcserver/pivotal-tc-server/standard-4.1.12.RELEASE:$PATH
    • save the file
  • Create Instance:
    • su tcserver
    • cd /opt/pivotal/tcserver/pivotal-tc-server/standard-4.1.12.RELEASE
    • tcserver create my-instance --instances-directory /var/opt/pivotal/pivotal-tc-server-standard --java-home /usr/lib/jvm/java-11-openjdk-11.0.14.0.9-1.el7_9.x86_64


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source