Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update Script Problem #1168

Closed
RKlarmann opened this issue Apr 8, 2020 · 4 comments
Closed

Update Script Problem #1168

RKlarmann opened this issue Apr 8, 2020 · 4 comments
Labels

Comments

@RKlarmann
Copy link

RKlarmann commented Apr 8, 2020

Steps to reproduce

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

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

@enoch85
Copy link
Member

enoch85 commented Apr 9, 2020

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

@enoch85
Copy link
Member

enoch85 commented Apr 9, 2020

This commit should fix your issue: d72fb49

@enoch85 enoch85 closed this as completed Apr 9, 2020
@enoch85 enoch85 added the bug label Apr 9, 2020
@RKlarmann
Copy link
Author

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

@enoch85
Copy link
Member

enoch85 commented Apr 9, 2020

Great news! Thanks for the info.

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants