nextcloudpi icon indicating copy to clipboard operation
nextcloudpi copied to clipboard

nc-backup only working via command line - not via webpage

Open spintike opened this issue 3 years ago • 0 comments

Hello everybody.

While trying to execute a nc-backup (or any other ncp function at that point) I am experiencing a strange bug with the NCP Admin panel which can be described in three easy steps:

  • access to the ncp admin panel webpage via IPv4:4443 --> working fine
  • trying to initiate nc-backup via webpage, clicking the button "Apply" --> NOT working (status light right next to the Button "Apply" runs a while, then turns red); webpage is left open in background
  • trying to initiate nc-backup via ncp-config over command line --> working and simultaneously the NCP admin panel window on the webpage shows the contents which I can see at the command line interface ath the very same time.

I have attached the result of ncp-report below.

After thorough search in the forums and the docs page I wasn't able to find the flaw myself. I very much hope that I met the requirements to post something here. My best guess is that something got messed up in the process of installing the NextCloudPi but I am quite helpless with this issue.

Thanks in advance for your consideration!

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

NextCloudPi diagnostics

NextCloudPi version  v1.46.7
NextCloudPi image    NextCloudPi_02-05-22
OS                   Debian GNU/Linux 11. 5.10.92-v8+ (aarch64)
automount            no
USB devices          sda
datadir              /media/myCloudDrive/ncdata
data in SD           yes
data filesystem      ext2/ext3
data disk usage      58G/235G
rootfs usage         58G/235G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    23.0.0.10
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               5min

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "1": "IPv4",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "9": "nextcloud.fritz.box",
            "4": "<my-dyndns-address>",
            "11": <IPv6>,
            "14": "NextCloud",
            "3": "<my-dyndns-address>"
        },
        "defaultapp": "files",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "23.0.0.10",
        "overwrite.cli.url": "<my-dyndns-address>",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "logfile": "\/media\/myCloudDrive\/ncdata\/nextcloud.log",
        "loglevel": "1",
        "log_rotate_size": "104857600",
        "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\/myCloudDrive\/ncdata\/tmp",
        "versions_retention_obligation": "auto, 30",
        "trashbin_retention_obligation": "auto, 30",
        "default_phone_region": "DE",
        "mail_smtpmode": "smtp",
        "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,
        "log_type": "file",
        "mail_sendmailmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "app_install_overwrite": [
            "previewgenerator",
            "calendar",
            "contacts",
            "twofactor_totp",
            "news"
        ],
        "htaccess.RewriteBase": "\/",
        "updater.release.channel": "stable",
        "data-fingerprint": "759984e1a803b5b51fecc66e36dcee03"
    }
}

HTTPd logs

