[SOLVED] Plinth service not working after sudden powerloss in freedombox on amd computer

thanks in advance.
i am a newbie freedombox user.
i installed freedombox on amd board computer without gui
Sudden power-loss is causing plinth inaccesible.
when i checked for status of apache server result is as follows:
-> systemctl status apache2
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-10-10 07:57:55 UTC; 33min ago
Process: 1496 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

plinth.service - Plinth Web Interface
Loaded: loaded (/lib/systemd/system/plinth.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-02-14 10:12:13 UTC; 7 months 24 days ago
Docs: man:plinth(1)
Process: 1030 ExecStart=/usr/bin/plinth (code=exited, status=1/FAILURE)
Main PID: 1030 (code=exited, status=1/FAILURE)

Feb 14 10:12:13 freedombox systemd[1]: plinth.service: Service RestartSec=100ms expired, scheduling restart.
Feb 14 10:12:13 freedombox systemd[1]: plinth.service: Scheduled restart job, restart counter is at 5.
Feb 14 10:12:13 freedombox systemd[1]: Stopped Plinth Web Interface.
Feb 14 10:12:13 freedombox systemd[1]: plinth.service: Start request repeated too quickly.
Feb 14 10:12:13 freedombox systemd[1]: plinth.service: Failed with result ‘exit-code’.
Feb 14 10:12:13 freedombox systemd[1]: Failed to start Plinth Web Interface.

how can i resolve this and use plinth service

Hi, Hemchand! Thanks for sharing your issue.

A similar topic was previously discussed in a different thread. @njoseph’s comment in that thread, in particular, might be helpful to you: [SOLVED] FreedomBox disappeared from network list in router

Let us know if that helps solve your problem.

And welcome to our community!

1 Like

Sorry to inform you sir. I tried the same as of mentioned in the thread you suggested. There is no broken package yet to be installed. Still the apache server and plinth are not working.

Hello,

Since this happened after power loss, and both Apache and Plinth services have failed at the same we are looking at possible disk corruption (this should have been impossible unless due to hardware issues). Could you please check:

  • Did you run out of disk space df -h.
  • Is your disk mounted read-only (due to filesystem errors). Output of mount.
  • What happens when you try to strat Plinth on command line? sudo -u plinth plinth.
  • What do the logs for apache and plinth show? journalctl -u plinth, journalctl -u apache2?
  • Do you see any errors during boot or system logs journalctl?
1 Like

I did as you told Sir. And the result is as follows:

Also for the command journalctl -u plinth, -u apache2
output is:
– Logs begin at Thu 2019-02-14 10:11:59 UTC, end at Sat 2019-10-12 03:17:01 UTC. –
Feb 14 10:12:36 freedombox systemd[1]: Starting The Apache HTTP Server…
Feb 14 10:12:37 freedombox apachectl[730]: AH00526: Syntax error on line 6 of /etc/apache2/mods-enabled/gnutls.conf:
Feb 14 10:12:37 freedombox apachectl[730]: Could not find socache provider ‘dbm’, please make sure that the provider name is valid and the appropriate module is loaded (maybe mod_socache_dbm.so?).
Feb 14 10:12:37 freedombox apachectl[730]: Action ‘start’ failed.
Feb 14 10:12:37 freedombox apachectl[730]: The Apache error log may have more information.
Feb 14 10:12:37 freedombox systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Feb 14 10:12:37 freedombox systemd[1]: apache2.service: Failed with result ‘exit-code’.
Feb 14 10:12:37 freedombox systemd[1]: Failed to start The Apache HTTP Server.

output for command journalctl -u plinth is:
– Logs begin at Thu 2019-02-14 10:11:59 UTC, end at Sat 2019-10-12 03:11:10 UTC. –
Feb 14 10:12:05 freedombox systemd[1]: Started Plinth Web Interface.
Feb 14 10:12:09 freedombox plinth[448]: Traceback (most recent call last):
Feb 14 10:12:09 freedombox plinth[448]: File “/usr/bin/plinth”, line 19, in
Feb 14 10:12:09 freedombox plinth[448]: import plinth.main
Feb 14 10:12:09 freedombox plinth[448]: File “/usr/lib/python3/dist-packages/plinth/main.py”, line 33, in
Feb 14 10:12:09 freedombox plinth[448]: from plinth import module_loader
Feb 14 10:12:09 freedombox plinth[448]: File “/usr/lib/python3/dist-packages/plinth/module_loader.py”, line 31, in
Feb 14 10:12:09 freedombox plinth[448]: from plinth import setup
Feb 14 10:12:09 freedombox plinth[448]: File “/usr/lib/python3/dist-packages/plinth/setup.py”, line 26, in
Feb 14 10:12:09 freedombox plinth[448]: from . import package
Feb 14 10:12:09 freedombox plinth[448]: File “/usr/lib/python3/dist-packages/plinth/package.py”, line 91
Feb 14 10:12:09 freedombox plinth[448]: process = actions.superuser_run(‘packages’, arguments, async=True)
Feb 14 10:12:09 freedombox plinth[448]: ^
Feb 14 10:12:09 freedombox plinth[448]: SyntaxError: invalid syntax
Feb 14 10:12:09 freedombox systemd[1]: plinth.service: Main process exited, code=exited, status=1/FAILURE
Feb 14 10:12:09 freedombox systemd[1]: plinth.service: Failed with result ‘exit-code’.
Feb 14 10:12:10 freedombox systemd[1]: plinth.service: Service RestartSec=100ms expired, scheduling restart.
Feb 14 10:12:10 freedombox systemd[1]: plinth.service: Scheduled restart job, restart counter is at 1.
Feb 14 10:12:10 freedombox systemd[1]: Stopped Plinth Web Interface.
Feb 14 10:12:10 freedombox systemd[1]: Started Plinth Web Interface.
Feb 14 10:12:10 freedombox plinth[584]: Traceback (most recent call last):
Feb 14 10:12:10 freedombox plinth[584]: File “/usr/bin/plinth”, line 19, in
Feb 14 10:12:10 freedombox plinth[584]: import plinth.main
Feb 14 10:12:10 freedombox plinth[584]: File “/usr/lib/python3/dist-packages/plinth/main.py”, line 33, in
Feb 14 10:12:10 freedombox plinth[584]: from plinth import module_loader
Feb 14 10:12:10 freedombox plinth[584]: File “/usr/lib/python3/dist-packages/plinth/module_loader.py”, line 31, in
Feb 14 10:12:10 freedombox plinth[584]: from plinth import setup
Feb 14 10:12:10 freedombox plinth[584]: File “/usr/lib/python3/dist-packages/plinth/setup.py”, line 26, in
Feb 14 10:12:10 freedombox plinth[584]: from . import package
Feb 14 10:12:10 freedombox plinth[584]: File “/usr/lib/python3/dist-packages/plinth/package.py”, line 91
Feb 14 10:12:10 freedombox plinth[584]: process = actions.superuser_run(‘packages’, arguments, async=True)
Feb 14 10:12:10 freedombox plinth[584]: ^
Feb 14 10:12:10 freedombox plinth[584]: SyntaxError: invalid syntax
Feb 14 10:12:10 freedombox systemd[1]: plinth.service: Main process exited, code=exited, status=1/FAILURE
Feb 14 10:12:10 freedombox systemd[1]: plinth.service: Failed with result ‘exit-code’.
Feb 14 10:12:10 freedombox systemd[1]: plinth.service: Service RestartSec=100ms expired, scheduling restart.
Feb 14 10:12:10 freedombox systemd[1]: plinth.service: Scheduled restart job, restart counter is at 2.
Feb 14 10:12:10 freedombox systemd[1]: Stopped Plinth Web Interface.
Feb 14 10:12:10 freedombox systemd[1]: Started Plinth Web Interface.
Feb 14 10:12:11 freedombox plinth[587]: Traceback (most recent call last):
Feb 14 10:12:11 freedombox plinth[587]: File “/usr/bin/plinth”, line 19, in
Feb 14 10:12:11 freedombox plinth[587]: import plinth.main
Feb 14 10:12:11 freedombox plinth[587]: File “/usr/lib/python3/dist-packages/plinth/main.py”, line 33, in
Feb 14 10:12:11 freedombox plinth[587]: from plinth import module_loader
Feb 14 10:12:11 freedombox plinth[587]: File “/usr/lib/python3/dist-packages/plinth/module_loader.py”, line 31, in
Feb 14 10:12:11 freedombox plinth[587]: from plinth import setup
Feb 14 10:12:11 freedombox plinth[587]: File “/usr/lib/python3/dist-packages/plinth/setup.py”, line 26, in
Feb 14 10:12:11 freedombox plinth[587]: from . import package
Feb 14 10:12:11 freedombox plinth[587]: File “/usr/lib/python3/dist-packages/plinth/package.py”, line 91
Feb 14 10:12:11 freedombox plinth[587]: process = actions.superuser_run(‘packages’, arguments, async=True)
Feb 14 10:12:11 freedombox plinth[587]: ^
Feb 14 10:12:11 freedombox plinth[587]: SyntaxError: invalid syntax
Feb 14 10:12:11 freedombox systemd[1]: plinth.service: Main process exited, code=exited, status=1/FAILURE
Feb 14 10:12:11 freedombox systemd[1]: plinth.service: Failed with result ‘exit-code’.
Feb 14 10:12:11 freedombox systemd[1]: plinth.service: Service RestartSec=100ms expired, scheduling restart.
Feb 14 10:12:11 freedombox systemd[1]: plinth.service: Scheduled restart job, restart counter is at 3.
Feb 14 10:12:11 freedombox systemd[1]: Stopped Plinth Web Interface.
Feb 14 10:12:11 freedombox systemd[1]: Started Plinth Web Interface.
Feb 14 10:12:12 freedombox plinth[590]: Traceback (most recent call last):
Feb 14 10:12:12 freedombox plinth[590]: File “/usr/bin/plinth”, line 19, in
Feb 14 10:12:12 freedombox plinth[590]: import plinth.main
Feb 14 10:12:12 freedombox plinth[590]: File “/usr/lib/python3/dist-packages/plinth/main.py”, line 33, in
Feb 14 10:12:12 freedombox plinth[590]: from plinth import module_loader
Feb 14 10:12:12 freedombox plinth[590]: File “/usr/lib/python3/dist-packages/plinth/module_loader.py”, line 31, in
Feb 14 10:12:12 freedombox plinth[590]: from plinth import setup
Feb 14 10:12:12 freedombox plinth[590]: File “/usr/lib/python3/dist-packages/plinth/setup.py”, line 26, in
Feb 14 10:12:12 freedombox plinth[590]: from . import package
Feb 14 10:12:12 freedombox plinth[590]: File “/usr/lib/python3/dist-packages/plinth/package.py”, line 91
Feb 14 10:12:12 freedombox plinth[590]: process = actions.superuser_run(‘packages’, arguments, async=True)
Feb 14 10:12:12 freedombox plinth[590]: ^
Feb 14 10:12:12 freedombox plinth[590]: SyntaxError: invalid syntax
Feb 14 10:12:12 freedombox systemd[1]: plinth.service: Main process exited, code=exited, status=1/FAILURE
Feb 14 10:12:12 freedombox systemd[1]: plinth.service: Failed with result ‘exit-code’.
Feb 14 10:12:12 freedombox systemd[1]: plinth.service: Service RestartSec=100ms expired, scheduling restart.
Feb 14 10:12:12 freedombox systemd[1]: plinth.service: Scheduled restart job, restart counter is at 4.
Feb 14 10:12:12 freedombox systemd[1]: Stopped Plinth Web Interface.
Feb 14 10:12:12 freedombox systemd[1]: Started Plinth Web Interface.
Feb 14 10:12:12 freedombox plinth[593]: Traceback (most recent call last):
Feb 14 10:12:12 freedombox plinth[593]: File “/usr/bin/plinth”, line 19, in
Feb 14 10:12:12 freedombox plinth[593]: import plinth.main
Feb 14 10:12:12 freedombox plinth[593]: File “/usr/lib/python3/dist-packages/plinth/main.py”, line 33, in
Feb 14 10:12:12 freedombox plinth[593]: from plinth import module_loader
Feb 14 10:12:12 freedombox plinth[593]: File “/usr/lib/python3/dist-packages/plinth/module_loader.py”, line 31, in
Feb 14 10:12:12 freedombox plinth[593]: from plinth import setup
Feb 14 10:12:12 freedombox plinth[593]: File “/usr/lib/python3/dist-packages/plinth/setup.py”, line 26, in
Feb 14 10:12:12 freedombox plinth[593]: from . import package
Feb 14 10:12:12 freedombox plinth[593]: File “/usr/lib/python3/dist-packages/plinth/package.py”, line 91
Feb 14 10:12:12 freedombox plinth[593]: process = actions.superuser_run(‘packages’, arguments, async=True)
Feb 14 10:12:12 freedombox plinth[593]: ^
Feb 14 10:12:12 freedombox plinth[593]: SyntaxError: invalid syntax
Feb 14 10:12:12 freedombox systemd[1]: plinth.service: Main process exited, code=exited, status=1/FAILURE
Feb 14 10:12:12 freedombox systemd[1]: plinth.service: Failed with result ‘exit-code’.
Feb 14 10:12:13 freedombox systemd[1]: plinth.service: Service RestartSec=100ms expired, scheduling restart.
Feb 14 10:12:13 freedombox systemd[1]: plinth.service: Scheduled restart job, restart counter is at 5.
Feb 14 10:12:13 freedombox systemd[1]: Stopped Plinth Web Interface.
Feb 14 10:12:13 freedombox systemd[1]: plinth.service: Start request repeated too quickly.
Feb 14 10:12:13 freedombox systemd[1]: plinth.service: Failed with result ‘exit-code’.
Feb 14 10:12:13 freedombox systemd[1]: Failed to start Plinth Web Interface.

Plinth is failing to start because it is too old to work on the recent version of Python > 3.7 that you have. It looks like you have a version of Plinth < 0.24.0. Somehow you machine upgraded Python but not Plinth. Could you please run the following:

apt update 
apt dist-upgrade -y
1 Like

Apache seems to be failing because inconsistent configuration. Upgrading Plinth should fix this as well.

1 Like

Ok sir I will do the same as you said.
But please let me know why this is happening after powerloss.
if i setup freedombox on pc and normally shutdown and poweron as many times i want… it is well but soon after power loss plinth is not working anymore.
I am a newbie to linux and just know basic …thats why asking.:blush:

Excuse me sir.
I have done so as you said. i upgraded so.
but i still didnt get plinth even after rebooting.

Could you give me the outputs of those commands now after the upgrade has been completed?

The reason it failed after reboot is likely because before the reboot, the version of Python was old and got upgraded to new version. That won’t effect any running daemons unless they are rebooted. Also likely that you have rebooted during an upgrade (so Python is upgraded and not Plinth).

Since the box seems to have not been used in some time, consider doing a fresh install if there is not much data on it.

Thanks for your concern sir
I have reinstalled the freedombox and its now working fine.

2 Likes