Updating DietPi has broken Nextcloud installation Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

DietPi Version:
G_DIETPI_VERSION_CORE=7
G_DIETPI_VERSION_SUB=7
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'

Distro Version:
Stretch 1

Kernel:
Linux DietPi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux

SBC Model:
Pi3B (not B+)

So, even I can work out that it is still probably Stretch. Would an apt dist-upgrade be in order?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Updating DietPi has broken Nextcloud installation

Post by Joulinar »

Ok basically we would have 2 option

Fix it on Stretch, which I would not recommend. Because Stretch is quite an old Debian version.
Or upgrade the entire system to Buster first and fix PHP version there.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

Or upgrade the entire system to Buster first and fix PHP version there
I agree.

So, is that apt dist-upgrade to take it from Stretch to Buster?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Updating DietPi has broken Nextcloud installation

Post by Joulinar »

Not really. Some more steps are needed. But we have a guide you could follow https://dietpi.com/docs/usage/#how-to-upgrade-to-buster

Most probably PHP will be incorrect still but could be fixed once you on Buster.

Important: create a backup before you start
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

Many thanks.

I've had a quick look at the guide and it appears to be easy enough to follow.

Backup done.

My weekend is over and it will be back to the day job tomorrow, but I will see if I can squeeze this in one evening and get back to you with the outcome.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Updating DietPi has broken Nextcloud installation

Post by Joulinar »

take your time. No need to rush. 8)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

Hi -

Took a little longer than expected to get back to this as I was unwell last weekend.

Anyway, have gone through the steps you pointed me at to upgrade to Buster and I believe from the output of the previous commands to asked me to run that it has upgraded:-

Code: Select all

cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=7
G_DIETPI_VERSION_SUB=7
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'

Code: Select all

echo $G_DISTRO_NAME $G_RASPBIAN
buster 1

Code: Select all

uname -a
Linux DietPi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux
Was unable to access either the nextcloud instance or the root web service and dietpi-services status indicated that lighthttpd had failed to start. So, performed another reboot which made no difference.

The lighthttps-specific messages returned by dietpi-services status show -

Code: Select all

   Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2021-11-06 16:17:59 GMT; 56s ago
  Process: 764 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)

Nov 06 16:17:59 DietPi systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 06 16:17:59 DietPi systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Nov 06 16:17:59 DietPi systemd[1]: Stopped Lighttpd Daemon.
Nov 06 16:17:59 DietPi systemd[1]: lighttpd.service: Start request repeated too quickly.
Nov 06 16:17:59 DietPi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Nov 06 16:17:59 DietPi systemd[1]: Failed to start Lighttpd Daemon.
So, that's where I am at the moment.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Updating DietPi has broken Nextcloud installation

Post by Joulinar »

Let's verify configuration. It will display the exact error if there is one ;)

Code: Select all

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gobstopper
Posts: 30
Joined: Sun Jul 14, 2019 5:05 pm

Re: Updating DietPi has broken Nextcloud installation

Post by gobstopper »

Don't know if this is particularly revealing -

Code: Select all

root@DietPi:~# /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
/bin/bash: /usr/share/lighttpd/create-mime.assign.pl: No such file or directory
2021-11-06 17:23:18: (configfile.c.1468) command "/usr/share/lighttpd/create-mime.assign.pl" exited non-zero: 127
2021-11-06 17:23:18: (configfile.c.1296) source: /etc/lighttpd/lighttpd.conf line: 31 pos: 14 parser failed somehow near here: (EOL)
root@DietPi:~#
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Updating DietPi has broken Nextcloud installation

Post by Joulinar »

ah I guess the file has been renamed on newer version of Lighttpd. Let's check it

Code: Select all

ls -la /usr/share/lighttpd/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply