nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.49k stars 295 forks source link

ncp-update-nc fails with Error: Could not download app notify_push #1819

Open lslvxy opened 1 year ago

lslvxy commented 1 year ago

ncp-update-nc log

root@nextcloudpi:~# ncp-update-nc 27.0.2
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Current   Nextcloud version 27.0.0.8
Available Nextcloud version 27.0.2
Download Nextcloud 27.0.2...
Back up current instance...
Cannot load Zend OPcache - it was already loaded
check free space...
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Maintenance mode enabled
backup database...
backup files...
backup /var/www/nextcloud-bkp_20230825_1692948576.tar.gz generated
Cannot load Zend OPcache - it was already loaded
Maintenance mode disabled
Storing backup at '/var/www/nextcloud-bkp_20230825_1692948576-27.0.0.8.tar.gz'...
Install Nextcloud 27.0.2...
Fix permissions...
Upgrade...
Cannot load Zend OPcache - it was already loaded
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
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Updating <oauth2> ...
Updated <oauth2> to 1.15.1
Updating <circles> ...
Updated <circles> to 27.0.1
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Check indices of the oc_jobs table.
Check indices of the oc_direct_edit table.
Check indices of the oc_preferences table.
Check indices of the oc_mounts table.
Check indices of the oc_systemtag_object_mapping table.
Adding systag_by_tagid index to the oc_systemtag_object_mapping table, this can take some time...
oc_systemtag_object_mapping table updated successfully.
Adding additional textstep_session index to the oc_text_steps table, this can take some time...
oc_text_steps table updated successfully.
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Check columns of the comments table.
Done.
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Check primary keys.
Done.
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
All tables already up to date!
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Error: Could not download app notify_push
Abort
Clean up...
Rolling back to backup /var/www/nextcloud-bkp_20230825_1692948576-27.0.0.8.tar.gz...
check free space...
extracting backup file /var/www/nextcloud-bkp_20230825_1692948576-27.0.0.8.tar.gz...
restore files...
restore database...
Cannot load Zend OPcache - it was already loaded
No datadir found in backup
Cannot load Zend OPcache - it was already loaded
Maintenance mode disabled
Cannot load Zend OPcache - it was already loaded
Starting scan for user 1 out of 2 (admin)
Starting scan for user 2 out of 2 (ncp)
+---------+-------+--------+--------------+
| Folders | Files | Errors | Elapsed time |
+---------+-------+--------+--------------+
| 47      | 299   | 0      | 00:00:00     |
+---------+-------+--------+--------------+
Installing template 'php/opcache.ini.sh'...
Cannot load Zend OPcache - it was already loaded
System config value tempdirectory set to string /data/ncdata/data/tmp
Cannot load Zend OPcache - it was already loaded
System config value logfile set to string /data/ncdata/data/nextcloud.log
Cannot load Zend OPcache - it was already loaded
System config value trusted_domains => 11 set to string 185.244.208.191
Cannot load Zend OPcache - it was already loaded
System config value trusted_domains => 1 set to string 192.168.50.225
Cannot load Zend OPcache - it was already loaded
System config value trusted_domains => 14 set to string nextcloudpi.laysan.site
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Scanning AppData for files

+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 1538    | 203   | 00:00:01     |
+---------+-------+--------------+
Cleanup...
Rollback successful. Nothing was updated
root@nextcloudpi:~# 

System information

root@nextcloudpi:~# ncp-report <--! Paste this in GitHub report -->

NextcloudPi diagnostics ``` Cannot load Zend OPcache - it was already loaded NextcloudPi version v1.52.4 NextcloudPi image NextcloudPi_lxc_06-09-23 OS Debian GNU/Linux 11. 6.0.15-edge (x86_64) automount no USB devices none datadir /data/ncdata/data data in SD no data filesystem ext2/ext3 data disk usage 75G/4.0T rootfs usage 1.4G/8.0G swapfile none dbdir /data/mysql Nextcloud check ok Nextcloud version 27.0.0.8 HTTPD service up PHP service up MariaDB service up Redis service up HPB service down Postfix service up Internet check ok Public IPv4 ***REMOVED SENSITIVE VALUE*** Public IPv6 ***REMOVED SENSITIVE VALUE*** Port 80 closed Port 443 open IP ***REMOVED SENSITIVE VALUE*** Gateway ***REMOVED SENSITIVE VALUE*** Interface eth0 Certificates ***REMOVED SENSITIVE VALUE*** NAT loopback yes Uptime 9days ```
Nextcloud configuration ``` Cannot load Zend OPcache - it was already loaded { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": { "0": "localhost", "7": "nextcloudpi", "5": "nextcloudpi.local", "8": "nextcloudpi.lan", "3": "nextcloudpi", "11": "185.244.208.191", "1": "192.168.50.225", "14": "nextcloudpi.laysan.site", "20": "192.168.50.225", "21": "cloud.laysan.site", "22": "58.215.212.230" }, "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "27.0.0.8", "overwrite.cli.url": "https:\/\/nextcloudpi\/", "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***" }, "tempdirectory": "\/data\/ncdata\/data\/tmp", "mail_smtpmode": "sendmail", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "preview_max_x": "2048", "preview_max_y": "2048", "jpeg_quality": "60", "overwriteprotocol": "https", "maintenance": false, "logfile": "\/data\/ncdata\/data\/nextcloud.log", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "loglevel": "2", "log_type": "file", "htaccess.RewriteBase": "\/", "data-fingerprint": "cb1c1b89a8a7823c95b2e011f68bf4b6", "updater.secret": "***REMOVED SENSITIVE VALUE***" } } ```
HTTPd logs ``` [Fri Aug 25 09:04:18.277787 2023] [authz_host:error] [pid 813231:tid 140107533424384] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.50.200:4443/css/ncp.css [Fri Aug 25 09:04:18.279924 2023] [authz_host:error] [pid 813231:tid 140107651061504] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.50.200:4443/css/ncp.css [Fri Aug 25 09:04:18.346639 2023] [authz_host:error] [pid 813231:tid 140107525015296] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.50.200:4443/css/ncp.css [Fri Aug 25 09:04:18.965067 2023] [authz_host:error] [pid 813231:tid 140107659454208] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name [Fri Aug 25 09:04:18.965076 2023] [authz_host:error] [pid 813231:tid 140107516606208] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name [Fri Aug 25 09:04:23.328241 2023] [authz_host:error] [pid 813231:tid 140107701417728] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name [Fri Aug 25 09:04:24.641746 2023] [authz_host:error] [pid 813231:tid 140107667846912] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name [Fri Aug 25 11:06:26.233176 2023] [authz_host:error] [pid 813231:tid 140107684632320] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name [Fri Aug 25 11:06:26.264385 2023] [authz_host:error] [pid 813231:tid 140107684632320] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name [Fri Aug 25 11:06:26.264503 2023] [authz_host:error] [pid 813231:tid 140107684632320] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name [Fri Aug 25 11:06:26.296865 2023] [authz_host:error] [pid 813231:tid 140107684632320] [remote 10.10.10.200:60868] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name [Fri Aug 25 11:24:33.269642 2023] [http2:warn] [pid 813231:tid 140107386443520] [client 10.10.10.200:60868] h2_stream(813231-6-49,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Fri Aug 25 11:24:33.269690 2023] [http2:warn] [pid 813231:tid 140107386443520] [client 10.10.10.200:60868] h2_stream(813231-6-45,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Fri Aug 25 11:24:33.269696 2023] [http2:warn] [pid 813231:tid 140107386443520] [client 10.10.10.200:60868] h2_stream(813231-6-47,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Fri Aug 25 11:25:33.269797 2023] [http2:warn] [pid 813231:tid 140107386443520] [client 10.10.10.200:60868] h2_stream(813231-6-49,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Fri Aug 25 11:25:33.269837 2023] [http2:warn] [pid 813231:tid 140107386443520] [client 10.10.10.200:60868] h2_stream(813231-6-45,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Fri Aug 25 11:25:33.269844 2023] [http2:warn] [pid 813231:tid 140107386443520] [client 10.10.10.200:60868] h2_stream(813231-6-47,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Fri Aug 25 11:25:50.652634 2023] [proxy_fcgi:error] [pid 813231:tid 140107667846912] [remote 10.10.10.200:60868] AH01067: Failed to read FastCGI header [Fri Aug 25 11:25:50.652752 2023] [proxy_fcgi:error] [pid 813231:tid 140107684632320] [remote 10.10.10.200:60868] AH01067: Failed to read FastCGI header [Fri Aug 25 11:25:50.654582 2023] [proxy_fcgi:error] [pid 813231:tid 140107701417728] [remote 10.10.10.200:60868] AH01067: Failed to read FastCGI header ```
Database logs ``` tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory ```
Nextcloud logs ``` {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add background job to cleanup login flow v2 tokens","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Remove potentially over exposing share links","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairInfoEvent: Repair info: No need to remove link shares.","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Clear access cache of projects","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Reset generated avatar flag","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Keep legacy encryption enabled","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Check encryption key format","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Remove old dashboard app config data","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add job to cleanup the bruteforce entries","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Queue a one-time job to check for user uploaded certificates","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair DAV shares","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add background job to set the lookup server share state for users","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add token cleanup job","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Clean up abandoned apps","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add possibly missing system config","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:23+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"27.0.0.8","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}} {"reqId":"KvFx6klZLc63mxG0cRWk","level":1,"time":"2023-08-25T07:31:25+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"27.0.2.1","data":{"app":"updater"}} ```

got this error ,then rollback Error: Could not download app notify_push