PPA for Ubuntu 15.04 missing systemd integration

Bug #1442773 reported by Jack Deslippe
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
Undecided
Thomas Mashos
mythtv (Ubuntu)
Fix Released
Critical
Thomas Mashos

Bug Description

There are two issues:

1. The PPA package for ubuntu mythtv package for 15.04 does not appear to have the systemd integration that I guess was fixed in the non-ppa version: https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/1408651

I see no mythtv-backend.service on my system. So, I had to manually create one.

Revision history for this message
Jack Deslippe (jdeslip) wrote :

I'll report the second issue as a second bug since it doesn't match the title.

Revision history for this message
Thomas Mashos (tgm4883) wrote :

Fix committed. I'm waiting for it to be pulled upstream, then it should be available in the next set of packages.

description: updated
Changed in mythtv (Ubuntu):
assignee: nobody → Thomas Mashos (tgm4883)
status: New → In Progress
importance: Undecided → Critical
status: In Progress → Fix Committed
Revision history for this message
Thomas Mashos (tgm4883) wrote :

This has been merged upstream and will be fixed in the next daily build.

Changed in mythtv (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Gabz (gnoronha) wrote :

tagged mythbuntu teams as they manage the PPA.

Revision history for this message
David Newman (drdrnewman) wrote :

On 12 October 2015, there is still no mythtv-backend.service file downloaded in the PPA updates.

Revision history for this message
David Newman (drdrnewman) wrote :

To be precise, not in the mythtv-backend package. I don't run mythbuntu standalone, but run mythtv within kubuntu.

Revision history for this message
David Newman (drdrnewman) wrote :

Sorry it is in /lib/systemd/system instead of /etc/systemd/system

Revision history for this message
Steve Rimbey (steverimbey) wrote :

Yes, it is there but does not work during boot. It does work as "sudo systemctl start mythtv-backend".

Revision history for this message
Mark Kendall (markk) wrote :

I added a /etc/systemd/system/mythbackend.service setup based on MythTV recommendations and then when I deleted /lib/systemd/system/mythtv-backend.service the autostart on boot worked.

Revision history for this message
Mark Kendall (markk) wrote :

I spoke to early, the mythtv backend looked like it had started (it was visible in a ps -Af) but it wasn't usable. I also had to do a 'sudo chown mythtv /var/log/mythtv', after doing this log files are created but have minimal contents
there was no logging and event after this there is minimal content that generally looks like

2015-10-27 19:22:46.652295 C [1563/1563] thread_unknown mythcommandlineparser.cpp:2595 (ConfigureLogging) - mythbackend version: fixes/0.27 [v0.27.5-35-ga4de67f] www.mythtv.org
2015-10-27 19:22:46.652314 C [1563/1563] thread_unknown mythcommandlineparser.cpp:2597 (ConfigureLogging) - Qt version: compile: 4.8.6, runtime: 4.8.6
2015-10-27 19:22:46.652319 N [1563/1563] thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) - Enabled verbose msgs: general
2015-10-27 19:22:46.693098 C [1563/1563] CoreContext main.cpp:129 (main) - Failed to init MythContext.

Thomas Mashos (tgm4883)
Changed in mythbuntu:
assignee: nobody → Thomas Mashos (tgm4883)
Thomas Mashos (tgm4883)
Changed in mythtv (Ubuntu):
status: Fix Released → In Progress
Changed in mythbuntu:
status: New → In Progress
Revision history for this message
Thomas Mashos (tgm4883) wrote :

There are 2 issues I'm working currently through for 16.04.

1) mythtv-backend isn't set to start at boot. This actually looks fairly trivial to fix as there is a dh_ script to assist with enabling this. I've just pushed this fix to the 0.28 packaging.
2) mysql listens on localhost only due to their config file. There is a new conf file in mysql that gets read after ours making mysql listen on localhost only. I think I've got an idea for fixing this.
3) The database we ship doesn't work quite right without firing off mythtv-setup first. I think I've got a handle on this, just need some time to fix this.

The service file is installed in the right location and works. Just these other kinks that need worked out.

Revision history for this message
Steve Rimbey (steverimbey) wrote : Re: [Bug 1442773] Re: PPA for Ubuntu 15.04 missing systemd integration

Thomas,

The mythbackend service is there but it is not "enabled" to start at boot. I used the systemctl enable command and now it starts at boot. The install of mythtv package should do the enable.

Thanks for your work on this package.

Steve Rimbey

Steve Rimbey

> On Jan 9, 2016, at 12:54 PM, Thomas Mashos <email address hidden> wrote:
>
> There are 2 issues I'm working currently through for 16.04.
>
> 1) mythtv-backend isn't set to start at boot. This actually looks fairly trivial to fix as there is a dh_ script to assist with enabling this. I've just pushed this fix to the 0.28 packaging.
> 2) mysql listens on localhost only due to their config file. There is a new conf file in mysql that gets read after ours making mysql listen on localhost only. I think I've got an idea for fixing this.
> 3) The database we ship doesn't work quite right without firing off mythtv-setup first. I think I've got a handle on this, just need some time to fix this.
>
> The service file is installed in the right location and works. Just
> these other kinks that need worked out.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1442773
>
> Title:
> PPA for Ubuntu 15.04 missing systemd integration
>
> Status in Mythbuntu:
> In Progress
> Status in mythtv package in Ubuntu:
> In Progress
>
> Bug description:
> There are two issues:
>
> 1. The PPA package for ubuntu mythtv package for 15.04 does not appear
> to have the systemd integration that I guess was fixed in the non-ppa
> version: https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/1408651
>
> I see no mythtv-backend.service on my system. So, I had to manually
> create one.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mythbuntu/+bug/1442773/+subscriptions

Revision history for this message
Thomas Mashos (tgm4883) wrote :

Just pushed a possible fix for 2 (see post #11). For 3, I had forgotten that we require mythtv-setup now and we don't customize the database.

Revision history for this message
Thomas Mashos (tgm4883) wrote :

@steverimbley What is the full mythtv version you are using? I pushed a fix for that yesterday to our 0.28 packaging.

Changed in mythbuntu:
status: In Progress → Fix Committed
Changed in mythtv (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Steve Rimbey (steverimbey) wrote :

From mythfrontend system status...
fixes/0.27 (v0.27.1-16-gaa822f5)

From Ubuntu software center...
Mythtv 2:0.27.1+fixes.20140624.aa822f5-0ubuntu6

I first encountered the enabled problem after initial install last September, and there had been an update since then.

Steve Rimbey

> On Jan 10, 2016, at 1:10 PM, Thomas Mashos <email address hidden> wrote:
>
> @steverimbley What is the full mythtv version you are using? I pushed a
> fix for that yesterday to our 0.28 packaging.
>
> ** Changed in: mythbuntu
> Status: In Progress => Fix Committed
>
> ** Changed in: mythtv (Ubuntu)
> Status: In Progress => Fix Committed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1442773
>
> Title:
> PPA for Ubuntu 15.04 missing systemd integration
>
> Status in Mythbuntu:
> Fix Committed
> Status in mythtv package in Ubuntu:
> Fix Committed
>
> Bug description:
> There are two issues:
>
> 1. The PPA package for ubuntu mythtv package for 15.04 does not appear
> to have the systemd integration that I guess was fixed in the non-ppa
> version: https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/1408651
>
> I see no mythtv-backend.service on my system. So, I had to manually
> create one.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mythbuntu/+bug/1442773/+subscriptions

Revision history for this message
Thomas Mashos (tgm4883) wrote :

@steverimbey Not sure how I missed your update, but you're on a pretty old build of mythtv. It's recommended that you use the mythbuntu repos http://www.mythbuntu.org/repos and update to the latest 0.27 build. I also just merged this fix back to our 0.27 branch, so you should see this fixes in the next build (after 20150131)

Changed in mythbuntu:
status: Fix Committed → Fix Released
Changed in mythtv (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Guyverix (guyverix) wrote :

I am running the latest .27 build and the fix is no longer in place. I had to set the backend to stat manually with systemctl (sudo systemctl enable mythtv-backend). Looks like it may have gotten stepped on sometime in the last 7 months. LMK what kind of data or validation will assist in squishing this bug and I will happily provide it.

Note, this is not a fresh install, I just update regularly so if the fix only works for new installs of the software, it would not have fixed my issue with the commit that was done. Just wanted to bring this to peoples attention in case it should have fixed my problem too.

My system is on a 15.04 host fully up to date as of today. Just finally got annoyed at having to manually start the backend to start looking and found out about this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.