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

Issue with acme + restarting MySQL #2049

Closed
qcybb opened this issue Jan 22, 2019 · 2 comments
Closed

Issue with acme + restarting MySQL #2049

qcybb opened this issue Jan 22, 2019 · 2 comments

Comments

@qcybb
Copy link

qcybb commented Jan 22, 2019

I'm using acme v2.7.9 + MySQL v5.6 on FreeBSD v11.2

The installer added the following line to end of .cshrc file
source "/root/.acme.sh/acme.sh.csh"

In doing so, it causes this issue when restarting MySQL

$ sudo /usr/local/etc/rc.d/mysql-server restart
Stopping mysql.
/root/.acme.sh/acme.sh.csh: Permission denied.
Waiting for PIDS: 61398.
Starting mysql.
/root/.acme.sh/acme.sh.csh: Permission denied.
$

Commenting out the "source" line fixes this issue.

Any ideas how to properly fix this issue?

@Berzerker
Copy link

Berzerker commented Jan 29, 2019

Is the .cshrc file for your user and not root? You may be running the restart command with sudo, but any subsequent commands run in the background might be running under your regular user, which doesn’t have permissions into the /root home folder.

@qcybb
Copy link
Author

qcybb commented Jan 29, 2019

I managed to solve the issue by deleting everything the installer did and then installed it via the FreeBSD ports system. The version in the ports system created a special "acme" user/group and stores everything in a different folder.

Everything is running just fine now, so I'll go ahead and close the issue.

@qcybb qcybb closed this as completed Jan 29, 2019
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

2 participants