Khonshu Posted June 1, 2021 Share Posted June 1, 2021 Hello all and first of all thanks to the team at LinuxServers for their amazing job! Second, let me apologize for any grammar or spelling errors, english is not my mother language. I setup the calibre-web docker in my unraid server and managed to have everything working, at least locally. However I seem not to be smart enough to get it working from outside my lan using Nginx Proxy Manager. Could anyone provide a tutorial (or link to one) on how to properly set it up? All I got is a "502 bad gateway" error. Thanks in advance, Khonshu. Quote Link to comment
Liner81 Posted June 9, 2021 Share Posted June 9, 2021 (edited) I've got the calibre-web container running beautifully when I access it locally... But when I access it thru my reverse proxy (Nginx Proxy Manager) it keeps kicking me to the login page when i try to change views or look at a book's details. I have included the following options on the NPM advanced tab as suggested: proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; I do not have "Allow Reverse Proxy Authentication" selected in the feature configuration page. Ideas? EDIT - might have fixed this myself by unchecking the NPM options for 'cache assets', 'block common exploits' and 'websockets support'. Will see how it continues to behave. nope. still kicking me to the login screen for calibre-web Edited June 9, 2021 by Liner81 1 Quote Link to comment
majestic Posted June 27, 2021 Share Posted June 27, 2021 I am attempting to use the "Gmail Account with OAuth2 Verification" option to configure my Email Server Settings. When I click on the "Setup Gmail Account as E-Mail Server" button, the webpage just spins and no activity can be completed on the page until I restart the docker container. I followed all the instructions (https://github.com/janeczku/calibre-web/wiki/Setup-Mailserver) to setup the Google OAuth2 portion, mapped the resulting gmail.json file to the container, and added the additional environment variable (OAUTHLIB_RELAX_TOKEN_SCOPE=1) mentioned in a recent post (https://discourse.linuxserver.io/t/docker-calibre-web-problem-enabling-gmail-account-with-oauth2-verification/3052). Here's the docker create command used: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='calibre-web' --net='bridge' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'DOCKER_MODS'='linuxserver/calibre-web:calibre' -e 'OAUTHLIB_RELAX_TOKEN_SCOPE'='1' -e 'PUID'='99' -e 'PGID'='100' -p '8083:8083/tcp' -v '/mnt/user/Media/Books/Calibre/Library/':'/books':'rw' -v '/mnt/user/appdata/calibre-web/gmail.json':'/app/calibre-web/gmail.json':'rw' -v '/mnt/user/appdata/calibre-web':'/config':'rw' 'linuxserver/calibre-web' There doesn't appear to be any detail as to why the webpage just spins in the calibre-web.log or in the docker logs. Has anyone else been able to get this working? Quote Link to comment
norsemanGrey Posted July 10, 2021 Share Posted July 10, 2021 On 6/9/2021 at 9:58 PM, Liner81 said: I've got the calibre-web container running beautifully when I access it locally... But when I access it thru my reverse proxy (Nginx Proxy Manager) it keeps kicking me to the login page when i try to change views or look at a book's details. I have included the following options on the NPM advanced tab as suggested: proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; I do not have "Allow Reverse Proxy Authentication" selected in the feature configuration page. Ideas? EDIT - might have fixed this myself by unchecking the NPM options for 'cache assets', 'block common exploits' and 'websockets support'. Will see how it continues to behave. nope. still kicking me to the login screen for calibre-web I'm having the same issue as you. Did you find a fix for it? I had the exact same setup on a previous server and did not have any problems then so I wonder if this is related to a change to the container application. Quote Link to comment
Liner81 Posted July 12, 2021 Share Posted July 12, 2021 (edited) On 7/10/2021 at 6:06 AM, norsemanGrey said: I'm having the same issue as you. Did you find a fix for it? I had the exact same setup on a previous server and did not have any problems then so I wonder if this is related to a change to the container application. So I believe my issue was caused by cloudflare. The only solution I found was to bypass the cloudflare services for my calibre-web subdomain by selecting dns only (no proxy) for that address. The cloudflare proxy appears to be incompatible with the calibre-web authentication protocol. Found some help diagnosing the issue here... Edited July 12, 2021 by Liner81 link 1 Quote Link to comment
IFireflyl Posted July 14, 2021 Share Posted July 14, 2021 (edited) I had a Calibre-Web update available today, so I updated it. After updating my Docker page now gives me this warning: Quote Warning: file_put_contents(/var/lib/docker/unraid/images/calibre-web-icon.png): failed to open stream: Read-only file system in /usr/local/emhttp/plugins/dynamix.docker.manager/include/DockerClient.php on line 90 Any ideas on what I'm supposed to be doing to resolve this? It *appears* that Calibre-Web did successfully update since it says "up-to-date" whenever I check for updates. But Calibre-Web no longer works. I get an page cannot be displayed error when trying to access the WebUI. Below is a screenshot of the Docker page. EDIT: I tried restarting the server, and that causes it to say: Execution Error Error code 403 Edited July 14, 2021 by IFireflyl Quote Link to comment
IFireflyl Posted July 14, 2021 Share Posted July 14, 2021 (edited) On 7/10/2021 at 5:06 AM, norsemanGrey said: I'm having the same issue as you. Did you find a fix for it? I had the exact same setup on a previous server and did not have any problems then so I wonder if this is related to a change to the container application. On 7/12/2021 at 6:21 AM, Liner81 said: So I believe my issue was caused by cloudflare. The only solution I found was to bypass the cloudflare services for my calibre-web subdomain by selecting dns only (no proxy) for that address. The cloudflare proxy appears to be incompatible with the calibre-web authentication protocol. Found some help diagnosing the issue here... These are the steps I took to resolve this issue: In your appdata/calibre-web folder create a new folder called "custom-cont-init.d" (without the quotation marks). In the new folder, create a file called "patch-session-protection.sh" (without the quotation marks). In the new file, copy the following text and save it: #!/bin/bash echo "**** patching calibre-web - removing session protection ****" sed -i "/lm.session_protection = 'strong'/d" /app/calibre-web/cps/__init__.py Restart your container. You're right that Cloudflare is causing the issue, but only because of a security measure put in place in the last few months by Calibre-Web that is extremely unnecessary for what Calibre-Web is (just a book library). https://flask-login.readthedocs.io/en/latest/#session-protection The session protection that was added by Calibre-Web set lm.session_protection to strong, and that simply doesn't work with Cloudflare. The steps I listed bypass this newly added security feature. Edited July 14, 2021 by IFireflyl 1 Quote Link to comment
IFireflyl Posted July 14, 2021 Share Posted July 14, 2021 49 minutes ago, IFireflyl said: I had a Calibre-Web update available today, so I updated it. After updating my Docker page now gives me this warning: Any ideas on what I'm supposed to be doing to resolve this? It *appears* that Calibre-Web did successfully update since it says "up-to-date" whenever I check for updates. But Calibre-Web no longer works. I get an page cannot be displayed error when trying to access the WebUI. Below is a screenshot of the Docker page. EDIT: I tried restarting the server, and that causes it to say: Execution Error Error code 403 Well, I tried to reboot my server to see if that would fix it. Now the Calibre-Web docker is completely missing and I have to re-install it. *le sigh* 1 Quote Link to comment
Liner81 Posted July 15, 2021 Share Posted July 15, 2021 3 hours ago, IFireflyl said: These are the steps I took to resolve this issue: In your appdata/calibre-web folder create a new folder called "custom-cont-init.d" (without the quotation marks). In the new folder, create a file called "patch-session-protection.sh" (without the quotation marks). In the new file, copy the following text and save it: #!/bin/bash echo "**** patching calibre-web - removing session protection ****" sed -i "/lm.session_protection = 'strong'/d" /app/calibre-web/cps/__init__.py Restart your container. You're right that Cloudflare is causing the issue, but only because of a security measure put in place in the last few months by Calibre-Web that is extremely unnecessary for what Calibre-Web is (just a book library). https://flask-login.readthedocs.io/en/latest/#session-protection The session protection that was added by Calibre-Web set lm.session_protection to strong, and that simply doesn't work with Cloudflare. The steps I listed bypass this newly added security feature. Thanks so much for this! Yes, it appears to fix the issue with Cloudflare proxy... no more kicking to the login screen with proxy enabled. Much appreciated! 1 Quote Link to comment
saarg Posted July 15, 2021 Share Posted July 15, 2021 On 7/14/2021 at 11:38 PM, IFireflyl said: Well, I tried to reboot my server to see if that would fix it. Now the Calibre-Web docker is completely missing and I have to re-install it. *le sigh* That has nothing to do with the container. It's an unraid issue. 1 Quote Link to comment
Squid Posted July 15, 2021 Share Posted July 15, 2021 On 7/14/2021 at 5:38 PM, IFireflyl said: Well, I tried to reboot my server to see if that would fix it. Now the Calibre-Web docker is completely missing and I have to re-install it. *le sigh* Without diagnostics, odds on you have to delete the docker.img and reinstall everything via Apps - Previous Apps. It should be like nothing happened. Quote Link to comment
IFireflyl Posted July 16, 2021 Share Posted July 16, 2021 (edited) 22 minutes ago, Squid said: Without diagnostics, odds on you have to delete the docker.img and reinstall everything via Apps - Previous Apps. It should be like nothing happened. Yep, that's what I ended up doing. I have no idea what caused it, or how to find out. But it appears to be working fine after a re-install. Thanks! Edited July 16, 2021 by IFireflyl Quote Link to comment
Meles Meles Posted July 16, 2021 Share Posted July 16, 2021 (edited) On 6/27/2021 at 2:41 PM, majestic said: I am attempting to use the "Gmail Account with OAuth2 Verification" option to configure my Email Server Settings. When I click on the "Setup Gmail Account as E-Mail Server" button, the webpage just spins and no activity can be completed on the page until I restart the docker container. I followed all the instructions (https://github.com/janeczku/calibre-web/wiki/Setup-Mailserver) to setup the Google OAuth2 portion, mapped the resulting gmail.json file to the container, and added the additional environment variable (OAUTHLIB_RELAX_TOKEN_SCOPE=1) mentioned in a recent post (https://discourse.linuxserver.io/t/docker-calibre-web-problem-enabling-gmail-account-with-oauth2-verification/3052). Here's the docker create command used: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='calibre-web' --net='bridge' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'DOCKER_MODS'='linuxserver/calibre-web:calibre' -e 'OAUTHLIB_RELAX_TOKEN_SCOPE'='1' -e 'PUID'='99' -e 'PGID'='100' -p '8083:8083/tcp' -v '/mnt/user/Media/Books/Calibre/Library/':'/books':'rw' -v '/mnt/user/appdata/calibre-web/gmail.json':'/app/calibre-web/gmail.json':'rw' -v '/mnt/user/appdata/calibre-web':'/config':'rw' 'linuxserver/calibre-web' There doesn't appear to be any detail as to why the webpage just spins in the calibre-web.log or in the docker logs. Has anyone else been able to get this working? I've just been through the same thing. The first time you use your OAUTH JSON file, it pops a browser window (on the host OS - so presumably somewhere INSIDE the docker container) asking you to confirm you are happy for this app to do stuff on your behalf. Obv this doesn't go so well... I installed calibreweb locally on my PC (and the optional requirements.txt) and then the popup came on my desktop machine. Now that this is done should be good (the popup is just for the first time). Although.... it's just first time for the user - how does the docker container know who i'm (google-ey) logged in as. It's still just spinning for me.... To be continued.... EDIT - i have a suspicion i'll need to reboot my unRAID server into GUI mode and the window will pop up there. but not this evening.... (GMT+8) Edited July 16, 2021 by Meles Meles did some more thunking..... Quote Link to comment
akshunj Posted September 5, 2021 Share Posted September 5, 2021 thanks for bringing this docker container to the Unraid app store. Works great! Quote Link to comment
sheep94lion Posted September 20, 2021 Share Posted September 20, 2021 On 6/1/2021 at 5:27 PM, Khonshu said: Hello all and first of all thanks to the team at LinuxServers for their amazing job! Second, let me apologize for any grammar or spelling errors, english is not my mother language. I setup the calibre-web docker in my unraid server and managed to have everything working, at least locally. However I seem not to be smart enough to get it working from outside my lan using Nginx Proxy Manager. Could anyone provide a tutorial (or link to one) on how to properly set it up? All I got is a "502 bad gateway" error. Thanks in advance, Khonshu. I have the same problem, have you found a solution? Quote Link to comment
vadimbz Posted October 17, 2021 Share Posted October 17, 2021 On 7/15/2021 at 3:56 AM, IFireflyl said: These are the steps I took to resolve this issue: In your appdata/calibre-web folder create a new folder called "custom-cont-init.d" (without the quotation marks). In the new folder, create a file called "patch-session-protection.sh" (without the quotation marks). In the new file, copy the following text and save it: #!/bin/bash echo "**** patching calibre-web - removing session protection ****" sed -i "/lm.session_protection = 'strong'/d" /app/calibre-web/cps/__init__.py Restart your container. You're right that Cloudflare is causing the issue, but only because of a security measure put in place in the last few months by Calibre-Web that is extremely unnecessary for what Calibre-Web is (just a book library). https://flask-login.readthedocs.io/en/latest/#session-protection The session protection that was added by Calibre-Web set lm.session_protection to strong, and that simply doesn't work with Cloudflare. The steps I listed bypass this newly added security feature. Hello, I'm having the same issue. I followed the instructions, but it didn't help, I keep being kicked out to login page every 3 clicks or so. Is there anything else I can be missing? Should I add custom location block (there's conflicting information about it)? Thanks! 1 Quote Link to comment
Liner81 Posted October 18, 2021 Share Posted October 18, 2021 22 hours ago, vadimbz said: Hello, I'm having the same issue. I followed the instructions, but it didn't help, I keep being kicked out to login page every 3 clicks or so. Is there anything else I can be missing? Should I add custom location block (there's conflicting information about it)? Thanks! yeah, something happened to cause problems again. I still have the fix applied, but its not working 100%. If I log out and back in, sometimes it works fine, otherwise I can't progress beyond a few clicks without it locking up. I really should try to revert back a few versions. Quote Link to comment
dyspro Posted November 1, 2021 Share Posted November 1, 2021 Hello, Calibre-web refuses to save the location of the calibre database. I am able to login to calibre-web. It shows me the usual calibre-web interface. I either fill in manually or use the file picker to specify the path to metadata.db. I click save and nothing happens. Click on any other link and I'm returned to http://...:8083/admin/dbconfig page with the field for the path blank again. Everything is updated to the latest version. I tried removing everything and reinstalling but I run into the same problem. I'm lost at what more I can do. Can anyone help? Quote Link to comment
IFireflyl Posted November 19, 2021 Share Posted November 19, 2021 On 10/17/2021 at 10:06 AM, vadimbz said: Hello, I'm having the same issue. I followed the instructions, but it didn't help, I keep being kicked out to login page every 3 clicks or so. Is there anything else I can be missing? Should I add custom location block (there's conflicting information about it)? Thanks! On 10/18/2021 at 8:52 AM, Liner81 said: yeah, something happened to cause problems again. I still have the fix applied, but its not working 100%. If I log out and back in, sometimes it works fine, otherwise I can't progress beyond a few clicks without it locking up. I really should try to revert back a few versions. Edit your Calibre-Web docker, and find and change the Repository section to this: lscr.io/linuxserver/calibre-web:amd64-0.6.12-ls130 It should look like this: That will downgrade your Calibre-Web docker to the older version (released approximately three months ago) where the workaround I mentioned actually works. We'll have to be satisfied with this until they release a fix for this in the future. 1 Quote Link to comment
CasaP Posted May 17, 2022 Share Posted May 17, 2022 So I was having issues trying to get this working, (nuked & re-installed 4 / 5 times)then checked the logs... [mod-init] Curl/JQ was not found on this system for Docker mods installing This error is triggered by lack of network on container start-up... So I set Autostart and wait to 5 seconds, now it's pulling some archives and applying it to the image? Will update if working. Seems to be stuck thinking about something. Quote Link to comment
CasaP Posted May 17, 2022 Share Posted May 17, 2022 Yep, that worked. I left it for about an hour with the log open an all sorts of stuff was downloading / unstuffing and happening!! All up and running now. Just be patient, it seems to be hung on; [mod-init] Attempting to run Docker Modification Logic [mod-init] Applying linuxserver/calibre-web:calibre files to container But if you just leave it alone t sorts itself out. Quote Link to comment
Funny718 Posted October 1, 2022 Share Posted October 1, 2022 I've got the calibre-web container running and can access it locally just fine. Problem I'm having is trying to setup a reverse proxy via (Nginx Proxy Manager) it keeps giving me an internal error. I followed janeczku gudie https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy#nginx-proxy-manager to no avail and was wondering if anyone else has got this to work? I attached a pic of my npm setup can any one see where I went wrong? thanks Quote Link to comment
Funny718 Posted October 5, 2022 Share Posted October 5, 2022 On 9/30/2022 at 11:35 PM, Funny718 said: I've got the calibre-web container running and can access it locally just fine. Problem I'm having is trying to setup a reverse proxy via (Nginx Proxy Manager) it keeps giving me an internal error. I followed janeczku gudie https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy#nginx-proxy-manager to no avail and was wondering if anyone else has got this to work? I attached a pic of my npm setup can any one see where I went wrong? thanks Hey just want to let everyone know that the only way I was able to solve this was by switch over to swag. And wow I'm amazed at how easy it was to setup. Well using video from ibracrop on YouTube. Lol love them Quote Link to comment
jmmrly Posted January 7 Share Posted January 7 I'm using the 'Use standard E-mail account' for the email settings using my gmail settings. However, every time a user sends a book, I get a verification email to verify the email. The email address is in the approved list, and the kindle email address is random. Any idea why this might be happening? 1 Quote Link to comment
halorrr Posted Saturday at 10:36 PM Share Posted Saturday at 10:36 PM Hey team! I have an odd issue that from what I can tell started in the past few weeks. Every time Calibre-Web's container updates, it forgets what my "SMTP Password" is and I need to enter it again. I'm not sure if it is related, but I have noticed this warning in the container logs: Setting up desktop integration... ____________________ WARNING ____________________ Setting up desktop integration failed with error: __________________________________________________ Traceback (most recent call last): File "calibre/linux.py", line 858, in setup_desktop_integration File "calibre/linux.py", line 880, in do_setup_desktop_integration File "calibre/linux.py", line 911, in install_xdg_junk File "calibre/linux.py", line 896, in install_icons File "calibre/linux.py", line 890, in install_single_icon File "subprocess.py", line 364, in check_call File "subprocess.py", line 345, in call File "subprocess.py", line 966, in __init__ File "subprocess.py", line 1842, in _execute_child FileNotFoundError: [Errno 2] No such file or directory: 'xdg-icon-resource' Creating un-installer: /usr/bin/calibre-uninstall There were 1 warnings * Setting up desktop integration failed with error: [custom-init] No custom files found, skipping... [ls.io-init] done. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.