TVheadend first-run, stuck in config backup

Hi,

I’m trying to deploy TVheadend with Docker on an Arch Linux x86_64 machine. In the logs, it appears to begin a config backup process but not complete it. I’m starting TVheadend like this:

docker run -d\
  --name=tvheadend-direct\
  -e PUID=1000\
  -e PGID=1000\
  -e TZ=America/Chicago\
  -p 9981:9981\
  -p 9982:9982\
  -v /mnt/d1/tvheadend/config:/config\
  -v /mnt/d1/tvheadend/recordings:/recordings\
  --restart unless-stopped\
  lscr.io/linuxserver/tvheadend:latest

Here are the logs I see:

$ docker logs 160
[custom-init] No custom services found, skipping...
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service 00-legacy: starting
s6-rc: info: service 00-legacy successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/01-envfile
cont-init: info: /etc/cont-init.d/01-envfile exited 0
cont-init: info: running /etc/cont-init.d/01-migrations
[migrations] started
[migrations] no migrations found
cont-init: info: /etc/cont-init.d/01-migrations exited 0
cont-init: info: running /etc/cont-init.d/10-adduser

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

cont-init: info: /etc/cont-init.d/10-adduser exited 0
cont-init: info: running /etc/cont-init.d/30-config
Setting permissions
cont-init: info: /etc/cont-init.d/30-config exited 0
cont-init: info: running /etc/cont-init.d/50-gid-video
cont-init: info: /etc/cont-init.d/50-gid-video exited 0
cont-init: info: running /etc/cont-init.d/99-custom-files
[custom-init] No custom files found, skipping...
cont-init: info: /etc/cont-init.d/99-custom-files exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-mods: starting
s6-rc: info: service init-mods successfully started
s6-rc: info: service init-mods-package-install: starting
s6-rc: info: service init-mods-package-install successfully started
s6-rc: info: service init-mods-end: starting
s6-rc: info: service init-mods-end successfully started
s6-rc: info: service init-services: starting
s6-rc: info: service init-services successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun tvheadend (no readiness notification)
s6-rc: info: service legacy-services successfully started
s6-rc: info: service 99-ci-service-check: starting
[ls.io-init] done.
s6-rc: info: service 99-ci-service-check successfully started
2022-09-30 17:22:47.184 [   INFO] main: Log started
2022-09-30 17:22:47.184 [   INFO] http: Starting HTTP server 0.0.0.0:9981
2022-09-30 17:22:47.184 [   INFO] htsp: Starting HTSP server 0.0.0.0:9982
2022-09-30 17:22:47.244 [   INFO] config: backup: migrating config from unknown (running 4.3-2033~g4741b3c19)
2022-09-30 17:22:47.244 [   INFO] config: backup: running, output file /config/backup/unknown.tar.bz2
2022-09-30 17:22:47.245 [   INFO] spawn: Executing "/bin/tar"

After it gets stuck at that point, spawning tar, the config directory looks like this:

$ ls -al /mnt/d1/tvheadend/config/
total 8
drwxr-xr-x 1 john john  54 Sep 30 22:43 .
drwxr-xr-x 1 john john  32 Sep 30 22:42 ..
drwx------ 1 john john   0 Sep 30 22:43 backup
drwxr-xr-x 1 john john  22 Sep 30 22:43 comskip
-rw-r--r-- 1 john john 173 Sep 30 22:43 config
drwxr-xr-x 1 john john  12 Sep 30 22:43 dvr
-rw-r--r-- 1 john john  11 Sep 30 22:43 .lock

What’s odd is that I can run the same docker run command on another of my machines, adjusting the paths, and it starts up just fine. What might cause the application to get stuck like this?

Thanks!
John

This happened to me before.
I think I used the start up parameters variable to set no-backup (or similar).
I have long since removed it so I don’t know for sure.

I’d like to try setting the no-backup option, but I didn’t see how to set command-line options for tvheadend with it being launched by the LSIO image’s init system.