Autor: James Abernathy Fecha: A: Lennart Sorensen, dmo-discussion Asunto: Re: mythtv v34 installation if user 'mythtv' is already created?
On Fri, Mar 1, 2024 at 1:18 PM James Abernathy <jfabernathy@???> wrote: >
> On Fri, Mar 1, 2024 at 11:52 AM James Abernathy <jfabernathy@???> wrote:
> >
> > On Fri, Mar 1, 2024 at 11:49 AM Lennart Sorensen
> > <lsorense@???> wrote:
> > >
> > > On Fri, Mar 01, 2024 at 05:37:48PM +0100, Christian Marillat wrote:
> > > > On 01 mars 2024 09:03, James Abernathy <jfabernathy@???> wrote:
> > > >
> > > >
> > > > [...]
> > > >
> > > > > This seems to be caused by the fact that the installation added a line
> > > > > in the mythtv-backend.service within systemd that reads:
> > > > >
> > > > > Environment=HOME=/var/lib/mythtv
> > > > >
> > > > > I can fix my problem by changing that to:
> > > > >
> > > > > Environment=HOME=/home/mythtv
> > > >
> > > > And the backend still start if you remove the line above ?
> > >
> > > Deleting the line seems to work fine and is probably the correct solution.
> > >
> > > --
> > > Len Sorensen
> > >
> >
> > I think deleting the line is the right thing to do. I'm pretty sure
> > Ubuntu packaging doesn't use it, but I'll spin up a VM to confirm.
> >
> > Jim Abernathy
>
> At this point I know that if I delete the systemd service line
> Environment=HOME=/var/lib/mythtv
> It fixes the new Web App setup to work correctly out of the box. I
> tested on a new Debian install with mythtv installed from DMO using
> stable-backports.
>
> So almost everything is working. When I tried to run
> /usr/share/doc/mythtv/examples/maintenance/optimize_mythdb.pl
> I get a message that I need to copy a config.xml from a working
> installation to /var/lib/mythtv/.mythtv/
>
> If I do this, it works. but it shows something is still not setup right.
>
> i'm going to try this again but make the systemd service say:
> Environment=HOME=/home/mythtv
>
> JIm A
So that didn't work.
Environment=HOME=/home/mythtv
did not fix /usr/share/doc/mythtv/examples/maintenance/optimize_mythdb.pl
I still need a copy of the config.xml installed in /var/lib/mythtv/.mythtv/
So at this point, you can either leave mythtv-backend.service default
and when you run the Web App setup copy the correct mythconverg
password from /etc/mythtv/config.xml to the password field.
or
remove the Environment statement completely and copy the working
config.xml to /var/lib/mythtv/.mythtv
Maybe there needs to be an additional variable set in scripts that use
optimize_mythdb.pl?