"Unrecognized option -x509cert"

Hello there,
We ran into problems when starting an interactive desktop session on LSF cluster.
Consulting the output.log file, it fails because of the “-x509cert” option.

>     > Sender: LSF System <lsfadmin@xx>
>     > Subject: Job 16562: <null/sys/dashboard/sys/bc_desktop/ec-hub> in cluster <rid> Exited
>     > 
>     > Job <null/sys/dashboard/sys/bc_desktop/ec-hub> was submitted from host <xx> by user <xx> in cluster <rid> at Fri Feb  7 13:12:32 2020
>     > Job was executed on host(s) <xx>, in queue <interactive>, as user <xx> in cluster <rid> at Fri Feb  7 13:12:33 2020
>     > </home/xx> was used as the home directory.
>     > </home/xx/null/data/sys/dashboard/batch_connect/sys/bc_desktop/ec-hub/output/e695a7c9-bd75-43db-b0a2-64aec56abeef> was used as the working directory.
>     > Started at Fri Feb  7 13:12:33 2020
>     > Terminated at Fri Feb  7 13:13:01 2020
>     > Results reported at Fri Feb  7 13:13:01 2020
>     > 
>     > Your job looked like:
>     > 
>     > ------------------------------------------------------------
>     > # LSBATCH: User input
>     > #!/bin/bash
>     > 
>     > module purge
>     > export PATH="/opt/TurboVNC/bin:$PATH"
>     > export WEBSOCKIFY_CMD="/bin/websockify"
>     > cd /home/xx/null/data/sys/dashboard/batch_connect/sys/bc_desktop/ec-hub/output/e695a7c9-bd75-43db-b0a2-64aec56abeef
>     > 
>     > # Export useful connection variables
>     > export host
>     > export port
>     > 
>     > # Generate a connection yaml file with given parameters
>     > create_yml () {
>     >   echo "Generating connection YAML file..."
>     >   (
>     >     umask 077
>     >     echo -e "host: $host\nport: $port\npassword: $password\ndisplay: $display\nwebsocket: $websocket\nspassword: $spassword" > "/home/xx/null/data/sys/dashboard/batch_connect/sys/bc_desktop/ec-hub/output/e695a7c9-bd75-43db-b0a2-64aec56abeef/connection.yml"
>     >   )
>     > }
>     > 
>     > # Cleanliness is next to Godliness
>     > clean_up () {
>     >   echo "Cleaning up..."
>     >   [[ -e "/home/xx/null/data/sys/dashboard/batch_connect/sys/bc_desktop/ec-hub/output/e695a7c9-bd75-43db-b0a2-64aec56abeef/clean.sh" ]] && source "/home/xx/null/data/sys/dashboard/batch_connect/sys/bc_desktop/ec-hub/output/e695a7c9-bd75-43db-b0a2-64aec56abeef/clean.sh"
>     > 
>     >   vncserver -list | awk '/^:/{system("kill -0 "$2" 2>/dev/null || vncserver -kill "$1)}'
>     >   [[ -n ${display} ]] && vncserver -kill :${display}
>     > 
>     >   [[ ${SCRIPT_PID} ]] && pkill -P ${SCRIPT_PID} || :
>     >   pkill -P $$
>     >   exit ${1:-0}
>     > }
>     > 
>     > # Source in all the helper functions
>     > source_helpers () {
>     >   # Generate random integer in range [$1..$2]
>     >   random_number () {
>     >     shuf -i ${1}-${2} -n 1
>     >   }
>     >   export -f random_number
>     > 
>     >   # Check if port $1 is in use
>     >   port_used () {
>     >     local port="${1#*:}"
>     >     local host=$((expr "${1}" : '\(.*\):' || echo "localhost") | awk 'END{print $NF}')
>     >     nc -w 2 "${host}" "${port}" < /dev/null &> /dev/null
>     >   }
>     >   export -f port_used
>     > 
>     >   # Find available port in range [$2..$3] for host $1
>     > 
>     > (... more ...)
>     > ------------------------------------------------------------
>     > 
>     > Exited with exit code 1.
>     > 
>     > Resource usage summary:
>     > 
>     >     CPU time :                                   1.15 sec.
>     >     Max Memory :                                 10 MB
>     >     Average Memory :                             9.00 MB
>     >     Total Requested Memory :                     -
>     >     Delta Memory :                               -
>     >     Max Swap :                                   -
>     >     Max Processes :                              5
>     >     Max Threads :                                6
>     >     Run time :                                   30 sec.
>     >     Turnaround time :                            29 sec.
>     > 
>     > The output (if any) follows:
>     > 
>     > /home/xx/.bashrc: line 19: module: command not found
>     > /home/xx/.lsbatch/1581099152.16562.shell: line 3: module: command not found
>     > Setting VNC password...
>     > Starting VNC server...
>     > 
>     > WARNING: The first attempt to start Xvnc failed, possibly because the vncserver
>     > script was not able to figure out an appropriate X11 font path for this system
>     > or because the font path you specified with the -fp argument was not valid.
>     > Attempting to restart Xvnc using the X Font Server (xfs) ...
>     > Could not start Xvnc.
>     > 
>     > Unrecognized option: -x509cert
>     > [...]

Does anyone have an idea how to fix this?
Thanks and best regards

Apparently, updating turbovnc to the newest version solved this problem.
Thanks

1 Like

I know its a bit late, but new here and have this same error message coming in. I recently installed 1.6.22 and used the supporting turbovnc/websockify from the ondemand-desktop repo. Based on what is said here, does that mean the latest turbovnc from the provider or from the ondemand-desktop?

If the latter, any suggestions on how to troubleshoot this? Can’t seem to find anything out of the ordinary beyond this error message.

Sorry, about missing this.

Yea, you need to update turbovnc, you can pull the rpm here off of our repo or follow their instructions to add their repo and pull the latest from them directly. Looks like they fixed it in the 2.2 release.

No stress! This is very helpful! Thank you so much!