Closed macdonaldj closed 1 year ago
might be related to users, this was done on an AWS 20.04, afer server start i see this
self-hosted/data# ll
drwx------ 7 root docker 4096 Jan 12 15:29 ./
drwx------ 6 root docker 4096 Jan 12 15:29 ../
-rw------- 1 root docker 0 Jan 12 15:29 .gitkeep
drwx------ 2 root docker 4096 Jan 12 15:29 import/
drwxr-xr-x 2 systemd-coredump docker 4096 Jan 12 16:12 mysql/
drwxr-xr-x 2 systemd-coredump docker 4096 Jan 12 15:29 redis/
drwxr-xr-x 8 systemd-coredump docker 4096 Jan 12 16:10 revisions-db/
drwx------ 2 root docker 4096 Jan 12 15:29 uploads/
still having issues, any thoughts @eric-pierce ?
it is def a permissions issue, this fixed it, which obviously is not a solution we can pursue
cd self-hosted
chmod -R 777 .
./server.sh start
@macdonaldj I'm not leveraging the script based install, but am instead using a manually maintained docker-compose and mariadb instead of MySQL, so I'm not seeing these same issues.
It looks like the problem may be folder and file permission focused, where some of your folders are only readable by root, and others are readable by non-root users. I'm betting that if you take a look at your mysql folder and file permissions you may find the cause.
Depending on how open you want your permissions to be and what your threat model is, your solution above could be fine.
thanks for the response. Im def interested to hear more about the manual maintained method with maria ;)
but for now this seemed to get me moving
find . -type d -exec chmod 775 {} \;
@macdonaldj you can take a look at my docker-compose file which includes all services (both StandardNotes and other). I'm not affiliated with StandardNotes at all and my approach isn't official, but it fits with my container management workflow much better than the script approach.
Service Versions (please complete the following information): Paste the output of
./server.sh version
. For example:Following guide from https://docs.standardnotes.com/self-hosting/docker/ Step 8 shows the db keeps restarting
Logs