Mailing List Archive

Recommended Linux Distro post CentOS
Hey all,

I figured I'd ask here because the main goals of updating my server from CentOS 6 to --- well, no longer CentOS 8 since it's no longer going to be what CentOS was...

I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.

I also use desktop apps on this same system as well as run some VirtualBox VMs (Windows and Raspbian)

So with that -- I'd like to hear from the group what people have been happy with that's LTS-ish like CentOS was.

Thanks,

 -Ben


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/14/20 3:24 AM, Ben wrote:
> Hey all,
>
> I figured I'd ask here because the main goals of updating my server
> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
> going to be what CentOS was...
>
> I'm wondering who is using what for their home servers for MythTV (and
> Plex) on the same box.
>
> I also use desktop apps on this same system as well as run some
> VirtualBox VMs (Windows and Raspbian)
>
> So with that -- I'd like to hear from the group what people have been
> happy with that's LTS-ish like CentOS was.
>
> Thanks,
>
>  -Ben


My observation as a use of Mythtv is that the main work is done on
Ubuntu because that seems to be the easiest to install and most
everything else seems to be based off of that. But that's just my
observation.

I've been using Mythtv since I installed it using Mythbuntu 14. Now I'm
on Ubuntu 20.04 LTS with v31 Mythtv. The PC that is my backend is also
used as a samba/cifs NAS for the whole house, but that is all it does.
It's 10 year old PC with RAID storage plus a boot SSD.

My frontends are FireTVs or Nvidia Shield TVs but all my PCs and Laptops
can run some form of frontend.

I'm happy with that set.

If I needed to change, I'd replace the backend with a RPI 4 4GB with
HDHomerun quatro and get a dedicated brand name NAS with RAID.

Jim A

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 14/12/2020 08:24, Ben wrote:
> Hey all,
>
> I figured I'd ask here because the main goals of updating my server from
> CentOS 6 to --- well, no longer CentOS 8 since it's no longer going to
> be what CentOS was...

The most popular distro of choice by a long way is Ubuntu.


Regards
Stuart
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
> On 14 Dec 2020, at 7:59 pm, Stuart Auchterlonie <stuarta@squashedfrog.net> wrote:
>
> On 14/12/2020 08:24, Ben wrote:
>> Hey all,
>> I figured I'd ask here because the main goals of updating my server from CentOS 6 to --- well, no longer CentOS 8 since it's no longer going to be what CentOS was...
>
> The most popular distro of choice by a long way is Ubuntu.
That's a self forfilling professy (It works well - so everyone uses it - so it is well supported - so it works well ...)

Most distros are becoming a pain (you want to see the wifi password, well up yours I'm king and if you are too disabled to type without reviewing then TOUGH. You may be alone in your own home but WE decree that to be a security risk ...)
but ubuntu is no worse than others and the ansible build support is excelent if you choose to build rather than accept someone else's meandering muddling.

The CentOS debacle is ...

Debian et all (including ubuntu) have a very useful feature in 'apt-file'
James
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Mon, Dec 14, 2020, 6:42 AM Stuart Auchterlonie <stuarta@squashedfrog.net>
wrote:

> On 14/12/2020 08:24, Ben wrote:
> > Hey all,
> >
> > I figured I'd ask here because the main goals of updating my server from
> > CentOS 6 to --- well, no longer CentOS 8 since it's no longer going to
> > be what CentOS was...
>
> The most popular distro of choice by a long way is Ubuntu.
>
>
> Regards
> Stuart
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org


+1 I'm a long time Centos user but have always used Ubuntu for Mythtv since
it was the most used, rolling updates/releases have worked well for me.

>
>
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Mon, Dec 14, 2020 at 2:26 AM Ben <bkamen@benjammin.net> wrote:

> Hey all,
>
> I figured I'd ask here because the main goals of updating my server from
> CentOS 6 to --- well, no longer CentOS 8 since it's no longer going to be
> what CentOS was...
>
> I'm wondering who is using what for their home servers for MythTV (and
> Plex) on the same box.
>
> I also use desktop apps on this same system as well as run some VirtualBox
> VMs (Windows and Raspbian)
>
> So with that -- I'd like to hear from the group what people have been
> happy with that's LTS-ish like CentOS was.
>
> Thanks,
>
> -Ben
>

The owner of our company asked me this just last Friday. CentOS Stream is
obviously what you are referring to as well. Just do not use Stream. Grab
the non-Stream ISO. Fedora used to be the pre-cursor testing platform for
RHEL and now that they bought CentOS, (I guess) maybe they want to utilize
the CentOS engineering expertise for their future releases rather than let
them keep cloning for no reason. It will be interesting how this shakes
out because Fedora is bleeding edge like Ubuntu. I would *never* run
either variant on a production server, but the CentOS Stream is less
bleeding edge, but more of a rolling upgrade system. Makes me wonder is
RHEL is headed that way like Arch Linux, Gentoo, etc. It is a *way* better
model if you do not have your own kernel drivers, etc involved. I hope
RHEL moves to this model, because as well all know with the distros that
use fixed kernel bases for *years* on a release, only the users suffer.
The stability is great, but the features never come unless you kernel bump
anyway. Lokk at this lists threads of people having to enable kernel repos
to compile MythTV alone :)

Anyway, I think Fedora will still be the baseline for the kernel and
hopefully Stream will be the moving package repo (hopefully). Noone really
knows from the vague reports. RHEL has actually not released anything to
confirm these suspicions yet :)

-Greg
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Mon, Dec 14, 2020 at 2:25 AM Ben <bkamen@benjammin.net> wrote:

> Hey all,
>
> I figured I'd ask here because the main goals of updating my server from
> CentOS 6 to --- well, no longer CentOS 8 since it's no longer going to be
> what CentOS was...
>
> I'm wondering who is using what for their home servers for MythTV (and
> Plex) on the same box.
>
> I also use desktop apps on this same system as well as run some VirtualBox
> VMs (Windows and Raspbian)
>
> So with that -- I'd like to hear from the group what people have been
> happy with that's LTS-ish like CentOS was.
>

I don't run MythTV on it (frontend or backend) but I have a CentOS 8 box I
had already converted to running CentOS Stream. I actually like the more
frequent updates and haven't had any issues with what I run on it
(BackupPC, MineOS, Unifi Controller).

I say that to contrast with the fact I've actually run my combined FE/BE on
Fedora for 10+ years and while upgrades USED to be a pain I have had almost
zero issues over the last several releases. In fact the only problem I have
right now is an update or upgrade messed up my LIRC config I use with a
hardware serial port receiver. I haven't bothered to fix it since we rarely
use the FE anymore except for live TV and instead use Plex on Roku.

Thanks,
Richard
Re: Recommended Linux Distro post CentOS [ In reply to ]
If what CentOS offered you is what you want, i.e. a production OS that
tracked RHEL, you could wait until Rocky Linux is out:

https://www.theregister.com/2020/12/10/rocky_linux/

This is a new distro which will track RHEL as CentOS did and has been
started by the CentOS founder. Although there's no proper ETA yet, it
should be available well before the end of the year and likely around
midway through.
Re: Recommended Linux Distro post CentOS [ In reply to ]
I've had great luck with OpenSuse.  YMMV.  I don't think the releases
last quite as long as CentOS, but upgrading stable versions can be done
on the fly.

On 12/14/20 2:24 AM, Ben wrote:
> Hey all,
>
> I figured I'd ask here because the main goals of updating my server
> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
> going to be what CentOS was...
>
> I'm wondering who is using what for their home servers for MythTV (and
> Plex) on the same box.
>
> I also use desktop apps on this same system as well as run some
> VirtualBox VMs (Windows and Raspbian)
>
> So with that -- I'd like to hear from the group what people have been
> happy with that's LTS-ish like CentOS was.
>
> Thanks,
>
>  -Ben
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
> On 15 Dec 2020, at 5:33 am, Jeremy D. Eiden <theonlyrealperson@gmail.com> wrote:
>
> I've had great luck with OpenSuse. YMMV. I don't think the releases last quite as long as CentOS, but upgrading stable versions can be done on the fly.
>
> On 12/14/20 2:24 AM, Ben wrote:
>> Hey all,
>>
>> I figured I'd ask here because the main goals of updating my server from CentOS 6 to --- well, no longer CentOS 8 since it's no longer going to be what CentOS was...
>>
>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>
>> I also use desktop apps on this same system as well as run some VirtualBox VMs (Windows and Raspbian)
>>
>> So with that -- I'd like to hear from the group what people have been happy with that's LTS-ish like CentOS was.

I use openSuSE as my main backend and on various frontends, I like it and their philosophy but it is much more tricky to get setup. EG if you are going to get packages from pacman then mythweb does/did not work.
If you are at all naive about unix or building or myth setup then ubuntu holds your hand, but you are out of luck if you don't like chocolate flavour, that's all they do.
James
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
>On Monday, December 14, 2020, 03:24:54 AM EST, Ben <bkamen@benjammin.net> wrote:
>I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.

On my combined frontend + backend, I installed Ubuntu 20.04 LTS, Mythbuntu Control Panel, and then installed MythTV.

Ted

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/14/20 7:23 PM, Ted L wrote:
>> On Monday, December 14, 2020, 03:24:54 AM EST, Ben <bkamen@benjammin.net> wrote:
>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
> On my combined frontend + backend, I installed Ubuntu 20.04 LTS, Mythbuntu Control Panel, and then installed MythTV.
>
Yea - I've been leaning to Ubuntu....

Most just wondering if there's another solid LTS release out there besides it.

 -Ben
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
> The owner of our company asked me this just last Friday. CentOS Stream is
> obviously what you are referring to as well.
Yep.
> Just do not use Stream. Grab the non-Stream ISO.
>

But they're killing it, no?

> Fedora used to be the pre-cursor testing platform for
> RHEL and now that they bought CentOS, (I guess) maybe they want to utilize
> the CentOS engineering expertise for their future releases rather than let
> them keep cloning for no reason. It will be interesting how this shakes
> out
>
>
Indeed... lots of peeps aren't thrilled.

> I would *never* run
> either variant on a production server, but the CentOS Stream is less
> bleeding edge, but more of a rolling upgrade system. Makes me wonder is
> RHEL is headed that way like Arch Linux, Gentoo, etc. It is a *way* better
> model if you do not have your own kernel drivers, etc involved. I hope
> RHEL moves to this model, because as well all know with the distros that
> use fixed kernel bases for *years* on a release, only the users suffer.
> The stability is great, but the features never come unless you kernel bump
> anyway. Lokk at this lists threads of people having to enable kernel repos
> to compile MythTV alone :)
>
> Anyway, I think Fedora will still be the baseline for the kernel and
> hopefully Stream will be the moving package repo (hopefully). Noone really
> knows from the vague reports. RHEL has actually not released anything to
> confirm these suspicions yet :)
>
> -Greg

Yea - I guess I have time to play and maybe see what works out by then. (shrug)


 -Ben
Re: Recommended Linux Distro post CentOS [ In reply to ]
> If what CentOS offered you is what you want, i.e. a production OS that
> tracked RHEL, you could wait until Rocky Linux is out:
>
> https://www.theregister.com/2020/12/10/rocky_linux/ <https://www.theregister.com/2020/12/10/rocky_linux/>
>
> This is a new distro which will track RHEL as CentOS did and has been
> started by the CentOS founder. Although there's no proper ETA yet, it
> should be available well before the end of the year and likely around
> midway through.

Yep - Looked at this too.


-Ben
Re: Recommended Linux Distro post CentOS [ In reply to ]
> On 15 Dec 2020, at 9:29 am, Ben <bkamen@benjammin.net> wrote:
>
>>> On Monday, December 14, 2020, 03:24:54 AM EST, Ben <bkamen@benjammin.net> wrote:
>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>> On my combined frontend + backend, I installed Ubuntu 20.04 LTS, Mythbuntu Control Panel, and then installed MythTV.
>>
> Yea - I've been leaning to Ubuntu....
>
> Most just wondering if there's another solid LTS release out there besides it.

Ben <smile> your question gives the answer. Use ubuntu, I found xubuntu good for front and backend.
The answer is ‘There are’ but asking the question says that the answer will be too/very hard for you to do.
James
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/14/20 4:44 PM, James Linder wrote:
>
>> On 15 Dec 2020, at 5:33 am, Jeremy D. Eiden <theonlyrealperson@gmail.com> wrote:
>>
>> I've had great luck with OpenSuse. YMMV. I don't think the releases last quite as long as CentOS, but upgrading stable versions can be done on the fly.
>>
>> On 12/14/20 2:24 AM, Ben wrote:
>>> Hey all,
>>>
>>> I figured I'd ask here because the main goals of updating my server from CentOS 6 to --- well, no longer CentOS 8 since it's no longer going to be what CentOS was...
>>>
>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>>
>>> I also use desktop apps on this same system as well as run some VirtualBox VMs (Windows and Raspbian)
>>>
>>> So with that -- I'd like to hear from the group what people have been happy with that's LTS-ish like CentOS was.
> I use openSuSE as my main backend and on various frontends, I like it and their philosophy but it is much more tricky to get setup. EG if you are going to get packages from pacman then mythweb does/did not work.
> If you are at all naive about unix or building or myth setup then ubuntu holds your hand, but you are out of luck if you don't like chocolate flavour, that's all they do.
> James

I don't disagree with that, there is some tinkering you need to do to
use Packman's myth builds.  Not only mythweb, but also getting the
database to network if you have a remote backend.

It's not a lot of tinkering, but there is some. YAST makes it easier to
get it to work if you don't like digging through config files.

I guess I've been running OpenSuse for so long I forgot things I had to
do like that.

Jeremy


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Mon, Dec 14, 2020, at 03:24, Ben wrote:
> Hey all,
>
> I figured I'd ask here because the main goals of updating my server
> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
> going to be what CentOS was...
>
> I'm wondering who is using what for their home servers for MythTV (and
> Plex) on the same box.
>
> I also use desktop apps on this same system as well as run some
> VirtualBox VMs (Windows and Raspbian)
>
> So with that -- I'd like to hear from the group what people have been
> happy with that's LTS-ish like CentOS was.

To be honest, I'm a little surprised CentOS wasn't a huge pain in the neck for a MythTV server, given the age of the components.

I'd use (and do) Ubuntu LTS. I'll admit that I'm currently on a still-supported MythBuntu 16.04 (support ends next year), and I'm somewhat dreading going jumping to Ubuntu proper, but just because of the work involved, not because I don't think it will work.

--
Ryan Novosielski
ryan@novosielski.com
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
> On 15 Dec 2020, at 1:03 pm, Ryan Novosielski <ryan@novosielski.com> wrote:
>
> On Mon, Dec 14, 2020, at 03:24, Ben wrote:
>> Hey all,
>>
>> I figured I'd ask here because the main goals of updating my server
>> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
>> going to be what CentOS was...
>>
>> I'm wondering who is using what for their home servers for MythTV (and
>> Plex) on the same box.
>>
>> I also use desktop apps on this same system as well as run some
>> VirtualBox VMs (Windows and Raspbian)
>>
>> So with that -- I'd like to hear from the group what people have been
>> happy with that's LTS-ish like CentOS was.
>
> To be honest, I'm a little surprised CentOS wasn't a huge pain in the neck for a MythTV server, given the age of the components.
>
> I'd use (and do) Ubuntu LTS. I'll admit that I'm currently on a still-supported MythBuntu 16.04 (support ends next year), and I'm somewhat dreading going jumping to Ubuntu proper, but just because of the work involved, not because I don't think it will work.

Actually Ryan I install LTS xubuntu, use ansible to build fixes/31 and have a working system within the hour. I admit to using m2-ssd (that makes a huge speed difference) and that I've done this before but your dread is not warranted.
James
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Tue, Dec 15, 2020, at 00:24, James Linder wrote:
>
>
> > On 15 Dec 2020, at 1:03 pm, Ryan Novosielski <ryan@novosielski.com> wrote:
> >
> > On Mon, Dec 14, 2020, at 03:24, Ben wrote:
> >> Hey all,
> >>
> >> I figured I'd ask here because the main goals of updating my server
> >> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
> >> going to be what CentOS was...
> >>
> >> I'm wondering who is using what for their home servers for MythTV (and
> >> Plex) on the same box.
> >>
> >> I also use desktop apps on this same system as well as run some
> >> VirtualBox VMs (Windows and Raspbian)
> >>
> >> So with that -- I'd like to hear from the group what people have been
> >> happy with that's LTS-ish like CentOS was.
> >
> > To be honest, I'm a little surprised CentOS wasn't a huge pain in the neck for a MythTV server, given the age of the components.
> >
> > I'd use (and do) Ubuntu LTS. I'll admit that I'm currently on a still-supported MythBuntu 16.04 (support ends next year), and I'm somewhat dreading going jumping to Ubuntu proper, but just because of the work involved, not because I don't think it will work.
>
> Actually Ryan I install LTS xubuntu, use ansible to build fixes/31 and
> have a working system within the hour. I admit to using m2-ssd (that
> makes a huge speed difference) and that I've done this before but your
> dread is not warranted.

