-
-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | ARMv7: haveged crashes #4710
Comments
Hi, I guess is same behaviour as this one #4318 A workaround could be following
|
Yes this should have been done as part of the update to v7.2: https://github.com/MichaIng/DietPi/blob/99739bd/.update/patches#L105-L111 |
@Joulinar I tried those commands and found the following:
after starting haveged, it's status was failed as follows
but them after a haveged service restart, it appears as follows:
Now I try to install Nextcloud again and it hangs on the same message: |
EDIT: Ah wait, so you're on Bullseye now? Skip the below if so, that was only relevant on Buster! Please try the following: cd /tmp
curl -sSfLO "https://dietpi.com/downloads/binaries/buster/libhavege2_$G_HW_ARCH_NAME.deb"
curl -sSfLO "https://dietpi.com/downloads/binaries/buster/haveged_$G_HW_ARCH_NAME.deb"
G_AGI "./libhavege2_$G_HW_ARCH_NAME.deb" "./haveged_$G_HW_ARCH_NAME.deb"
rm "./libhavege2_$G_HW_ARCH_NAME.deb" "./haveged_$G_HW_ARCH_NAME.deb" I forgot that there was an issue with the version on Debian Buster on ARM, so we did a patch to use the ones from Bullseye. But that was a long time ago before haveged was even installed on XU4: https://github.com/MichaIng/DietPi/blob/dev/dietpi/patch_file#L2711-L2721 Interestingly the other user, who reported failing rngd on XU4 first, didn't have any issues with the haveged from Debian. Probably it was a Stretch system 🤔. When you are on Bullseye, check the following: cat /proc/sys/kernel/random/entropy_avail
cat /proc/sys/kernel/random/write_wakeup_threshold The first should show a higher number than the second. haveged should actually assure that this stays true. When you run the following, you can trigger haveged to become active and see whether it keeps the entropy pool filled as expected: tr -dc '[:alnum:]' < /dev/random | head -c30 If this hangs, likely |
Edit: just saw you added Bullseye commands to try. Will try and update Yep, this install is on Bullseye. I tried the following commands and then tried to install Nextcloud again and it's hanging in the same place. Any suggestions on a good pkg to test installing to see if it's a "deeper" issue? |
What I've found
|
No joy with haveged on ARM continues 😄. I think this is the related bug:
So 32-bit ARMs seem to not support a certain syscall that haveged does. It then automatically falls back to a different one ( mkdir -p /etc/systemd/system/haveged.service.d
echo -e '[Service]\nSystemCallFilter=uname' > /etc/systemd/system/haveged.service.d/dietpi.conf
systemctl daemon-reload
systemctl restart haveged |
@MichaIng I have tried those commands and the Nextcloud install appears to have completed, but fails to restart Apache2 at the end of the script.
Apache2 fails when I try to start it complaining that /var/log/apache2 does not exist. I changed my system logging to SSD disk in one of the dietpi menus. I then created that directory and Apache2 started up just fine. Navigated to http://ip-address/nextcloud, logged in using admin and my dietpi global password and we're good to go! The create-a-haveged-systemd "fix" definitely worked. Thank you for helping me get this working. |
Okay, great that we found it. So two things to do:
What? There is no option to change the logging to an SSD disk. You can enable or disable RAM logging (install/uninstall DietPi-RAMlog), but that should preserve all |
Maybe @jg777 did you tested a reboot? Does Apache is still working? |
Ah you did both in the same session? Then it makes sense: Only non-volatile files are moved to the new disk, which means that newly created files in |
Fixed with: 899a42a |
Creating a bug report/issue
Required Information
cat /boot/dietpi/.version
G_DIETPI_VERSION_SUB=5
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='not applicable'
Additional Information (if applicable)
Steps to reproduce
dietpi-software install 114
to start Nextcloud install. I have tried this with Apache or Nginx and it did not seem to make a difference as it hung at the same spot.[ OK ] DietPi-Software | chown -R www-data:www-data /var/www/nextcloud /mnt/dietpi_userdata/nextcloud_data
sudo dietpi-software uninstall 114
and it prompts "114: Nextcloud is not currently installed" when it seems to be there, but it did not finish setting up correctly with the script.Expected behaviour
Actual behaviour
Extra details
The text was updated successfully, but these errors were encountered: