I've installed the latest crmsh on my fedora system, but I am seeing a weird problem:
CRM works when run without sudo, but fails to start when run with sudo. Any idea what could be wrong?
[bebe@server1 crmsh-4.5.0]$ sudo crm
Fatal error:
No module named 'parallax'
Failed to start crmsh! This is likely due to:
- A missing dependency (eg. corresponding python3 version)
- A broken installation
If you are using a packaged version of crmsh, please try
reinstalling the package. Also check your PYTHONPATH and
make sure that the crmsh module is reachable.
Please file an issue describing your installation at
https://github.com/Clusterlabs/crmsh/issues/ .
[bebe@server1 crmsh-4.5.0]$ crm
WARNING: Failed to open log file: [Errno 13] Permission denied: '/var/log/crmsh/crmsh.log'
crm(live/server1.test)#
Hmm OK found my problem. I've initially installed parallax like this "pip install parallax" . It seems that I have to installed it with sudo in order for sudo crm to work: "sudo pip install parallax";
I've installed the latest crmsh on my fedora system, but I am seeing a weird problem: CRM works when run without sudo, but fails to start when run with sudo. Any idea what could be wrong?
My python version: