Hi, during Tvheadend upgrade, i can see this warning:

Legacy configuration directory /home/hts/.hts/tvheadend is in use.

How i can fix it? thanks

Was the old TVH still running?

Did another task have a file open in that directory?

Maybe you can set directory in /etc/default/tvheadend. Btw, one of the latest upgrades crashed my config, but i had a backup....but copying to the .config dir didnt work, so i used the legacy one and all running again...not sure what was the problem.

It is "complaining" about the config being in /home/hts/.config instead of the new path /var/lib/tvheadend. You could probably move it and then update the home directory of the Tvheadend-user. However, that is not necessary and you could (and probably should) leave it where it is unless you have a good reason to move it.

    Flole Thx, all what i got is /home/hts/.hts/tvheadend. That works... ;-)

    Flole how i can update the directory of tvh user? Thanks

      sagittcyber Using either the usermod command or updating it manually in /etc/password. You will have to manually move the directory though.

      17 days later

      Hi all, I'm facing a 'somewhat' equal issue as the OP. Whenever I update the Debian provided TVH, it starts up creating the legacy config dir /home/hts/.hts/tvheadend anew. /etc/default/tvheadend point to the new config though, where my system setup is. Any idea on how to fix that?

      Best,
      Ole

        Ole Svensson Do you have the home-directory of your hts-user set properly to the new location?

        7 days later

        My tvh user (hts) has /home/hts set as the home dir, same as always. After updating to a newer build, /home/hts/.hts/tvheadend gets created but my config has been moved to the new location in /home/hts/.config/hts already and tvh confid in /etc/default points to the new one too.

        So everytime I have to stop the service, remove .hts and start again for tvh recognizing my config.

          Ole Svensson
          Replying to my own post: when using systemd, OPTIONS="-c <path to conf dir>" has to be specified in /etc/default/tvheadend instead of using TVH_CONF_DIR.

          Sorry for the noise.
          Best,
          Ole