Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibre-web plugin doesn't restart properly #376

Open
idefy opened this issue Aug 28, 2023 · 1 comment
Open

Calibre-web plugin doesn't restart properly #376

idefy opened this issue Aug 28, 2023 · 1 comment

Comments

@idefy
Copy link

idefy commented Aug 28, 2023

Problem:
When stopping and starting the plugin or restarting the NAS, the plugin doesn't start the server at all.
I haven't found any errors in the logs.

workaround:
I can manually start it by going into the calibre-web jail sheel, then execute this: /usr/local/app/calibre-web # nohup python3 cps.py

Expectation:
The manual step to start the server shouldn't be needed.

To Reproduce:
Follow steps described here: https://github.com/janeczku/calibre-web/wiki/How-To:-Install-on-True-NAS
Check that calibre-web is accessible before step 9
After stopping and starting Calibre-web, the plugin will appear up, but actually the server is not up.
The same happens if you shut down TrueNAS and restart it after.

The only solution I found is to start it manually, which is not expected.

@Baenwort
Copy link
Contributor

Baenwort commented Jan 16, 2024

I've tried on and off for years to fix this and never had much luck. Even setting the sysrc to =YES doesn't seem to get it to start automatically.

The only auto start I've found is to use an cron task in the main TrueNAS GUI that initiates a iocage exec calibre /manual-start/calibre-start.sh and making a script at that location that calls the service to start.

However, I don't know how to automate that in a plug-in so I've never submitted it as a fix.

This only works for the initial server start but if I'm cycling the jail I don't find it hard to send that command myself from the shell.

You might be able to directly have the main TrueNAS GUI > Tasks > Cron Jobs call to iocage exec <calibrejailname> service calibre_web start but I haven't tried it as the script worked before I got to that attempt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants