Resource icon

Docker Calibre book manager in Docker

Currently reading
Docker Calibre book manager in Docker

The only thing I can think of is adding an allow rule for container IPs, such as

172.17.0.0 255.255.0.0 all

Some time ago I used this, but after disabling it I saw no ill effect, so it remains disabled.

I'm also using the "All Interfaces" firewall setting for most of my rules.

But back to Calibre... what port mappings are you using... Is your PUID/PGID values from your administrator account?
Hi Telos,
Thanks for persevering with me on this.
I tried the 172.17 etc rule but no luck.
The user is not an admin, it's one that I created especially for Calibre. I'll try making it an admin, but don't like that as a solution. I have the following port mappings, although I thought I had set 3389 to auto.
1606245397115.png

I think I might re-acquaint myself with WireShark and see if I can see any clues using that, although I expect I might have to work out how to install on the NAS rather than a PC on the network.
 

Telos

Subscriber
3,029
971
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Ports seem fine (you will only see "auto" when the container is not running). My bet is on the user account not having rights. I trust you used the PGID/PUID specific to the user you created.

Before you change PGID/PUID to administrator values, check you calibre library and calibre docker folders to ensure that the user that you created is "owner" over all files/folders/children. If you change that, I would restart the calibre docker.
 
Ports seem fine (you will only see "auto" when the container is not running). My bet is on the user account not having rights. I trust you used the PGID/PUID specific to the user you created.

Before you change PGID/PUID to administrator values, check you calibre library and calibre docker folders to ensure that the user that you created is "owner" over all files/folders/children. If you change that, I would restart the calibre docker.
No, make my Calibre user the owner of the folder and files didn't make a difference. The only thing that makes it work is disabling the catch all deny all firewall rule or disabling the firewall altogether. But as I said earlier, if I try downloading the meta data with the rule enabled I get an error from Calibre (but it has no detail), but despite having firewall notifications turned on, there are no notifications.
 
20
2
NAS
DS412+
Has anyone faced problems with blank page on calibre docker start?
I've installed it using 27880 and 27881 ports, but when I launch it I see a blank page with a cursor without calibre interface.
Thanks in advance.
 

Telos

Subscriber
3,029
971
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Has anyone faced problems with blank page on calibre docker start?
I've seen that on the Calibre interface occasionally. Generally shortly after starting the container. If the container has been running for a while, try refreshing the browser tab, or try an alternate browser.

Also disable any browser blockers for that domain/IP.

I've installed it using 27880 and 27881 ports
These launch different features. However, notably the docker-compose has evolved since I initially set this up. For example, I am now using this...
Code:
version: "2.1"
services:
  linuxserver-calibre:
    image: lscr.io/linuxserver/calibre:latest
    container_name: calibre
    environment:
      - PGID=1234
      - PUID=5671
      - TZ=America/The_Swamp
    ports:
      - 27880:8080 # app
      - 27881:8081 # server
    volumes:
      - /volume1/docker/calibre/config:/config
      - /volume1/library:/myLibrary
    restart: unless-stopped
 
20
2
NAS
DS412+
These launch different features. However, notably the docker-compose has evolved since I initially set this up. For example, I am now using this...

I've tried to use your compose, but it seems that I have some problems in the log file:

