linuxserver / docker-calibre

GNU General Public License v3.0
366 stars 64 forks source link

[BUG] Container hangs on start #116

Closed createchange closed 1 year ago

createchange commented 1 year ago

Is there an existing issue for this?

Current Behavior

When running docker-compose up, the container hangs. I was previously running 6.9.0, and then tried swapping over to 6.10.0. This failed. When reverting back to 6.9.0, RDP was no longer functioning. Unfortunately. I did not capture that error.

Now, the container simply won't start at all - it hangs as per the below log

$ docker-compose logs -f
Attaching to calibre_1
calibre_1  | [custom-init] No custom services found, skipping...
calibre_1  | [migrations] started
calibre_1  | [migrations] no migrations found
calibre_1  |
calibre_1  | -------------------------------------
calibre_1  |           _         ()
calibre_1  |          | |  ___   _    __
calibre_1  |          | | / __| | |  /  \
calibre_1  |          | | \__ \ | | | () |
calibre_1  |          |_| |___/ |_|  \__/
calibre_1  |
calibre_1  |
calibre_1  | Brought to you by linuxserver.io
calibre_1  | -------------------------------------
calibre_1  |
calibre_1  | To support LSIO projects visit:
calibre_1  | https://www.linuxserver.io/donate/
calibre_1  | -------------------------------------
calibre_1  | GID/UID
calibre_1  | -------------------------------------
calibre_1  |
calibre_1  | User uid:    1000
calibre_1  | User gid:    1000
calibre_1  | -------------------------------------
calibre_1  |
calibre_1  |
calibre_1  | Generating 2048 bit rsa key...
calibre_1  |
calibre_1  | ssl_gen_key_xrdp1 ok
calibre_1  |
calibre_1  | saving to rsakeys.ini
calibre_1  |
calibre_1  | ..+........+...............+......+......+.+..+......+.........+.......+.....+...+...+.......+......+..+.......+..+.+.....+....+.....+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+.....+....+..+..........+.....+...+..........+........+...+.+....................+.+...+..+.......+..+.+.....+...+.......+...+.........+..+....+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...........+.....................................+......+.....+....+..+...+......+.........+.+......+........+.......+...+...+.....+.................................+.+......+...+......+.....+................+.........+..............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
calibre_1  | ...+......+..+.+..............+..........+...+...+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+......+...+..+....+..+....+...+........+.........+....+.....+.........+.+......+........+......+.+......+..............+.+..+.+..............+...+..........+...+..+...+.+.....+...+.......+........+.+......+...+..+...+............+....+..+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.+...+......+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
calibre_1  | -----
calibre_1  | **** Setting password from environment variable. ****
calibre_1  | [custom-init] No custom files found, skipping...
^CERROR: Aborting.

I have used docker-compose down to clean up, and also tried docker system prune --all --volumes --force to ensure that there is nothing cached.

I think it is very possible, maybe likely, that the issue is an issue with my server. However, I don't exactly know where to go from here, as the hanging doesn't really clue me into what might be occurring.

Expected Behavior

Clean start of container, with the service being accessible.

Steps To Reproduce

Not sure how to reproduce exactly...

  1. In Ubuntu Server 22.04, install docker
  2. Using following docker-compose file, bring service up:
    version: '3.9'
    services:
    calibre:
      image: lscr.io/linuxserver/calibre:6.9.0
      volumes:
          - /home/<redacted>/ebooks:/calibre
          - /home/<redacted>/ingest:/ingest
      network_mode: host
      environment:
        - PUID=1000
        - PGID=1000
        - TZ=America/New_York
        - PASSWORD=<redacted>
      security_opt:
        - seccomp=unconfined
      restart: unless-stopped
      logging:
        options:
          max-size: "10m"
          max-file: "5"
  3. Attempt to upgrade from 6.9.0 -> 6.10.0

Environment

- OS: Ubuntu

Linux ebooks 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

CPU architecture

x86-64

Docker creation

See above

Container logs

See above
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

drizuid commented 1 year ago

I used your compose and was unable to reproduce the issue. One thing you did that we do not recommend or support was installing docker from your distro's repo. We recommend only installing following docker's directions. https://docs.docker.com/engine/install/

that said, the version your repo gave you is the latest (iirc) it can also take some time to start, you can check iotop and see if chown abc:abc is in the list, until that finishes, it won't start.

lunik1 commented 1 year ago

Had the same issue, but I'm running an unsupported setup (podman). The 6.8 tag works for me.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

lunik1 commented 1 year ago

still an issue

drizuid commented 1 year ago

still an issue

reproduce the issue with docker

lunik1 commented 1 year ago

Could not reproduce with docker, have reported upstream with podman at https://github.com/containers/podman/issues/17680

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity