nextcloud / nextcloud/nextcloudpi

sudo ncp-dist-upgrade fails to dphys-swapfile

Open
#2,027 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

System information

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

NextcloudPi diagnostics

NextcloudPi version  v1.55.3
NextcloudPi image    NextCloudPi_11-27-20
OS                   Debian GNU/Linux 11. 6.1.21-v8+ (aarch64)
automount            yes
USB devices          sda sdb

data disk usage      115G/932G
rootfs usage         13G/59G
swapfile             /var/swap
dbdir                /var/lib/mysql/
Nextcloud check      ok
Nextcloud version    28.0.14.1
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             closed
IP                   ***REMOVED SENSITIVE VALUE***
Gateway              ***REMOVED SENSITIVE VALUE***
Interface            eth0
Certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               5min

Nextcloud configuration

Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "11": "178.75.141.165",
            "1": "192.168.68.99",
            "3": "nextcloudpi",
            "": "nextcloudpi",
            "14": "nextcloudpi",
            "21": "192.168.1.108",
            "20": "192.168.68.1"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.14.1",
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/media\/primaryDrive\/ncdata\/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",
        "loglevel": "2",
        "log_type": "file",
        "maintenance": true,
        "logfile": "\/media\/primaryDrive\/ncdata\/nextcloud.log",
        "app_install_overwrite": [
            "keeporsweep"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "data-fingerprint": "ebd7cc4d94c8602cc395e0769d09ab47",
        "theme": ""
    }
}

HTTPd logs


Apache/2.4.62 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Wed Dec 25 00:00:10.029041 2024] [core:notice] [pid 930:tid 930] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 25 17:15:21.498189 2024] [mpm_event:notice] [pid 930:tid 930] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Dec 25 17:15:32.554864 2024] [ssl:warn] [pid 535:tid 535] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 25 17:15:32.561238 2024] [ssl:error] [pid 535:tid 535] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8FD74C8207A8AF / notbefore: Nov 27 22:55:31 2020 GMT / notafter: Nov 25 22:55:31 2030 GMT]
[Wed Dec 25 17:15:32.561313 2024] [ssl:error] [pid 535:tid 535] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Wed Dec 25 17:15:32.624278 2024] [ssl:warn] [pid 926:tid 926] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 25 17:15:32.624622 2024] [ssl:error] [pid 926:tid 926] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8FD74C8207A8AF / notbefore: Nov 27 22:55:31 2020 GMT / notafter: Nov 25 22:55:31 2030 GMT]
[Wed Dec 25 17:15:32.624667 2024] [ssl:error] [pid 926:tid 926] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Wed Dec 25 17:15:32.632541 2024] [mpm_event:notice] [pid 926:tid 926] AH00489: Apache/2.4.62 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Wed Dec 25 17:15:32.632663 2024] [core:notice] [pid 926:tid 926] AH00094: Command line: '/usr/sbin/apache2'

Database logs

2022-08-17 20:04:05 0 [ERROR] mysql.user: 1 client is using or hasn't closed the table properly
2022-08-17 20:04:05 0 [ERROR] mysqld: Table './mysql/db' is marked as crashed and should be repaired
2022-08-17 20:04:05 0 [Warning] Checking table:   './mysql/db'
2022-08-17 20:04:05 0 [ERROR] mysql.db: 1 client is using or hasn't closed the table properly
2022-08-17 20:04:06 0 [Note] Reading of all Master_info entries succeeded
2022-08-17 20:04:06 0 [Note] Added new Master_info '' to hash table
2022-08-17 20:04:06 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.34-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Debian 10
2022-08-17 20:04:06 0 [Note] InnoDB: Buffer pool(s) load completed at 220817 20:04:06
2022-08-17 20:04:18 9 [Warning] Aborted connection 9 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
2022-08-17 20:12:36 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2022-08-17 20:12:36 0 [Note] Event Scheduler: Purging the queue. 0 events
2022-08-17 20:12:36 0 [Note] InnoDB: FTS optimize thread exiting.
2022-08-17 20:12:36 0 [Note] InnoDB: Starting shutdown...
2022-08-17 20:12:36 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2022-08-17 20:12:36 0 [Note] InnoDB: Buffer pool(s) dump completed at 220817 20:12:36
2022-08-17 20:12:38 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-08-17 20:12:38 0 [Note] InnoDB: Shutdown completed; log sequence number 8625118917; transaction id 41318906
2022-08-17 20:12:38 0 [Note] /usr/sbin/mysqld: Shutdown complete


Nextcloud logs


moteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Remove old dashboard app config data","userAgent":"--","version":"28.0.12.2","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:57:47+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add job to cleanup the bruteforce entries","userAgent":"--","version":"28.0.12.2","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:57:47+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":"28.0.12.2","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:57:47+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair DAV shares","userAgent":"--","version":"28.0.12.2","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:57:47+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":"28.0.12.2","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:57:47+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Eve
moteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"28.0.12.2","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:58:01+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"28.0.12.2","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:58:01+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"28.0.14.1","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:58:01+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"28.0.14.1","data":{"app":"updater"}}
{"reqId":"EUa4CVe94hoMjZNVf9l5","level":1,"time":"2024-12-13T06:58:01+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"28.0.14.1","data":{"app":"updater"}}
{"reqId":"NDRE6KyUL6j1Bd1ppw0D","level":3,"time":"2024-12-13T07:00:03+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job (class: OCA\\Survey_Client\\BackgroundJobs\\AdminNotification, arguments: )","userAgent":"--","version":"28.0.14.1","exception":{"Exception":"InvalidArgumentException","Message":"The given link is invalid","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/survey_client/lib/BackgroundJobs/AdminNotification.php","line":56,"function":"setLink","class":"OC\\Notification\\Action","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":81,"function":"run","class":"OCA\\Survey_Client\\BackgroundJobs\\AdminNotification","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php","line":61,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php","line":47,"function":"start","class":"OCP\\BackgroundJob\\QueuedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":154,"function":"execute","class":"OCP\\BackgroundJob\\QueuedJob","type":"->"}],"File":"/var/www/nextcloud/lib/private/Notification/Action.php","Line":127,"message":"Error while running background job (class: OCA\\Survey_Client\\BackgroundJobs\\AdminNotification, arguments: )","exception":{},"CustomMessage":"Error while running background job (class: OCA\\Survey_Client\\BackgroundJobs\\AdminNotification, arguments: )"}}

root@nextcloudpi:/home/pi#
[ncp-distu0:bash*

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 reported entry point is sudo ncp-dist-upgrade, which fails while upgrading dphys-swapfile and processing its cached Debian package. Start by tracing that upgrade path and the package-handling step; done means the distribution upgrade completes without the dphys-swapfile compression error.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, linux, shell
Domain
devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.