So purchased a Synology DS1520+ to replace my 10 yr old ReadyNAS. Let me tell you I’ve been extremely disappointed with the OS proprietary packaging and utilities. This problem being one of many with the fact they decided logs should go into a database and not flat files…
Anyways, after running my container for about 2 weeks, it suddenly exited and would not restart. The one message I found said:
Start container storjlabs-storagenode1 failed: {“message”:“failed to initialize logging driver: database is locked”}.
That did fix it, for 2 more weeks and then it happened again. The second time I was able to remediate more quickly, but my reputation is still getting dinged for the downtime. Opened a case with Synology, and they seemed to of deemed it interesting enough for escalation. In the meantime, has anyone else seen this?
After a further investigation by our developers, they found that the container has additional parameters from it’s github link that show it should be run over terminal, rather than in the UI.
We suggested you to run the container via command but not UI to have a complete parameters introduced into it, and so the container can run properly.
OK. This smells a little funny. Obviously I can’t expect to have a ssh terminal open 24/7 to run a docker instance. I’m assuming I could start it detached but then how do you autostart the docker instances after a reboot?
I think sth made the process to shutdown unexpectedly which caused the db to be locked. Maybe RAM leakage as @Alexey mentioned. Check the logs for the reason why it stopped, not the reason why it couldn’t restart.
I never ran nodes from Syno UI. I always used putty/SSH/CLI to install and run the nodes as root (sudo su). You don’t have to keep the terminal open ;). Just run the node and close the terminal (putty or whatever) by typing exit 2 times if you were in sudo su. Check my post for the commands.
The terminal is just a way to send commands to the linux kernel; the commands and programs started don’t live in that terminal, like in a windows program.
Never had a locked db or sudden crash. But my hardware is new; maybe if you have old or sh hardware, there could be something defective. https://forum.storj.io/t/my-docker-run-commands-for-multinodes-on-synology-nas/22034