Code:
guacd[311]: INFO:    RDPDR user logged on
[2022-10-22 17:17:37] [Connection 2]  Closing connection with error:  1000
[2022-10-22 17:17:37] [Connection 2]  Closing guacd connection
[2022-10-22 17:17:37] [Connection 2]  Client connection closed
guacd[311]: INFO:    User "@4c479cb6-083e-492b-8f80-d89d7a72a56d" disconnected (0 users remain)
guacd[311]: INFO:    Last user of connection "$7da1bf72-ce0f-4d25-ac23-082c2efdadce" disconnected
[2022-10-22 17:17:37] [Connection 3]  Client connection open
[2022-10-22 17:17:37] [Connection 3]  Opening guacd connection
[2022-10-22 17:17:37] [Connection 3]  guacd connection open
[2022-10-22 17:17:37] [Connection 3]  Selecting connection type: rdp
[2022-10-22 17:17:37] [Connection 3]  Sending opCode: 6.select,3.rdp;
guacd[220]: INFO:    Creating new client for protocol "rdp"
guacd[220]: INFO:    Connection ID is "$83039203-806e-47d2-bc4c-73404aaf1845"
guacd[311]: INFO:    Internal RDP client disconnected
guacd[220]: INFO:    Connection "$7da1bf72-ce0f-4d25-ac23-082c2efdadce" removed.
guacd[457]: INFO:    Security mode: Negotiate (ANY)
[2022-10-22 17:17:42] [Connection 3]  Sending opCode: 4.size,4.1324,13.877?undefined,2.96;
[2022-10-22 17:17:42] [Connection 3]  Sending opCode: 5.audio,9.audio/L16;
[2022-10-22 17:17:42] [Connection 3]  Sending opCode: 5.video;
[2022-10-22 17:17:42] [Connection 3]  Sending opCode: 5.image;
[2022-10-22 17:17:42] [Connection 3]  Server sent handshake: 4.args,13.VERSION_1_1_0,8.hostname,4.port,6.domain,8.username,8.password,5.width,6.height,3.dpi,15.initial-program,11.color-depth,13.disable-audio,15.enable-printing,12.printer-name,12.enable-drive,10.drive-name,10.drive-path,17.create-drive-path,7.console,13.console-audio,13.server-layout,8.security,11.ignore-cert,12.disable-auth,10.remote-app,14.remote-app-dir,15.remote-app-args,15.static-channels,11.client-name,16.enable-wallpaper,14.enable-theming,21.enable-font-smoothing,23.enable-full-window-drag,26.enable-desktop-composition,22.enable-menu-animations,22.disable-bitmap-caching,25.disable-offscreen-caching,21.disable-glyph-caching,16.preconnection-id,18.preconnection-blob,8.timezone,14.recording-path,14.recording-name,24.recording-exclude-output,23.recording-exclude-mouse,22.recording-include-keys,21.create-recording-path,13.resize-method,18.enable-audio-input,9.read-only,16.gateway-hostname,12.gateway-port,14.gateway-domain,16.gateway-username,16.gateway-password,17.load-balance-info
guacd[457]: INFO:    Resize method: none
[2022-10-22 17:17:42] [Connection 3]  Sending opCode: 7.connect,0.,9.127.0.0.1,4.3389,0.,3.abc,3.abc,4.1324,13.877?undefined,2.96,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,12.en-us-qwerty,3.any,4.true,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.;
guacd[457]: INFO:    User "@93e22206-2c79-4f1e-95b0-2d20a37189ea" joined connection "$83039203-806e-47d2-bc4c-73404aaf1845" (1 users now present)
guacd[457]: INFO:    Loading keymap "base"
guacd[457]: INFO:    Loading keymap "en-us-qwerty"
rdpClientConRecv: g_sck_recv failed(returned 0)
rdpClientConRecvMsg: error
rdpClientConCheck: rdpClientConGotData failed
rdpClientConDisconnect:
rdpRemoveClientConFromDev: removing clientCon 0x7f56696c1cd0
[2022-10-22 17:17:52] [Connection 3]  Closing connection with error:  Error: guacd was inactive for too long
    at GuacdClient.checkActivity (/gclient/node_modules/guacamole-lite/lib/GuacdClient.js:35:41)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
