[opensuse] failed to start mythbackend
I went into YaST / System / Services Manager and tried to start mythbackend. I got an error that I don't understand. Here's the YaST log: First I start mythbackend: 2018-07-24 12:35:04 <1> acer-suse(7430) [Ruby] clients/services-manager.rb:64 User returned `start_stop 2018-07-24 12:35:04 <1> acer-suse(7430) [Ruby] clients/services-manager.rb:240 Setting the service 'mythbackend' to active 2018-07-24 12:35:04 <1> acer-suse(7430) [Ruby] modules/services_manager_service.rb:221 Service mythbackend has been marked for activation Then I click OK: 2018-07-24 12:35:23 <1> acer-suse(7430) [Ruby] clients/services-manager.rb:64 User returned `next 2018-07-24 12:35:23 <1> acer-suse(7430) [Ruby] clients/services-manager.rb:88 Writing configuration... 2018-07-24 12:35:23 <2> acer-suse(7430) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):85 Not enough widgets with valid shortcut characters - no check 2018-07-24 12:35:23 <1> acer-suse(7430) [Ruby] modules/services_manager_service.rb:374 Saving systemd services... 2018-07-24 12:35:23 <1> acer-suse(7430) [Ruby] modules/services_manager_service.rb:381 Modified services: {"mythbackend"=>{:enabled=>true, :can_be_enabled=>true, :modified=>true, :active=>true, :loaded=>false, :description=>"MythTV backend service"}} 2018-07-24 12:35:23 <1> acer-suse(7430) [Ruby] modules/Service.rb:112 Enabling service 'mythbackend' 2018-07-24 12:35:23 <1> acer-suse(7430) [Ruby] yast2/systemctl.rb:32 systemctl show mythbackend.service --property=Id --property=MainPID --property=Description --property=LoadState --property=ActiveState --property=SubState --property=UnitFileState --property=FragmentPath 2018-07-24 12:35:23 <1> acer-suse(7430) [Ruby] yast2/systemctl.rb:32 systemctl enable mythbackend.service 2018-07-24 12:35:24 <1> acer-suse(7430) [Ruby] yast2/systemctl.rb:32 systemctl show mythbackend.service --property=Id --property=MainPID --property=Description --property=LoadState --property=ActiveState --property=SubState --property=UnitFileState --property=FragmentPath 2018-07-24 12:35:24 <1> acer-suse(7430) [Ruby] modules/services_manager_service.rb:486 Switching services 2018-07-24 12:35:24 <1> acer-suse(7430) [Ruby] yast2/systemctl.rb:32 systemctl show mythbackend.service --property=Id --property=MainPID --property=Description --property=LoadState --property=ActiveState --property=SubState --property=UnitFileState --property=FragmentPath 2018-07-24 12:35:24 <1> acer-suse(7430) [Ruby] modules/Service.rb:140 Starting service 'mythbackend' 2018-07-24 12:35:24 <1> acer-suse(7430) [Ruby] yast2/systemctl.rb:32 systemctl show mythbackend.service --property=Id --property=MainPID --property=Description --property=LoadState --property=ActiveState --property=SubState --property=UnitFileState --property=FragmentPath 2018-07-24 12:35:24 <1> acer-suse(7430) [Ruby] yast2/systemctl.rb:32 systemctl start mythbackend.service 2018-07-24 12:35:24 <3> acer-suse(7430) [bash] ShellCommand.cc(shellcommand):78 Failed to start mythbackend.service: Unit mythbackend.service is not loaded properly: Exec format error. 2018-07-24 12:35:24 <3> acer-suse(7430) [bash] ShellCommand.cc(shellcommand):78 See system logs and 'systemctl status mythbackend.service' for details. 2018-07-24 12:35:24 <1> acer-suse(7430) [Ruby] yast2/systemctl.rb:32 systemctl show mythbackend.service --property=Id --property=MainPID --property=Description --property=LoadState --property=ActiveState --property=SubState --property=UnitFileState --property=FragmentPath 2018-07-24 12:35:24 <3> acer-suse(7430) [Ruby] modules/Service.rb:443 Attempt to `start` service 'mythbackend' failed. ERROR: 2018-07-24 12:35:24 <1> acer-suse(7430) [Ruby] yast2/systemctl.rb:32 systemctl status mythbackend.service 2>&1 2018-07-24 12:35:24 <3> acer-suse(7430) [Ruby] modules/services_manager_service.rb:511 Error: Could not stop mythbackend which is currently enabled. ● mythbackend.service - MythTV backend service Loaded: error (Reason: Exec format error) Active: inactive (dead) Jul 20 15:38:33 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 20 16:00:31 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 20 16:01:57 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 20 16:24:01 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 21 14:56:36 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:17:01 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:17:25 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:17:25 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:19:53 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:35:23 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players 2018-07-24 12:35:24 <3> acer-suse(7430) [Ruby] modules/services_manager_service.rb:401 There were some errors during saving: Could not stop mythbackend which is currently enabled. ● mythbackend.service - MythTV backend service Loaded: error (Reason: Exec format error) Active: inactive (dead) Jul 20 15:38:33 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 20 16:00:31 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 20 16:01:57 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 20 16:24:01 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 21 14:56:36 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:17:01 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:17:25 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:17:25 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:19:53 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players Jul 24 12:35:23 acer-suse systemd[1]: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players 2018-07-24 12:35:24 <1> acer-suse(7430) [ui] YPushButton.cc(setFunctionKey):202 Guessing button role YOKButton for YPushButton "Continue" at 0x7fd28c5bffc0 from function key F10 2018-07-24 12:35:24 <1> acer-suse(7430) [ui] YPushButton.cc(setFunctionKey):202 Guessing button role YCancelButton for YPushButton "Cancel" at 0x7fd28c5cbc60 from function key F9 I don't know why YaST says to look in the system log (there's nothing there) or the systemd status (since it already printed it twice). I don't understand what "Invalid user/group name or numeric ID" means. The mythtv user is there with a userid of 471 and a description of "MythTV Backend User" and is a member of audio and video groups. (created by the system, not by me). There are no special groups. Does anybody understand what this means or how to fix it? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2018-07-24 13:48, Dave Howorth wrote:
I went into YaST / System / Services Manager and tried to start mythbackend. I got an error that I don't understand. Here's the YaST log:
First I start mythbackend:
2018-07-24 12:35:04 <1> acer-suse(7430) [Ruby] clients/services-manager.rb:64 User returned `start_stop 2018-07-24 12:35:04 <1> acer-suse(7430) [Ruby] clients/services-manager.rb:240 Setting the service 'mythbackend' to active 2018-07-24 12:35:04 <1> acer-suse(7430) [Ruby] modules/services_manager_service.rb:221 Service mythbackend has been marked for activation
Then I click OK:
...
I don't understand what "Invalid user/group name or numeric ID" means. The mythtv user is there with a userid of 471 and a description of "MythTV Backend User" and is a member of audio and video groups. (created by the system, not by me). There are no special groups.
Does anybody understand what this means or how to fix it?
Just use the systemd proper command to enable/activate the service. Forget YaST. systemctl status mythbackend systemctl enable mythbackend systemctl start mythbackend systemctl status mythbackend If you want to post the result, copy the text to a text file and attach it. As you did, with wrapped lines, it is too difficult to read. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
On Tue, 24 Jul 2018 14:28:16 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
Just use the systemd proper command to enable/activate the service. Forget YaST.
I don't know why you say that, since that's exactly what YaST does.
systemctl status mythbackend systemctl enable mythbackend systemctl start mythbackend systemctl status mythbackend
If you want to post the result, copy the text to a text file and attach it. As you did, with wrapped lines, it is too difficult to read.
I do accept that point. Please find a log attached.
On 2018-07-24 20:53, Dave Howorth wrote:
On Tue, 24 Jul 2018 14:28:16 +0200 "Carlos E. R." <> wrote:
Just use the systemd proper command to enable/activate the service. Forget YaST.
I don't know why you say that, since that's exactly what YaST does.
Because it is a layer on top of the systemd command and adds its own errors. The "ruby" messages you saw were Yast's own.
systemctl status mythbackend systemctl enable mythbackend systemctl start mythbackend systemctl status mythbackend
If you want to post the result, copy the text to a text file and attach it. As you did, with wrapped lines, it is too difficult to read.
I do accept that point. Please find a log attached.
Ok. First error is: /usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players I don't know why it produces that error, and I don't have mythbackend to have a look at. Perhaps you could post or attach file /usr/lib/systemd/system/mythbackend.service? "systemctl enable mythbackend" doesn't say anything, which is good. "systemctl status mythbackend" says there is a exec format error, which is bad. The rest of the messages are the old ones, irrelevant at this point. This is most probably a bug. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
On Tue, 24 Jul 2018 21:59:13 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2018-07-24 20:53, Dave Howorth wrote:
On Tue, 24 Jul 2018 14:28:16 +0200 "Carlos E. R." <> wrote:
Just use the systemd proper command to enable/activate the service. Forget YaST.
I don't know why you say that, since that's exactly what YaST does.
Because it is a layer on top of the systemd command and adds its own errors. The "ruby" messages you saw were Yast's own.
systemctl status mythbackend systemctl enable mythbackend systemctl start mythbackend systemctl status mythbackend
If you want to post the result, copy the text to a text file and attach it. As you did, with wrapped lines, it is too difficult to read.
I do accept that point. Please find a log attached.
Ok. First error is:
/usr/lib/systemd/system/mythbackend.service:11: Invalid user/group name or numeric ID: Productivity/Multimedia/Video/Players
I don't know why it produces that error, and I don't have mythbackend to have a look at. Perhaps you could post or attach file /usr/lib/systemd/system/mythbackend.service?
[Unit] Description=MythTV backend service After=network.target mysql.service Requires=mysql.service Wants=apache2.service [Service] Type=simple EnvironmentFile=/etc/sysconfig/mythbackend User=mythtv Group=Productivity/Multimedia/Video/Players ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv $MYTHBACKEND_OPTIONS [Install] WantedBy=multi-user.target
"systemctl enable mythbackend" doesn't say anything, which is good.
"systemctl status mythbackend" says there is a exec format error, which is bad. The rest of the messages are the old ones, irrelevant at this point.
Hmm, mythbackend seems to be very similar to e.g. zypper # file /usr/bin/mythbackend /usr/bin/mythbackend: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=62c209a23421175011d404e65da209681bd9c56a, stripped # file /usr/bin/zypper /usr/bin/zypper: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=45c00202f08d2b084b64f1828b52e2179f154775, stripped Where is the "exec format error"
This is most probably a bug.
But is it an opensuse bug, a packman bug, or a mythtv bug? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2018-07-25 a las 00:06 +0100, Dave Howorth escribió:
I don't know why it produces that error, and I don't have mythbackend to have a look at. Perhaps you could post or attach file /usr/lib/systemd/system/mythbackend.service?
[Unit] Description=MythTV backend service After=network.target mysql.service Requires=mysql.service Wants=apache2.service
[Service] Type=simple EnvironmentFile=/etc/sysconfig/mythbackend User=mythtv Group=Productivity/Multimedia/Video/Players ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv $MYTHBACKEND_OPTIONS
[Install] WantedBy=multi-user.target
"systemctl enable mythbackend" doesn't say anything, which is good.
"systemctl status mythbackend" says there is a exec format error, which is bad. The rest of the messages are the old ones, irrelevant at this point.
Hmm, mythbackend seems to be very similar to e.g. zypper
# file /usr/bin/mythbackend /usr/bin/mythbackend: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=62c209a23421175011d404e65da209681bd9c56a, stripped # file /usr/bin/zypper /usr/bin/zypper: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=45c00202f08d2b084b64f1828b52e2179f154775, stripped
Where is the "exec format error"
In the service file, I think. Just a guess: Try commenting out the "Group" line, then disable, enable, and start the service, Then ask for status again. (I don't find "group" in man systemd.service)
This is most probably a bug.
But is it an opensuse bug, a packman bug, or a mythtv bug?
As it is a packman package, report on packman first. - -- Cheers Carlos E. R. (from openSUSE 42.3 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAltXxG0ACgkQja8UbcUWM1yaLQD5AYU5+eGpC1ykmclQD/yP1up+ OYhMOf2EG5fCv3qeiKkA/ibqHBF0PzqXbhJVypcP9nsvhX1yJN0Px6JPWQppncTC =b9Qm -----END PGP SIGNATURE-----
Dave Howorth wrote:
[Unit] Description=MythTV backend service After=network.target mysql.service Requires=mysql.service Wants=apache2.service
[Service] Type=simple EnvironmentFile=/etc/sysconfig/mythbackend User=mythtv Group=Productivity/Multimedia/Video/Players ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That won't work - it needs just a single groupname. I don't know which one would be the right one. Maybe 'Video' ? -- Per Jessen, Zürich (21.5°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2018-08-02 09:37, Per Jessen wrote:
Dave Howorth wrote:
[Unit] Description=MythTV backend service After=network.target mysql.service Requires=mysql.service Wants=apache2.service
[Service] Type=simple EnvironmentFile=/etc/sysconfig/mythbackend User=mythtv Group=Productivity/Multimedia/Video/Players ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That won't work - it needs just a single groupname. I don't know which one would be the right one. Maybe 'Video' ?
I think the string comes from the spec file: cer@Telcontar:~> rpm rpm -qi vlc | grep -i group Group : System/Packages Group : Productivity/Multimedia/Video/Players cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
Carlos E. R. wrote:
On 2018-08-02 09:37, Per Jessen wrote:
Dave Howorth wrote:
[Unit] Description=MythTV backend service After=network.target mysql.service Requires=mysql.service Wants=apache2.service
[Service] Type=simple EnvironmentFile=/etc/sysconfig/mythbackend User=mythtv Group=Productivity/Multimedia/Video/Players ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That won't work - it needs just a single groupname. I don't know which one would be the right one. Maybe 'Video' ?
I think the string comes from the spec file:
cer@Telcontar:~> rpm rpm -qi vlc | grep -i group Group : System/Packages Group : Productivity/Multimedia/Video/Players
Maybe a build problem - somehow the above ended up in the systemd service unit ?? fwiw, in mythtv 0.25, this is what I have: [Service] Type=simple EnvironmentFile=/etc/sysconfig/mythbackend User=mythbackend Group=video -- Per Jessen, Zürich (25.8°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2018-08-02 12:51, Per Jessen wrote:
Carlos E. R. wrote:
On 2018-08-02 09:37, Per Jessen wrote:
Dave Howorth wrote:
[Unit] Description=MythTV backend service After=network.target mysql.service Requires=mysql.service Wants=apache2.service
[Service] Type=simple EnvironmentFile=/etc/sysconfig/mythbackend User=mythtv Group=Productivity/Multimedia/Video/Players ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That won't work - it needs just a single groupname. I don't know which one would be the right one. Maybe 'Video' ?
I think the string comes from the spec file:
cer@Telcontar:~> rpm rpm -qi vlc | grep -i group Group : System/Packages Group : Productivity/Multimedia/Video/Players
Maybe a build problem - somehow the above ended up in the systemd service unit ??
fwiw, in mythtv 0.25, this is what I have:
[Service] Type=simple EnvironmentFile=/etc/sysconfig/mythbackend User=mythbackend Group=video
I think Dave reported that on the packman mail list, should be corrected by now. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
participants (3)
-
Carlos E. R.
-
Dave Howorth
-
Per Jessen