nextcloud / nextcloud/nextcloudpi

Improve behavior when updating and there are no updates

Open
#1,888 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
2.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

On v1.53.2 in the web interface I clicked nc-update, and this was written in the logging on the web page:

[ nc-update ] (Sun Mar 31 08:46:49 BST 2024)
Downloading updates
Performing updates

After a while, a page was shown with this text:

"Something went wrong. Try refreshing the page"

This page was loading for a while (spinner in Firefox visible).

Then, after a while, the page changed, and I had to login again in the Nextcloud-pi web interface.

Expected behavior: A messaged that there are no updates available.

System information

NextcloudPi diagnostics

grep: /etc/apache2/sites-available/nextcloud.conf: No such file or directory
NextcloudPi version  v1.53.2
NextcloudPi image    NextCloudPi_RaspberryPi_v1.51.3.img
OS                   Debian GNU/Linux 11. 6.1.21-v8+ (aarch64)
automount            yes
USB devices          sda 
datadir              /media/nextcloudpi_data/ncdata/data
data in SD           no
data filesystem      btrfs
data disk usage      2.6T/5.3T
rootfs usage         5.8G/59G
swapfile             /var/swap
dbdir                /media/USBdrive/ncdatabase
Nextcloud check      ok
Nextcloud version    27.1.6.2
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          up
Postfix service      up
Internet check       ok
Public IPv4          ***REMOVED SENSITIVE VALUE***
Public IPv6          ***REMOVED SENSITIVE VALUE***
Port 80              open
Port 443             open
IP                   ***REMOVED SENSITIVE VALUE***
Gateway              ***REMOVED SENSITIVE VALUE***
Interface            eth0
Certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               11min

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "7": "nextcloudpi",
            "5": "nextcloudpi.local",
            "8": "nextcloudpi.lan",
            "3": "<redacted>",
            "11": "<redacted>",
            "1": "<redacted>",
            "2": "<redacted>",
            "14": "nextcloudpi"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "27.1.6.2",
        "overwrite.cli.url": "<redacted>",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "",
        "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": "\/media\/nextcloudpi_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": "\/media\/nextcloudpi_data\/ncdata\/data\/nextcloud.log",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "loglevel": "2",
        "log_type": "file",
        "mysql.utf8mb4": true,
        "theme": "",
        "data-fingerprint": "1ffbe802b84316f94db84dfd10411753"
    }
}

HTTPd logs

[Sun Mar 31 08:46:36.454855 2024] [authz_host:error] [pid 5179:tid 547650265472] [remote 192.168.178.19:42538] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:46:36.458317 2024] [authz_host:error] [pid 5179:tid 547667083648] [remote 192.168.178.19:42538] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:46:36.464793 2024] [authz_host:error] [pid 5179:tid 547658674560] [remote 192.168.178.19:42538] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Sun Mar 31 08:46:36.505455 2024] [authz_host:error] [pid 5179:tid 547675492736] [remote 192.168.178.19:42538] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Sun Mar 31 08:46:40.399735 2024] [authz_host:error] [pid 5179:tid 547574583680] [remote 192.168.178.19:42538] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:46:40.587784 2024] [authz_host:error] [pid 5179:tid 547574583680] [remote 192.168.178.19:42538] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:46:47.857999 2024] [authz_host:error] [pid 5179:tid 547608220032] [remote 192.168.178.19:42538] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:46:48.051628 2024] [authz_host:error] [pid 5179:tid 547608220032] [remote 192.168.178.19:42538] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:40.510484 2024] [authz_host:error] [pid 5177:tid 547700720000] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /img/green-circle.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Sun Mar 31 08:48:40.514538 2024] [authz_host:error] [pid 5177:tid 547641856384] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:40.711714 2024] [authz_host:error] [pid 5177:tid 547700720000] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /img/green-circle.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Sun Mar 31 08:48:40.719090 2024] [authz_host:error] [pid 5177:tid 547641856384] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:40.719510 2024] [authz_host:error] [pid 5177:tid 547641856384] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:40.899448 2024] [authz_host:error] [pid 5177:tid 547641856384] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:41.382637 2024] [authz_host:error] [pid 5177:tid 547633447296] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /img/download.svg failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:41.387591 2024] [authz_host:error] [pid 5177:tid 547658674560] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:41.390928 2024] [authz_host:error] [pid 5177:tid 547650265472] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:41.627058 2024] [authz_host:error] [pid 5177:tid 547658674560] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:41.641123 2024] [authz_host:error] [pid 5177:tid 547650265472] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Sun Mar 31 08:48:41.680317 2024] [authz_host:error] [pid 5177:tid 547633447296] [remote 192.168.178.19:56512] AH01753: access check of 'localhost' to /img/download.svg failed, reason: unable to get the remote host name

Database logs

tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory

Nextcloud logs

{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:23:57+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.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:23:57+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair DAV shares","userAgent":"--","version":"27.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:23:57+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.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:23:57+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add token cleanup job","userAgent":"--","version":"27.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:23:57+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Clean up abandoned apps","userAgent":"--","version":"27.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:23:57+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add possibly missing system config","userAgent":"--","version":"27.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:23:57+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add language model tasks cleanup job","userAgent":"--","version":"27.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:23:57+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"27.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:24:14+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"27.1.5.1","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:24:14+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"27.1.6.2","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:24:14+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"27.1.6.2","data":{"app":"updater"}}
{"reqId":"hvR7uatJeu1cQKv9mCuE","level":1,"time":"2024-02-25T13:24:14+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"27.1.6.2","data":{"app":"updater"}}
{"reqId":"bBsQyu1YFyND2L9HFv1Q","level":2,
<redacted unrelated logging related to private calendars>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report identifies the nc-update action in the NextcloudPi web interface but names no source files or tests. Start by locating the nc-update implementation and reproduce the no-updates path; done means the interface completes without the error, timeout, or logout and clearly reports that no updates are available.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.