Problem Description
I boot my freedombox and am met with the “Please wait for FreedomBox to finish installation. You can start using your FreedomBox once it is done.” message but the plinth service does not seem to run correctly.
Steps to Reproduce
- Turn on FreedomBox.
- Go to https://localip/plinth
Expected Results
I expected to see freedombox home page and begin installing services.
Actual results
plinth does not seem to be running as expected. The output of “sudo journalctl -u plinth” is shown below. I did have an initial error where plinth would not even start and I resolved this by unmasking the logind service which has led me to this point.
I do have access via the cockpit interface on port 9090. I can see that ssh and sshd services are not running, I don’t know if this relates to that issue?
Oct 22 18:58:43 DietPi /usr/bin/plinth[4114]: Running first setup.
Oct 22 18:58:43 DietPi /usr/bin/plinth[4114]: Running setup for apps, essential - True, selected apps - None
Oct 22 18:58:43 DietPi /usr/bin/plinth[4114]: Operation: firewall: Installing app: added
Oct 22 18:58:43 DietPi /usr/bin/plinth[4114]: Operation: firewall: Installing app: running
Oct 22 18:58:43 DietPi /usr/bin/plinth[4114]: Setup run: firewall
Oct 22 18:59:22 DietPi /usr/bin/plinth[4114]: # firewall…setup(…)
Oct 22 18:59:22 DietPi sudo[7671]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/actions firewall setup --write-fd 22
Oct 22 18:59:22 DietPi sudo[7671]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=107)
Oct 22 18:59:29 DietPi /usr/share/plinth/actions/actions[7673]: Error executing action: Command ‘[‘firewall-cmd’, ‘–set-default-zone=external’]’ returned non-zero exit status 252.
Traceback (most recent call last):
File “/usr/share/plinth/actions/actions”, line 93, in call
return_values = func(arguments[‘args’], **arguments[‘kwargs’])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/plinth/modules/firewall/privileged.py”, line 126, in setup
subprocess.run([‘firewall-cmd’, ‘–set-default-zone=external’],
File “/usr/lib/python3.11/subprocess.py”, line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘firewall-cmd’, ‘–set-default-zone=external’]’ returned non-zero exit status 252.
Oct 22 18:59:30 DietPi sudo[7671]: pam_unix(sudo:session): session closed for user root
Oct 22 18:59:30 DietPi /usr/bin/plinth[4114]: Error running action firewall…setup((), **{}): Command ‘[‘firewall-cmd’, ‘–set-default-zone=external’]’ returned non-zero exit status 252. (252, [‘firewall-cmd’, ‘–set-default-zone=external’], b’‘, b’\x1b[31m ERROR\x1b[0m \x1b[94m__main_ \x1b[0m Error executing action: Command '['firewall-cmd', '–set-default-zone=external']' returned non-zero exit status 252.\nTraceback (most recent call last):\n File “/usr/share/plinth/actions/actions”, line 93, in _call\n return_values = func(*arguments['args'], **arguments['kwargs'])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File “/usr/lib/python3/dist-packages/plinth/modules/firewall/privileged.py”, line 126, in setup\n subprocess.run(['firewall-cmd', '–set-default-zone=external'],\n File “/usr/lib/python3.11/subprocess.py”, line 571, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command '['firewall-cmd', '–set-default-zone=external']' returned non-zero exit status 252.\n’) [’ File “/usr/share/plinth/actions/actions”, line 93, in _call\n return_values = func(*arguments['args'], **arguments['kwargs'])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n’, ’ File “/usr/lib/python3/dist-packages/plinth/modules/firewall/privileged.py”, line 126, in setup\n subprocess.run(['firewall-cmd', '–set-default-zone=external'],\n’, ’ File “/usr/lib/python3.11/subprocess.py”, line 571, in run\n raise CalledProcessError(retcode, process.args,\n’]
Oct 22 18:59:30 DietPi /usr/bin/plinth[4114]: Setup completed: firewall: Error installing app: Command ‘[‘firewall-cmd’, ‘–set-default-zone=external’]’ returned non-zero exit status 252. Command ‘[‘firewall-cmd’, ‘–set-default-zone=external’]’ returned non-zero exit status 252.
Oct 22 18:59:30 DietPi /usr/bin/plinth[4114]: Error running setup - Command ‘[‘firewall-cmd’, ‘–set-default-zone=external’]’ returned non-zero exit status 252.
Oct 22 18:59:30 DietPi /usr/bin/plinth[4114]: Unable to complete setup: Command ‘[‘firewall-cmd’, ‘–set-default-zone=external’]’ returned non-zero exit status 252.
Oct 22 18:59:30 DietPi /usr/bin/plinth[4114]: Will try again in 10 seconds
Screenshot
I can provide a screenshot if necessary.
Information
FreedomBox version: I don’t know my version, I believe the latest stable at time of writing. If there’s a command please let me know, I can’t seem to find the help/about page.
Hardware: Raspberry Pi 3 Model B Plus Rev 1.3
How did you install FreedomBox?: apt install freedombox
OS: DietPi 8.23.3