fr0tt / benotes

An open source self hosted notes and bookmarks taking web app.
https://benotes.org
MIT License
718 stars 48 forks source link

Docker image stuck in "restarting" upon system reboot #19

Closed korikori closed 2 years ago

korikori commented 2 years ago

Hi there, I've installed your app via its docker image, but whenever I have to reboot the server hosting it, Benotes fails to start up - it just keeps on restarting itself unsuccessfully. The only relevant line in the logs is this:

error: failed switching to "root": operation not permitted

Restarting the app with docker-compose down and docker-compose up works, but restarting the docker service or rebooting the machine results in the same failure.

I worked around this by adding the following line to the docker-compose.yml file within the service block for "app":

user: root

However, I am way too unfamiliar with docker to know if this is a cause for concern or not.

fr0tt commented 2 years ago

Hey, thank you for reporting this issue !

I will look into it once I'm back at home in a couple of days.

A quick search resulted in a lot of different causes for this error, it seems quit common. But I have to try to recreate your bug and see how things go from there.

fr0tt commented 2 years ago

As far as I understand this is not a cause for concern. So based on this issue on the base image I hopefully fixed your bug.

Let me know if it's still a problem or you find another one. If not please close this issue.

korikori commented 2 years ago

Thanks for looking into this, and sorry for taking so long to get back to you/close. All the best.

fr0tt commented 2 years ago

With pleasure and no worries, I was just a little concerned something was wrong, but I'm glad that wasn't the case ;) All the best for you too.