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

Improve behavior when updating and there are no updates #1888

Open
janvlug opened this issue Mar 31, 2024 · 0 comments
Open

Improve behavior when updating and there are no updates #1888

janvlug opened this issue Mar 31, 2024 · 0 comments

Comments

@janvlug
Copy link
Contributor

janvlug commented Mar 31, 2024

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>

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

No branches or pull requests

1 participant