mmdvmhost.service looping after upgrading to 4.2.1

General support for the Pi-Star System
Post Reply
User avatar
PU4CTF
Posts: 3
Joined: Tue Feb 13, 2024 3:08 am
Location: São Paulo, Brazil
Contact:

mmdvmhost.service looping after upgrading to 4.2.1

Post by PU4CTF »

I noticed that mmdvmhost.service is restarting itself every ~3 seconds after upgrading from 4.2.0 to 4.2.1.

Code: Select all

root@pi-star(ro):~# journalctl -u mmdvmhost.service
-- Journal begins at Fri 2024-02-16 15:31:03 -03, ends at Fri 2024-02-16 22:51:20 -03. --
Feb 16 15:31:32 pi-star systemd[1]: Starting MMDVMHost Radio Servce...
Feb 16 15:31:33 pi-star mmdvmhost.service[1527]: Dropping root permissions in daemon mode is disabled.
Feb 16 15:31:33 pi-star mmdvmhost.service[1520]: MMDVMHost started as PID 1527
Feb 16 15:31:33 pi-star systemd[1]: Started MMDVMHost Radio Servce.
Feb 16 15:31:36 pi-star systemd[1]: Stopping MMDVMHost Radio Servce...
Feb 16 15:31:36 pi-star mmdvmhost.service[1529]: Killing MMDVMHost PID 1527
Feb 16 22:47:12 pi-star systemd[1]: mmdvmhost.service: Succeeded.
Feb 16 22:47:12 pi-star systemd[1]: Stopped MMDVMHost Radio Servce.
Feb 16 22:47:12 pi-star systemd[1]: mmdvmhost.service: Consumed 2.980s CPU time.
Feb 16 22:47:12 pi-star systemd[1]: Starting MMDVMHost Radio Servce...
Feb 16 22:47:12 pi-star mmdvmhost.service[1603]: Dropping root permissions in daemon mode is disabled.
Feb 16 22:47:12 pi-star mmdvmhost.service[1596]: MMDVMHost started as PID 1603
Feb 16 22:47:12 pi-star systemd[1]: Started MMDVMHost Radio Servce.
Feb 16 22:47:15 pi-star systemd[1]: Stopping MMDVMHost Radio Servce...
Feb 16 22:47:16 pi-star mmdvmhost.service[1606]: Killing MMDVMHost PID 1603
Feb 16 22:47:21 pi-star systemd[1]: mmdvmhost.service: Succeeded.
Feb 16 22:47:21 pi-star systemd[1]: Stopped MMDVMHost Radio Servce.
Feb 16 22:47:21 pi-star systemd[1]: mmdvmhost.service: Consumed 3.121s CPU time.
Feb 16 22:47:21 pi-star systemd[1]: Starting MMDVMHost Radio Servce...
Feb 16 22:47:21 pi-star mmdvmhost.service[1638]: Dropping root permissions in daemon mode is disabled.
Feb 16 22:47:21 pi-star mmdvmhost.service[1631]: MMDVMHost started as PID 1638
...

Code: Select all

root@pi-star(ro):~# systemctl status mmdvmhost.service
● mmdvmhost.service - MMDVMHost Radio Servce
     Loaded: loaded (/lib/systemd/system/mmdvmhost.service; disabled; vendor preset: enabled)
     Active: deactivating (stop-sigterm) since Fri 2024-02-16 22:53:51 -03; 818ms ago
TriggeredBy: ● mmdvmhost.timer
    Process: 3586 ExecStart=/usr/local/sbin/mmdvmhost.service start (code=exited, status=0/SUCCESS)
    Process: 3601 ExecStop=/usr/local/sbin/mmdvmhost.service stop (code=exited, status=0/SUCCESS)
   Main PID: 3593 (MMDVMHost)
      Tasks: 1 (limit: 1716)
        CPU: 1.835s
     CGroup: /system.slice/mmdvmhost.service
             └─3593 /usr/local/bin/MMDVMHost /etc/mmdvmhost

Feb 16 22:53:48 pi-star systemd[1]: Starting MMDVMHost Radio Servce...
Feb 16 22:53:48 pi-star mmdvmhost.service[3593]: Dropping root permissions in daemon mode is disabled.
Feb 16 22:53:48 pi-star mmdvmhost.service[3586]: MMDVMHost started as PID 3593
Feb 16 22:53:48 pi-star systemd[1]: Started MMDVMHost Radio Servce.
Feb 16 22:53:51 pi-star systemd[1]: Stopping MMDVMHost Radio Servce...
Feb 16 22:53:51 pi-star mmdvmhost.service[3601]: Killing MMDVMHost PID 3593
It was working fine before, no configuration was changed during or after the upgrade.

If I stop mmdvmhost.service and manually start MMDVMHost, it seems to work fine.

Code: Select all

root@pi-star(ro):~# systemctl stop mmdvmhost.service
Warning: Stopping mmdvmhost.service, but it can still be activated by:
  mmdvmhost.timer

root@pi-star(ro):~# /usr/local/bin/MMDVMHost /etc/mmdvmhost
Dropping root permissions in daemon mode is disabled.
I tried flashing the 4.2.1 IMG and starting it from scratch, the same issue happens. No config was imported, only things in the "Configuration" page were changed.

I'm running a RaspberryPi 3 with a cheap AliExpress MMDVM_HS_Dual_Hat. Please let me know if you need more information from my setup.

73,
César
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: mmdvmhost.service looping after upgrading to 4.2.1

Post by MW0MWZ »

OK I pulled the update, in the mean time try this:

check and see if

Code: Select all

/etc/systemd/system/mmdvmhost.service.requires
exists, and if it does remove the whole folder, and run

Code: Select all

sed -i '/Requires=nextiondriver\.service/d' /lib/systemd/system/mmdvmhost.service 
systemctl daemon-reload
and then reboot.

See if that clears them up
Andy

73 de MW0MWZ
http://pistar.uk
User avatar
PU4CTF
Posts: 3
Joined: Tue Feb 13, 2024 3:08 am
Location: São Paulo, Brazil
Contact:

Re: mmdvmhost.service looping after upgrading to 4.2.1

Post by PU4CTF »

Thanks for the quick fix!

Yesterday I downgraded to the old Pi-StarRPiV4.2.0_05-Feb-2024.zip image. I will try update+upgrade'ing again later today.
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: mmdvmhost.service looping after upgrading to 4.2.1

Post by MW0MWZ »

Let me know please, the upgrade to 4.2.1 should be sane now.
Andy

73 de MW0MWZ
http://pistar.uk
User avatar
PU4CTF
Posts: 3
Joined: Tue Feb 13, 2024 3:08 am
Location: São Paulo, Brazil
Contact:

Re: mmdvmhost.service looping after upgrading to 4.2.1

Post by PU4CTF »

This time the update+upgrade from 4.2.0 to 4.2.1 went smootly :) Thank you very much!
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: mmdvmhost.service looping after upgrading to 4.2.1

Post by MW0MWZ »

Excellent, thank you for letting me know.
Andy

73 de MW0MWZ
http://pistar.uk
Post Reply