LinguaCafe icon indicating copy to clipboard operation
LinguaCafe copied to clipboard

MySQL permission error when restarting server

Open astrflx opened this issue 1 year ago • 3 comments

I'm able to do the initial setup and run LinguaCafe once just fine, but once I turn it off and try to turn it back on, it gives an error: chown: changing ownership of '/var/lib/mysql/mysql.sock': Operation not permitted

This error repeats several times and the server never restarts. I'm using Docker Desktop in Ubuntu 24.04.

astrflx avatar Jan 02 '25 20:01 astrflx

Hi!

Sorry for the late response. I'm not sure what the issue could be. I use ubuntu without docker desktop, and use just plain docker, and I install it in my home directory. The last time I tried a fresh install was a few months ago.

Did you manage to get it working since you opened this ticket?

simjanos-dev avatar Mar 09 '25 14:03 simjanos-dev

Nope. Still happening with Docker Desktop on the latest Linux Mint.

{ "Start": "2025-05-08T19:34:15.537106489Z", "End": "2025-05-08T19:34:15.632898488Z", "ExitCode": 0, "Output": "Enter password: \u0007mysqladmin: connect to server at 'localhost' failed\nerror: 'Access denied for user 'root'@'localhost' (using password: NO)'\n" },

SmugCat avatar May 08 '25 19:05 SmugCat

Adding rw and user: mysql worked for me:

volumes:
      - db:/var/lib/mysql:rw
user: mysql

SmugCat avatar May 08 '25 20:05 SmugCat