Started Update UTMP about System Runlevel Changes

Hi everyone,

After the latest update and a restart, my raspberry pi 3b can’t go past the following line:
[OK] Started Update UTMP about System Runlevel Changes

I can SSH into it and I can see all other services running normally like SickChill, CouchPotato and NextCloud.

Only mediacenter service is not running. Restarting the service doesn’t help.

systemctl status mediacenter gives following output:

mediacenter.service - media center application
Loaded: loaded (/lib/systemd/system/mediacenter.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-11-01 23:15:08 CET; 19s ago
Process: 1648 ExecStopPost=/usr/bin/mediacenter stop (code=exited, status=0/SUCCESS)
Process: 1634 ExecStart=/usr/bin/mediacenter (code=exited, status=2)
Main PID: 1634 (code=exited, status=2)

Nov 01 23:15:08 osmc systemd[1]: Started media center application.
Nov 01 23:15:08 osmc mediacenter[1634]: /usr/bin/mediacenter: line 112: syntax error near unexpected token `(’
Nov 01 23:15:08 osmc mediacenter[1634]: [54B blob data]
Nov 01 23:15:08 osmc systemd[1]: mediacenter.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 01 23:15:08 osmc systemd[1]: mediacenter.service: Unit entered failed state.
Nov 01 23:15:08 osmc systemd[1]: mediacenter.service: Failed with result ‘exit-code’.

And here is the log (grabs-logs -A).

Anyone has any idea what happened and/or how can I fix it?

It could be a failing SD card.

I suggest you try to reinstall the mediacenter package from the command line:

sudo apt-get update
sudo apt-get install --reinstall rbp2-mediacenter-osmc

then reboot.

I also noticed this:

Nov 01 23:16:09 osmc kernel: [UFW BLOCK] IN=eth0 OUT= MAC=b8:27:eb:02:bf:9b:28:41:c6:20:db:07:08:00:45:00:00:53:7d:04:40:00:39:06:74:e7 SRC=5.9.136.14 DST=192.168.1.250 LEN=83 TOS=0x00 PREC=0x00 TTL=57 ID=32004 DF PROTO=TCP SPT=443 DPT=35604 WINDOW=61 RES=0x00 ACK PSH URGP=0

Do you have an SSH port open on your router?

sudo apt-get update does this:

Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 Index of /debian stretch InRelease
Hit:3 Index of /debian stretch-updates InRelease
Hit:4 Index of /debian stretch Release
Ign:7 Index of /download/repository sarge InRelease
Hit:8 Index of /download/repository sarge Release
Hit:6 Index of /osmc/osmc/apt stretch InRelease
Problem parsing dependency 20
Error occurred while processing libadminutil0 (NewVersion2)
Problem with MergeList /var/lib/apt/lists/ftp.debian.org_debian_dists_stretch_main_binary-armhf_Packages
The package lists or status file could not be parsed or opened.
Can’t call method “policy” on an undefined value at /usr/bin/apt-show-versions line 56.
Reading package lists… Error!
E: Problem executing scripts APT::Update::Post-Invoke-Success ‘test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i’
E: Sub-process returned an error code
E: Problem parsing dependency 20
E: Error occurred while processing libadminutil0 (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/ftp.debian.org_debian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.

I don’t have a SSH port opened on my router. I’m only forwarding the 443 port for the NexctCloud.
What does this log entry mean?

Run these commands:

sudo rm -r /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall rbp2-mediacenter-osmc

Depending on your Internet speed, the update step might take a while.

It still lools like the SD card might be failing.

Thanks - that did it, it works now.

Any way I can check the SD card, just in case?