DietPi-Process_tool | Fix PlexMediaServer process handling

Created on 23 Sep 2018  ยท  12Comments  ยท  Source: MichaIng/DietPi

Hello upon installation of some software in a raspberry pi 3

i got multiple errors

image gallery:

single_file_php_gallery_4.7.0.zip
exit code 5
spider mode enabled
check if remote file exists
error the certificate of dietpi.com is not trusted
the certificate of dietpi.com is not yet activated

i also got an error trying to install sickrage/rtorrent/ about an unrar.deb file that cannot be found with the same dietpi.com certificates errors up i assume this unrar file is used in many software

thanks

Bug

Most helpful comment

Two fixes in parallel, however no problem, since both are exactly the same ๐Ÿ˜„.

All 12 comments

i forgot i also have this errors in plex server

[FAILED] DietPi-Process_tool | Plex Media Server () Affinity 0-3
[FAILED] DietPi-Process_tool | An issue has occured

The gui loads ok but i did not proceed further than the create account page

@symbios24

error the certificate of dietpi.com is not trusted

Appears to be an issue with date on the system. Please try running:

systemctl start systemd-timesyncd

Then check status with:

systemctl status systemd-timesyncd -l

It may take some time, however, once the time is sync you should see the below:

 systemd-timesyncd[1591]: Synchronized to time server 178.
62.16.103:123 (0.debian.pool.ntp.org).

Once completed, software installations should be functional.

Which DietPi version are you running?

And please paste results

systemctl status plex* -l

Latest DietPi 6.16,its strange because i did some installations successfully,and after i got this errors on others.

i cannot paste all this from the raspberry i have to write it and its not possible its too long.can you replicate the error?

@symbios24
Please try to write down the essential lines:
systemctl start systemd-timesyncd should not show any errors. If it does, it offers you two commands to the further investigate. One of those is: systemctl status systemd-timesyncd

systemctl status systemd-timesyncd should show you some clear active/error info, showing a green icon or a red one.
The log lines of the bottom are the most interesting ones, if it failed. There should be some info if/why it could not start or sync to time server.
As mentioned by Fourdee systemd-timesyncd[1591]: Synchronized to time server 178.62.16.103:123 (0.debian.pool.ntp.org). or similar should be shown, if it started and synced successfully. If it did, you can retry G_CHECK_URL dietpi.com to verify that SSL errors are gone. If so, install should work as well again.

You can also take a picture by phone from RPi screen e.g. and post it here, after blanking identifying lines ๐Ÿ˜‰.

i tried before with the phone,but its not possible to take a picture on a widescreen with all the info in it in such an old phone.i will wait for future fix for plex server but still i dont know if this failed messages affect the operation of the server.

The time synchronize trick worked the image gallery installed successful.

thanks anyway

@symbios24

[FAILED] DietPi-Process_tool | Plex Media Server () Affinity 0-3

We had some other case, where the process tool was not able to apply settings because of temporary spawned processes that disappear while process tool is working. But this was resolved with v6.15: https://github.com/Fourdee/DietPi/commit/14cba4e4cf840b7934a33a23d3ea01701c73e54a#diff-7e4ac76a426f5cc1dd4b18222d378606

  • However there is still a smaller time window, where the process could disappear, nothing we can 100% solve currently. But the failure has no negative impact anyway, it just looks ugly ๐Ÿ˜‰.

But to be sure, are you on current DietPi v6.16?

The gui loads ok but i did not proceed further than the create account page

Is this still the case?
What does systemctl status plex* -l show?

Im on Dietpi v6.16 the systemctl shows a lot of things.that i cannot write here.it will be more easy to duplicate the process to see for your self.

@symbios24
Fixed the plex issue: https://github.com/Fourdee/DietPi/commit/7abf38d3eae5596f229d612702f108fd87982e04
Changelog entry: https://github.com/Fourdee/DietPi/blob/17447c6061fd694b945d1879ab933ae8009790f6/CHANGELOG.txt#L29

It was due to plex processes having white spaces in their names, which broke pgrep PID checks.

Would be great if you could apply this tiny change as well to your /DietPi/dietpi/dietpi-process_tool and check if the error is gone when reapplying: /DietPi/dietpi/dietpi-process_tool 1

@symbios24 @MichaIng

๐Ÿˆฏ๏ธ Issue resolved for v6.17, with following commit:
https://github.com/Fourdee/DietPi/commit/3cddaed25cee948a9f1346df6f4e167149bec5d6#diff-7e4ac76a426f5cc1dd4b18222d378606

๐Ÿˆฏ๏ธ Verified with local testing.

Completed.

Two fixes in parallel, however no problem, since both are exactly the same ๐Ÿ˜„.

Hi, i dont get it what i type in the command line to fix the error?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aesirteam picture aesirteam  ยท  3Comments

bhaveshgohel picture bhaveshgohel  ยท  3Comments

Kapot picture Kapot  ยท  3Comments

Invictaz picture Invictaz  ยท  3Comments

1021683053 picture 1021683053  ยท  3Comments