-
|
After manual installation in Ubuntu 24.04 I'm able to run "hyperglass start" by hand, but the systemd service fails. The sample service file I'm using contains this:
When manually running the same command I get this error:
I also noticed, maybe unrelated, after doing systemctl daemon-reload this error: redis-server is available and started so I'm not sure why that dependency is failing: I feel like one or both of these are user error and appreciate help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Hello! Sorry to hear you are having troubles getting Hyperglass up and running. Lets see if we can find out what's breaking down with the Hyperglass install. PythonPlease provide the output of the following commands.
Systemd - RedisYou might try and edit the Let me know. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your reply. First to the easy one - setting On my first try of manual install I was stopped at this: `$ pip3 install -e . × This environment is externally managed note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. This isn't the first time I've run into this, and I have never had the time to really sort out use of venv. I knew that pipx could take care of this for me so instead of I did: To answer your specific questions: `hyperglass: /usr/lib/python312.zip I get the same output whether I do that as root or the user that hyperglass was installed under. This raises for me the whole larger question of - I'm told "don't run pip or virtualenv as root", but hyperglass will ultimately be run as root by the systemd service - how do I ensure root/systemd run environment reflects everything needed? At this point I have installed pnpm and node as both root and as the hyperglass user. I've tried install as root also now, with these steps:
Install works fine, and after I can run When starting the service I get: 2025-05-20T11:58:27.460181-06:00 hyperglass python3[1731]: /usr/bin/python3: Error while finding module specification for 'hyperglass.console' (ModuleNotFoundError: No module named 'hyperglass') If I code the full path in ExecStart like |
Beta Was this translation helpful? Give feedback.
-
|
Good morning and sorry for the delay. I was having an issue with nftables on my system. Anyway, here is what I would do to get the service up and running. As the user that you would like to run hyperglass as run the following commands
Collect the paths up to the Test environment
|
Beta Was this translation helpful? Give feedback.
Good morning and sorry for the delay. I was having an issue with nftables on my system. Anyway, here is what I would do to get the service up and running. As the user that you would like to run hyperglass as run the following commands
which nodewhich python # with the hyperglass virtual environment activatedCollect the paths up to the
bindirectory(ie /opt/node/bin/node -> /opt/node/bin)Then edit the
/etc/hyperglass/hyperglass.envfile and set the PATH for the service's environment. There is an example below.Test environment