[Mon Feb 07 15:48:05.804431 2022] [mpm_event:notice] [pid 747:tid 548461593664] AH00492: caught SIGWINCH, shutting down gracefully
[Mon Feb 07 15:48:11.031741 2022] [ssl:info] [pid 719:tid 547788301376] AH01883: Init: Initialized OpenSSL library
[Mon Feb 07 15:48:11.033804 2022] [ssl:info] [pid 719:tid 547788301376] AH01887: Init: Initializing (virtual) servers for SSL
[Mon Feb 07 15:48:11.042966 2022] [ssl:info] [pid 719:tid 547788301376] AH01914: Configuring server localhost:4443 for SSL protocol
[Mon Feb 07 15:48:11.046572 2022] [ssl:warn] [pid 719:tid 547788301376] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 07 15:48:11.046683 2022] [ssl:info] [pid 719:tid 547788301376] AH02568: Certificate and private key localhost:4443:0 configured from /etc/letsencrypt/live/<my-dyndns-address>/fullchain.pem and /etc/letsencrypt/live/<my-dyndns-address>/privkey.pem
[Mon Feb 07 15:48:11.047780 2022] [ssl:info] [pid 719:tid 547788301376] AH01876: mod_ssl/2.4.52 compiled against Server: Apache/2.4.52, Library: OpenSSL/1.1.1k
[Mon Feb 07 15:48:11.094568 2022] [ssl:info] [pid 735:tid 547788301376] AH01883: Init: Initialized OpenSSL library
[Mon Feb 07 15:48:11.097249 2022] [socache_shmcb:info] [pid 735:tid 547788301376] AH00830: Shared memory socache initialised
[Mon Feb 07 15:48:11.097937 2022] [socache_shmcb:info] [pid 735:tid 547788301376] AH00830: Shared memory socache initialised
[Mon Feb 07 15:48:11.098001 2022] [ssl:info] [pid 735:tid 547788301376] AH01887: Init: Initializing (virtual) servers for SSL
[Mon Feb 07 15:48:11.104360 2022] [ssl:info] [pid 735:tid 547788301376] AH01914: Configuring server localhost:4443 for SSL protocol
[Mon Feb 07 15:48:11.107544 2022] [ssl:warn] [pid 735:tid 547788301376] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 07 15:48:11.107661 2022] [ssl:info] [pid 735:tid 547788301376] AH02568: Certificate and private key localhost:4443:0 configured from /etc/letsencrypt/live/<my-dyndns-address>/fullchain.pem and /etc/letsencrypt/live/<my-dyndns-address>/privkey.pem
[Mon Feb 07 15:48:11.108721 2022] [ssl:info] [pid 735:tid 547788301376] AH01876: mod_ssl/2.4.52 compiled against Server: Apache/2.4.52, Library: OpenSSL/1.1.1k
[Mon Feb 07 15:48:11.108888 2022] [http2:info] [pid 735:tid 547788301376] AH03090: mod_http2 (v1.15.26, feats=CHPRIO+SHA256+INVHD+DWINS, nghttp2 1.43.0), initializing...
[Mon Feb 07 15:48:11.119072 2022] [mpm_event:notice] [pid 735:tid 547788301376] AH00489: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Mon Feb 07 15:48:11.119213 2022] [mpm_event:info] [pid 735:tid 547788301376] AH00490: Server built: 2022-01-03T21:27:14
[Mon Feb 07 15:48:11.119284 2022] [core:notice] [pid 735:tid 547788301376] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 07 15:50:41.720531 2022] [ssl:info] [pid 736:tid 547063062912] [client 192.168.178.10:59319] AH01964: Connection to child 24 established (server localhost:4443)

Database logs

tail: '/var/log/mysql/*.log' kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden

Nextcloud logs

{"reqId":"YgEwP7Yw4oGPLH8P3iK5hAAAVAA","level":1,"time":"2022-02-07T14:44:16+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgEwP7Yw4oGPLH8P3iK5hAAAVAA","level":1,"time":"2022-02-07T14:44:16+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgEwP7Yw4oGPLH8P3iK5hAAAVAA","level":1,"time":"2022-02-07T14:44:16+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgEwP7Yw4oGPLH8P3iK5hAAAVAA","level":1,"time":"2022-02-07T14:44:16+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgEwP7Yw4oGPLH8P3iK5hAAAVAA","level":1,"time":"2022-02-07T14:44:16+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"r6KktMr6h7dz3z4kRxwN","level":1,"time":"2022-02-07T14:45:09+00:00","remoteAddr":"","user":"--","app":"text","method":"","url":"--","message":"Document 488037 has not been reset, as it has unsaved changes","userAgent":"--","version":"23.0.0.10"}
{"reqId":"r6KktMr6h7dz3z4kRxwN","level":1,"time":"2022-02-07T14:45:09+00:00","remoteAddr":"","user":"--","app":"text","method":"","url":"--","message":"Document 531013 has not been reset, as it has unsaved changes","userAgent":"--","version":"23.0.0.10"}
{"reqId":"r6KktMr6h7dz3z4kRxwN","level":1,"time":"2022-02-07T14:45:09+00:00","remoteAddr":"","user":"--","app":"text","method":"","url":"--","message":"Document 508685 has not been reset, as it has unsaved changes","userAgent":"--","version":"23.0.0.10"}
{"reqId":"xio4261pbHiEJGCgkHBC","level":3,"time":"2022-02-07T14:46:05+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"unlink(/media/myCloudDrive/ncdata/data_dir_writability_test_620130adc0ad1.tmp): No such file or directory at /var/www/nextcloud/lib/private/legacy/OC_Util.php#802","userAgent":"--","version":"23.0.0.10","exception":{"Exception":"Error","Message":"unlink(/media/myCloudDrive/ncdata/data_dir_writability_test_620130adc0ad1.tmp): No such file or directory at /var/www/nextcloud/lib/private/legacy/OC_Util.php#802","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":802,"function":"unlink"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":157,"function":"checkServer","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/console.php","line":98,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"EcGWh53J0RHGtAgUGble","level":3,"time":"2022-02-07T14:48:14+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"unlink(/media/myCloudDrive/ncdata/data_dir_writability_test_6201312edb311.tmp): No such file or directory at /var/www/nextcloud/lib/private/legacy/OC_Util.php#802","userAgent":"--","version":"23.0.0.10","exception":{"Exception":"Error","Message":"unlink(/media/myCloudDrive/ncdata/data_dir_writability_test_6201312edb311.tmp): No such file or directory at /var/www/nextcloud/lib/private/legacy/OC_Util.php#802","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":802,"function":"unlink"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":157,"function":"checkServer","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/console.php","line":98,"function":"loadCommands","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"x6wzIr0dj3is5tzNmgq3","level":1,"time":"2022-02-07T14:50:03+00:00","remoteAddr":"","user":"--","app":"files_versions","method":"","url":"--","message":"Mark to expire /Dokumente/Raspberry Pi/Logging/putty_192.168.178.43_2022-02-07.log next version should be 1644245083 or smaller. (prevTimestamp: 1644245143; step: 60","userAgent":"--","version":"23.0.0.10"}
{"reqId":"x6wzIr0dj3is5tzNmgq3","level":1,"time":"2022-02-07T14:50:03+00:00","remoteAddr":"","user":"--","app":"files_versions","method":"","url":"--","message":"Expire: /Dokumente/Raspberry Pi/Logging/putty_192.168.178.43_2022-02-07.log.v1644245121","userAgent":"--","version":"23.0.0.10"}
{"reqId":"YgExtMt9J50KI0XWGliDMgAAVBM","level":1,"time":"2022-02-07T14:50:29+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/?dir=/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgExtMt9J50KI0XWGliDMgAAVBM","level":1,"time":"2022-02-07T14:50:29+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/?dir=/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgExtMt9J50KI0XWGliDMgAAVBM","level":1,"time":"2022-02-07T14:50:29+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/?dir=/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgExtMt9J50KI0XWGliDMgAAVBM","level":1,"time":"2022-02-07T14:50:29+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/?dir=/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgExtMt9J50KI0XWGliDMgAAVBM","level":1,"time":"2022-02-07T14:50:29+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/?dir=/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgExtMt9J50KI0XWGliDMgAAVBM","level":1,"time":"2022-02-07T14:50:29+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/?dir=/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgExtMt9J50KI0XWGliDMgAAVBM","level":1,"time":"2022-02-07T14:50:29+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"no app in context","method":"GET","url":"/apps/files/?dir=/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.0.10"}
{"reqId":"YgEyadEdcGE7iMmsMQiBmwAAABM","level":4,"time":"2022-02-07T14:53:29+00:00","remoteAddr":"<external_IPv4>","user":"spintike","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/spintike/","message":"Das System befindet sich im Wartungsmodus.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.4.2git (build 9042) (Nextcloud, osx-17.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"23.0.0.10","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Das System befindet sich im Wartungsmodus.","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkMaintenanceMode","class":"OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"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":339,"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":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php","Line":85,"CustomMessage":"--"}}

spintike avatar Feb 07 '22 15:02 spintike