TC server 4.x refuses to create instance on offline environment
search cancel

TC server 4.x refuses to create instance on offline environment

book

Article ID: 293379

calendar_today

Updated On:

Products

VMware Tanzu tc Server

Issue/Introduction


Using the `tcserver create` command you encounter following error message.
'create' command failed. An unexpected error occurred while attempting to validate tc Runtime Version 9.0.33.A.RELEASE: repo.pivotal.io 


Environment

Product Version: Other

Resolution

TC server would try to connect to internet to validate the runtime, in an offline environment it would fail. 

In such case, you should disable the on-demand runtime download feature. 

Under `pivotal-tc-server-4/standard-<version>.RELEASE/conf/tcserver.properties`, uncomment the `runtimes.ondemand` line and set the value to `false`, the result should look like below:
# runtimes.ondemand=<value>
# Specifies whether to use the tc Server Runtime Repository to automatically download a
# runtime if not found locally. This feature requires internet access.
# Note: This feature will not work when the JVM version running tcserver is less than 8
#
# Default: true
runtimes.ondemand=false