Skip to content
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

Bug: Debian/Ubuntu - Agent failed to start #28

Open
DerDanilo opened this issue Feb 1, 2018 · 5 comments
Open

Bug: Debian/Ubuntu - Agent failed to start #28

DerDanilo opened this issue Feb 1, 2018 · 5 comments

Comments

@DerDanilo
Copy link

Every time I restart the amon instance the amonagent on it doesn't start properly anymore. I then have to remove and reinstall the amonagent package to get it working again.

Any idea why this happens?
Installation is done with root, so I don't get the issue with the "permission denied".

Feb  1 19:43:02 mon amonagent[2718]: time="2018-02-01T19:43:02+01:00" level=info msg="Starting Amon Agent (Version: 0.7.5.3)\n"
Feb  1 19:43:02 mon amonagent[2718]: time="2018-02-01T19:43:02+01:00" level=fatal msg="Failed to verify pid directory  mkdir /var/run/amonagent: permission denied"
@martinrusev
Copy link
Member

martinrusev commented Feb 2, 2018

@DerDanilo I will take a look whenever I have the time. Switched to a new python based release pipeline and some small issues here and there still remain. https://github.com/amonapp/amonagent/blob/master/build.py

And this is the line that should take care of the error you see: https://github.com/amonapp/amonagent/blob/master/packaging/init.sh#L36

Can you tell me your Debian/Ubuntu distro version?

@ghost
Copy link

ghost commented Feb 6, 2018

Ubuntu 16.04

I just changed the user in the systemd service file and now it seems to work fine. The package seems to install with root, starting the service with root and on reboot tries to start the service with the amonagent user.
Is there a problem starting the service with root rights?

@martinrusev
Copy link
Member

@dschwabeS11 Thanks for the report. Will check the build pipeline to see what the issue might be. Starting any service with root rights is a no go in an Enterprise scenario with strict permissions

@DerDanilo
Copy link
Author

DerDanilo commented Feb 6, 2018

Starting any service with root rights is a no go in an Enterprise scenario with strict permissions

Of course. I meant in connection with amonagent as I only see this as a temporary workaround.

@Grisu118
Copy link
Contributor

Grisu118 commented Feb 9, 2018

This should be fixed with #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants