Nextcloud installation issues

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Caporeira
Posts: 22
Joined: Sat May 29, 2021 11:21 pm

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by Caporeira »

I have already trying to install nextcloud. But i have some errors:

Code: Select all

[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:

Code: Select all

 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 ?
User avatar
Joulinar
Posts: 5598
Joined: Sat Nov 16, 2019 12:49 am

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by Joulinar »

That seems more you have issues with your SD card as commands are missing as well as I/O errors.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Caporeira
Posts: 22
Joined: Sat May 29, 2021 11:21 pm

Re: Random diet-Pi crashes -> reboot -> not coming back

Post by Caporeira »

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
Caporeira
Posts: 22
Joined: Sat May 29, 2021 11:21 pm

Nextcloud installation issues

Post by Caporeira »

I have already trying to install nextcloud. But i have some errors:

Code: Select all

[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:

Code: Select all

 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:

Code: Select all

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?
User avatar
Joulinar
Posts: 5598
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud installation issues

Post by Joulinar »

you can try to check if your SD card is healthy and preform a basic file system check

Code: Select all

> /forcefsck
reboot
# then after reboot
journalctl -t systemd-fsck
as well check for kernel error message

Code: Select all

dmesg -l err,crit,alert,emerg
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply