Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ncp-update-nc: Nextcloud successful updated, but failure to update PHP to version 8.1 #1694

Closed
LittleAlf opened this issue Jan 9, 2023 · 13 comments

Comments

@LittleAlf
Copy link

I successfully upgraded my Nextcloud installation from version 23.0.12 to 24.0.8 using the 'nc-update-nextcloud' command in the web interface of NCP.

I noticed the following actions were not performed, as I expected them:

  1. PHP version 8.1 was NOT installed
  2. The backup directory /var/www/nextcloud-old was NOT removed
  3. The backup tar file 'nextcloud-bkp_20230109_1673278111-23.0.12.2.tar.gz' was NOT moved to the database directory

I do not know what happened. I can remove the backup directory and move the tar file myself.

But how do I get the new PHP version now?

Any help would be really appreciated.

LittleAlf


<--! Paste this in GitHub report -->

NextCloudPi diagnostics

NextCloudPi version  v1.50.5
OS                   Debian GNU/Linux 11. 5.10.0-20-amd64 (x86_64)
automount            yes
USB devices          sda sdb
datadir              /media/USBdata/nextcloud/ncdata
data in SD           yes
data filesystem      btrfs
data disk usage      247G/932G
rootfs usage         22G/54G
swapfile             /dev/mmcblk0p3
dbdir                /media/USBdata/nextcloud/ncdatabase
Nextcloud check      ok
Nextcloud version    24.0.8.2
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          up
Postfix service      up
Internet check       ok
public IP            ***REMOVED SENSITIVE VALUE***
public IP            ***REMOVED SENSITIVE VALUE***
Port check 80        closed
Port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
Interface            enp1s0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               1:42

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "nextcloud.fm.net",
            "1": "192.168.1.12",
            "2": "fm.feste-ip.net",
            "3": "NCP-Server",
            "4": "ncp-server.fm.net",
            "5": "fm.net",
            "11": "2a02:908:d517:67a0:201::c349",
            "22": "NCP-Server.fm",
            "": "NCP-Server",
            "14": "NCP-Server.fm"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/NCP-Server\/",
        "dbtype": "mysql",
        "version": "24.0.8.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "loglevel": "2",
        "log_type": "file",
        "maintenance": false,
        "default_phone_region": "DE",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "updater.release.channel": "stable",
        "logfile": "\/media\/USBdata\/nextcloud\/ncdata\/nextcloud.log",
        "jpeg_quality": "60",
        "tempdirectory": "\/media\/USBdata\/nextcloud\/ncdata\/tmp",
        "data-fingerprint": "10c4cf1ec9f021f4174e6d79e43cbda1",
        "htaccess.RewriteBase": "\/",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "mail_sendmailmode": "smtp",
        "overwriteprotocol": "https",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***"
    }
}

HTTPd logs

sed: couldn't flush stdout: Broken pipe
grep: /var/run/.ncp-latest-version: No such file or directory
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Mon Jan  9 16:59:49 2023 (1441): Error Cannot kill process 1442: Success!
No site matches ncp-activation (disabled by site administrator)
/usr/local/bin/ncp-check-version: line 16: /var/run/.ncp-latest-version: Permission denied
/usr/local/bin/ncp-check-version: line 23: /usr/local/etc/ncp-changelog: Permission denied
sed: couldn't flush stdout: Broken pipe
grep: /var/run/.ncp-latest-version: No such file or directory
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Mon Jan  9 17:07:39 2023 (7849): Error Cannot kill process 1898: Success!
No site matches ncp-activation (disabled by site administrator)
/usr/local/bin/ncp-check-version: line 16: /var/run/.ncp-latest-version: Permission denied
/usr/local/bin/ncp-check-version: line 23: /usr/local/etc/ncp-changelog: Permission denied
sed: couldn't flush stdout: Broken pipe
grep: /var/run/.ncp-latest-version: No such file or directory

Database logs

2022-06-16 18:27:51 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2022-06-16 18:27:51 0 [Note] Event Scheduler: Purging the queue. 0 events
2022-06-16 18:27:51 0 [Note] InnoDB: FTS optimize thread exiting.
2022-06-16 18:27:51 0 [Note] InnoDB: Starting shutdown...
2022-06-16 18:27:51 0 [Note] InnoDB: Dumping buffer pool(s) to /media/USBdata/nextcloud/ncdatabase/ib_buffer_pool
2022-06-16 18:27:51 0 [Note] InnoDB: Buffer pool(s) dump completed at 220616 18:27:51
2022-06-16 18:27:55 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-06-16 18:27:55 0 [Note] InnoDB: Shutdown completed; log sequence number 26155543693; transaction id 126363975
2022-06-16 18:27:55 0 [Note] /usr/sbin/mysqld: Shutdown complete


Nextcloud logs

{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Repair::step: Repair step: Check encryption key format","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":[]}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Repair::step: Repair step: Remove old dashboard app config data","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":[]}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Repair::step: Repair step: Add job to cleanup the bruteforce entries","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":[]}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Repair::step: Repair step: Queue a one-time job to check for user uploaded certificates","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":[]}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Repair::step: Repair step: Repair DAV shares","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":[]}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Repair::step: Repair step: Add background job to set the lookup server share state for users","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":[]}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Repair::step: Repair step: Add token cleanup job","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:04:51+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"suuHYHkxfe9K995bEFCc","level":0,"time":"2023-01-09T16:05:01+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"We are in maintenance mode, skipping cron","userAgent":"--","version":"24.0.8.2","data":{"app":"cron"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:05:02+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:05:02+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:05:02+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7w7H4m7U_bt7Omdy1pbtQAAAAk","level":1,"time":"2023-01-09T16:05:02+00:00","remoteAddr":"2a02:908:d517:67a0:2d0c:13dd:bfa8:fd9d","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=XE%2BMXQqeuMbcKYzYAi%2Bo0DhtBLhgvaoPvlYnpWXdNW4%3D%3AGR%2Fqbz2m9KWWRvy1bxudmGIebPwZ6t178TFuxCzqDFY%3D","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"24.0.8.2","data":{"app":"updater"}}
{"reqId":"Y7xIVv0IgfyH-mYfWE7_bwAAAAk","level":4,"time":"2023-01-09T17:01:11+00:00","remoteAddr":"2a03:567:1::15","user":"Uwe","app":"webdav","method":"PUT","url":"/remote.php/dav/addressbooks/users/Uwe/Kontakte_Gemeinde/7338bc89-ca1a-48da-8245-4e540e0e8def.vcf","message":"Validation error in vCard: The supplied value (10.09.1966) is not a correct DATE-AND-OR-TIME property","userAgent":"Thunderbird CardBook/83.6","version":"24.0.8.2","exception":{"Exception":"Sabre\\DAV\\Exception\\UnsupportedMediaType","Message":"Validation error in vCard: The supplied value (10.09.1966) is not a correct DATE-AND-OR-TIME property","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CardDAV/Plugin.php","line":276,"function":"validateVCard","class":"Sabre\\CardDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeWriteContent","class":"Sabre\\CardDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1133,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":170,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CardDAV/Plugin.php","Line":369,"CustomMessage":"--"}}

@victor-rays
Copy link
Collaborator

victor-rays commented Jan 15, 2023

You should be able to install the new php version by following the install script and doing the steps manually

This is the file that installs PHP

https://github.com/nextcloud/nextcloudpi/blob/devel/lamp.sh

I linked the devel branch because the master currently has the php-json package there which you shouldn't install

@LittleAlf
Copy link
Author

@ZendaiOwl
Thank you very much for your answer: I was exactly looking for the install file of PHP. (Never thought that the name would be like this ;) ).

In the meantime I have installed PHP8.1 manually, and removed all previous versions of PHP.

@theCalcaholic
Copy link
Collaborator

@LittleAlf Glad to hear, that @ZendaiOwl was able to help you. Can we close this ticket then?

@LittleAlf
Copy link
Author

@theCalcaholic : Of course. Sorry, I forgot.

@LittleAlf
Copy link
Author

@theCalcaholic

I do not understand why it is getting the use forums please this is not for support label!
The mentioned case was clearly an issue with nextcloudpi:

  • I used the ncp web-admin to initiate a major upgrade of my nextcloud from version 23 to 24.
  • Before I installed the latest version of ncp.
  • In opposite to what was claimed in the change log of ncp it did not upgrade PHP from version 7.4 to 8.1.
  • Instead it quit the execution of the script without any error message.
  • It did not clean up after the upgrade.

It does not change that I was able to resolve it myself. I do believe that this should not happen in an automatic upgrade. If this is not an issue to be reported, please, tell me what is missing to make something like this to be egligible to be reported.

@theCalcaholic
Copy link
Collaborator

@LittleAlf Sorry you're right. The issue was kinda a mix between bug report and support request. When I went through the open tickets earlier, I mostly saw the support part ("How do I resolve the result of the failed update"), which is more suited for the forum and missed the bug report aspect ("the update aborted silently and without recovery")

@theCalcaholic
Copy link
Collaborator

Reopened, since the original bug is unresolved.

I believe that the underlying issue is, that the web UI relies on PHP and breaks mid-process, when php is upgraded to 8.1.

@LittleAlf Do you remember if you were using the admin web UI to perform the update, that was aborted?

@LittleAlf
Copy link
Author

LittleAlf commented Jan 22, 2023

@theCalcaholic : thanks for reopening it.

Regarding your question: yes, I performed the update using the admin web UI! The script did the update of Nextcloud fine, it just crashed when updating PHP. In the web UI there was no message.

@facorazza
Copy link

why is the update page through the UI even available?

@theCalcaholic
Copy link
Collaborator

why is the update page through the UI even available?

Because it's supposed to work that way :)

@LittleAlf
Copy link
Author

LittleAlf commented Jan 26, 2023

@theCalcaholic : I did some more tests and here are the results:

With the new NCP 1.51.0 an upgrade of Nextcloud to version 25.0.3 was available. Since I wanted to see the difference, I started ncp-update-nc from the cli this time!

After installing NC 25.0.3 the upgrade wanted to install PHP8.1 again, even though I had installed PHP8.1 manually. After clearing the OPcache, it aborted with the error message php7.4-fpm: unrecognized service. This must have been at line 607 in library.sh where it tries to reload PHP-FPM. The log messages before and after the error were:

Paketlisten werden gelesen…
Clearing opcache...
This can take some time. Please don't interrupt the process/close your browser tab.
Done.
php7.4-fpm: unrecognized service
Something went wrong while upgrading PHP. Rolling back to version 7.4...

The following rollback was successful It installed NC version 24.0.12 together with PHP7.4 again.

Nextcloud as well as PHP were now fully setup by NCP once more. So I started a second try to upgrade to NC 25.0.3 via the cli. This time the upgrade went through successfully without errors!

Why in my initial upgrade try via the web interface (the starting point of this issue) it failed without a proper error message and rollback I do not know. Somehow I am getting a little bit suspicous about using the web interface for critical tasks. It seems like stdout messages are not always properly shown. I will explain this further in another issue.

@theCalcaholic
Copy link
Collaborator

theCalcaholic commented Jan 26, 2023

@LittleAlf I'm glad to hear you could resolve this. You are correct, the web UI has a few issues that make it hard to do administrative tasks related to PHP without breaking itself. Back when I wrote the upgrade to PHP 8.1 I was not yet fully aware of these issues (I just really started to understand them during the last two weeks).

In this case, the web UI removed PHP, while itself being written in PHP, killing the upgrade process itself.

I'm working on a solution for this, but the real solution is, rewriting the backend part of the web UI in something other than PHP. That and a second measure that will be announced shortly on the forums. :)

@jims
Copy link

jims commented Jan 22, 2024

Somehow I am getting a little bit suspicous about using the web interface for critical tasks. It seems like stdout messages are not always properly shown. I will explain this further in another issue.

My case seems to be a bit stuck in that I did the upgrade from the web ui, but after a (loong time, being like the issue you mentioned) timeout i closed the web interface. At this point, the ncp shell scripts have not been updated, but the php code has been. The nextcloud php is working with a newer version, where the php is ver 8.3.1, but the nextcloudpi has not updated and I am thus stuck inbetween, and sadly i hadent yet done a proper backup... :S

Do you have any idea how to update nextcloudpi properly? Can I roll back nextcloud to a compatible version of php, so that I can upgrade things in the right order?

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

5 participants