Solved acme.sh + mysql issue

Mayhem30

Well-Known Member

Reaction score: 19
Messages: 382

I'm running in to a really strange issue tonight. I've upgraded databases/mysql56-server to the latest version and now when I restart MySQL, I receive the following error :
Code:
$ 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.
$
I'm at a loss why it's trying to run /root/.acme.sh/acme.sh.csh when restarting. I also receive the same error when I am logged in as root. MySQL is on the same server and accessed via localhost.

Where should I start looking to fix this issue?
 

aragats

Daemon

Reaction score: 499
Messages: 1,213

I have no explanation why MySQL server wants to run that script, but one thing is obvious: you ran (or set up to run) acme.sh as root. You should not do that, there is a user acme, which has to run acme.sh, it's home directory is /var/db/acme. The root's home should not contain acme stuff.
 
OP
OP
M

Mayhem30

Well-Known Member

Reaction score: 19
Messages: 382

Ah, I didn't install it via the ports system. This is the error I see now when installing :
Code:
New packages to be INSTALLED:
        acme.sh: 2.7.9_1
        socat: 1.7.3.2_4

Number of packages to be installed: 2
[1/2] Installing socat-1.7.3.2_4...
[1/2] Extracting socat-1.7.3.2_4: 100%
[2/2] Installing acme.sh-2.7.9_1...
===> Creating groups.
Creating group 'acme' with gid '169'.
===> Creating users
Creating user 'acme' with uid '169'.
pw: user 'acme' disappeared during update
install: unknown user acme
pkg: PRE-INSTALL script failed
Unfortunately, the system upgraded failed.
 
Top