[SOLVED] Novnc wont start - no such file or directory - python


For some reason I am getting a strange error when executing “novnc-server start” on my centos 8, ONe5.10.1 clusters.

I am receiving:

INFO – : Starting VNC proxy: python /usr/share/one/websockify/run --target-config=/var/lib/one/sunstone_vnc_tokens 29876
ERROR – : No such file or directory - python

I can execute the python command, but it fails unless i make an alias of python for python3.
When I successfully run the command, it seems like the server is running as there is an open port, but sunstone complains that the novnc proxy is not running.

Any help would be appreciated.


This is resolved by:

ln -s /usr/bin/python3.6 /usr/bin/python


alternatives --set python /usr/bin/python3

And then restarting the services.

It seems that line 154 in https://github.com/OpenNebula/one/blob/master/src/sunstone/OpenNebulaVNC.rb is the issue, as rhel8/centos8 changed default python to python3

It would be super duper cool if ONe checks how python is being called in the ruby script, but if you don’t I don’t blame you, as ONe is mostly ruby, and this seems to be an administrator issue. Unfortunately, RHEL/CentOS 8 ootb usage of versioned python is not flexible as, for example, https://wiki.gentoo.org/wiki/Python .

It may be prudent to add a snippet regarding python versioning under:
As opposed to rewriting ONe code.


1 Like