Vm: Update Script Problem

Created on 8 Apr 2020  路  4Comments  路  Source: nextcloud/vm

Steps to reproduce

  1. ssh session to the vm
  2. sudo /var/scripts/update.sh
    3.

Expected behaviour

Tell us what should happen

system has updated packages and installed php7.4.4

Actual behaviour

Tell us what happens instead
script ended with many errors

Server configuration

Nextcloud server version: (see your admin page)
18.0.3

Server OS (Ubuntu server is default)
Ubuntu 18.0.4 LTS

How did you install the VM? (Scripted install from master OR Released version)
Script install from your Github Repo

Network

Do you use DHCP?
no

Is port 80 and/or 443 open?
outgoing yes - published over Sophos UTM Web Application Firewall

Logs / Screenshots

https://0bin.net/paste/OkiJRdJPveBDGSsZ#wM7y-X88CIuzKNvP82R9F6mTRsLtcW6/nT66GDmE+lx

Log file (/var/log/nextcloud/nextcloud.log)

Insert your nextcloud.log file here

Installation log (command output)

Insert the CLI output here

Screenshoots

bug

Most helpful comment

Because the installation was still working ...

$ update-alternatives --list php
/usr/bin/php7.2
/usr/bin/php7.4

Apache2 PHP7.4 Module was not activated

switch back to PHP7.2 ...

sudo update-alternatives --set php /usr/bin/php7.2
sudo update-alternatives --set phar /usr/bin/phar7.2
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.2
sudo update-alternatives --set phpize /usr/bin/phpize7.2
sudo update-alternatives --set php-config /usr/bin/php-config7.2

update script finished successfully

All 4 comments

Yeah, that seems like a fatal error indeed.

Problem is, you shouldn't be using PHP 7.4 and custom configurations are not supported officially. Actually, updating to any other version than PHP 7.2 should be blocked: https://github.com/nextcloud/vm/blob/master/nextcloud_update.sh#L54

Maybe I should add 7.4 there as well.

In any case, please revert to your latest backup and redo the process like this: sudo bash /var/scripts/update.sh

Because the installation was still working ...

$ update-alternatives --list php
/usr/bin/php7.2
/usr/bin/php7.4

Apache2 PHP7.4 Module was not activated

switch back to PHP7.2 ...

sudo update-alternatives --set php /usr/bin/php7.2
sudo update-alternatives --set phar /usr/bin/phar7.2
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.2
sudo update-alternatives --set phpize /usr/bin/phpize7.2
sudo update-alternatives --set php-config /usr/bin/php-config7.2

update script finished successfully

Great news! Thanks for the info.

Please uninstall PHP7.4 if it's not crucial to you.

Was this page helpful?
0 / 5 - 0 ratings