[2022-10-22 17:17:52] [Connection 3]  Closing guacd connection
[2022-10-22 17:17:52] [Connection 3]  Client connection closed
[2022-10-22 17:17:56] [Connection 4]  Client connection open
[2022-10-22 17:17:56] [Connection 4]  Opening guacd connection
[2022-10-22 17:17:56] [Connection 4]  guacd connection open
[2022-10-22 17:17:56] [Connection 4]  Selecting connection type: rdp
[2022-10-22 17:17:56] [Connection 4]  Sending opCode: 6.select,3.rdp;
guacd[220]: INFO:    Creating new client for protocol "rdp"
guacd[220]: INFO:    Connection ID is "$289a79f9-4548-40a0-a1dd-ac90c84d0d33"
[2022-10-22 17:18:00] [Connection 4]  Sending opCode: 4.size,4.1324,13.877?undefined,2.96;
[2022-10-22 17:18:00] [Connection 4]  Sending opCode: 5.audio,9.audio/L16;
[2022-10-22 17:18:00] [Connection 4]  Sending opCode: 5.video;
[2022-10-22 17:18:00] [Connection 4]  Sending opCode: 5.image;
[2022-10-22 17:18:00] [Connection 4]  Server sent handshake: 4.args,13.VERSION_1_1_0,8.hostname,4.port,6.domain,8.username,8.password,5.width,6.height,3.dpi,15.initial-program,11.color-depth,13.disable-audio,15.enable-printing,12.printer-name,12.enable-drive,10.drive-name,10.drive-path,17.create-drive-path,7.console,13.console-audio,13.server-layout,8.security,11.ignore-cert,12.disable-auth,10.remote-app,14.remote-app-dir,15.remote-app-args,15.static-channels,11.client-name,16.enable-wallpaper,14.enable-theming,21.enable-font-smoothing,23.enable-full-window-drag,26.enable-desktop-composition,22.enable-menu-animations,22.disable-bitmap-caching,25.disable-offscreen-caching,21.disable-glyph-caching,16.preconnection-id,18.preconnection-blob,8.timezone,14.recording-path,14.recording-name,24.recording-exclude-output,23.recording-exclude-mouse,22.recording-include-keys,21.create-recording-path,13.resize-method,18.enable-audio-input,9.read-only,16.gateway-hostname,12.gateway-port,14.gateway-domain,16.gateway-username,16.gateway-password,17.load-balance-info
guacd[485]: INFO:    Security mode: Negotiate (ANY)
guacd[485]: INFO:    Resize method: none
guacd[485]: INFO:    User "@fe78a231-66d2-413e-bb55-4c300e097d34" joined connection "$289a79f9-4548-40a0-a1dd-ac90c84d0d33" (1 users now present)
guacd[485]: INFO:    Loading keymap "base"
guacd[485]: INFO:    Loading keymap "en-us-qwerty"
[2022-10-22 17:18:00] [Connection 4]  Sending opCode: 7.connect,0.,9.127.0.0.1,4.3389,0.,3.abc,3.abc,4.1324,13.877?undefined,2.96,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,12.en-us-qwerty,3.any,4.true,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.;
guacd[457]: ERROR:    User is not responding.
guacd[457]: INFO:    User "@93e22206-2c79-4f1e-95b0-2d20a37189ea" disconnected (0 users remain)
guacd[457]: INFO:    Last user of connection "$83039203-806e-47d2-bc4c-73404aaf1845" disconnected
guacd[457]: INFO:    Internal RDP client disconnected
guacd[220]: INFO:    Connection "$83039203-806e-47d2-bc4c-73404aaf1845" removed.
[2022-10-22 17:18:10] [Connection 4]  Closing connection with error:  Error: guacd was inactive for too long
    at GuacdClient.checkActivity (/gclient/node_modules/guacamole-lite/lib/GuacdClient.js:35:41)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
[2022-10-22 17:18:10] [Connection 4]  Closing guacd connection
[2022-10-22 17:18:10] [Connection 4]  Client connection closed
guacd[485]: ERROR:    Error connecting to RDP server
guacd[485]: ERROR:    User is not responding.
guacd[485]: INFO:    User "@fe78a231-66d2-413e-bb55-4c300e097d34" disconnected (0 users remain)
guacd[485]: INFO:    Last user of connection "$289a79f9-4548-40a0-a1dd-ac90c84d0d33" disconnected
guacd[220]: INFO:    Connection "$289a79f9-4548-40a0-a1dd-ac90c84d0d33" removed.
[2022-10-22 17:18:37] [Connection 5]  Client connection open
[2022-10-22 17:18:37] [Connection 5]  Opening guacd connection
[2022-10-22 17:18:37] [Connection 5]  guacd connection open
[2022-10-22 17:18:37] [Connection 5]  Selecting connection type: rdp
[2022-10-22 17:18:37] [Connection 5]  Sending opCode: 6.select,3.rdp;
guacd[220]: INFO:    Creating new client for protocol "rdp"
guacd[220]: INFO:    Connection ID is "$b40e203a-929e-4967-90fe-4756e560b9bb"
[2022-10-22 17:18:39] [Connection 5]  Sending opCode: 4.size,4.1324,13.877?undefined,2.96;
[2022-10-22 17:18:39] [Connection 5]  Sending opCode: 5.audio,9.audio/L16;
[2022-10-22 17:18:39] [Connection 5]  Sending opCode: 5.video;
[2022-10-22 17:18:39] [Connection 5]  Sending opCode: 5.image;
[2022-10-22 17:18:39] [Connection 5]  Server sent handshake: 4.args,13.VERSION_1_1_0,8.hostname,4.port,6.domain,8.username,8.password,5.width,6.height,3.dpi,15.initial-program,11.color-depth,13.disable-audio,15.enable-printing,12.printer-name,12.enable-drive,10.drive-name,10.drive-path,17.create-drive-path,7.console,13.console-audio,13.server-layout,8.security,11.ignore-cert,12.disable-auth,10.remote-app,14.remote-app-dir,15.remote-app-args,15.static-channels,11.client-name,16.enable-wallpaper,14.enable-theming,21.enable-font-smoothing,23.enable-full-window-drag,26.enable-desktop-composition,22.enable-menu-animations,22.disable-bitmap-caching,25.disable-offscreen-caching,21.disable-glyph-caching,16.preconnection-id,18.preconnection-blob,8.timezone,14.recording-path,14.recording-name,24.recording-exclude-output,23.recording-exclude-mouse,22.recording-include-keys,21.create-recording-path,13.resize-method,18.enable-audio-input,9.read-only,16.gateway-hostname,12.gateway-port,14.gateway-domain,16.gateway-username,16.gateway-password,17.load-balance-info
[2022-10-22 17:18:39] [Connection 5]  Sending opCode: 7.connect,0.,9.127.0.0.1,4.3389,0.,3.abc,3.abc,4.1324,13.877?undefined,2.96,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,12.en-us-qwerty,3.any,4.true,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.,0.;
guacd[533]: INFO:    Security mode: Negotiate (ANY)
guacd[533]: INFO:    Resize method: none
guacd[533]: INFO:    User "@bf8bca64-cbe6-438a-aed4-3c0b089b0605" joined connection "$b40e203a-929e-4967-90fe-4756e560b9bb" (1 users now present)
guacd[533]: INFO:    Loading keymap "base"
guacd[533]: INFO:    Loading keymap "en-us-qwerty"
[2022-10-22 17:18:49] [Connection 5]  Closing connection with error:  Error: guacd was inactive for too long
    at GuacdClient.checkActivity (/gclient/node_modules/guacamole-lite/lib/GuacdClient.js:35:41)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
[2022-10-22 17:18:49] [Connection 5]  Closing guacd connection
[2022-10-22 17:18:49] [Connection 5]  Client connection closed
guacd[533]: ERROR:    Error connecting to RDP server
guacd[533]: ERROR:    User is not responding.
guacd[533]: INFO:    User "@bf8bca64-cbe6-438a-aed4-3c0b089b0605" disconnected (0 users remain)
guacd[533]: INFO:    Last user of connection "$b40e203a-929e-4967-90fe-4756e560b9bb" disconnected
guacd[220]: INFO:    Connection "$b40e203a-929e-4967-90fe-4756e560b9bb" removed.

I don't understand how to solve it.
 
20
2
NAS
DS412+
Did you use your own PUID/PGID values? And TZ (timezone)?

How are you executing docker-compose?

Yes, I use my PUID=1024 and PGID=100, TZ Europe/Rome (I live in Italy).

I've used docker-compose through Portainer, but Calibre docker container doesn't work also via docker run, as suggested in Marius Hosting guide or via Synology Docker.
I've also tried to check high privilege in Synology Docker for the Calibre container, but the log file doesn't change.
 
4
1
NAS
Synology DS916+
Operating system
  1. other
Mobile operating system
  1. Android
I have successfully created the container and it is running. However, when I access the web gui I am not taken to the setup wizard. I am instead taken to the gui below, which does not allow me to complete the setup (or anything else for that matter).
Calibre GUI.png
 

Attachments

  • Calibre Settings 1.png
    Calibre Settings 1.png
    21.5 KB · Views: 9
  • CAlibre Settings 2.png
    CAlibre Settings 2.png
    19.5 KB · Views: 8
  • CAlibre Settings 3.png
    CAlibre Settings 3.png
    29.1 KB · Views: 9

Telos

Subscriber
3,029
971
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Which image are you using? Why custom port?

Also... allow plenty of time for the container to start (check logs if uncertain). It's a slow one.
 
4
1
NAS
Synology DS916+
Operating system
  1. other
Mobile operating system
  1. Android
Last edited:
Which image are you using? Why custom port?

Also... allow plenty of time for the container to start (check logs if uncertain). It's a slow one.
I have used both of these images with the same result, including your compose pasted above. However, the issue persists.
images.png

-- post merged: --

Which image are you using? Why custom port?

Also... allow plenty of time for the container to start (check logs if uncertain). It's a slow one.
I still can't figure out the cause. If you have a moment I have attache the log. Also, the custom port variable was a result of the compose you shared and if removed no gui is accessible.
 

Attachments

  • calibre_log.txt
    51.8 KB · Views: 2

Telos

Subscriber
3,029
971
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
I wish I could make sense of the log. There's nothing clear here for me. Maybe this is a Synology thing. I use DSM6... so possibly someone w/DSM7 can chime in here.
 
236
47
NAS
DS918+, DS414j
Operating system
  1. Linux
  2. Windows
  3. other
Mobile operating system
  1. Android
Hmm... Why are you using the folder name /myLibrary ?
It's been a while since I set it up but that image uses /Calibre_Library. (at least my version does).
I'm on the latest DSM 7.1 with no issues.
My docker compose snippet:
Code:
  calibre:
    image: linuxserver/calibre:latest
    container_name: calibre
    ports:
      - 27880:8080
      - 27881:27881
    environment:
      - PUID=${USERID}
      - PGID=${USERGROUP}
      - TZ=${TZ}
      - UMASK_SET=${UMASK}
      - CALIBRE_USE_DARK_PALETTE=1
    volumes:
      - ${HDD}Calibre:/Calibre_Library
      - ${HDD}/docker1/calibre:/config
      - ${HDD}ToBeSorted/ebooks:/upload
    restart: unless-stopped
I even updated it to the new release this morning with no issues.
It could also be worth clearing out your config folder and starting it fresh as you've never had it working.
First boot did take a while from what I remember.
Also the linuxserver.io team are hugely helpful and are on discord.
 

Telos

Subscriber
3,029
971
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Why are you using the folder name /myLibrary ?
Calibre supports multiple libraries, so for me it is a preference. But you raise a good point for a new user... I agree... try the default Calibre_Library path.
 
4
1
NAS
Synology DS916+
Operating system
  1. other
Mobile operating system
  1. Android
Hmm... Why are you using the folder name /myLibrary ?
It's been a while since I set it up but that image uses /Calibre_Library. (at least my version does).
I have tried with /Calibre_Library already...still didn't work
I'm on the latest DSM 7.1 with no issues.
Same
It could also be worth clearing out your config folder and starting it fresh as you've never had it working.
Yes I have cleared it between all attempts
Also the linuxserver.io team are hugely helpful and are on discord.
Yes I will reach out when I have some more time to devote to this. Thanks to you and @Telos for attempting to help
 
4
1
NAS
Synology DS916+
Operating system
  1. other
Mobile operating system
  1. Android
1672762846515.png
1672762860484.png
1672762866979.png

After reaching out on the discord this is what I found out.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

hello, i'm using this tutorial to build my nginx proxy on docker and mariadb on docker, but them i do...
Replies
8
Views
3,407
I discovered if you use fireflyiii/core:latest everything works just fine
Replies
35
Views
13,879

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Top