Lidarr and Radarr containers taking 20+ minutes to start

Lidarr has been hanging at two different points during startup, cont-init: info: running /etc/cont-init.d/10-adduser and cont-init: info: running /etc/cont-init.d/30-config. Does anyone have a clue as to what’s going on and how to get it to start up faster? Radarr also exhibits this behavior, but Sonarr and Readarr do not.

Here’s the full log with timestamps.

2022-11-03T19:23:19.507396823Z [custom-init] No custom services found, skipping...
2022-11-03T19:23:19.835705667Z s6-rc: info: service s6rc-oneshot-runner: starting
2022-11-03T19:23:19.843687131Z s6-rc: info: service s6rc-oneshot-runner successfully started
2022-11-03T19:23:19.845242932Z s6-rc: info: service fix-attrs: starting
2022-11-03T19:23:19.847254826Z s6-rc: info: service 00-legacy: starting
2022-11-03T19:23:19.853261288Z s6-rc: info: service fix-attrs successfully started
2022-11-03T19:23:19.853539326Z s6-rc: info: service legacy-cont-init: starting
2022-11-03T19:23:19.856012776Z s6-rc: info: service 00-legacy successfully started
2022-11-03T19:23:19.860030869Z cont-init: info: running /etc/cont-init.d/01-envfile
2022-11-03T19:23:19.864405097Z cont-init: info: /etc/cont-init.d/01-envfile exited 0
2022-11-03T19:23:19.864452515Z cont-init: info: running /etc/cont-init.d/01-migrations
2022-11-03T19:23:19.871382788Z [migrations] started
2022-11-03T19:23:19.871686868Z [migrations] no migrations found
2022-11-03T19:23:19.871911094Z cont-init: info: /etc/cont-init.d/01-migrations exited 0
2022-11-03T19:23:19.871924663Z cont-init: info: running /etc/cont-init.d/10-adduser
2022-11-03T20:06:59.450565887Z 
2022-11-03T20:06:59.450603430Z -------------------------------------
2022-11-03T20:06:59.450609421Z           _         ()
2022-11-03T20:06:59.450613183Z          | |  ___   _    __
2022-11-03T20:06:59.450616933Z          | | / __| | |  /  \
2022-11-03T20:06:59.450620643Z          | | \__ \ | | | () |
2022-11-03T20:06:59.450624375Z          |_| |___/ |_|  \__/
2022-11-03T20:06:59.450628290Z 
2022-11-03T20:06:59.450669748Z 
2022-11-03T20:06:59.450676075Z Brought to you by linuxserver.io
2022-11-03T20:06:59.450680191Z -------------------------------------
2022-11-03T20:06:59.450684163Z 
2022-11-03T20:06:59.450688053Z To support the app dev(s) visit:
2022-11-03T20:06:59.455078874Z Lidarr: https://opencollective.com/lidarr
2022-11-03T20:06:59.455364637Z 
2022-11-03T20:06:59.455430400Z To support LSIO projects visit:
2022-11-03T20:06:59.455450622Z https://www.linuxserver.io/donate/
2022-11-03T20:06:59.455455912Z -------------------------------------
2022-11-03T20:06:59.455508527Z GID/UID
2022-11-03T20:06:59.455520996Z -------------------------------------
2022-11-03T20:06:59.458189853Z 
2022-11-03T20:06:59.458215154Z User uid:    1000
2022-11-03T20:06:59.458222184Z User gid:    100
2022-11-03T20:06:59.458226888Z -------------------------------------
2022-11-03T20:06:59.458231184Z 
2022-11-03T20:06:59.468616046Z cont-init: info: /etc/cont-init.d/10-adduser exited 0
2022-11-03T20:06:59.468810378Z cont-init: info: running /etc/cont-init.d/30-config
2022-11-03T20:26:00.265881931Z cont-init: info: /etc/cont-init.d/30-config exited 0
2022-11-03T20:26:00.265922313Z cont-init: info: running /etc/cont-init.d/99-custom-files
2022-11-03T20:26:00.270418843Z [custom-init] No custom files found, skipping...
2022-11-03T20:26:00.274365059Z cont-init: info: /etc/cont-init.d/99-custom-files exited 0
2022-11-03T20:26:00.275038467Z s6-rc: info: service legacy-cont-init successfully started
2022-11-03T20:26:00.275672451Z s6-rc: info: service init-mods: starting
2022-11-03T20:26:00.280496049Z s6-rc: info: service init-mods successfully started
2022-11-03T20:26:00.280518799Z s6-rc: info: service init-mods-package-install: starting
2022-11-03T20:26:00.289824161Z s6-rc: info: service init-mods-package-install successfully started
2022-11-03T20:26:00.289975717Z s6-rc: info: service init-mods-end: starting
2022-11-03T20:26:00.291204530Z s6-rc: info: service init-mods-end successfully started
2022-11-03T20:26:00.291394570Z s6-rc: info: service init-services: starting
2022-11-03T20:26:00.293017851Z s6-rc: info: service init-services successfully started
2022-11-03T20:26:00.293329919Z s6-rc: info: service legacy-services: starting
2022-11-03T20:26:00.313533178Z services-up: info: copying legacy longrun lidarr (no readiness notification)
2022-11-03T20:26:00.319396853Z s6-rc: info: service legacy-services successfully started
2022-11-03T20:26:00.319722451Z s6-rc: info: service 99-ci-service-check: starting
2022-11-03T20:26:00.323357188Z [ls.io-init] done.
2022-11-03T20:26:00.324091003Z s6-rc: info: service 99-ci-service-check successfully started
2022-11-03T20:26:00.992417983Z [Info] Bootstrap: Starting Lidarr - /app/lidarr/bin/Lidarr.dll - Version 1.0.2.2592 
2022-11-03T20:26:01.006889848Z [Debug] Bootstrap: Console selected 
2022-11-03T20:26:01.015634944Z [Info] AppFolderInfo: Data directory is being overridden to [/config] 
2022-11-03T20:26:01.637034468Z [Debug] Microsoft.Extensions.Hosting.Internal.Host: Hosting starting 
2022-11-03T20:26:01.662772692Z [Info] AppFolderInfo: Data directory is being overridden to [/config] 
2022-11-03T20:26:02.192831291Z [Info] MigrationController: *** Migrating data source=/config/lidarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *** 
2022-11-03T20:26:02.422073044Z [Info] MigrationController: *** Migrating data source=/config/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *** 
2022-11-03T20:26:02.836208224Z [Info] Microsoft.Hosting.Lifetime: Now listening on: http://[::]:8686 
2022-11-03T20:26:03.724770779Z [Info] Microsoft.Hosting.Lifetime: Application started. Press Ctrl+C to shut down. 
2022-11-03T20:26:03.724803691Z [Info] Microsoft.Hosting.Lifetime: Hosting environment: Production 
2022-11-03T20:26:03.724831238Z [Info] Microsoft.Hosting.Lifetime: Content root path: /app/lidarr/bin 

can you share your compose or docker run command as well?

Sure thing, /mnt/metadata/Lidarr and /mnt/media are CIFS shares

## Lidarr - Music Management
lidarr:
image: linuxserver/lidarr:latest
container_name: lidarr
restart: unless-stopped
networks:
- proxy
- internal
depends_on:
- postgres14
security_opt:
- no-new-privileges:true
logging:
options:
max-size: '2m'
max-file: '3'
volumes:
- '/etc/localtime:/etc/localtime:ro'
- '/opt/docker/lidarr:/config'
- '/mnt/metadata/lidarr:/config/MediaCover'
- '/mnt/media:/data'
environment:
TZ: $TIMEZONE
PUID: $PUID
PGID: $PGID
labels:
- 'traefik.enable=true'
 ## HTTP Routers Auth Bypass
- 'traefik.http.routers.lidarr-rtr-bypass.entrypoints=https'
- 'traefik.http.routers.lidarr-rtr-bypass.rule=Host(`lidarr.$DOMAINNAME`) && (Headers(`X-Api-Key`, `$LIDARR_API_KEY`) || Query(`apikey`, `$LIDARR_API_KEY`))'
- 'traefik.http.routers.lidarr-rtr-bypass.priority=100'
 ## HTTP Routers Auth
- 'traefik.http.routers.lidarr-rtr.entrypoints=https'
- 'traefik.http.routers.lidarr-rtr.rule=Host(`lidarr.$DOMAINNAME`)'
- 'traefik.http.routers.lidarr-rtr.priority=99'
 ## Middlewares
- 'traefik.http.routers.lidarr-rtr-bypass.middlewares=chain-no-auth@file' #No Authentication
- 'traefik.http.routers.lidarr-rtr.middlewares=chain-authelia@file' #Authelia Authentication
 ## HTTP Services
- 'traefik.http.routers.lidarr-rtr.service=lidarr-svc'
- 'traefik.http.services.lidarr-svc.loadbalancer.server.port=8686'

I had a suspicion you were using remote mounts. Unfortunately, we don’t offer any support for remote mounts. However, if you’re able to recreate the issue while using only local storage, we can assist.

If you can’t and just need help with the remote mounts on these apps, we have an #other-support channel on discord where you can get best-effort help from other users.