Yeah, I'm not really that worried about it, but it's always something. The last time I upgraded, my video card was dropped from all of the easily-available NVIDIA drivers (was probably time to upgrade anyway, and I bought a reasonably-priced GT710). The time before that, the LIRC I2C driver went away and the way to get that back was to either figure out the devinput method or patch LIRC. I did the latter the first time, and the former this time. This time, (I'm on 0.29) it appears as if something is wrong with my install where input groups don't work, and my PVR-350 records at a very low volume (I have sort of a kludgey sometimes works/sometimes not fix for that). Probably the perils of using relatively old (free) hardware, like the Dell OptiPlex 745 I have for a backend.

--
Ryan Novosielski
ryan@novosielski.com
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 15/12/2020 13:03, Ryan Novosielski wrote:
> On Mon, Dec 14, 2020, at 03:24, Ben wrote:
>> Hey all,
>>
>> I figured I'd ask here because the main goals of updating my server
>> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
>> going to be what CentOS was...
>>
>> I'm wondering who is using what for their home servers for MythTV (and
>> Plex) on the same box.
>>
> To be honest, I'm a little surprised CentOS wasn't a huge pain in the neck for a MythTV server, given the age of the components.
>
> I'd use (and do) Ubuntu LTS. I'll admit that I'm currently on a still-supported MythBuntu 16.04 (support ends next year), and I'm somewhat dreading going jumping to Ubuntu proper, but just because of the work involved, not because I don't think it will work.
>
G'day,

I use Debian, but I have a dedicated fe/be box, mariadb on another server.

I don't bother to update it so it has a long LTS :-)
I only recently moved house and threw the old Guts away and started with
a new MB etc preserving the disks and recorded shows.
I also run TBS tuners so updating is a pain.

--
'ooroo

Stinga...(:)-)
---------------------------------------------------
Email: stinga+mythtv@wolf-rock.com o
You need only two tools. o /////
A hammer and duct tape. If it /@ `\ /) ~
doesn't move and it should use > (O) X< ~ Fish!!
the hammer. If it moves and `\___/' \) ~
shouldn't, use the tape. \\\
---------------------------------------------------
Re: Recommended Linux Distro post CentOS [ In reply to ]
Ben wrote on 14/12/20 6:24 pm:
> Hey all,
>
> I figured I'd ask here because the main goals of updating my server
> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
> going to be what CentOS was...
>
> I'm wondering who is using what for their home servers for MythTV (and
> Plex) on the same box.
>
> I also use desktop apps on this same system as well as run some
> VirtualBox VMs (Windows and Raspbian)
>
> So with that -- I'd like to hear from the group what people have been
> happy with that's LTS-ish like CentOS was.

I recently installed Linux Mint 20 (MATE) for combined frontend/backend
for someone. Myth 31 was in the package manager; installation was
reasonably straightforward. Mint is based on the LTS version of Ubuntu,
if I recall correctly.

--

Bob Long

>
> Thanks,
>
>  -Ben
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Tue, 15 Dec 2020 00:57:04 -0500, you wrote:

>On Tue, Dec 15, 2020, at 00:24, James Linder wrote:
>>
>>
>> > On 15 Dec 2020, at 1:03 pm, Ryan Novosielski <ryan@novosielski.com> wrote:
>> >
>> > On Mon, Dec 14, 2020, at 03:24, Ben wrote:
>> >> Hey all,
>> >>
>> >> I figured I'd ask here because the main goals of updating my server
>> >> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
>> >> going to be what CentOS was...
>> >>
>> >> I'm wondering who is using what for their home servers for MythTV (and
>> >> Plex) on the same box.
>> >>
>> >> I also use desktop apps on this same system as well as run some
>> >> VirtualBox VMs (Windows and Raspbian)
>> >>
>> >> So with that -- I'd like to hear from the group what people have been
>> >> happy with that's LTS-ish like CentOS was.
>> >
>> > To be honest, I'm a little surprised CentOS wasn't a huge pain in the neck for a MythTV server, given the age of the components.
>> >
>> > I'd use (and do) Ubuntu LTS. I'll admit that I'm currently on a still-supported MythBuntu 16.04 (support ends next year), and I'm somewhat dreading going jumping to Ubuntu proper, but just because of the work involved, not because I don't think it will work.
>>
>> Actually Ryan I install LTS xubuntu, use ansible to build fixes/31 and
>> have a working system within the hour. I admit to using m2-ssd (that
>> makes a huge speed difference) and that I've done this before but your
>> dread is not warranted.
>
>Yeah, I'm not really that worried about it, but it's always something. The last time I upgraded, my video card was dropped from all of the easily-available NVIDIA drivers (was probably time to upgrade anyway, and I bought a reasonably-priced GT710). The time before that, the LIRC I2C driver went away and the way to get that back was to either figure out the devinput method or patch LIRC. I did the latter the first time, and the former this time. This time, (I'm on 0.29) it appears as if something is wrong with my install where input groups don't work, and my PVR-350 records at a very low volume (I have sort of a kludgey sometimes works/sometimes not fix for that). Probably the perils of using relatively old (free) hardware, like the Dell OptiPlex 745 I have for a backend.

The PVR-350 is probably like my PVR-500 cards. Later versions of the
PVR-500 drivers made it default to having lots of different inputs
turned on so I had to make a script to set the card up that was run
from the event that happens at the start of a recording:

root@mypvr:/usr/local/bin# cat ivtv_audio_fix.sh
#!/bin/sh

# Workaround for bug which causes audio distortion on some recordings.
# From http://urlgrey.net/?p=231

sleep 3

if [ $# -eq 0 ]; then
device=/dev/video0
else
device=$1
fi

# First, set the audio input in turn to each of the unwanted audio
inputs.
# This only became necessary as of Mythbuntu 12.04.
v4l2-ctl -d$device --set-audio-input=2
v4l2-ctl -d$device --set-audio-input=0

# Next, also set the tuner frequency. This also seems to be necessary
# since Mythbuntu 12.04 to suppress a slightly different audio
distortion.
# The frequency should be for an unused part of the spectrum, as the
unwanted
# audio is coming from whatever the TV tuner is tuned to.
v4l2-ctl -d$device -f 420

# Reset the audio input to source 1 (the wanted input).
v4l2-ctl -d$device --set-audio-input=1

That script is downloadable from my web server:

http://www.jsw.gen.nz/mythtv/ivtv_audio_fix.sh

That was a while ago now, and I have not been using my PVR-500s for
several years - they are living in their boxes now, not a PC.

If you are on 18.04, then when you upgrade to 20.04 you will find that
the LIRC package still installs it wrongly - you need to run my fix
script:

http://www.jsw.gen.nz/mythtv/lirc-ubuntu-20.04-install.sh

and probably check the configuration to make sure nothing was
overwritten.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
Ben <bkamen@benjammin.net> wrote:

> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.

Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.

Simon

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 15/12/2020 18:05, Simon Hobson wrote:
> Ben <bkamen@benjammin.net> wrote:
>
>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>
> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
>
I have tried Devuan and it would indeed, be suitable for myth front and backends.

However...

Despite telling you during installation that "everything is your choice" the default install desktop
is effectively forced to be xfce, whereas I prefer LXDE.

The "debootstrap" code was seriously borked when I tried it, and you could not install the same
version in, for example, a VM as the version you were running, only the 'next' version. WTF? That
killed using it for a KVM server stone dead.

As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand
that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.

YMMV...

--

Mike Perkins

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 2020-12-15 2:39 a.m., Bob Long wrote:
> Ben wrote on 14/12/20 6:24 pm:
>> Hey all,
>>
>> I figured I'd ask here because the main goals of updating my server
>> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
>> going to be what CentOS was...
>>
>> I'm wondering who is using what for their home servers for MythTV (and
>> Plex) on the same box.
>>
>> I also use desktop apps on this same system as well as run some
>> VirtualBox VMs (Windows and Raspbian)
>>
>> So with that -- I'd like to hear from the group what people have been
>> happy with that's LTS-ish like CentOS was.

I have been running mythtv on Fedora since Fedora 4. Until myth v.28 I
had always compiled from master as originally there were no good repos,
and then because it was easier for testing the imon kernel module (I was
an alpha level tester: code by Jarrod Wilson).
As a bit of a lark, I tried rpmfusion at v28. No problems (only a slight
loss of flexibility in removing extensions I did not want: slight size
increase as a result but irrelevant really).

Fedora uses the same structural setup as RHEL and Centos, so everything
will be exactly where you expect it to be.
On the odd occasion I find myself delving into a Ubuntu based setup I am
always slightly lost as to where things are! Not a big deal, but we do
get used to where things are located. Like getting in a rental car and
trying to find the windshield wipers in the dark. On the upside, you
will *not* have to learn new names for any of the programs or
prerequisite libraries you want to install.

One of the recent Fedora kernels was named as a LTS if that is a
concern. If your box is a standalone BE/FE then that hardly matters. I
have a mythbox running Fedora 28. It's not obsolete although the OS is old.

Moving up to Fedora 32 or 33 will give you a BIG jump in the kernel.
Although some denigratre Fedora, it's "cutting edge" is actually
incredibly stable for something like mythtv.

Geoff




--

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>
>> Ben <bkamen@benjammin.net> wrote:
>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>
> However...
>
> Despite telling you during installation that "everything is your choice" the default install desktop is effectively forced to be xfce, whereas I prefer LXDE.
>
> The "debootstrap" code was seriously borked when I tried it, and you could not install the same version in, for example, a VM as the version you were running, only the 'next' version. WTF? That killed using it for a KVM server stone dead.
>
> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.

I am not trolling, or standing in a copper vase full of water on a mountain top during a thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
I find it to be different
Not particually hard to learn
Quite nice in principal, being all-in-one-place and consistant
(My RockPi 4 does xxx on boot, ah systemd stuff)
James
PS well 2 places, /etc/systemd /usr/lib/systemd
PPS and yup in context of mythtv
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/15/20 8:05 PM, James Linder wrote:
>
>> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>>
>>> Ben <bkamen@benjammin.net> wrote:
>>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
>> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>>
>> However...
>>
>> Despite telling you during installation that "everything is your choice" the default install desktop is effectively forced to be xfce, whereas I prefer LXDE.
>>
>> The "debootstrap" code was seriously borked when I tried it, and you could not install the same version in, for example, a VM as the version you were running, only the 'next' version. WTF? That killed using it for a KVM server stone dead.
>>
>> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
> I am not trolling, or standing in a copper vase full of water on a mountain top during a thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
> I find it to be different
> Not particually hard to learn
> Quite nice in principal, being all-in-one-place and consistant
> (My RockPi 4 does xxx on boot, ah systemd stuff)
> James
> PS well 2 places, /etc/systemd /usr/lib/systemd
> PPS and yup in context of mythtv

Here is my issue with it - when it fails, it fails in really stupid ways
that can be hard to figure out and fix.

For example, say you have a second non-system disk that you store
recordings or random things on (to keep the MythTV link).  Nothing on
the OS or even the users truly depend on, and it's mounted under /mnt or
/media.

Disk fail?  You remove it to copy the data onto another computer? 
Systemd will prevent the whole system from booting. It'll just hang
forever.  You need to boot a usb stick or figure out how to you
systemrescue to comment out the offending disk in fstab and reboot the
system.  Assuming you figure out that the disk failed.

Systemrescue (or whatever it's called) isn't as intuitive as one might
think - and if you don't have a computer to search the right commands
on, you are toast.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
> On 16 Dec 2020, at 11:11 am, Jeremy D. Eiden <theonlyrealperson@gmail.com> wrote:
>
>
> On 12/15/20 8:05 PM, James Linder wrote:
>>
>>> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>>>
>>>> Ben <bkamen@benjammin.net> wrote:
>>>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
>>> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>>>
>>> However...
>>>
>>> Despite telling you during installation that "everything is your choice" the default install desktop is effectively forced to be xfce, whereas I prefer LXDE.
>>>
>>> The "debootstrap" code was seriously borked when I tried it, and you could not install the same version in, for example, a VM as the version you were running, only the 'next' version. WTF? That killed using it for a KVM server stone dead.
>>>
>>> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
>> I am not trolling, or standing in a copper vase full of water on a mountain top during a thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
>> I find it to be different
>> Not particually hard to learn
>> Quite nice in principal, being all-in-one-place and consistant
>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>> James
>> PS well 2 places, /etc/systemd /usr/lib/systemd
>> PPS and yup in context of mythtv
>
> Here is my issue with it - when it fails, it fails in really stupid ways that can be hard to figure out and fix.
>
> For example, say you have a second non-system disk that you store recordings or random things on (to keep the MythTV link). Nothing on the OS or even the users truly depend on, and it's mounted under /mnt or /media.
>
> Disk fail? You remove it to copy the data onto another computer? Systemd will prevent the whole system from booting. It'll just hang forever. You need to boot a usb stick or figure out how to you systemrescue to comment out the offending disk in fstab and reboot the system. Assuming you figure out that the disk failed.
>
> Systemrescue (or whatever it's called) isn't as intuitive as one might think - and if you don't have a computer to search the right commands on, you are toast.

Jeremy

After 1 painfull experience would you not

UUID=414c4207-f0b8-40d3-98e9-73be1dd3f867 /backup ext4 defaults,nofail 0 2

which boils down to ‘I’m being silly’ so ‘I don’t like systemd’

Again I’m offering a <smile>, I’m trying to learn something not wade into the SysV vs systemd debate
James

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/15/20 10:11 PM, Jeremy D. Eiden wrote:
>
> On 12/15/20 8:05 PM, James Linder wrote:
>>
>>> On 16 Dec 2020, at 7:07 am, Mike Perkins
>>> <mikep@randomtraveller.org.uk> wrote:
>>>
>>>> Ben <bkamen@benjammin.net> wrote:
>>>>> I'm wondering who is using what for their home servers for MythTV
>>>>> (and Plex) on the same box.
>>>> Can't speak for the non-Myth stuff, but my backend and frontends
>>>> all run Devuan now - what Debian would be if they'd not succumbed
>>>> to the dark side of systemd.
>>> I have tried Devuan and it would indeed, be suitable for myth front
>>> and backends.
>>>
>>> However...
>>>
>>> Despite telling you during installation that "everything is your
>>> choice" the default install desktop is effectively forced to be
>>> xfce, whereas I prefer LXDE.
>>>
>>> The "debootstrap" code was seriously borked when I tried it, and you
>>> could not install the same version in, for example, a VM as the
>>> version you were running, only the 'next' version. WTF? That killed
>>> using it for a KVM server stone dead.
>>>
>>> As I also run LTSP here, and debootstrap is used for the clients,
>>> that was a no-no too. I understand that the 'new' version of LTSP
>>> will work properly, haven't tried that on Devuan lately.
>> I am not trolling, or standing in a copper vase full of water on a
>> mountain top during a thunderstorm saying all gods are bastards
>> (Terry Pratchette) but why the angst about systemd?
>> I find it to be different
>> Not particually hard to learn
>> Quite nice in principal, being all-in-one-place and consistant
>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>> James
>> PS well 2 places, /etc/systemd /usr/lib/systemd
>> PPS and yup in context of mythtv
>
> Here is my issue with it - when it fails, it fails in really stupid
> ways that can be hard to figure out and fix.
>
> For example, say you have a second non-system disk that you store
> recordings or random things on (to keep the MythTV link).  Nothing on
> the OS or even the users truly depend on, and it's mounted under /mnt
> or /media.
>
> Disk fail?  You remove it to copy the data onto another computer?
> Systemd will prevent the whole system from booting. It'll just hang
> forever.  You need to boot a usb stick or figure out how to you
> systemrescue to comment out the offending disk in fstab and reboot the
> system.  Assuming you figure out that the disk failed.
>
> Systemrescue (or whatever it's called) isn't as intuitive as one might
> think - and if you don't have a computer to search the right commands
> on, you are toast.

Google finds this at https://wiki.archlinux.org/index.php/fstab. This
article is also cited as a solution on multiple other web sites:

External devices that are to be mounted when present but ignored if
absent may require the|nofail|option. This prevents errors being
reported at boot. For example:

/etc/fstab

/dev/sdg1 /media/backup jfs nofail,x-systemd.device-timeout=1ms 0 2

The|nofail|option is best combined with
the|x-systemd.device-timeout|option. This is because the default device
timeout is 90 seconds, so a disconnected external device with
only|nofail|will make your boot take 90 seconds longer, unless you
reconfigure the timeout as shown. Make sure not to set the timeout to 0,
as this translates to infinite timeout.

--
David King
dave at daveking dot com


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/15/20 9:47 PM, David King wrote:
> On 12/15/20 10:11 PM, Jeremy D. Eiden wrote:
>>
>> On 12/15/20 8:05 PM, James Linder wrote:
>>>
>>>> On 16 Dec 2020, at 7:07 am, Mike Perkins
>>>> <mikep@randomtraveller.org.uk> wrote:
>>>>
>>>>> Ben <bkamen@benjammin.net> wrote:
>>>>>> I'm wondering who is using what for their home servers for MythTV
>>>>>> (and Plex) on the same box.
>>>>> Can't speak for the non-Myth stuff, but my backend and frontends
>>>>> all run Devuan now - what Debian would be if they'd not succumbed
>>>>> to the dark side of systemd.
>>>> I have tried Devuan and it would indeed, be suitable for myth front
>>>> and backends.
>>>>
>>>> However...
>>>>
>>>> Despite telling you during installation that "everything is your
>>>> choice" the default install desktop is effectively forced to be
>>>> xfce, whereas I prefer LXDE.
>>>>
>>>> The "debootstrap" code was seriously borked when I tried it, and
>>>> you could not install the same version in, for example, a VM as the
>>>> version you were running, only the 'next' version. WTF? That killed
>>>> using it for a KVM server stone dead.
>>>>
>>>> As I also run LTSP here, and debootstrap is used for the clients,
>>>> that was a no-no too. I understand that the 'new' version of LTSP
>>>> will work properly, haven't tried that on Devuan lately.
>>> I am not trolling, or standing in a copper vase full of water on a
>>> mountain top during a thunderstorm saying all gods are bastards
>>> (Terry Pratchette) but why the angst about systemd?
>>> I find it to be different
>>> Not particually hard to learn
>>> Quite nice in principal, being all-in-one-place and consistant
>>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>>> James
>>> PS well 2 places, /etc/systemd /usr/lib/systemd
>>> PPS and yup in context of mythtv
>>
>> Here is my issue with it - when it fails, it fails in really stupid
>> ways that can be hard to figure out and fix.
>>
>> For example, say you have a second non-system disk that you store
>> recordings or random things on (to keep the MythTV link). Nothing on
>> the OS or even the users truly depend on, and it's mounted under /mnt
>> or /media.
>>
>> Disk fail?  You remove it to copy the data onto another computer?
>> Systemd will prevent the whole system from booting. It'll just hang
>> forever.  You need to boot a usb stick or figure out how to you
>> systemrescue to comment out the offending disk in fstab and reboot
>> the system.  Assuming you figure out that the disk failed.
>>
>> Systemrescue (or whatever it's called) isn't as intuitive as one
>> might think - and if you don't have a computer to search the right
>> commands on, you are toast.
>
> Google finds this at https://wiki.archlinux.org/index.php/fstab. This
> article is also cited as a solution on multiple other web sites:
>
> External devices that are to be mounted when present but ignored if
> absent may require the|nofail|option. This prevents errors being
> reported at boot. For example:
>
> /etc/fstab
>
> /dev/sdg1        /media/backup    jfs
> nofail,x-systemd.device-timeout=1ms    0  2
>
> The|nofail|option is best combined with
> the|x-systemd.device-timeout|option. This is because the default
> device timeout is 90 seconds, so a disconnected external device with
> only|nofail|will make your boot take 90 seconds longer, unless you
> reconfigure the timeout as shown. Make sure not to set the timeout to
> 0, as this translates to infinite timeout.

Whelp, looks like I'll be doing some fstab editing tonight. :)

I honestly did not know about this option. My apologies.

Thank you David and James.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
----- Original Message -----
> From: "David King" <dave@daveking.com>

>> Here is my issue with it - when it fails, it fails in really stupid
>> ways that can be hard to figure out and fix.
>>
>> For example, say you have a second non-system disk that you store
>> recordings or random things on (to keep the MythTV link).  Nothing on
>> the OS or even the users truly depend on, and it's mounted under /mnt
>> or /media.
>>
>> Disk fail?  You remove it to copy the data onto another computer?
>> Systemd will prevent the whole system from booting. It'll just hang
>> forever.  You need to boot a usb stick or figure out how to you
>> systemrescue to comment out the offending disk in fstab and reboot the
>> system.  Assuming you figure out that the disk failed.
>>
>> Systemrescue (or whatever it's called) isn't as intuitive as one might
>> think - and if you don't have a computer to search the right commands
>> on, you are toast.
>
> Google finds this at https://wiki.archlinux.org/index.php/fstab. This
> article is also cited as a solution on multiple other web sites:
>
> External devices that are to be mounted when present but ignored if
> absent may require the|nofail|option. This prevents errors being
> reported at boot. For example:
>
> /etc/fstab
>
> /dev/sdg1 /media/backup jfs nofail,x-systemd.device-timeout=1ms
> 0 2
>
> The|nofail|option is best combined with
> the|x-systemd.device-timeout|option. This is because the default device
> timeout is 90 seconds, so a disconnected external device with
> only|nofail|will make your boot take 90 seconds longer, unless you
> reconfigure the timeout as shown. Make sure not to set the timeout to 0,
> as this translates to infinite timeout.

Sure.

But you know what's even better?

Not trashing 40 years of Linux/Unix SA training for gratuitous crap put in
there for 1% or (way) less of running Linux systems. I to this day cannot
imaging what Lennart had on the 6 major distribution release managers that
he got them to bake that crap into them.

Me? Bitter?

No, why should I be bitter, just because some random out of nowhere obsoleted
in about 3 years what I'd spent 30 years getting good at? No motivation there
at all...

Cheers,
-- jr 'you may not be wading in, but I am' a
--
Jay R. Ashworth Baylink jra@baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://www.bcp38.info 2000 Land Rover DII
St Petersburg FL USA BCP38: Ask For It By Name! +1 727 647 1274
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Wed, 16 Dec 2020 04:25:09 +0000 (UTC), you wrote:

>----- Original Message -----
>> From: "David King" <dave@daveking.com>
>
>>> Here is my issue with it - when it fails, it fails in really stupid
>>> ways that can be hard to figure out and fix.
>>>
>>> For example, say you have a second non-system disk that you store
>>> recordings or random things on (to keep the MythTV link).? Nothing on
>>> the OS or even the users truly depend on, and it's mounted under /mnt
>>> or /media.
>>>
>>> Disk fail?? You remove it to copy the data onto another computer?
>>> Systemd will prevent the whole system from booting. It'll just hang
>>> forever.? You need to boot a usb stick or figure out how to you
>>> systemrescue to comment out the offending disk in fstab and reboot the
>>> system.? Assuming you figure out that the disk failed.
>>>
>>> Systemrescue (or whatever it's called) isn't as intuitive as one might
>>> think - and if you don't have a computer to search the right commands
>>> on, you are toast.
>>
>> Google finds this at https://wiki.archlinux.org/index.php/fstab. This
>> article is also cited as a solution on multiple other web sites:
>>
>> External devices that are to be mounted when present but ignored if
>> absent may require the|nofail|option. This prevents errors being
>> reported at boot. For example:
>>
>> /etc/fstab
>>
>> /dev/sdg1 /media/backup jfs nofail,x-systemd.device-timeout=1ms
>> 0 2
>>
>> The|nofail|option is best combined with
>> the|x-systemd.device-timeout|option. This is because the default device
>> timeout is 90 seconds, so a disconnected external device with
>> only|nofail|will make your boot take 90 seconds longer, unless you
>> reconfigure the timeout as shown. Make sure not to set the timeout to 0,
>> as this translates to infinite timeout.
>
>Sure.
>
>But you know what's even better?
>
>Not trashing 40 years of Linux/Unix SA training for gratuitous crap put in
>there for 1% or (way) less of running Linux systems. I to this day cannot
>imaging what Lennart had on the 6 major distribution release managers that
>he got them to bake that crap into them.
>
>Me? Bitter?
>
>No, why should I be bitter, just because some random out of nowhere obsoleted
>in about 3 years what I'd spent 30 years getting good at? No motivation there
>at all...

You might want to reconsider that a little. I started out very
sceptical about systemd. And I still not a fan of the "one systemd to
rule them all" concept. But I have now used systemd quite a bit and
so far I have found that using systemd to run things is dramatically
better than init scripts. When you had to write an init script, that
was a mini-project on its own getting it to do everything needed - it
took ages. Using systemd to start a program is usually easy - just
add the options you want and it often works first time. And a huge
plus is that the program does not need to be written with a daemon
mode - in fact, running it as a daemon takes more effort with systemd
than running it as a normal program. I do not like the logs going
into journals so much though - that makes it difficult to access them
when booted from a live USB or PXE image to do repairs or discover why
things went wrong.

Over time systemd has got better too, with some of the niggly little
things fixed by new options. I really like just being able to now do
"systemctl edit" to create a new override file. And some things I
hate are things I can fix myself. Why on earth they thought that
having to type "systemctl" and "journalctl" all the time was a good
idea I have no clue. Commands that are used often should be short. So
I have aliased them to "sc" and "jc".

The option to have an early start / late shutdown root debug shell is
also extremely valuable when debugging startup and shutdown problems.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 16/12/2020 03:47, David King wrote:
> On 12/15/20 10:11 PM, Jeremy D. Eiden wrote:
>>
>> On 12/15/20 8:05 PM, James Linder wrote:
>>>
>>>> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>>>>
>>>>> Ben <bkamen@benjammin.net> wrote:
>>>>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>>>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what
>>>>> Debian would be if they'd not succumbed to the dark side of systemd.
>>>> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>>>>
>>>> However...
>>>>
>>>> Despite telling you during installation that "everything is your choice" the default install
>>>> desktop is effectively forced to be xfce, whereas I prefer LXDE.
>>>>
>>>> The "debootstrap" code was seriously borked when I tried it, and you could not install the same
>>>> version in, for example, a VM as the version you were running, only the 'next' version. WTF?
>>>> That killed using it for a KVM server stone dead.
>>>>
>>>> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I
>>>> understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
>>> I am not trolling, or standing in a copper vase full of water on a mountain top during a
>>> thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
>>> I find it to be different
>>> Not particually hard to learn
>>> Quite nice in principal, being all-in-one-place and consistant
>>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>>> James
>>> PS well 2 places, /etc/systemd /usr/lib/systemd
>>> PPS and yup in context of mythtv
>>
>> Here is my issue with it - when it fails, it fails in really stupid ways that can be hard to
>> figure out and fix.
>>
>> For example, say you have a second non-system disk that you store recordings or random things on
>> (to keep the MythTV link).  Nothing on the OS or even the users truly depend on, and it's mounted
>> under /mnt or /media.
>>
>> Disk fail?  You remove it to copy the data onto another computer? Systemd will prevent the whole
>> system from booting. It'll just hang forever.  You need to boot a usb stick or figure out how to
>> you systemrescue to comment out the offending disk in fstab and reboot the system.  Assuming you
>> figure out that the disk failed.
>>
>> Systemrescue (or whatever it's called) isn't as intuitive as one might think - and if you don't
>> have a computer to search the right commands on, you are toast.
>
> Google finds this at https://wiki.archlinux.org/index.php/fstab. This article is also cited as a
> solution on multiple other web sites:
>
> External devices that are to be mounted when present but ignored if absent may require
> the|nofail|option. This prevents errors being reported at boot. For example:
>
> /etc/fstab
>
> /dev/sdg1        /media/backup    jfs    nofail,x-systemd.device-timeout=1ms    0  2
>
> The|nofail|option is best combined with the|x-systemd.device-timeout|option. This is because the
> default device timeout is 90 seconds, so a disconnected external device with only|nofail|will make
> your boot take 90 seconds longer, unless you reconfigure the timeout as shown. Make sure not to set
> the timeout to 0, as this translates to infinite timeout.
>
I have to point out that your fstab entry has the rather sensible /dev/<device> attachment point,
whereas the usual definitions are installed with a UUID= option instead.

Sometimes when making up a test install I will go through and fix all those back to the (commented
out) /dev options but most of my boxes are left as default. This makes changing anything more of a
task than simply moving a HDD from one host to another.

Then there's the insane relabelling of NIC interfaces, which are *always* different each time. I
always forget and wonder why my new host has booted up with no network, and then have to go in and
manually edit /etc/network/interfaces.

...and heaven help you if you have more than one NIC! it *always* chooses the one that doesn't have
a cable in, and often doesn't even have a stanza in interfaces.

£0.02

--

Mike Perkins

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 15/12/2020 05:03, Ryan Novosielski wrote:
>>
>> So with that -- I'd like to hear from the group what people have been
>> happy with that's LTS-ish like CentOS was.
>
> To be honest, I'm a little surprised CentOS wasn't a huge pain in the neck for a MythTV server, given the age of the components.
>

You aren't wrong there.

fixes/31 still builds on Centos7, master however does not,
and so the next release (not due for a while yet) will drop support
for Centos7 (as well as debian stretch, which is due to EOL shortly
after the planned release date)

> I'd use (and do) Ubuntu LTS. I'll admit that I'm currently on a still-supported MythBuntu 16.04 (support ends next year), and I'm somewhat dreading going jumping to Ubuntu proper, but just because of the work involved, not because I don't think it will work.
>

The PPA's are great and auto built daily (if any changes are
committed)


Regards
Stuart
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Wed, 16 Dec 2020 10:08:10 +0000, you wrote:

>On 16/12/2020 03:47, David King wrote:
>> On 12/15/20 10:11 PM, Jeremy D. Eiden wrote:
>>>
>>> On 12/15/20 8:05 PM, James Linder wrote:
>>>>
>>>>> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>>>>>
>>>>>> Ben <bkamen@benjammin.net> wrote:
>>>>>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>>>>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what
>>>>>> Debian would be if they'd not succumbed to the dark side of systemd.
>>>>> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>>>>>
>>>>> However...
>>>>>
>>>>> Despite telling you during installation that "everything is your choice" the default install
>>>>> desktop is effectively forced to be xfce, whereas I prefer LXDE.
>>>>>
>>>>> The "debootstrap" code was seriously borked when I tried it, and you could not install the same
>>>>> version in, for example, a VM as the version you were running, only the 'next' version. WTF?
>>>>> That killed using it for a KVM server stone dead.
>>>>>
>>>>> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I
>>>>> understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
>>>> I am not trolling, or standing in a copper vase full of water on a mountain top during a
>>>> thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
>>>> I find it to be different
>>>> Not particually hard to learn
>>>> Quite nice in principal, being all-in-one-place and consistant
>>>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>>>> James
>>>> PS well 2 places, /etc/systemd /usr/lib/systemd
>>>> PPS and yup in context of mythtv
>>>
>>> Here is my issue with it - when it fails, it fails in really stupid ways that can be hard to
>>> figure out and fix.
>>>
>>> For example, say you have a second non-system disk that you store recordings or random things on
>>> (to keep the MythTV link).? Nothing on the OS or even the users truly depend on, and it's mounted
>>> under /mnt or /media.
>>>
>>> Disk fail?? You remove it to copy the data onto another computer? Systemd will prevent the whole
>>> system from booting. It'll just hang forever.? You need to boot a usb stick or figure out how to
>>> you systemrescue to comment out the offending disk in fstab and reboot the system.? Assuming you
>>> figure out that the disk failed.
>>>
>>> Systemrescue (or whatever it's called) isn't as intuitive as one might think - and if you don't
>>> have a computer to search the right commands on, you are toast.
>>
>> Google finds this at https://wiki.archlinux.org/index.php/fstab. This article is also cited as a
>> solution on multiple other web sites:
>>
>> External devices that are to be mounted when present but ignored if absent may require
>> the|nofail|option. This prevents errors being reported at boot. For example:
>>
>> /etc/fstab
>>
>> /dev/sdg1??????? /media/backup??? jfs??? nofail,x-systemd.device-timeout=1ms??? 0? 2
>>
>> The|nofail|option is best combined with the|x-systemd.device-timeout|option. This is because the
>> default device timeout is 90 seconds, so a disconnected external device with only|nofail|will make
>> your boot take 90 seconds longer, unless you reconfigure the timeout as shown. Make sure not to set
>> the timeout to 0, as this translates to infinite timeout.
>>
>I have to point out that your fstab entry has the rather sensible /dev/<device> attachment point,
>whereas the usual definitions are installed with a UUID= option instead.
>
>Sometimes when making up a test install I will go through and fix all those back to the (commented
>out) /dev options but most of my boxes are left as default. This makes changing anything more of a
>task than simply moving a HDD from one host to another.

There is a much better option these days - label the partitions and
use the LABEL= option in fstab. That makes it easy to move drives
around between PCs, and to work out which drive is which when you have
lots of them (my MythTV box has 16 hard drives and an NVMe SSD). You
can then also use /dev/disk/by-label/<partition label> when you need
to do fsck, for example.

And the /dev/<device> names are not sensible to use at all. If you
plug in USB hard drives, that often shifts those names for any drives
on a secondary controller on the motherboard as the USB controller
gets enumerated by the kernel before the secondary SATA controller.
There are probably motherboards out there where at least one USB
controller is enumerated before the main SATA controller.

>Then there's the insane relabelling of NIC interfaces, which are *always* different each time. I
>always forget and wonder why my new host has booted up with no network, and then have to go in and
>manually edit /etc/network/interfaces.

Yes, I always manually set up the interface names to be eth0, eth1,
... again as one of the first jobs I do on a new install. Except that
the way I have been doing that with udev rules is currently being
obsoleted as apparently it also suffers from race conditions. So I am
expecting to find it will be broken on the next upgrade of Ubuntu.

>...and heaven help you if you have more than one NIC! it *always* chooses the one that doesn't have
>a cable in, and often doesn't even have a stanza in interfaces.

Yes, it is best to make sure the first Ethernet port is tied down
before installing a second one. One useful trick is to enable the
systemd option for an early debug root console:

systemctl enable debug-shell.service

or "systemd.debug-shell=1" on the kernel command line. If you do that
when you are changing things to tie down the Ethernet ports, if you
get it wrong and lose the network connection or even do something that
makes boot up take ages or fail (90 seconds timeout per hard drive,
for example), then you can just do Ctrl-Alt-F9 and edit things and
reboot - much easier than having to boot from a live image or PXE to
fix it.

>?0.02
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Tue, Dec 15, 2020, at 21:05, James Linder wrote:
>
> > On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
> >
> >> Ben <bkamen@benjammin.net> wrote:
> >>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
> >> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
> > I have tried Devuan and it would indeed, be suitable for myth front and backends.
> >
> > However...
> >
> > Despite telling you during installation that "everything is your choice" the default install desktop is effectively forced to be xfce, whereas I prefer LXDE.
> >
> > The "debootstrap" code was seriously borked when I tried it, and you could not install the same version in, for example, a VM as the version you were running, only the 'next' version. WTF? That killed using it for a KVM server stone dead.
> >
> > As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
>
> I am not trolling, or standing in a copper vase full of water on a
> mountain top during a thunderstorm saying all gods are bastards (Terry
> Pratchette) but why the angst about systemd?
> I find it to be different
> Not particually hard to learn
> Quite nice in principal, being all-in-one-place and consistant
> (My RockPi 4 does xxx on boot, ah systemd stuff)
> James
> PS well 2 places, /etc/systemd /usr/lib/systemd
> PPS and yup in context of mythtv

Are you sure it's really two places? I was under the impression that you could do everything in /etc, and should, and that the system stuff was shipped in the other places, but it's been awhile since I wrote my own unit file.

I totally agree; systemd is almost entirely superior to the old method. The first time you have to tweak a vendor-supplied init, the reason becomes immediately clear. For example, we have some systems that boot without a /var and need some directories created. We do an overlay that checks for/creates the relevant directories. With an init script, you have to patch the script each time if that's not something the vendor provides. On stateless systems in particular, it's far superior, but the ability to configure complicated dependencies is great on any system (so long as you take the few minutes to figure it out).

--
Ryan Novosielski
ryan@novosielski.com
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 2020-12-16 4:31 a.m., Stephen Worthington wrote:
> On Wed, 16 Dec 2020 04:25:09 +0000 (UTC), you wrote:

>> No, why should I be bitter, just because some random out of nowhere obsoleted
>> in about 3 years what I'd spent 30 years getting good at? No motivation there
>> at all...
>
> You might want to reconsider that a little. I started out very
> sceptical about systemd. And I still not a fan of the "one systemd to
> rule them all" concept. But I have now used systemd quite a bit and
> so far I have found that using systemd to run things is dramatically
> better than init scripts. When you had to write an init script, that
> was a mini-project on its own getting it to do everything needed - it
> took ages. Using systemd to start a program is usually easy - just
> add the options you want and it often works first time. And a huge
> plus is that the program does not need to be written with a daemon
> mode - in fact, running it as a daemon takes more effort with systemd
> than running it as a normal program. I do not like the logs going
> into journals so much though - that makes it difficult to access them
> when booted from a live USB or PXE image to do repairs or discover why
> things went wrong.
>
> Over time systemd has got better too, with some of the niggly little
> things fixed by new options. I really like just being able to now do
> "systemctl edit" to create a new override file. And some things I
> hate are things I can fix myself. Why on earth they thought that
> having to type "systemctl" and "journalctl" all the time was a good
> idea I have no clue. Commands that are used often should be short. So
> I have aliased them to "sc" and "jc".
>
> The option to have an early start / late shutdown root debug shell is
> also extremely valuable when debugging startup and shutdown problems.

So what you are saying is that it was NOT actually ready for prime time
when it was released. Which many people complained about. It was a
replay of pulseaudio, which also was not ready for prime time when released.

Both are quite a bit better now, after huge amounts of effort by lots of
people to fix the stupid design decisions made by LP, except that
nothing has been done for the journal logs being incomprehensible and
not available *unless systemd is running*...

G

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
----- Original Message -----
> From: "R. G. Newbury" <newbury@mandamus.org>

> So what you are saying is that it was NOT actually ready for prime time
> when it was released. Which many people complained about. It was a
> replay of pulseaudio, which also was not ready for prime time when released.
>
> Both are quite a bit better now, after huge amounts of effort by lots of
> people to fix the stupid design decisions made by LP, except that
> nothing has been done for the journal logs being incomprehensible and
> not available *unless systemd is running*...

So you can't even look at the syslog to see why systemd broke, if it breaks?

Yeah; total non-starter.

Cheers,
-- jra
--
Jay R. Ashworth Baylink jra@baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://www.bcp38.info 2000 Land Rover DII
St Petersburg FL USA BCP38: Ask For It By Name! +1 727 647 1274
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Wed, 16 Dec 2020 21:38:49 -0500, you wrote:

>On 2020-12-16 4:31 a.m., Stephen Worthington wrote:
>> On Wed, 16 Dec 2020 04:25:09 +0000 (UTC), you wrote:
>
>>> No, why should I be bitter, just because some random out of nowhere obsoleted
>>> in about 3 years what I'd spent 30 years getting good at? No motivation there
>>> at all...
>>
>> You might want to reconsider that a little. I started out very
>> sceptical about systemd. And I still not a fan of the "one systemd to
>> rule them all" concept. But I have now used systemd quite a bit and
>> so far I have found that using systemd to run things is dramatically
>> better than init scripts. When you had to write an init script, that
>> was a mini-project on its own getting it to do everything needed - it
>> took ages. Using systemd to start a program is usually easy - just
>> add the options you want and it often works first time. And a huge
>> plus is that the program does not need to be written with a daemon
>> mode - in fact, running it as a daemon takes more effort with systemd
>> than running it as a normal program. I do not like the logs going
>> into journals so much though - that makes it difficult to access them
>> when booted from a live USB or PXE image to do repairs or discover why
>> things went wrong.
>>
>> Over time systemd has got better too, with some of the niggly little
>> things fixed by new options. I really like just being able to now do
>> "systemctl edit" to create a new override file. And some things I
>> hate are things I can fix myself. Why on earth they thought that
>> having to type "systemctl" and "journalctl" all the time was a good
>> idea I have no clue. Commands that are used often should be short. So
>> I have aliased them to "sc" and "jc".
>>
>> The option to have an early start / late shutdown root debug shell is
>> also extremely valuable when debugging startup and shutdown problems.
>
>So what you are saying is that it was NOT actually ready for prime time
>when it was released. Which many people complained about. It was a
>replay of pulseaudio, which also was not ready for prime time when released.
>
>Both are quite a bit better now, after huge amounts of effort by lots of
>people to fix the stupid design decisions made by LP, except that
>nothing has been done for the journal logs being incomprehensible and
>not available *unless systemd is running*...
>
>G

Nothing as big and complex as systemd would ever be expected to be
perfect on first release. It worked well when I first met it, which
was not what I expected, and the later fixes and refinements were
welcome. Yes, the journal logs problem is not something I like, but I
can live with it. If you have to access the journals from a USB or
DVD or PXE live boot, you can, it is just really annoying. I normally
set up my PCs so that they have two boot partitions, one for the main
system and one for doing repairs and maintenance. That helps quite a
bit, just as it helped with init script problems.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Thu, 17 Dec 2020 02:48:15 +0000 (UTC), you wrote:

>----- Original Message -----
>> From: "R. G. Newbury" <newbury@mandamus.org>
>
>> So what you are saying is that it was NOT actually ready for prime time
>> when it was released. Which many people complained about. It was a
>> replay of pulseaudio, which also was not ready for prime time when released.
>>
>> Both are quite a bit better now, after huge amounts of effort by lots of
>> people to fix the stupid design decisions made by LP, except that
>> nothing has been done for the journal logs being incomprehensible and
>> not available *unless systemd is running*...
>
>So you can't even look at the syslog to see why systemd broke, if it breaks?
>
>Yeah; total non-starter.

In Ubuntu syslog still exists, as does kern.log. But, as before
systemd, there are things that are not in syslog but in individual log
files. And now some of those are only available as systemd journals -
it depends on the particular program and what options are used with
it. And systemd's output is usually only in journal files. Which you
can access externally by booting a live USB/DVD/PXE image using a
similar version of systemd and using journalctl from there, but it is
a pain. However, there are various ways of debugging systemd problems
that do not need a live boot. The one I use normally is to enable an
early start / late stop root console on Ctrl-Alt-F9 and use that to do
systemd commands when the system fails to boot. That also works when
it fails to shut down properly. I find that is easier to use than
what you used to have to do with init scripts. And in Ubuntu 20.04,
systemd seems to be better set up so that you do not get boot failures
that you did with earlier versions. They have got the timeouts and
dependencies better organised. And if you are using a fast NVMe SSD,
the parallelism of boot up is wonderful - the boot times are very
fast.

So, yes, systemd is different. There is a learning curve, but it is
not too bad as the documentation is quite good and there is plenty of
help on the net. Yes, systemd does have some annoyances. But its
advantages far outweigh its disadvantages. I would not want to ever
go back to init scripts - they are very, very painful.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/15/20 3:14 PM, R. G. Newbury wrote:
> On 2020-12-15 2:39 a.m., Bob Long wrote:
>> Ben wrote on 14/12/20 6:24 pm:
>>> Hey all,
>>>
>>> I figured I'd ask here because the main goals of updating my server
>>> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
>>> going to be what CentOS was...
>>>
>>> I'm wondering who is using what for their home servers for MythTV
>>> (and Plex) on the same box.
>>>
>>> I also use desktop apps on this same system as well as run some
>>> VirtualBox VMs (Windows and Raspbian)
>>>
>>> So with that -- I'd like to hear from the group what people have
>>> been happy with that's LTS-ish like CentOS was.
>
> I have been running mythtv on Fedora since Fedora 4. Until myth v.28 I
> had always compiled from master as originally there were no good
> repos, and then because it was easier for testing the imon kernel
> module (I was an alpha level tester: code by Jarrod Wilson).
> As a bit of a lark, I tried rpmfusion at v28. No problems (only a
> slight loss of flexibility in removing extensions I did not want:
> slight size increase as a result but irrelevant really).
>
> Fedora uses the same structural setup as RHEL and Centos, so
> everything will be exactly where you expect it to be.
> On the odd occasion I find myself delving into a Ubuntu based setup I
> am always slightly lost as to where things are! Not a big deal, but we
> do get used to where things are located. Like getting in a rental car
> and trying to find the windshield wipers in the dark. On the upside,
> you will *not* have to learn new names for any of the programs or
> prerequisite libraries you want to install.
>
> One of the recent Fedora kernels was named as a LTS if that is a
> concern. If your box is a standalone BE/FE then that hardly matters. I
> have a mythbox running Fedora 28. It's not obsolete although the OS is
> old.
>
> Moving up to Fedora 32 or 33 will give you a BIG jump in the kernel.
> Although some denigratre Fedora, it's "cutting edge" is actually
> incredibly stable for something like mythtv.

I, too, have used Fedora since FC4.  Upgrading every 6 months is a bit
much, so I get everything working, then leave it alone until I need the
new technology and then start with a fresh install.  I use CentOS at
work, but sounds like that may be changing soon. But as Geoff points
out, it's nice knowing where everything is.

That said, non-Ubuntu distros may not fit into the Ubuntu model and
require a bit more knowledge that I only learned recently when V31
forced upgrading to XMLTV format for listings.  Ubuntu (and others?)
assume a real mythtv user, with login abilities and privileges and, most
importantly, a home directory where the mythtv user can place
configuration files that are accessible to mythbackend running as user
mythtv.  mythtvsetup is run as user mythtv, as well.  Fedora, being a
RedHat descendant, is more server-like and services (mythbackend) run as
non-login users with user mythtv's home directory in /var/home and
configuration in /etc.  This makes setting up the XMLTV stuff a little
different than procedures described in most of the available
documentation. Once you understand that and know what structure the
MythTV apps expect, it's easy to make the Fedora structure fit into the
Ubuntu mold.

Dave D.




_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
I should perhaps comment that the Death of CentOS may have been 'greatly
exaggerated' with el7 support still supposedly available until 2024.

I'm running MythTV master in an el7-near-clone, although that does
entail quite a lot of hoop-jumping and use of alternative repos. I note
that the MythTV test builds for el7, which probably used vanilla CentOS
7 and were routinely failing, have now been discontinued.

Much of the computing in the particle physics community, in which
experiments often have overall lives of many years, has been built
around el variants. Of course there isn't much emphasis on TV hardware,
and general availability might not be automatic.

Here's the text of an announcement on the Scientific Linux users' list
today:
> CERN and Fermilab acknowledge the recent decision to shift focus
from CentOS Linux to CentOS Stream, and the sudden change of the end of
life of the CentOS 8 release. This may entail significant consequences
for the worldwide particle physics community. We are currently
investigating together the best path forward. We will keep you informed
about any developments in this area during Q1 2021.

John P




_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
Stephen Worthington wrote:
> On Wed, 16 Dec 2020 04:25:09 +0000 (UTC), you wrote:
>
> >No, why should I be bitter, just because some random out of nowhere obsoleted
> >in about 3 years what I'd spent 30 years getting good at? No motivation there
> >at all...
>
> You might want to reconsider that a little. I started out very
> sceptical about systemd. And I still not a fan of the "one systemd to
> rule them all" concept. But I have now used systemd quite a bit and
> so far I have found that using systemd to run things is dramatically
> better than init scripts.

Except -- and this is actually really big -- using daemontools /
runit / supervisor / similar init systems are also much better
than both sysvinit and systemd. And all of those
daemontools-style systems offer smooth integration with the
PID=1 portion of sysvinit, and let you move over services one at
a time.

The objection is not "systemd isn't better than sysvinit". The
objection is "systemd isn't enough better than sysvinit to put
up with the crap that goes along with it". And, also: "systemd
wants to take over everything, making things worse along the
way".


> When you had to write an init script, that
> was a mini-project on its own getting it to do everything needed - it
> took ages.

Here's a typical daemontools-style daemon startup:

--
#!/bin/bash
USER=minecraft
PORT=33055
MAXMEM=2048M
STARTMEM=1024M

cd /opt/minecraft
exec 2>&1
exec setuidgid $USER /usr/bin/java -Xmx$MAXMEM -Xms$STARTMEM -jar \
/opt/minecraft/server.jar --nogui --port $PORT
--

That's going to keep one copy of the minecraft server running,
restarting it if it dies, until the system shuts down or it gets
a signal telling it to stop the daemon.

> I do not like the logs going
> into journals so much though - that makes it difficult to access them
> when booted from a live USB or PXE image to do repairs or discover why
> things went wrong.

daemontools-style systems pipe all the output of their programs
into ordinary timestamped, auto-rotated logfiles -- but you can
change that, if you want.

daemontools was written in 2001. runit, a mostly-compatible
reimplementation which adds a PID=1 init, was written in 2004 and has
had a very stable release for the last 6 years. There's an
actively maintained full init system with the same properties
called nosh: https://jdebp.eu/Softwares/nosh/


Every single one of these is simpler to understand, easier to
debug, and less omnivorous than systemd.

-dsr-
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
Yes I know SysVInit has it's problems. But for most people it does the job just fine.
And there are alternatives that deal with those problems without applying a scorched earth policy.
And which are both simpler and proven.


Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:

> When you had to write an init script, that was a mini-project on its own

It doesn't have to be

> getting it to do everything needed - it took ages. Using systemd to start a program is usually easy - just
> add the options you want and it often works first time.

Sorry, you lost me with "usually" and "often". That's not good enough.
With an init script it will always work for the simple reason that you have complete control over what it does. What systemd has done is abstract a lot of what normally ends up in init scripts into it's internal code - meaning that if what they offer doesn't do exactly what you want, then it's "somewhat harder" to tweak things.
Just to be clear what I'm pointing out here - systemd doesn't actually remove any of that complexity (especially when it comes to service startup sequencing), it tucks it away where you cannot get at it when that level of control is actually what you need.

But apart from that, a major objection I have is the way it's being forced on people regardless - and hence needing whole new distributions (e.g. Devuan) in order to keep other choices available. The "we don't care if SysVInit works for you, we aren't going to support it - because systemd" mentality - backed up by a policy of changing stuff in such a way that makes life harder for devs who do want to keep that choice.

And not to mention, the downright arrogance of a lead developer who has a clear policy of break whatever suits him, whenever it suits him, and leave others to work around whatever it is he's broken this week.

lastly, do you really want to trust your system, your PID1 which **WILL** bring down your whole system in a very messy way if/when it goes wrong, to coders with such good skills that Linus told at least one of them to "f-off and stop putting sh*t in the kernel" ?

If I wanted a system where things changed "because we wanted to change them" for no good reason, where users are alpha testers for buggy code, where large parts of the system had been morphed into a hairball of interdependent code, where user input isn't welcome, well I'd be running Windows. But I don't, which is why I run Devuan (or pre-systemd Debian for those that still need major upgrades) on my servers.



Dan Ritter <dsr-myth@randomstring.org> wrote:

> Except -- and this is actually really big -- using daemontools /
> runit / supervisor / similar init systems are also much better
> than both sysvinit and systemd. And all of those
> daemontools-style systems offer smooth integration with the
> PID=1 portion of sysvinit, and let you move over services one at
> a time.
>
> The objection is not "systemd isn't better than sysvinit". The
> objection is "systemd isn't enough better than sysvinit to put
> up with the crap that goes along with it". And, also: "systemd
> wants to take over everything, making things worse along the
> way".

Well that's a lot better put than mine.



Simon

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Fri, 18 Dec 2020 10:51:28 +0000, you wrote:

>Yes I know SysVInit has it's problems. But for most people it does the job just fine.
>And there are alternatives that deal with those problems without applying a scorched earth policy.
>And which are both simpler and proven.
>
>
>Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:
>
>> When you had to write an init script, that was a mini-project on its own
>
>It doesn't have to be
>
>> getting it to do everything needed - it took ages. Using systemd to start a program is usually easy - just
>> add the options you want and it often works first time.
>
>Sorry, you lost me with "usually" and "often". That's not good enough.
>With an init script it will always work for the simple reason that you have complete control over what it does. What systemd has done is abstract a lot of what normally ends up in init scripts into it's internal code - meaning that if what they offer doesn't do exactly what you want, then it's "somewhat harder" to tweak things.
>Just to be clear what I'm pointing out here - systemd doesn't actually remove any of that complexity (especially when it comes to service startup sequencing), it tucks it away where you cannot get at it when that level of control is actually what you need.

You completely missed my point. When I said "usually" and "often" I
meant the that the very first time you try the .service file you have
just written, it works. That never happens with init scripts, except
when you get to copy an existing one. Init scripts are too complex.

And systemd does indeed reduce the complexity of service startup
sequencing - it does that by allowing you to specify the relationships
you want and let it do the actual sequencing. If I need some special
control, that is usually easy to do by writing a separate .service
file and having things start only after that .service has started
successfully.

Have you actually tried using systemd and had a situation where you
needed to do something that was simple in an init script and could not
be done in systemd? I certainly have not. The init scripts I have
worked on generally did only fairly standard things, and took a lot of
code to do it. Mode code generally equals more bugs, even if they are
just simple typos. If you are complaining that systemd is hiding
things because you have seen other people complain about that, then
please just try systemd for yourself and you will likely find that it
is not actually a problem.

>But apart from that, a major objection I have is the way it's being forced on people regardless - and hence needing whole new distributions (e.g. Devuan) in order to keep other choices available. The "we don't care if SysVInit works for you, we aren't going to support it - because systemd" mentality - backed up by a policy of changing stuff in such a way that makes life harder for devs who do want to keep that choice.

Yes, I can see your point about it being forced on people. But the
people making that choice to put it into the distros they control have
actually evaluated systemd and think it is better than what they had
before.

>And not to mention, the downright arrogance of a lead developer who has a clear policy of break whatever suits him, whenever it suits him, and leave others to work around whatever it is he's broken this week.

I am afraid I have not been following the politics of systemd, just
working with it in Ubuntu and a little Debian. I have not had any
instances of things being broken and my having to fix them after they
were previously working. I have had it the other way around where
things did not actually work as documented, so I had to do a
workaround, and then in a new version the problem was fixed. I once
had that happen where I found a problem one day and the next day when
I sat down to fix it, there was a new version of systemd out that had
just fixed it. I was scratching my head for a while about that, until
I remembered that I had seen new systemd packages installing.

>lastly, do you really want to trust your system, your PID1 which **WILL** bring down your whole system in a very messy way if/when it goes wrong, to coders with such good skills that Linus told at least one of them to "f-off and stop putting sh*t in the kernel" ?

Again, I can only say from my experience that I have not had PID 1
die. Systemd has been solid for me. I have never looked at the code
of systemd or any of the older PID 1 systems when I was running them.
I had no need to, they just worked. But until systemd, I always hated
having to do anything to do with getting a service working - it was
always trouble. With systemd, now that I have learnt enough about it,
I am quite happy to write or modify unit files. It does not take long
and then works nicely.

I am guessing that because my normal use of systemd is in Ubuntu and
the Ubuntu developers do quality assurance on their core packages, if
there were nasty new problems in new systemd updates, they never got
to me as Ubuntu never released that version, or patched it themselves.

>If I wanted a system where things changed "because we wanted to change them" for no good reason, where users are alpha testers for buggy code, where large parts of the system had been morphed into a hairball of interdependent code, where user input isn't welcome, well I'd be running Windows. But I don't, which is why I run Devuan (or pre-systemd Debian for those that still need major upgrades) on my servers.

That is fine, you can make your own choices. But I do think you
actually should really try a systemd based distro for a bit, before
making that choice. It really does work quite well. For me, init
scripts were just a bad experience. Systemd is, of course, completely
different to init scripts. Its philosophy is utterly different - it
is a paradigm shift from init scripts. And it does have a learning
curve. But once you get going, you do not want to ever go back to
init scripts.

Having your init script skills obsoleted is a bit of a pain, but that
is life. I did at one point early in my career have to write a couple
of COBOL programs for a mainframe. And some FORTRAN, for a mainframe
and a minicomputer. Then I wrote a lot of different sorts of
assembler for many years before C became available and viable for
embedded processors. I am very happy to have better programming
languages to work with than COBOL and FORTRAN. My considerable
assembler skills have not been used for quite a few years now, but
that is generally a good thing. I am much more productive writing C
and C++ for embedded processors. Systemd versus init scripts is much
the same thing. I can be tremendously more productive writing a
systemd unit in half an hour versus messing around all day getting an
init script working properly.

>
>Dan Ritter <dsr-myth@randomstring.org> wrote:
>
>> Except -- and this is actually really big -- using daemontools /
>> runit / supervisor / similar init systems are also much better
>> than both sysvinit and systemd. And all of those
>> daemontools-style systems offer smooth integration with the
>> PID=1 portion of sysvinit, and let you move over services one at
>> a time.
>>
>> The objection is not "systemd isn't better than sysvinit". The
>> objection is "systemd isn't enough better than sysvinit to put
>> up with the crap that goes along with it". And, also: "systemd
>> wants to take over everything, making things worse along the
>> way".
>
>Well that's a lot better put than mine.

Actually, I would have to say that systemd is so much better than init
scripts that for me it easily justifies having to live with the
journals hiding the logging away.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:

> You completely missed my point. When I said "usually" and "often" I
> meant the that the very first time you try the .service file you have
> just written, it works.

No I got your point exactly. And when it doesn't - you have this "black box" you can't debug.


> Yes, I can see your point about it being forced on people. But the
> people making that choice to put it into the distros they control have
> actually evaluated systemd and think it is better than what they had
> before.

Not in the case of Debian.
The vote was (under any rational analysis of the strange system they imposed) against having systemd as anything more than an option people could choose to use. But by "creative accounting" it was declared as "lets go all systemd".

> And not to mention, the downright arrogance of a lead developer who has a clear policy of break whatever suits him, whenever it suits him, and leave others to work around whatever it is he's broken this week.
>
> I am afraid I have not been following the politics of systemd, just
> working with it in Ubuntu and a little Debian. I have not had any
> instances of things being broken and my having to fix them after they
> were previously working. I have had it the other way around where
> things did not actually work as documented, so I had to do a
> workaround, and then in a new version the problem was fixed.

You've missed my point. LP is quite happy to declare yet that another bit of the system needs systemd'ising and will go off and break stuff (elsewhere in the system) that had been working fine. Most reports of "you broke X" are met with "but X is a bad way to do it, you'll have to fix the other stuff to work with our new better way". That is the main reason behind Linus removing rights to submit kernel code from some of the systemd developers - he just got fed up with fixing stuff that their "improvements" broke, though he wasn't as diplomatic as that ! https://www.theregister.com/2014/04/05/torvalds_sievers_dust_up/

Note that is is (just) one of the many reasons people dislike systemd. Had certain people been honest up-front then it would never have been adopted by all the distros it has. But certain groups lied - yes I say they lied (whether by act or by omission) because from the outset they always said "it's just an init system, you don't have to use it". But that soon changed (not soon enough to avoid the lock in) when it quickly started on an EEE* cycle of declaring something else broken and needing fixing. And of course, these new "better" replacements are all closely intertwined with systemd in a manner that is the antithesis of the Unix philosophy of small modular tools that can be independently swapped out to use the one that's the best fit for you needs.

* Embrace, Extend, Extinguish


> That is fine, you can make your own choices.

And that's where the argument breaks down. From the start LP and his friends have said that - but they've put a lot of effort into removing those choices. Name a "mainstream" distro that doesn't have systemd as the default (or only) option AND where you can replace it with a different init without the system being terminally broken ?
Debian said they'd keep the choice, but because supporting systemd AND retaining compatibility with anything is now "non trivial" (c.f. the noted above about breaking stuff), Debian is effectively unusable without systemd because too many packages depend on it. It can be done, with a lot of effort and compromises - but that's hardly a "choice" when the option are "it installs" and "it's horribly broken in many ways that you'll have to fix yourself". Many Debian maintainers have gone down the road of simply declaring any problem when not using systemd as "nothing to do with us".

There's some really clever and determined guys behind Devuan - and they struggle at times. Even Devuan has to compromise and every now and then we'll have a "discussion" when someone asks why we can't get rid of libsystemd0. The answer is that it would need more resources than Devuan has to remove all the gratuitous dependencies on it from packages - and keep vigilant for anything being slipped into it.

> But I do think you actually should really try a systemd based distro for a bit, before making that choice.


Well whenever I do decide I want something better than SysVInit, I have choices thanks to Devuan - such as runit or rc which some other Devuan users are running. I might give one of those a go - but systemd just ticks all the wrong boxes for anything I would want to try.


Anyway, this is getting waaay off topic for here. Lets just agree that if you are happy with it then fine - I won't be touching with the proverbial bargepole.


Simon

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sat, Dec 19, 2020 at 07:04:15PM +0000, Simon Hobson wrote:
> Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:
>
> > You completely missed my point. When I said "usually" and "often" I
> > meant the that the very first time you try the .service file you have
> > just written, it works.
>
> No I got your point exactly. And when it doesn't - you have this "black box" you can't debug.

Case in point is my systemd unit to start mythbackend. It appparently fails.
That's about all I have been able to get out of it. But after the system
boots, systemctl restart mythbackend gets it started just fine.

Now, perhaps I'm missing some dependency. I had thought it was probably the
database, so I added /etc/systemd/system/mythbackend.service.d/local.conf
(I'm using the standard fedora distributed mythbackend.service file) with

[Install]
Requires=mariadb.service
After=mariadb.service

And, just for good measure, I added:

[Service]
Restart=always
RestartSec=3

It would seem that even if it fails after reboot, the Restart directive
would make systemd re-try every 3 seconds. Yet, mythbackend fails to
start up the first time and systemd gives up.

So, I've spent enough time trying to figure out why systemd isn't doing its
job and now I just manually start it.

Progress...

marcus hall
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sat, 19 Dec 2020 14:33:10 -0700, you wrote:

>On Sat, Dec 19, 2020 at 07:04:15PM +0000, Simon Hobson wrote:
>> Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:
>>
>> > You completely missed my point. When I said "usually" and "often" I
>> > meant the that the very first time you try the .service file you have
>> > just written, it works.
>>
>> No I got your point exactly. And when it doesn't - you have this "black box" you can't debug.
>
>Case in point is my systemd unit to start mythbackend. It appparently fails.
>That's about all I have been able to get out of it. But after the system
>boots, systemctl restart mythbackend gets it started just fine.
>
>Now, perhaps I'm missing some dependency. I had thought it was probably the
>database, so I added /etc/systemd/system/mythbackend.service.d/local.conf
>(I'm using the standard fedora distributed mythbackend.service file) with
>
>[Install]
>Requires=mariadb.service
>After=mariadb.service
>
>And, just for good measure, I added:
>
>[Service]
>Restart=always
>RestartSec=3
>
>It would seem that even if it fails after reboot, the Restart directive
>would make systemd re-try every 3 seconds. Yet, mythbackend fails to
>start up the first time and systemd gives up.
>
>So, I've spent enough time trying to figure out why systemd isn't doing its
>job and now I just manually start it.
>
>Progress...
>
>marcus hall

How about giving us a bit more detail about the problem so we can
help? The output into mythbackend.log and the output of "journalctl
-eu mythbackend" would be a start. And "systemctl cat mythbackend",
so we can see exactly what the unit files are.

And how you are running your MythTV - do you have it set up as
accessible to other frontends, or is it using localhost only?

My chief suspects from your description are that mythbackend is
running before either the database is up or networking is up. But in
either case, if it is set to log to syslog or mythbackend.log, there
should be error messages to tell you why it shut down again. Since
you have added the Requires/After for mariadb that pretty much means
it is going to be networking that is not up.

Note that mariadb.service is normally aliased as mysql.service, so
when you are using MariaDB, any Wants/After lines for mysql will also
work with MariaDB. If you check mythbackend.service, you should find
that it has Wants/After=mysql already in it.

Using "Restart=always" can be a big problem when you run up against a
new bug in an update of a program that causes it to crash at startup.
It will then keep on restarting and filling up the logs, until the
logs fill the partition and the system dies. So it is normally best
to set a maximum number of retries. I would suggest that you add
something like:

[Service]
StartLimitBurst=10
StartLimitInterval=60s

to prevent that.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sun, Dec 20, 2020 at 02:39:17PM +1300, Stephen Worthington wrote:
> How about giving us a bit more detail about the problem so we can
> help? The output into mythbackend.log and the output of "journalctl
> -eu mythbackend" would be a start. And "systemctl cat mythbackend",
> so we can see exactly what the unit files are.

I've pretty much given up trying to get systemd to work. This was a year or
two ago and my recollection matches what Geoff had posted that mythbackend
wasn't starting because mariadb wasn't really ready. That's your main
guess as well. I'm not particularly concerned about that, but rather
why systemd doesn't try to run mythbackend again.

> Using "Restart=always" can be a big problem when you run up against a
> new bug in an update of a program that causes it to crash at startup.
> It will then keep on restarting and filling up the logs, until the
> logs fill the partition and the system dies. So it is normally best
> to set a maximum number of retries. I would suggest that you add
> something like:
>
> [Service]
> StartLimitBurst=10
> StartLimitInterval=60s
>
> to prevent that.

I may try this sometime, although it's addressing an issue of systemd
getting run away restarting mythbackend, which is the opposite to my
issue. The mythtv system seems to get rebooted once or twice a year,
and I've just resigned myself to having to manually start mythbackend
whenever that happens. It's the path of least resistance at this point.

marcus hall
marcus@tuells.org
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Wed, 23 Dec 2020 17:10:43 -0700, you wrote:

>On Sun, Dec 20, 2020 at 02:39:17PM +1300, Stephen Worthington wrote:
>> How about giving us a bit more detail about the problem so we can
>> help? The output into mythbackend.log and the output of "journalctl
>> -eu mythbackend" would be a start. And "systemctl cat mythbackend",
>> so we can see exactly what the unit files are.
>
>I've pretty much given up trying to get systemd to work. This was a year or
>two ago and my recollection matches what Geoff had posted that mythbackend
>wasn't starting because mariadb wasn't really ready. That's your main
>guess as well. I'm not particularly concerned about that, but rather
>why systemd doesn't try to run mythbackend again.
>
>> Using "Restart=always" can be a big problem when you run up against a
>> new bug in an update of a program that causes it to crash at startup.
>> It will then keep on restarting and filling up the logs, until the
>> logs fill the partition and the system dies. So it is normally best
>> to set a maximum number of retries. I would suggest that you add
>> something like:
>>
>> [Service]
>> StartLimitBurst=10
>> StartLimitInterval=60s
>>
>> to prevent that.
>
>I may try this sometime, although it's addressing an issue of systemd
>getting run away restarting mythbackend, which is the opposite to my
>issue. The mythtv system seems to get rebooted once or twice a year,
>and I've just resigned myself to having to manually start mythbackend
>whenever that happens. It's the path of least resistance at this point.
>
>marcus hall
>marcus@tuells.org

I installed Fedora 33 in a virtual machine a few days ago, but have
not got MythTV installed properly yet - there seems to be a problem
with the RPMFusion packages and they did not set up the
/etc/mythtv/config.xml file and did not create the database. I did
notice that there is a warning in the mythbackend.service file:

# MariaDB seems to have a systemd related bug and tells systemd that
it is
# ready to accept connections before it really is. If you have this
problem
# try uncommenting the following lines:
# Restart=on-failure
# StartLimitBurst=5
# StartLimitInterval=1

which seems to be about the problem you are experiencing. So I am
guessing that mariadb is telling systemd it is up when it is not yet
able to be connected to via networking - it probably only has its Unix
socket connection up, and networking is still to come up properly.
This does not happen in Ubuntu, so I think this is a Fedora bug. In
any case, my guess is that when mythbackend.service starts
mythbackend, it is unable to connect to the database and shuts down
again. Looking at the mythbackend.log file or the output of
"journalctl -eu mythbackend" should tell if that is the case. If you
then uncomment those lines in mythbackend.service, or better, create
an override file using "sudo systemctl edit mythbackend", then
mythbackend will be restarted up to 5 times fairly rapidly. But if
networking is still not up and it still can not connect to mariadb,
then mythbackend.service will fail and systemd will not keep on trying
to restart mythbackend. I am guessing that the default values for
StartLimitBurst and StartLimitInterval on Fedora are such that the
mythbackend restarts all happen before networking is actually up, so
mythbackend is never restarted after networking is finally up.

So the above settings are not a good workaround at all. It would be
better to use something like this:

Restart=on-failure
RestartSec=5
StartLimitBurst=5
StartLimitInterval=30

What that does is to change the RestartSec from its default of 100 ms,
so that restarts are done only very 5 seconds. Then it increases the
StartLimitInterval to account for that change which means that 5
restarts done at 5 s intervals takes 25 seconds, then mythbackend
needs time to start.

However, as with all race conditions, it is never a good idea to use
delays to fix them. The proper fix would be to get
mythbackend.service to actually wait for networking to be up before it
allows mythbackend to be started. One way to do that is to use my fix
that works on Ubuntu for this when people are using network tuners or
external frontends. If you are not set up to use network tuners or
external frontends, you would just set the ping target to be localhost
(127.0.0.1). I am going to try this out as soon as I can work out how
to get the mythtv packages to install correctly.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Thu, Dec 24, 2020 at 04:30:47PM +1300, Stephen Worthington wrote:
> # MariaDB seems to have a systemd related bug and tells systemd that
> it is
> # ready to accept connections before it really is. If you have this
> problem
> # try uncommenting the following lines:
> # Restart=on-failure
> # StartLimitBurst=5
> # StartLimitInterval=1

Yeah, that's what Geoff had pointed out..

> So the above settings are not a good workaround at all. It would be
> better to use something like this:
>
> Restart=on-failure
> RestartSec=5
> StartLimitBurst=5
> StartLimitInterval=30

I had at the time installed an override file with Restart=always and
RestartSec=3 in it. As you pointed out, that might flood things if
mythbackend started failing rapidly, but it seemed like a "good enough"
fix. But, systemd fires up mythbackend once and then leaves it in a
failed state.

If mythbackend dies for some other reason, I would really want it to be
restarted. Like the old-school inittab. And systemd's configuration
clearly implies that it is intended to do this, but I was unable to find
any clue from systemd as to why it was ignoring the Restart setting.
If it was something that could be broken apart into pieces, I could
easily instrument pieces, or run strace on it, or something to get an
idea of why different paths are taken, but systemd is too monolithic
and impenetrable to yeild to such techniques. So I gave up.

marcus hall
marcsu@tuells.org
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On 24/12/2020 04:06, marcus hall wrote:
>
> I had at the time installed an override file with Restart=always and
> RestartSec=3 in it. As you pointed out, that might flood things if
> mythbackend started failing rapidly, but it seemed like a "good enough"
> fix. But, systemd fires up mythbackend once and then leaves it in a
> failed state.
>
That may appear to be the case but not always. Sometimes it shows you the "failed state" even though
a subsequent attempt has actually got $PROGRAM running properly. Sometimes the journal has rolled
over between attempts and what you are seeing is the last entry of the previous journal.

Ask me how I know...

I always do a "ps -ef" to see what is /actually/ running in these circumstances. systemd fights
tooth and nail to avoid showing you any meaningful information.

--

Mike Perkins

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sat, 19 Dec 2020 at 21:34, marcus hall <marcus@equinox.tuells.org> wrote:

>
>
> Case in point is my systemd unit to start mythbackend. It appparently
> fails.
> That's about all I have been able to get out of it. But after the system
> boots, systemctl restart mythbackend gets it started just fine.
>
>
>
Me and at least one other person have run into an issue recently where the
backend starts but comes to a halt after a few seconds.

The backend is apparently still running (systemctrl reports it as active)
but there's nothing being written to the logfile (even at debug level) and
it doesn't accept connections.

The halt coincides with the backend's first connection to the capture cards
and my uneducated guess it that the backend is waiting forever for some
response from one of my cards.

I've worked around the issue by changing some of the card parameters on the
Capture Card Setup page and all appears OK now.

I don't know what your issue is but the symptoms fit the problem I was
having, which were not systemd related because as far it was concerned
mythbackend had started and was running.

It's always worth looking at the backend log.
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On 2020-12-23 10:30 p.m., Stephen Worthington wrote:
> On Wed, 23 Dec 2020 17:10:43 -0700, you wrote:
>
>> On Sun, Dec 20, 2020 at 02:39:17PM +1300, Stephen Worthington wrote:
>>> How about giving us a bit more detail about the problem so we can
>>> help? The output into mythbackend.log and the output of "journalctl
>>> -eu mythbackend" would be a start. And "systemctl cat mythbackend",
>>> so we can see exactly what the unit files are.
>>
>> I've pretty much given up trying to get systemd to work. This was a year or
>> two ago and my recollection matches what Geoff had posted that mythbackend
>> wasn't starting because mariadb wasn't really ready. That's your main
>> guess as well. I'm not particularly concerned about that, but rather
>> why systemd doesn't try to run mythbackend again.

Because it was not told to try again (Restart=Always) or it tried to,
the number of times it was told to try (all in a very short time,
usually), and those attempts also failed.

<snip>
> So the above settings are not a good workaround at all. It would be
> better to use something like this:
>
> Restart=on-failure
> RestartSec=5
> StartLimitBurst=5
> StartLimitInterval=30
>
> What that does is to change the RestartSec from its default of 100 ms,
> so that restarts are done only very 5 seconds. Then it increases the
> StartLimitInterval to account for that change which means that 5
> restarts done at 5 s intervals takes 25 seconds, then mythbackend
> needs time to start.
>
> However, as with all race conditions, it is never a good idea to use
> delays to fix them. The proper fix would be to get
> mythbackend.service to actually wait for networking to be up before it
> allows mythbackend to be started. One way to do that is to use my fix
> that works on Ubuntu for this when people are using network tuners or
> external frontends. If you are not set up to use network tuners or
> external frontends, you would just set the ping target to be localhost
> (127.0.0.1). I am going to try this out as soon as I can work out how
> to get the mythtv packages to install correctly.


The [Unit] section of my mythbackend.service file has this:
[Unit]
Description=MythTV backend service
After=network-online.target mariadb.service mysqld.service time-sync.target
# Uncomment the following line if you will be using the mythweb plugin
on the
# same system as mythbackend.
Wants=httpd.service

That set of 'After' requirements will exactly fix the startup problem
which it appears you are experiencing. Stephen is correct about Restart,
but that does not deal with the real problem, which is that your system
is attempting to start mythbackend when the dependencies are not yet
ready. The Restart settings are a parallel workaround, but not
guaranteed to work in all cases (such as an external mariadb box, which
is slow to respond, causing the mysql client on the mythbox to take a
long time... or even a login error between the mysql client box and the
mysql server...)
Geoff





_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Thu, 24 Dec 2020 15:58:17 -0500, you wrote:

>On 2020-12-23 10:30 p.m., Stephen Worthington wrote:
>> On Wed, 23 Dec 2020 17:10:43 -0700, you wrote:
>>
>>> On Sun, Dec 20, 2020 at 02:39:17PM +1300, Stephen Worthington wrote:
>>>> How about giving us a bit more detail about the problem so we can
>>>> help? The output into mythbackend.log and the output of "journalctl
>>>> -eu mythbackend" would be a start. And "systemctl cat mythbackend",
>>>> so we can see exactly what the unit files are.
>>>
>>> I've pretty much given up trying to get systemd to work. This was a year or
>>> two ago and my recollection matches what Geoff had posted that mythbackend
>>> wasn't starting because mariadb wasn't really ready. That's your main
>>> guess as well. I'm not particularly concerned about that, but rather
>>> why systemd doesn't try to run mythbackend again.
>
>Because it was not told to try again (Restart=Always) or it tried to,
>the number of times it was told to try (all in a very short time,
>usually), and those attempts also failed.
>
><snip>
>> So the above settings are not a good workaround at all. It would be
>> better to use something like this:
>>
>> Restart=on-failure
>> RestartSec=5
>> StartLimitBurst=5
>> StartLimitInterval=30
>>
>> What that does is to change the RestartSec from its default of 100 ms,
>> so that restarts are done only very 5 seconds. Then it increases the
>> StartLimitInterval to account for that change which means that 5
>> restarts done at 5 s intervals takes 25 seconds, then mythbackend
>> needs time to start.
>>
>> However, as with all race conditions, it is never a good idea to use
>> delays to fix them. The proper fix would be to get
>> mythbackend.service to actually wait for networking to be up before it
>> allows mythbackend to be started. One way to do that is to use my fix
>> that works on Ubuntu for this when people are using network tuners or
>> external frontends. If you are not set up to use network tuners or
>> external frontends, you would just set the ping target to be localhost
>> (127.0.0.1). I am going to try this out as soon as I can work out how
>> to get the mythtv packages to install correctly.
>
>
>The [Unit] section of my mythbackend.service file has this:
>[Unit]
>Description=MythTV backend service
>After=network-online.target mariadb.service mysqld.service time-sync.target
># Uncomment the following line if you will be using the mythweb plugin
>on the
># same system as mythbackend.
>Wants=httpd.service
>
>That set of 'After' requirements will exactly fix the startup problem
>which it appears you are experiencing. Stephen is correct about Restart,
>but that does not deal with the real problem, which is that your system
>is attempting to start mythbackend when the dependencies are not yet
>ready. The Restart settings are a parallel workaround, but not
>guaranteed to work in all cases (such as an external mariadb box, which
>is slow to respond, causing the mysql client on the mythbox to take a
>long time... or even a login error between the mysql client box and the
>mysql server...)
>Geoff

My guess would be that time-sync.target is what is fixing things. That
means that networking has been up long enough for the ntp daemon to
exchange packets with at least one other time service. Which means
that external networking is up and actually working. The external
time service could be another box on the local network, but unless you
have set the ntp config for that, it will likely be Internet time
services.

In my Fedora 33 VM, I have mythbackend starting properly using an IPTV
tuner. Note that mythbackend does not actually test IPTV tuners
during startup, so mythbackend probably does not need networking to be
fully up (external IP addresses available) in order to start with this
config. Mythbackend does not fail and restart at all, and I have not
changed its systemd config. The /etc/mythtv/config.xml file is
currently:

<Configuration>
<UPnP>
<UDN>
<MediaRenderer></MediaRenderer>
</UDN>
</UPnP>
<Database>
<UserName>mythtv</UserName>
<PingHost>0</PingHost>
<Host>localhost</Host>
<DatabaseName>mythconverg</DatabaseName>
<Password>********</Password>
<Port>3306</Port>
</Database>
<WakeOnLan>
<Enabled>0</Enabled>
<SQLReconnectWaitTime>0</SQLReconnectWaitTime>
<SQLConnectRetry>5</SQLConnectRetry>
<Command>echo 'WOLsqlServerCommand not set'</Command>
</WakeOnLan>
</Configuration>

I had to create that manually by copying and exiting the config.xml
from my main Ubuntu MythTV box as the MythTV packages and mythtv-setup
failed to create it. Looking at the config.xml options, setting the
PingHost option might also be a good idea as it means that mythbackend
will try to ping the Host address before going any further trying to
connect to the database.

I still have to try with using the external IP address of the VM as
the database connection - that is where I think I will get problems.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On 2020-12-24 10:45 p.m., Stephen Worthington wrote:
> On Thu, 24 Dec 2020 15:58:17 -0500, you wrote:
>
>> On 2020-12-23 10:30 p.m., Stephen Worthington wrote:
>>> On Wed, 23 Dec 2020 17:10:43 -0700, you wrote:
>>>
>>>> On Sun, Dec 20, 2020 at 02:39:17PM +1300, Stephen Worthington wrote:
>>>>> How about giving us a bit more detail about the problem so we can
>>>>> help? The output into mythbackend.log and the output of "journalctl
>>>>> -eu mythbackend" would be a start. And "systemctl cat mythbackend",
>>>>> so we can see exactly what the unit files are.
>>>>
>>>> I've pretty much given up trying to get systemd to work. This was a year or
>>>> two ago and my recollection matches what Geoff had posted that mythbackend
>>>> wasn't starting because mariadb wasn't really ready. That's your main
>>>> guess as well. I'm not particularly concerned about that, but rather
>>>> why systemd doesn't try to run mythbackend again.
>>
>> Because it was not told to try again (Restart=Always) or it tried to,
>> the number of times it was told to try (all in a very short time,
>> usually), and those attempts also failed.
>>
>> <snip>
>>> So the above settings are not a good workaround at all. It would be
>>> better to use something like this:
>>>
>>> Restart=on-failure
>>> RestartSec=5
>>> StartLimitBurst=5
>>> StartLimitInterval=30
>>>
>>> What that does is to change the RestartSec from its default of 100 ms,
>>> so that restarts are done only very 5 seconds. Then it increases the
>>> StartLimitInterval to account for that change which means that 5
>>> restarts done at 5 s intervals takes 25 seconds, then mythbackend
>>> needs time to start.
>>>
>>> However, as with all race conditions, it is never a good idea to use
>>> delays to fix them. The proper fix would be to get
>>> mythbackend.service to actually wait for networking to be up before it
>>> allows mythbackend to be started. One way to do that is to use my fix
>>> that works on Ubuntu for this when people are using network tuners or
>>> external frontends. If you are not set up to use network tuners or
>>> external frontends, you would just set the ping target to be localhost
>>> (127.0.0.1). I am going to try this out as soon as I can work out how
>>> to get the mythtv packages to install correctly.
>>
>>
>> The [Unit] section of my mythbackend.service file has this:
>> [Unit]
>> Description=MythTV backend service
>> After=network-online.target mariadb.service mysqld.service time-sync.target
>> # Uncomment the following line if you will be using the mythweb plugin
>> on the
>> # same system as mythbackend.
>> Wants=httpd.service
>>
>> That set of 'After' requirements will exactly fix the startup problem
>> which it appears you are experiencing. Stephen is correct about Restart,
>> but that does not deal with the real problem, which is that your system
>> is attempting to start mythbackend when the dependencies are not yet
>> ready. The Restart settings are a parallel workaround, but not
>> guaranteed to work in all cases (such as an external mariadb box, which
>> is slow to respond, causing the mysql client on the mythbox to take a
>> long time... or even a login error between the mysql client box and the
>> mysql server...)
>> Geoff
>
> My guess would be that time-sync.target is what is fixing things. That
> means that networking has been up long enough for the ntp daemon to
> exchange packets with at least one other time service. Which means
> that external networking is up and actually working. The external
> time service could be another box on the local network, but unless you
> have set the ntp config for that, it will likely be Internet time
> services.
>
> In my Fedora 33 VM, I have mythbackend starting properly using an IPTV
> tuner. Note that mythbackend does not actually test IPTV tuners
> during startup, so mythbackend probably does not need networking to be
> fully up (external IP addresses available) in order to start with this
> config. Mythbackend does not fail and restart at all, and I have not
> changed its systemd config. The /etc/mythtv/config.xml file is
> currently:
>
> <Configuration>
> <UPnP>
> <UDN>
> <MediaRenderer></MediaRenderer>
> </UDN>
> </UPnP>
> <Database>
> <UserName>mythtv</UserName>
> <PingHost>0</PingHost>
> <Host>localhost</Host>
> <DatabaseName>mythconverg</DatabaseName>
> <Password>********</Password>
> <Port>3306</Port>
> </Database>
> <WakeOnLan>
> <Enabled>0</Enabled>
> <SQLReconnectWaitTime>0</SQLReconnectWaitTime>
> <SQLConnectRetry>5</SQLConnectRetry>
> <Command>echo 'WOLsqlServerCommand not set'</Command>
> </WakeOnLan>
> </Configuration>
>
> I had to create that manually by copying and exiting the config.xml
> from my main Ubuntu MythTV box as the MythTV packages and mythtv-setup
> failed to create it. Looking at the config.xml options, setting the
> PingHost option might also be a good idea as it means that mythbackend
> will try to ping the Host address before going any further trying to
> connect to the database.
>
> I still have to try with using the external IP address of the VM as
> the database connection - that is where I think I will get problems.

I may have missed it, but I don't think the OP ever stated whether this
was a BE/FE box, or an external FE, trying to talk to the BE. It makes a
difference in the config.xml...

Firstly, my config.xml file is basically similar to that above. I did a
thorough search to delete all copies except the one in /etc/mythtv/ so
as to avoid problems.
My config.xml differs in minor respects as it is set up to allow outside
access to the database:
<Host> is the IP address of the backend and mariadb server box.
Localhost is only useful on a BE/FE box, but NOT if you want access from
any other FE. The other items in that stanza are the login details for
the user from the particular FE, INTO the mariadb server on the <Host> box.
Of course, if that is not set, then the external FE will never connect.
Remember that although you may have a user mythtv on each box (or even
your phone!) it is a different user for the mariadb access. Each
user/computer combo has to be authorized on the mariadb server.

( OT: Gosh I've been at this for a while. I knew I posted an answer
about this "some time ago". Turns out it was 14 years ago! So I won't
repeat myself: Check it out here:

https://lists.archive.carbon60.com/mythtv/users/214422?search_string=mandamus.org%20mysql;#214422

There is a newer thread (2016) focusing on getting mysql running on a
step by step basis, and the backend installed and configured, here:

https://lists.archive.carbon60.com/mythtv/users/601218?search_string=mandamus.org%20mysql;#601218

Both are good for troubleshooting as I tried to do it step by step.
)

Since your external FE might find the backend has gone to sleep,
WakeInLAN should be enabled, and <Command> should be <Command>systemctl
restart mariadb.service</Command>
I have wait time as 2 seconds and retry is 5 to allow the mariadb
service to start.


Geoff
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Thu, 24 Dec 2020 23:44:41 -0500, you wrote:

>On 2020-12-24 10:45 p.m., Stephen Worthington wrote:
>> On Thu, 24 Dec 2020 15:58:17 -0500, you wrote:
>>
>>> On 2020-12-23 10:30 p.m., Stephen Worthington wrote:
>>>> On Wed, 23 Dec 2020 17:10:43 -0700, you wrote:
>>>>
>>>>> On Sun, Dec 20, 2020 at 02:39:17PM +1300, Stephen Worthington wrote:
>>>>>> How about giving us a bit more detail about the problem so we can
>>>>>> help? The output into mythbackend.log and the output of "journalctl
>>>>>> -eu mythbackend" would be a start. And "systemctl cat mythbackend",
>>>>>> so we can see exactly what the unit files are.
>>>>>
>>>>> I've pretty much given up trying to get systemd to work. This was a year or
>>>>> two ago and my recollection matches what Geoff had posted that mythbackend
>>>>> wasn't starting because mariadb wasn't really ready. That's your main
>>>>> guess as well. I'm not particularly concerned about that, but rather
>>>>> why systemd doesn't try to run mythbackend again.
>>>
>>> Because it was not told to try again (Restart=Always) or it tried to,
>>> the number of times it was told to try (all in a very short time,
>>> usually), and those attempts also failed.
>>>
>>> <snip>
>>>> So the above settings are not a good workaround at all. It would be
>>>> better to use something like this:
>>>>
>>>> Restart=on-failure
>>>> RestartSec=5
>>>> StartLimitBurst=5
>>>> StartLimitInterval=30
>>>>
>>>> What that does is to change the RestartSec from its default of 100 ms,
>>>> so that restarts are done only very 5 seconds. Then it increases the
>>>> StartLimitInterval to account for that change which means that 5
>>>> restarts done at 5 s intervals takes 25 seconds, then mythbackend
>>>> needs time to start.
>>>>
>>>> However, as with all race conditions, it is never a good idea to use
>>>> delays to fix them. The proper fix would be to get
>>>> mythbackend.service to actually wait for networking to be up before it
>>>> allows mythbackend to be started. One way to do that is to use my fix
>>>> that works on Ubuntu for this when people are using network tuners or
>>>> external frontends. If you are not set up to use network tuners or
>>>> external frontends, you would just set the ping target to be localhost
>>>> (127.0.0.1). I am going to try this out as soon as I can work out how
>>>> to get the mythtv packages to install correctly.
>>>
>>>
>>> The [Unit] section of my mythbackend.service file has this:
>>> [Unit]
>>> Description=MythTV backend service
>>> After=network-online.target mariadb.service mysqld.service time-sync.target
>>> # Uncomment the following line if you will be using the mythweb plugin
>>> on the
>>> # same system as mythbackend.
>>> Wants=httpd.service
>>>
>>> That set of 'After' requirements will exactly fix the startup problem
>>> which it appears you are experiencing. Stephen is correct about Restart,
>>> but that does not deal with the real problem, which is that your system
>>> is attempting to start mythbackend when the dependencies are not yet
>>> ready. The Restart settings are a parallel workaround, but not
>>> guaranteed to work in all cases (such as an external mariadb box, which
>>> is slow to respond, causing the mysql client on the mythbox to take a
>>> long time... or even a login error between the mysql client box and the
>>> mysql server...)
>>> Geoff
>>
>> My guess would be that time-sync.target is what is fixing things. That
>> means that networking has been up long enough for the ntp daemon to
>> exchange packets with at least one other time service. Which means
>> that external networking is up and actually working. The external
>> time service could be another box on the local network, but unless you
>> have set the ntp config for that, it will likely be Internet time
>> services.
>>
>> In my Fedora 33 VM, I have mythbackend starting properly using an IPTV
>> tuner. Note that mythbackend does not actually test IPTV tuners
>> during startup, so mythbackend probably does not need networking to be
>> fully up (external IP addresses available) in order to start with this
>> config. Mythbackend does not fail and restart at all, and I have not
>> changed its systemd config. The /etc/mythtv/config.xml file is
>> currently:
>>
>> <Configuration>
>> <UPnP>
>> <UDN>
>> <MediaRenderer></MediaRenderer>
>> </UDN>
>> </UPnP>
>> <Database>
>> <UserName>mythtv</UserName>
>> <PingHost>0</PingHost>
>> <Host>localhost</Host>
>> <DatabaseName>mythconverg</DatabaseName>
>> <Password>********</Password>
>> <Port>3306</Port>
>> </Database>
>> <WakeOnLan>
>> <Enabled>0</Enabled>
>> <SQLReconnectWaitTime>0</SQLReconnectWaitTime>
>> <SQLConnectRetry>5</SQLConnectRetry>
>> <Command>echo 'WOLsqlServerCommand not set'</Command>
>> </WakeOnLan>
>> </Configuration>
>>
>> I had to create that manually by copying and exiting the config.xml
>> from my main Ubuntu MythTV box as the MythTV packages and mythtv-setup
>> failed to create it. Looking at the config.xml options, setting the
>> PingHost option might also be a good idea as it means that mythbackend
>> will try to ping the Host address before going any further trying to
>> connect to the database.
>>
>> I still have to try with using the external IP address of the VM as
>> the database connection - that is where I think I will get problems.
>
>I may have missed it, but I don't think the OP ever stated whether this
>was a BE/FE box, or an external FE, trying to talk to the BE. It makes a
>difference in the config.xml...
>
>Firstly, my config.xml file is basically similar to that above. I did a
>thorough search to delete all copies except the one in /etc/mythtv/ so
>as to avoid problems.
>My config.xml differs in minor respects as it is set up to allow outside
>access to the database:
><Host> is the IP address of the backend and mariadb server box.
>Localhost is only useful on a BE/FE box, but NOT if you want access from
>any other FE. The other items in that stanza are the login details for
>the user from the particular FE, INTO the mariadb server on the <Host> box.
>Of course, if that is not set, then the external FE will never connect.
>Remember that although you may have a user mythtv on each box (or even
>your phone!) it is a different user for the mariadb access. Each
>user/computer combo has to be authorized on the mariadb server.

You have a misconception here. The Host field in config.xml is only
the address of the database server. The address of the backend is
stored in the database. So even on a backend/frontend box, it makes
sense for the config.xml file to have <Host>localhost</Host>, so that
mythbackend will connect to the database using the much faster
localhost connection. And, in fact, if you specify localhost,
mythbackend has special code that checks for that and then has it
connect via the even faster Unix socket connection to the database.

If you want to have external frontends, the address for the backend in
the database needs to be set to the external IP address of the box.
And the config.xml files on other devices running frontends need to
have the external IP address of the database box (which does not need
to be on the same box as the backend). And the database needs to be
told to bind to the external IP address of its box as well as to
localhost (bind-address=:: or bind-address=0.0.0.0).

>
>( OT: Gosh I've been at this for a while. I knew I posted an answer
>about this "some time ago". Turns out it was 14 years ago! So I won't
>repeat myself: Check it out here:
>
>https://lists.archive.carbon60.com/mythtv/users/214422?search_string=mandamus.org%20mysql;#214422
>
>There is a newer thread (2016) focusing on getting mysql running on a
>step by step basis, and the backend installed and configured, here:
>
>https://lists.archive.carbon60.com/mythtv/users/601218?search_string=mandamus.org%20mysql;#601218
>
>Both are good for troubleshooting as I tried to do it step by step.
>)
>
>Since your external FE might find the backend has gone to sleep,
>WakeInLAN should be enabled, and <Command> should be <Command>systemctl
>restart mariadb.service</Command>
>I have wait time as 2 seconds and retry is 5 to allow the mariadb
>service to start.
>
>
>Geoff

I do not like the look of "restart mariadb.service". If the backend
is up and recording, that would likely corrupt the database for that
recording. Or if it was running mythfilldatabase, the EPG would get
corrupted. Mariadb should be waking up properly automatically if the
backend box went to sleep. If that is not happening, then that is
what needs to be fixed. Or maybe using "start" instead of "restart"
would work - that will only affect mariadb if it is not already
running. Using "restart" here would only be safe if the frontend
attempted to connect before doing the WOL part and never did that
command if the database connected Ok. I have never used WOL, so I am
not sure which way it works.

The "restart" command really should be changed to "systemctl restart
mariadb.service" these days also. The "restart" command is mapped to
"systemctl restart", but that is one extra layer of mapping that is
unnecessary and possible to get broken.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On 2020-12-25 1:47 a.m., Stephen Worthington wrote:
> On Thu, 24 Dec 2020 23:44:41 -0500, you wrote:

>>>
>>> My guess would be that time-sync.target is what is fixing things.

I think that you are correct. I did not know about that target, but it
appears to do exactly what is needed.

>> I may have missed it, but I don't think the OP ever stated whether this
>> was a BE/FE box, or an external FE, trying to talk to the BE. It makes a
>> difference in the config.xml...

>> <Host> is the IP address of the backend and mariadb server box.
>> Localhost is only useful on a BE/FE box, but NOT if you want access from
>> any other FE. The other items in that stanza are the login details for
>> the user from the particular FE, INTO the mariadb server on the <Host> box.
>> Of course, if that is not set, then the external FE will never connect.
>> Remember that although you may have a user mythtv on each box (or even
>> your phone!) it is a different user for the mariadb access. Each
>> user/computer combo has to be authorized on the mariadb server.
>
> You have a misconception here. The Host field in config.xml is only
> the address of the database server. The address of the backend is
> stored in the database. So even on a backend/frontend box, it makes
> sense for the config.xml file to have <Host>localhost</Host>, so that
> mythbackend will connect to the database using the much faster
> localhost connection. And, in fact, if you specify localhost,
> mythbackend has special code that checks for that and then has it
> connect via the even faster Unix socket connection to the database.

I hope we have not confused the OP. Not a misconception on my part. I
was talking about setting up an external FE. As you point out, the
database server *can be* on a different box entirely from any BE or FE.
In that case, all boxes are treated as 'external' to the db server and
need the <Host> attribute to point to the db box. Only in the case of a
combined BE/db server can you use (and should use) 'localhost' (so that,
in that particular case, a socket is used instead of networking).


> If you want to have external frontends, the address for the backend in
> the database needs to be set to the external IP address of the box.
> And the config.xml files on other devices running frontends need to
> have the external IP address of the database box (which does not need
> to be on the same box as the backend). And the database needs to be
> told to bind to the external IP address of its box as well as to
> localhost (bind-address=:: or bind-address=0.0.0.0).

Exactly. the bind address setting is in /etc/my.cnf or equivalent.


> I do not like the look of "restart mariadb.service". If the backend
> is up and recording, that would likely corrupt the database for that
> recording. Or if it was running mythfilldatabase, the EPG would get
> corrupted. Mariadb should be waking up properly automatically if the
> backend box went to sleep. If that is not happening, then that is
> what needs to be fixed. Or maybe using "start" instead of "restart"
> would work - that will only affect mariadb if it is not already
> running. Using "restart" here would only be safe if the frontend
> attempted to connect before doing the WOL part and never did that
> command if the database connected Ok. I have never used WOL, so I am
> not sure which way it works.
You are correct: it should be 'systemctl start mariadb.service'. Did
some searching; if the service is running already, 'start' does nothing.
'restart' *stops* the service and starts it again, thus breaking
whatever was running.

Apparently 'restart' is used for any service upon which another service
depends. Mariadb.service needs networking (for the external service
case). Restarting networking will also start mariadb.service. (But this
is not transitive: restarting mariadb.service does nothing to networking
so I was using it 'backwards' by mistake.
WakeOnLAN can be used to bring a box out of "hibernation"/suspend etc,
so that your remote FE can wake the BE/db server. In that case you might
need to start the mariadb.service (and, I guess, in that case, 'restart'
would not make any difference).

As I said, I hope we have not by now, thoroughly confused the OP.
Checking this has refreshed my memory that doing a RTFM about mariadb
*ALWAYS* takes 2 hours.

Merry Christmas to all (even to those who are now enjoying Boxing Day).

Geoff


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Fri, Dec 25, 2020 at 01:24:40PM -0500, R. G. Newbury wrote:
>
> I hope we have not confused the OP. Not a misconception on my part. I was
> talking about setting up an external FE. As you point out, the database
> server *can be* on a different box entirely from any BE or FE. In that case,
> all boxes are treated as 'external' to the db server and need the <Host>
> attribute to point to the db box. Only in the case of a combined BE/db
> server can you use (and should use) 'localhost' (so that, in that particular
> case, a socket is used instead of networking).

Not confused at all, I just was expressing exasperation at systemd, not really
looking for anything. I did add StartLimitIntervalSec = 0 to my override file
and next time things reboot, perhaps the backend will start up.

It does so happen that the database and one frontend are on the same box, but
nowadays I tend to use other frontends more than it. I am anticipating
retiring that box and building a container for it on my main server (or
maybe just running it native, I don't have any exposure to the outside world
on any mythtv ports).

It does seem like with restarts every 3 seconds, It seems that I could hit
the StartLimit of 5 restarts at 12 seconds, after the default of 10s, but
maybe that is slightly too close, although it seemed to fail startup for
3 of 3 reboots since the problem started happening...

Now, if I could just figure out how to get Plex to re-load the cover.jpg
images for music once I have changed the file... But that's certainly
fodder for a different mailing list (as well as this systemd issue, really.)

marcus hall
marcus@tuells.org
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On 2020-12-25 4:21 p.m., marcus hall wrote:
> On Fri, Dec 25, 2020 at 01:24:40PM -0500, R. G. Newbury wrote:
>>
>> I hope we have not confused the OP. Not a misconception on my part. I was
>> talking about setting up an external FE. As you point out, the database
>> server *can be* on a different box entirely from any BE or FE. In that case,
>> all boxes are treated as 'external' to the db server and need the <Host>
>> attribute to point to the db box. Only in the case of a combined BE/db
>> server can you use (and should use) 'localhost' (so that, in that particular
>> case, a socket is used instead of networking).
>
> Not confused at all, I just was expressing exasperation at systemd, not really
> looking for anything. > I did add StartLimitIntervalSec = 0 to my override file
> and next time things reboot, perhaps the backend will start up.
>
> It does so happen that the database and one frontend are on the same box, but
> nowadays I tend to use other frontends more than it.

Ah HAH! You have the db server and an FE on one box. So where is the BE?
If it is on another box, then quite possibly your BE box cannot access
the dbserver and (drum-roll....) the BE will not start.
If the BE is on the same box with the db server (and an FE) there is
still the possibility that the BE 'user' is not properly authenticated
to the mariadb server.

I find it difficult to express with appropriate moderation my
disagreement with the proposition

https://lists.archive.carbon60.com/mythtv/users/214422?search_string=mandamus.org%20mysql;#214422

This link does "baby steps" through ensuring that your computers can
talk to the db server. In going through that test procedure you will
have to start on the db server to check that you can access it properly.
Then run the mc.sql script once for each user+computer combo to set up
the database accesses. Then you can check on the dbserver (as root)
using the mysql database with: 'select host, user, password from user;'
(Yes there is a field named user in a table named user.) That should
list each computer and each user on that computer. If the BE is on a
separate box, it needs that access too.

As you go around and try from each computer with each user/computer
combo you do NOT want to see 'Access denied to 'luser'@'some-computer'
but if you do, you know what needs to be fixed.

Until you are absolutely sure that each mythtv user can access the db
server from its own box, it is useless to try starting the BE.

> I am anticipating
> retiring that box and building a container for it on my main server (or
> maybe just running it native, I don't have any exposure to the outside world
> on any mythtv ports).

> It does seem like with restarts every 3 seconds, It seems that I could hit
> the StartLimit of 5 restarts at 12 seconds, after the default of 10s, but
> maybe that is slightly too close, although it seemed to fail startup for
> 3 of 3 reboots since the problem started happening...

I now strongly suspect that the BE cannot access the db server. Have you
tried starting the BE from a console? You should be able to see the
exact error(s) and that completely removes the systemctl startup script
from consideration.

Geoff

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On 2020-12-25 10:59 p.m., R. G. Newbury wrote:

> If the BE is on the same box with the db server (and an FE) there is
> still the possibility that the BE 'user' is not properly authenticated
> to the mariadb server.
>
> I find it difficult to express with appropriate moderation my
> disagreement with the proposition

Well THAT wasn't supposed to be there... the clipboard gremlin strikes
again, pasting something in which did not belong.

Sorrry about that.
Geoff
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Fri, Dec 25, 2020 at 10:59:18PM -0500, R. G. Newbury wrote:
>
> Ah HAH! You have the db server and an FE on one box. So where is the BE? If
> it is on another box, then quite possibly your BE box cannot access the
> dbserver and (drum-roll....) the BE will not start.
> If the BE is on the same box with the db server (and an FE) there is still
> the possibility that the BE 'user' is not properly authenticated to the
> mariadb server.

One box has mariadb, mythbackend, and one instance of frontend. Other
frontends scattered throughout the house.

I do not believe that there is any issue with mythtv. Once the system boots
and I can ssh into it, I run systemctl restart mythbackend and all comes up
just fine. It's just annoying that systemd can't keep trying to start
mythbackend until it succeeds. I've set the StartLimitInterval to 0 now,
so we'll see if that fixes things, whenever the box needs a reboot. That
may not be for some time, which is why I was not too put out to have to
start it manually, since that is only once or twice a year.

marcus hall
marcus@tuells.org
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On 26/12/2020 04:04, marcus hall wrote:
> On Fri, Dec 25, 2020 at 10:59:18PM -0500, R. G. Newbury wrote:
>>
>> Ah HAH! You have the db server and an FE on one box. So where is the BE? If
>> it is on another box, then quite possibly your BE box cannot access the
>> dbserver and (drum-roll....) the BE will not start.
>> If the BE is on the same box with the db server (and an FE) there is still
>> the possibility that the BE 'user' is not properly authenticated to the
>> mariadb server.
>
> One box has mariadb, mythbackend, and one instance of frontend. Other
> frontends scattered throughout the house.
>
> I do not believe that there is any issue with mythtv. Once the system boots
> and I can ssh into it, I run systemctl restart mythbackend and all comes up
> just fine. It's just annoying that systemd can't keep trying to start
> mythbackend until it succeeds. I've set the StartLimitInterval to 0 now,
> so we'll see if that fixes things, whenever the box needs a reboot. That
> may not be for some time, which is why I was not too put out to have to
> start it manually, since that is only once or twice a year.
>
You aren't addressing the actual problem. This is not why systemd isn't restarting the myth backend
but why it is failing to start in the first place.

Granted, this can be some set of obscure systemd interactions at startup but until you investigate
logically you will always have the same problem.

I would point out that most of us have no problems starting up the backend/host that contains the
backend. Most difficulties seem to originate at installation time, with database connections being
high on the list, network connections coming close. Check through as described above and see what
you turn up.

--

Mike Perkins

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sat, Dec 26, 2020 at 10:40:17AM +0000, Mike Perkins wrote:
> You aren't addressing the actual problem. This is not why systemd isn't
> restarting the myth backend but why it is failing to start in the first
> place.

Well, it's reasonable certain that the reason that mythbackend doesn't start
up is that mariadb isn't up yet. Mariadb tells systemd that it is up before
it really is (according to notes in Fedora's distributed file for mythbackend)
and so systemd tries to start mythtbackend. Since mythbackend can't connect
to mariadb (mariadb isn't quite ready yet), mythbackend fails. If systemd
would just wait the Restart interval and re-try mythbackend, eventually
mariadb would start answering and it would work. Or, if it isn't really
mariadb but something else that I don't have a dependency expressed for,
eventually that would be up and things would start. The old init (before
systemd) would normally do this from inittab entries. It was just annoying
that systemd didn't seem to be willing to do this. With very little
information about why it wasn't.

> Granted, this can be some set of obscure systemd interactions at startup but
> until you investigate logically you will always have the same problem.
>
> I would point out that most of us have no problems starting up the
> backend/host that contains the backend. Most difficulties seem to originate
> at installation time, with database connections being high on the list,
> network connections coming close. Check through as described above and see
> what you turn up.

Well, whenever I can ssh into the box, everything is up and mythbackend starts
up just fine. Everything the backend needs is on the same box, so shouldn't
be any networking issue, mariadb seems the likely culprit. The "right" way
to specify the dependency to systemd doesn't work, and it's just not worth
trying random hacks to poke at things to cover the race condition when it
involves rebooting the system to test it. Especially when the problem only
happens once or twice a year. It's "good enough".

marcus hall
marcus@tuells.org
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sat, 26 Dec 2020 06:27:09 -0700, you wrote:

>On Sat, Dec 26, 2020 at 10:40:17AM +0000, Mike Perkins wrote:
>> You aren't addressing the actual problem. This is not why systemd isn't
>> restarting the myth backend but why it is failing to start in the first
>> place.
>
>Well, it's reasonable certain that the reason that mythbackend doesn't start
>up is that mariadb isn't up yet. Mariadb tells systemd that it is up before
>it really is (according to notes in Fedora's distributed file for mythbackend)
>and so systemd tries to start mythtbackend. Since mythbackend can't connect
>to mariadb (mariadb isn't quite ready yet), mythbackend fails. If systemd
>would just wait the Restart interval and re-try mythbackend, eventually
>mariadb would start answering and it would work. Or, if it isn't really
>mariadb but something else that I don't have a dependency expressed for,
>eventually that would be up and things would start. The old init (before
>systemd) would normally do this from inittab entries. It was just annoying
>that systemd didn't seem to be willing to do this. With very little
>information about why it wasn't.

So what did systemd tell you went wrong? What was the output of
"journalctl -u mythbackend" immediately after boot when mythbackend
had not started? It would probably take a reboot to collect that
information now, as the journal file with that information will likely
have long since been rolled over and deleted.

>> Granted, this can be some set of obscure systemd interactions at startup but
>> until you investigate logically you will always have the same problem.
>>
>> I would point out that most of us have no problems starting up the
>> backend/host that contains the backend. Most difficulties seem to originate
>> at installation time, with database connections being high on the list,
>> network connections coming close. Check through as described above and see
>> what you turn up.
>
>Well, whenever I can ssh into the box, everything is up and mythbackend starts
>up just fine. Everything the backend needs is on the same box, so shouldn't
>be any networking issue, mariadb seems the likely culprit. The "right" way
>to specify the dependency to systemd doesn't work, and it's just not worth
>trying random hacks to poke at things to cover the race condition when it
>involves rebooting the system to test it. Especially when the problem only
>happens once or twice a year. It's "good enough".
>
>marcus hall
>marcus@tuells.org

You can easily have networking issues on one box - mythbackend is
known for having one in particular that requires extra systemd config
when using an external IP address instead of localhost. So did you do
any extra systemd config for mythbackend when you changed its config
to use the external IP address? If not, then that is the likely cause
of the problems.

We still do not know exactly what systemd and mythbackend are being
told to do. So could you please post the output of:

systemctl cat mariadb
systemctl cat mythbackend
sudo mysql mythconverg
select * from settings where value='BackendServerAddr' or
value='MasterServerIP';
quit
ifconfig
netstat -anp | grep mysql
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On 2020-12-26 9:53 a.m., Stephen Worthington wrote:
> On Sat, 26 Dec 2020 06:27:09 -0700, you wrote:
>
>> On Sat, Dec 26, 2020 at 10:40:17AM +0000, Mike Perkins wrote:
>>> You aren't addressing the actual problem. This is not why systemd isn't
>>> restarting the myth backend but why it is failing to start in the first
>>> place.
>>
>> Well, it's reasonable certain that the reason that mythbackend doesn't start
>> up is that mariadb isn't up yet.

So we now (finally) know that you have a simple computer setup with a
BE, FE and db server all on the same box.

1) Have you tried:
[Unit]
Description=MythTV backend service
After=network-online.target mariadb.service mysqld.service
time-sync.target

in the mythbackend.service file?
(Note that this lists *both* mariadb.service and mysqld.service. You
should only have one of these two (possibly one and a soft link as an
alias to the one doing the heavy lifting).

Try this version, please.

2) Since you are running on a single box, try ignoring the outside FE's
for a moment, and set the config.xml to use <Host>Localhost</Host>. This
'should' avoid any network problems in access and help pinpoint things.

>> Well, whenever I can ssh into the box, everything is up and mythbackend starts
>> up just fine. Everything the backend needs is on the same box, so shouldn't
>> be any networking issue, mariadb seems the likely culprit. The "right" way
>> to specify the dependency to systemd doesn't work, and it's just not worth
>> trying random hacks to poke at things to cover the race condition when it
>> involves rebooting the system to test it. Especially when the problem only
>> happens once or twice a year. It's "good enough".

3) And now we can see another possible problem point. You can ssh in,
and start mythbackend. So what user are you when you ssh in? I always
use 'root' when ssh'ing into the mythbox, or any of my computers. I
don't think I have another user authenticated on any machine *for ssh*.
If you can start mythbackend *as root* there is a fair possibility that
the problem comes down to your 'mythtv user': either the user does not
have permission to start mythbackend *at all*, OR the 'mythtv user' is
not properly authenticated to *talk to the database*.

So: 4) Set up ssh access for your mythtv user (if the box is headless),
or sit down at the box, boot up (a cold boot for this!), and
5) try to access mysql: $ mysql-u mythtv -pmythtv -D mythconverg
to determine if it is a user access problem to the db, and

6) try to start mythbackend from a console, as the mythtv user. ( I
will admit that when I run into permissions problems, I use the bigger
hammer method and just chmod 777 everthing in sight, to start with. Then
it's down to adding the user to 'wheel' and other smaller corrections.

I have an idea that your problem is in #6. Get that figured out, and you
can then allow access to the db for users from other boxen, and set the
<Host> config on those other boxes to point to the IP of the db server
(the BE/FE/db box config.xml can remain 'localhost'. (If


> You can easily have networking issues on one box - mythbackend is
> known for having one in particular that requires extra systemd config
> when using an external IP address instead of localhost. So did you do
> any extra systemd config for mythbackend when you changed its config
> to use the external IP address? If not, then that is the likely cause
> of the problems.
>
> We still do not know exactly what systemd and mythbackend are being
> told to do. So could you please post the output of:
>
> systemctl cat mariadb
> systemctl cat mythbackend
> sudo mysql mythconverg
> select * from settings where value='BackendServerAddr' or
> value='MasterServerIP';
> quit
> ifconfig
> netstat -anp | grep mysql

I think we need the access question answered before further spelunking
as set out above, are *necessary*. The 'select... MasterServerIP' will
show where myth thinks the db server lives. In addition, we need to see
the output of "ifconfig | grep -h 'inet'" which will tell us what IP
your box is using. It now occurs to me that there could be a mis-match
between those two numbers, which would explain a lot!

Geoff







_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org