zottelbeyer / QNAP-collectdinfluxdbgrafana

A simple to use Grafana Dashboard for your QNAP NAS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The stack is not autostarting between reboots

RayzerRay opened this issue · comments

Hello and Thank you for this.
I have a TS-1635AX.
I followed your instructions and all was all working.
I then restarted the NAS.
Nothing came back, I looked at the container station there was an entry for qnap-collectdinfluxdbgrafana-master that wouldn't start up.
Error message:
Failed to start application.: Application not found:
qnap-collectdinfluxdbgrafana-master

The only way I could get is started was to SSH in the NAS and run docker-compose up -d from the QNAP-collectdinfluxdbgrafana-master directory.

Can you offer any suggestions to get this to autostart on reboots?
Thanks

The restart policy was only added about a month ago in this commit

Did you update your docker-compose since then? If you use the latest version with the restart policy enabled it should survive a reboot. If not I will look into this further.

I did the latest install as of the time of posting. I cant install git on my NAS to do the update so I removed it and did the install again, same results.

Thanks for your reply.

You could try the following:

ssh into your NAS, cd to your Directory and run docker-compose down --rmi all to stop/cleanup the stack

In docker-compose.yml replace

"restart: unless-stopped"
with
"restart: always"

then start the stack again: docker-compose up -d

Container-Station might be stopping and (failing to) start each container manually. I'm currently running a long-running job on my NAS so I can't do restart-tests atm but would be grateful if you'd be willing to test.

Thanks, ill try that.

After the recent firmware update I saw the containers coming back up with the restart policy "always". Will update the source in a second. Please reopen this issue if you are still experiencing this issue after the change.