do-agent does not start on CentOS v7
To Reproduce
Install the latest do-agent from yum repository. Run journalctl -f to watch systemd logging in real time. From another shell run systemctl restart do-agent
You will see the following error in the journalctl shell:
Failed at step EXEC spawning /opt/digitalocean/bin/do-agent --syslog: Permission denied
To Fix
chmod 755 /opt/digitalocean
chmod 755 /opt/digitalocean/bin
Run systemctl restart do-agent again and it should work now
Hi @sdwru, I just tried re-producing this with a CentOS v7 droplet and was unable too. Are you using the actual DO image for this distro or a custom image?
Hello,
This may have been due to a change to the RPM, which used to set the file and folder permissions to user:nobody, group:do-agent, and permissions 750. Or perhaps the droplet-agent did that? When the RPM was updated it appears it did not update the previous file and folder permissions on my server. After I completely uninstalled do-agent and droplet-agent and removed the /opt/digitalocean folder and tried re-installed both RPMs individually they both set the permissions correctly.
So it seems to be working now for new installs. However, I think it would still be advisable to have the RPM update folder/file permissions on updates, for anyone who may still be running older versions of the RPM and have not updated yet.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.
still valid
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.
still valid