Nextcloud install hangs

After flashing the latest Dietpi, when I go into dietpi-launcher to install Nextcloud the install hangs for ever. The following is what I see on my terminal:

DietPi-Software
─────────────────────────────────────────────────────
Mode: Configuring Nextcloud: File sync, sharing and collaboration platform

[ INFO ] DietPi-Software | Enabling required PHP modules.
[  OK  ] DietPi-Software | phpenmod ctype curl dom gd iconv intl json mbstring pdo_mysql posix simplexml xmlreader xmlwriter zip fileinfo opcache apcu redis exif
[ INFO ] DietPi-Software | Apply PHP override settings for Nextcloud.
[  OK  ] DietPi-Software | phpenmod dietpi-nextcloud
[ INFO ] DietPi-Software | Apache webserver found, enabling Nextcloud specific configuration.
[  OK  ] DietPi-Software | Checking URL: https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_114/apache.nextcloud.conf
[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | curl -sSfL https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_114/apache.nextcloud.conf -o apache.nextcloud.conf
[ INFO ] DietPi-Software | Updating file: /etc/apache2/sites-available/dietpi-nextcloud.conf.dietpi-new
[  OK  ] DietPi-Software | mv apache.nextcloud.conf /etc/apache2/sites-available/dietpi-nextcloud.conf.dietpi-new
[  OK  ] DietPi-Software | systemctl restart mariadb
[  OK  ] DietPi-Software | systemctl restart redis-server
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/nextcloud_data
[  OK  ] DietPi-Software | chown -R www-data:www-data /var/www/nextcloud /mnt/dietpi_userdata/nextcloud_data.

HANGS at the chown command, which should take seconds to do.

Hi,

are you running a Odroid device? If yes, this might be similar issue as this one https://dietpi.com/forum/t/odroid-xu4-nextcloud-and-owncloud-install-hangs/5269/1

Yes, Odroid xu4, that did not resolve the issue.

Did you performed following and restarted the system afterwards?

apt purge --autoremove rng-tools-debian rng-tools rng-tools5
apt install haveged
systemctl start haveged

Done all that and still it hangs:

DietPi-Software
─────────────────────────────────────────────────────
 Mode: Configuring Nextcloud: File sync, sharing and collaboration platform

[ INFO ] DietPi-Software | Enabling required PHP modules.
[  OK  ] DietPi-Software | phpenmod ctype curl dom gd iconv intl json mbstring pdo_mysql posix simplexml xmlreader xmlwriter zip fileinfo opcache apcu redis exif
[ INFO ] DietPi-Software | Apply PHP override settings for Nextcloud.
[  OK  ] DietPi-Software | phpenmod dietpi-nextcloud
[ INFO ] DietPi-Software | Apache webserver found, enabling Nextcloud specific configuration.
[  OK  ] DietPi-Software | Checking URL: https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_114/apache.nextcloud.conf
[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | curl -sSfL https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_114/apache.nextcloud.conf -o apache.nextcloud.conf
[  OK  ] DietPi-Software | mv apache.nextcloud.conf /etc/apache2/sites-available/dietpi-nextcloud.conf.dietpi-new
[  OK  ] DietPi-Software | systemctl restart mariadb
[  OK  ] DietPi-Software | systemctl restart redis-server
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/nextcloud_data
[  OK  ] DietPi-Software | chown -R www-data:www-data /var/www/nextcloud /mnt/dietpi_userdata/nextcloud_data

did you restarted the system afterwards?

Yes

I got it installed. haveged failed to load. I got it working, then rebooted and installed Nextcloud via Dietpi-launcher. :smiley:

What was the issue on haveged and how did you fixed it?

Haveged status said failed. So I followed the steps here https://github.com/MichaIng/DietPi/issues/4318#issuecomment-830237494

ok great

That should be actually done via dietpi-update as part of v7.2 incremental patches :thinking: https://github.com/MichaIng/DietPi/blob/3865195/.update/patches#L104-L111

unfortunately we don’t know what the DietPi version was at that time. Maybe it was below 7.2 :thinking:

This is still happening for me on the latest image DietPI v7.5.2 on oDroid XU4
nextcloud hangs at chown exactly as OP describes
Issue occurs even when preinstalling dependencies via dietpi-software and replacing the system rng as discussed.

Hi,

we found a Debian bug that might be related to haveged not working correctly on ARM. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985196

can you check following pls if service is on failed status?

systemctl status haveged