I have already trying to install nextcloud. But i have some errors:
[FAILED] File does not exist or cannot be written to by current user
Please verify the existence of the file $3
/etc/lighttpd/lighttpd.conf
Retry with proper permissions or apply the setting manually:
"mod_access",
and in console:
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 | Lighttpd webserver found, enabling Nextcloud specific configuration.
/boot/dietpi/func/dietpi-globals: line 464: mawk: command not found
/boot/dietpi/func/dietpi-globals: line 471: stty: command not found
/boot/dietpi/func/dietpi-globals: line 473: ((: <= 120 : syntax error: operand expected (error token is "<= 120 ")
/boot/dietpi/func/dietpi-globals: line 479: ((: >= 7 : syntax error: operand expected (error token is ">= 7 ")
/boot/dietpi/func/dietpi-globals: line 637: /usr/bin/whiptail: Input/output error
/boot/dietpi/func/dietpi-globals: line 1137: /usr/bin/sed: Input/output error
/boot/dietpi/func/dietpi-globals: line 1145: /usr/bin/sed: Input/output error
/boot/dietpi/func/dietpi-globals: line 258: stty: command not found
/boot/dietpi/func/dietpi-globals: line 258: tput: command not found
/boot/dietpi/func/dietpi-globals: line 259: ( 135 + 5 ) / : syntax error: operand expected (error token is "/ ")
/boot/dietpi/dietpi-software: error reading input file: Input/output error
How can i fix it ?
That seems more you have issues with your SD card as commands are missing as well as I/O errors.
I have trued second one to install nexcloud, and have neu error:
│ - Command: ncc maintenance:install --no-interaction --database mysql --database-name nextcloud --database-user │
│ tmp_root --database-pass XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --admin-user admin --admin-pass XXXXXX --data-dir │
│ /mnt/dietpi_userdata/nextcloud_data │
│ - Exit code: 255 │
│ - DietPi version: v7.2.3 (MichaIng/master) | HW_MODEL: 2 | HW_ARCH: 2 | DISTRO: 5 │
│ - Image creator: DietPi Core Team │
│ - Pre-image: Raspberry Pi OS Lite │
│ - Error log: │
│ PHP Fatal error: Interface ‘Psr\Container\ContainerInterface’ not found in │
│ /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 46
I have already trying to install nextcloud. But i have some errors:
[FAILED] File does not exist or cannot be written to by current user
Please verify the existence of the file $3
/etc/lighttpd/lighttpd.conf
Retry with proper permissions or apply the setting manually:
"mod_access",
and in console:
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 | Lighttpd webserver found, enabling Nextcloud specific configuration.
/boot/dietpi/func/dietpi-globals: line 464: mawk: command not found
/boot/dietpi/func/dietpi-globals: line 471: stty: command not found
/boot/dietpi/func/dietpi-globals: line 473: ((: <= 120 : syntax error: operand expected (error token is "<= 120 ")
/boot/dietpi/func/dietpi-globals: line 479: ((: >= 7 : syntax error: operand expected (error token is ">= 7 ")
/boot/dietpi/func/dietpi-globals: line 637: /usr/bin/whiptail: Input/output error
/boot/dietpi/func/dietpi-globals: line 1137: /usr/bin/sed: Input/output error
/boot/dietpi/func/dietpi-globals: line 1145: /usr/bin/sed: Input/output error
/boot/dietpi/func/dietpi-globals: line 258: stty: command not found
/boot/dietpi/func/dietpi-globals: line 258: tput: command not found
/boot/dietpi/func/dietpi-globals: line 259: ( 135 + 5 ) / : syntax error: operand expected (error token is "/ ")
/boot/dietpi/dietpi-software: error reading input file: Input/output error
Second one I have tried install, and I got new errors:
Command: ncc maintenance:install --no-interaction --database mysql --database-name nextcloud --database-user │
│ tmp_root --database-pass XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --admin-user admin --admin-pass XXXXXX --data-dir │
│ /mnt/dietpi_userdata/nextcloud_data │
│ - Exit code: 255 │
│ - DietPi version: v7.2.3 (MichaIng/master) | HW_MODEL: 2 | HW_ARCH: 2 | DISTRO: 5 │
│ - Image creator: DietPi Core Team │
│ - Pre-image: Raspberry Pi OS Lite │
│ - Error log: │
│ PHP Fatal error: Interface 'Psr\Container\ContainerInterface' not found in │
│ /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 46
How can I fix it?
you can try to check if your SD card is healthy and preform a basic file system check
> /forcefsck
reboot
# then after reboot
journalctl -t systemd-fsck
as well check for kernel error message
dmesg -l err,crit,alert,emerg