We’ve updated from TVH 4.0.9 to 4.2 in this update.
The migration process in TVH seems to certainly be an afterthought and as such doesn’t always work well. There were some efforts by @grahamh to help with this.
Did you have custom accounts? Can you paste your old TVH config? This will help us improve the migration and possibly spot the problem.
If you are not heavily invested in your current configuration, you may find it easier to simply remove the current .hts directory and start over.
Had a similar issue after the update. In my case, the upgrade process had some problem with the old access control file:
Aug 02 01:12:33 rpi tvheadend[887]: main: Log started
Aug 02 01:12:33 rpi tvheadend[887]: tcp: No systemd socket: creating a new one
Aug 02 01:12:33 rpi tvheadend[887]: http: Starting HTTP server 0.0.0.0:9981
Aug 02 01:12:33 rpi tvheadend[887]: tcp: No systemd socket: creating a new one
Aug 02 01:12:33 rpi tvheadend[887]: htsp: Starting HTSP server 0.0.0.0:9982
Aug 02 01:12:33 rpi systemd[1]: Started TVHeadend Server.
Aug 02 01:12:33 rpi tvheadend[887]: config: backup: migrating config from unknown (running 4.2.2)
Aug 02 01:12:33 rpi tvheadend[887]: config: backup: running, output file /home/osmc/.hts/tvheadend/backup/unknown.tar.bz2
Aug 02 01:12:33 rpi tvheadend[887]: spawn: Executing “/bin/tar”
Aug 02 01:12:35 rpi tvheadend[887]: config: backup: completed
Aug 02 01:12:35 rpi tvheadend[887]: config: migrating config from v17 to v18
Aug 02 01:12:35 rpi tvheadend[887]: config: migrating config from v18 to v19
Aug 02 01:12:35 rpi tvheadend[887]: config: migrating config from v19 to v20
Aug 02 01:12:35 rpi tvheadend[887]: config: migrating config from v20 to v21
Aug 02 01:12:35 rpi tvheadend[887]: config: migrating config from v21 to v22
Aug 02 01:12:35 rpi tvheadend[887]: config: migrating config from v22 to v23
Aug 02 01:12:35 rpi tvheadend[887]: config: migrating config from v23 to v24 Aug 02 01:12:35 rpi tvheadend[887]: START: filename /home/osmc/.hts/tvheadend/accesscontrol/1 is invalid
Aug 02 01:12:35 rpi systemd[1]: tvheadend.service: main process exited, code=exited, status=1/FAILURE
Aug 02 01:12:35 rpi systemd[1]: Unit tvheadend.service entered failed state.
Aug 02 01:12:41 rpi systemd[1]: tvheadend.service holdoff time over, scheduling restart.
Solved by deleting /home/osmc/.hts/tvheadend/accesscontrol/1 and reconfiguring user permissions through the tvheadend web ui after it started.
Thank you. Not sure how it got to be like that, but tvh would choke on the "streaming": [] syntax when trying to migrate it because they didn’t use that in 4.0.9.