New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start service with --password flag #2034
Comments
Did you try manually running it with the The error is probably due to glances prompting for the password. |
Yep, works manually with the password flag, remote login works with the password as expected. It's only if password is enabled in the service that doesn't work. Service works without the flag. |
@LastElf If you run glances as a systemd service without the If you are fine with running glances as a root process then you could try copying your password file to Other alternative would be to use the |
This worked, which is weird cause the other two servers I did also have custom root usernames but still run with the password without an issue. I knew about the password file (Had to do the same thing for my Windows server) but thought since the user I was setting it up with was root it would load it. Thanks for your help! |
Describe the bug
Starting Glances via systemctl with glances -w --password causes a crash with getpass.py, error log from systemctl status is below. It runs fine when run manually, it runs fine without the --password flag.
This is the third server I've set up with Glances today so I know the process worked, the other two servers didn't have an issue.
Expected behavior
The service to start running
Textshots
/etc/systemd/system/glances.service
systemctl status glances.service
Desktop (please complete the following information):
Additional context
This server was an odd one out, I had to run the install via pip3 instead of pip after installing all the python 3 requirements. I have uninstalled and reinstalled Python and the pre-reqs twice without a change, and removed the password file thinking that might have been corrupt.
I am technical (This will be going on Windows servers later too) but I'm not great on Linux, I just use it as a platform to host Docker containers but I want Glances outside of Docker in case my containers are busted.
The text was updated successfully, but these errors were encountered: