Comments (16)
Yo run NC25.x? I doubt this will work with bookworm. There is at least an issue with PHP i guess
from nextcloudpi.
I have the same issue with my RaspberryPI 4b+
I wanted to upgrade my OS from bullseye to bookworm via sudo ncp-dist-upgrade on my Raspberry PI 4B+. However, the script terminates with the following error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (< 2.32) but 2.36-9+rpt2+deb12u7 is to be installed
libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u10) but 2.36-9+rpt2+deb12u7 is to be installed
I tried upgrading the dependencies with the following commands (listed below), but after that, i could not execute sudo ncp-dist-ugprade anymore, since it was already upgraded to Bookworm. But after switching the SD from my Raspberry PI 4 to a Raspberry PI 5, i got "No bootable partitions" so I believe the dist-upgrade was not finished?
sudo apt-get update
sudo apt-get upgrade libc-dev-bin libc6-dev
System information
This is the log after running ncp-dist-upgrade the first time
<--! Paste this in GitHub report -->
NextcloudPi diagnostics
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
grep: /etc/apache2/sites-available/nextcloud.conf: No such file or directory
NextcloudPi version v1.54.2
NextcloudPi image NextcloudPi_12-27-23
OS Debian GNU/Linux 12. 6.1.21-v8+ (aarch64)
automount yes
USB devices sda sdb
datadir /media/clouddrive/ncpdata
data in SD no
data filesystem btrfs
data disk usage 67G/932G
rootfs usage 6.7G/29G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 27.1.7.2
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 open
Port 443 open
IP ***REMOVED SENSITIVE VALUE***
Gateway ***REMOVED SENSITIVE VALUE***
Interface eth0
Certificates ***REMOVED SENSITIVE VALUE***
NAT loopback no
Uptime 4min
Nextcloud configuration
Cannot load Zend OPcache - it was already loaded
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": {
REMOVED
},
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "27.1.7.2",
"overwrite.cli.url": "https:\/\/daadii.ddns.net\/",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"default_phone_region": "DE",
"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\/clouddrive\/ncpdata\/tmp",
"mail_smtpmode": "smtp",
"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": "1",
"log_type": "file",
"maintenance": true,
"logfile": "\/media\/clouddrive\/ncpdata\/nextcloud.log",
"theme": "",
"htaccess.RewriteBase": "\/",
"updater.release.channel": "stable",
"default_language": "de",
"simpleSignUpLink.shown": false,
"app_install_overwrite": [
"user_usage_report",
"nextcloudpi",
"files_downloadactivity",
"issuetemplate",
"previewgenerator",
"limit_login_to_ip"
],
"mail_sendmailmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"data-fingerprint": "REMOVED"
}
}
HTTPd logs
[Tue May 14 23:16:16.793201 2024] [ssl:warn] [pid 35443:tid 548634046528] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue May 14 23:16:16.793519 2024] [ssl:error] [pid 35443:tid 548634046528] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspi5 / issuer: CN=raspi5 / serial: 74CC02906A0698300FBBC982FCE9664B3B17BEB4 / notbefore: Dec 26 21:46:54 2023 GMT / notafter: Dec 23 21:46:54 2033 GMT]
[Tue May 14 23:16:16.793557 2024] [ssl:error] [pid 35443:tid 548634046528] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue May 14 23:16:16.806282 2024] [mpm_event:notice] [pid 35443:tid 548634046528] AH00489: Apache/2.4.59 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Tue May 14 23:16:16.806407 2024] [core:notice] [pid 35443:tid 548634046528] AH00094: Command line: '/usr/sbin/apache2'
[Tue May 14 23:24:19.442192 2024] [mpm_event:notice] [pid 35443:tid 548634046528] AH00492: caught SIGWINCH, shutting down gracefully
[Tue May 14 23:24:19.535630 2024] [proxy_fcgi:error] [pid 35445:tid 548617568512] [remote 192.168.1.52:8807] AH01067: Failed to read FastCGI header
[Tue May 14 23:24:19.535819 2024] [proxy_fcgi:error] [pid 35445:tid 548617568512] (104)Connection reset by peer: [remote 192.168.1.52:8807] AH01075: Error dispatching request to :4443:
[Tue May 14 23:24:23.023291 2024] [core:warn] [pid 35443:tid 548634046528] AH00045: child process 35445 still did not exit, sending a SIGTERM
[Tue May 14 23:24:25.025594 2024] [core:warn] [pid 35443:tid 548634046528] AH00045: child process 35445 still did not exit, sending a SIGTERM
[Tue May 14 23:24:27.027880 2024] [core:warn] [pid 35443:tid 548634046528] AH00045: child process 35445 still did not exit, sending a SIGTERM
[Tue May 14 23:24:29.030168 2024] [core:error] [pid 35443:tid 548634046528] AH00046: child process 35445 still did not exit, sending a SIGKILL
[Tue May 14 23:24:38.683906 2024] [ssl:warn] [pid 548:tid 547907891264] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue May 14 23:24:38.693169 2024] [ssl:error] [pid 548:tid 547907891264] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspi5 / issuer: CN=raspi5 / serial: 74CC02906A0698300FBBC982FCE9664B3B17BEB4 / notbefore: Dec 26 21:46:54 2023 GMT / notafter: Dec 23 21:46:54 2033 GMT]
[Tue May 14 23:24:38.693253 2024] [ssl:error] [pid 548:tid 547907891264] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue May 14 23:24:38.777358 2024] [ssl:warn] [pid 852:tid 547907891264] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue May 14 23:24:38.777779 2024] [ssl:error] [pid 852:tid 547907891264] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=raspi5 / issuer: CN=raspi5 / serial: 74CC02906A0698300FBBC982FCE9664B3B17BEB4 / notbefore: Dec 26 21:46:54 2023 GMT / notafter: Dec 23 21:46:54 2033 GMT]
[Tue May 14 23:24:38.777838 2024] [ssl:error] [pid 852:tid 547907891264] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue May 14 23:24:38.786778 2024] [mpm_event:notice] [pid 852:tid 547907891264] AH00489: Apache/2.4.59 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Tue May 14 23:24:38.786901 2024] [core:notice] [pid 852:tid 547907891264] AH00094: Command line: '/usr/sbin/apache2'
Database logs
tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory
from nextcloudpi.
@pairatec I had the exact same problem which i mentioned here: #1913
I reinstalled Raspberry pi os bookworm and installed via curl-insraller. Note: Before running the installer run sudo apt install systemd-resolved and reboot.
After that, simply restore your backup.
from nextcloudpi.
Maybe try this: https://stackoverflow.com/questions/30451939/cant-install-libc6-package
from nextcloudpi.
Same problem here.
Now a cannot run sudo ncp-distro-upgrade. But NCP tells me to do so. I tried now
sudo apt autoclean sudo apt clean sudo apt update sudo apt upgrade
Does someone have a easy solution? I am not eager to reinstall everything. But maybe everything is ok. How to find out, if something is wrong?
Thanks a lot already!
from nextcloudpi.
@theCalcaholic you think it is possible to check the NC Version before upgrading to bookworm? I know it ist not related to the Problems people have here, but upgrading to bookworm while running NC25.x will most likely require a lot of work to get it running because of PHP version mismatch.
from nextcloudpi.
@FadeFx The upgrade script actually checks the PHP version already (see https://github.com/nextcloud/nextcloudpi/blob/master/bin%2Fncp-dist-upgrade.d%2Fdebian-11.sh#L31)
from nextcloudpi.
@ff0255 @pairatec You can try following the instructions in #1913 - it should complete the dist-upgrade process.
However @pairatec moving your existing RPi 4 installation to a RPi 5 is unsupported and won't work with or without the dist-upgrade.
from nextcloudpi.
Regarding the original issue, the best I can probably do is to add an apt-get autoclean
before the dist-upgrade. Let's hope that this fixes the issue - however, I can't really test and verify this.
from nextcloudpi.
I ran also into this issue today:
Calculating upgrade...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (< 2.32) but 2.36-9+rpt2+deb12u7 is to be installed
libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u10) but 2.36-9+rpt2+deb12u7 is to be installed
E: Broken packages
Maybe this issue should be re-opened. I checked open issues before doing the ncp-dist-upgrade
, because I did not want to run into trouble. But I missed this closed issue.
from nextcloudpi.
I tried to follow the instructions at the top issue #1913 to finalize the upgrade.
I forgot to put Nextcloud into maintenance mode before trying the fix. Maybe and instruction to enable maintenance mode should be added to #1913.
Later I tried to set the NextcloudPi to maintenance mode, but this resulted now in this error:
PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20210902/redis.so (/usr/lib/php/20210902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20210902/redis.so.so (/usr/lib/php/20210902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)
Now back to what I did to fix the system:
My /etc/apt/sources.list.d/raspi.list
file after running into the issue looked like:
deb http://archive.raspberrypi.org/debian/ bookworm main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ bookworm main
So this looked like this file was correctly upgraded.
Also the /etc/apt/sources.list.d/php.list
file looked fine after running into the issue:
deb https://packages.sury.org/php/ bookworm main
Next I did point 2 in the instructions of #1913:
sudo apt-get update && sudo apt-get upgrade -y --without-new-pkgs
I saw an error, but do not have the details unfortunately. It had to do with an unsupported compression type. It was printed in an root shell. When I did Ctrl-D from the root shell, the terminal was refreshed. And I could not copy the error message any more.
I tried to run this again:
deb https://packages.sury.org/php/ bookworm main
But I got:
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 http://archive.raspberrypi.org/debian bookworm InRelease
Hit:5 https://packages.sury.org/php bookworm InRelease
Reading package lists... Done
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1211494 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Top shows that unattended-upgr
is using 100% CPU time at the moment. So, I guess I should leave this run until it finishes.
I've no idea how long this process will take. I will provide more details in this issue later.
from nextcloudpi.
I found the error message about the compression in /var/log/apt/term.log
:
dpkg-deb: error: archive '/tmp/apt-dpkg-install-nA9zZV/4-dphys-swapfile_20100506-7.1+rpt3_all.deb' uses unknown compression for member 'control.tar.zst', giving up^M
dpkg: error processing archive /tmp/apt-dpkg-install-nA9zZV/4-dphys-swapfile_20100506-7.1+rpt3_all.deb (--unpack):^M
dpkg-deb --control subprocess returned error exit status 2^M
Preparing to unpack .../5-php8.1-igbinary_3.2.15-1+0~20231202.49+debian12~1.gbpe9ffe8_arm64.deb ...^M
Unpacking php8.1-igbinary (3.2.15-1+0~20231202.49+debian12~1.gbpe9ffe8) over (3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8) ...^M
Preparing to unpack .../6-tasksel-data_3.73_all.deb ...^M
Unpacking tasksel-data (3.73) over (3.68+deb11u1) ...^M
Preparing to unpack .../7-tasksel_3.73_all.deb ...^M
Unpacking tasksel (3.73) over (3.68+deb11u1) ...^M
Preparing to unpack .../8-libpam-runtime_1.5.2-6+rpt2+deb12u1_all.deb ...^M
Unpacking libpam-runtime (1.5.2-6+rpt2+deb12u1) over (1.4.0-9+deb11u1+rpt2) ...^M
Errors were encountered while processing:^M
/tmp/apt-dpkg-install-nA9zZV/4-dphys-swapfile_20100506-7.1+rpt3_all.deb^M
from nextcloudpi.
Further update:
I killed the "hanging" unattended-upgr
process with kill -9
I installed zst: sudo apt install zst
.
And started this again:
sudo apt-get update && sudo apt-get upgrade -y --without-new-pkgs
The upgrade is running now...
from nextcloudpi.
I further followed the instructions of #1913 and NextcloudPi seems to be working again.
from nextcloudpi.
I had afterwards the problem that despite nextcloud had been working normally, ncp panel was reporting that nextcloud and HCP service was down. Also the Cron jobs were not running. This was caused by PHP 8.3 being installed, which I removed and rebooted the server. Then everything was up and running again.
from nextcloudpi.
Thank you, after carefully following #1913 dist upgrade compleded. The only problem I had - it was exiting interactive mode (found somewhere Ctrl+D)
from nextcloudpi.
Related Issues (20)
- ncp-dist-upgrade to bookworm failed HOT 3
- Missing full EOL base image HOT 1
- Error while applying update 1.54.1. Exiting... HOT 1
- php.ini conflict when updating to 1.54 HOT 1
- Error when updating: Table 'nextcloud.oc_group_user' doesn't exist HOT 5
- ncp-dist-upgrade to bookworm failed: "uses unknown compression for member 'control.tar.zst''' --> solution HOT 4
- Failed to connect to the database after 1.54.0 dist-upgrade. An exception occurred in the driver HOT 5
- curl-installer fails on systems without either systemd-resovled or resolvconf HOT 12
- Upgrade to ncp 1.54.2 stuck on fresh installed RPi5 1.54.0 image HOT 1
- Admin Settings result in Internal Server Error
- Installation on Odroid HC1 HOT 2
- RaspberryPi5 v1.54.0 - Internal Server Error HOT 3
- Some packages could not be installed - sudo ncp-dist-upgrade HOT 2
- Website down? HOT 2
- Internal error encountered using twingate HOT 1
- nc-update-nextcloud does not prevent updating to unsupported versions HOT 2
- ncp-update fails at --fetch-keys https://packages.sury.org/php/apt.gpg HOT 1
- Error when enabling the Metrics app
- Error while applying update 1.54.0. Exiting... HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextcloudpi.