-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Did ncp-dist-upgrade break your (Raspberry Pi) installation? Here's how to get it back #1913
Comments
Thanks for the guide. I successfully completed step 1. When i try running E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) Any suggestions? Thanks a lot! |
Problem solved... I had to go into sudo -s mode and it worked... Nextcloud is back... However, I still get the following info, when I login to the raspberry pi: Would running this command again break it again? Can I safely run the ncp updates? Thanks for the great work! |
@nposnie Thank you for the feedback, I fixed the commands without sudo. Can you give me the output of the following command? That should help me understand why you're still seeing the message on login: ls -l /etc/update-motd.d/ You don't need to worry about it, though. The message won't break anything |
Hi @theCalcaholic, thanks for getting back on this! This is the output you asked for: Thanks! |
Sorry for the confusion... The message per se is not worrying. I was wondering wether I could/should run the |
@nposnie If you ran Can you try if the following commands remove the login message? sudo rm -f /etc/update-motd.d/30-ncp-dist-upgrade
sudo rm -f /usr/local/etc/ncp-recommended.cfg if yes, I'll adjust the guide above |
remove the message for me. |
Excellent! Message is gone! Thanks a lot for your quick help! |
@theCalcaholic is it now safe to use dist-upgrade of nextcloudpi on raspberry pi os (bullseye)? Or will you integrate additional fixes for 1.54.x? |
I am running a Pi4 with ncp installed to an SSD. I just updated from v1.53.0 to v1.54.0 and it seems i ran into the same issues as https://github.com/nextcloud/nextcloudpi/issues/1921. Like @sebeweiss, I ran
ncp system-info shows mainly positive messages, although these two don't look too good:
some more info from said page, since it complains about the distro to be outdated: As you can see below, the very first command from step two in your howto still results in an issue regarding the swap file for some reason:
If you need more info from me, let me know |
@sjibbert That should already be fixed. Can you run @Schniefel Yes, every known issue should be fixed. Just make sure you're on v1.54.2 |
I just did, unfortunately, this results in errors, causing the update (to 1.54.1, not 1.54.2!) to be cancelled:
|
@sjibbert Oh, thank you, that makes sense. Can you try running |
I just ran ncp-update again and I seem to have succesfully updated. I won't copy all output, but the operation ended with the following:
i did not do
NC admin dashboard system info still says:
I suppose I should do the dist-upgrade? |
@sjibbert Since you ran ncp-dist-upgrade already, you will most likely need to follow the manual instructions above instead of rerunning the script (no harm in trying though). |
package sources under step 1 already/still contained bookworm instead of bullseye. no adjustment neccecary
yields:
|
What's your |
Debian 'dpkg' package management program version 1.20.13 (arm64). |
I see. zstd support was added to dpkg in version 1.21.18. |
I think I see the issue:
There are still bullseye package sources configured in your system. Can you please check and let me know which file is responsible for that (I suspect /etc/apt/sources.list)? |
That's correct, step one only mentioned "/etc/apt/sources.list.d/raspi.list" and "/etc/apt/sources.list.d/php.list", so I only manually altered those two.
again, i prompt
Still:
and
|
dist-upgrade didn't work for me, so i am now completely reinstalling after a few tries. |
@Schniefel Some issues have been reported with the curl installer on Raspberry Pi OS specifically that will probably take me another week to fix. So you could either wait for that or use the Armbian image (or run NCP via LXD/LXC inside Raspberry Pi OS) |
@theCalcaholic look at: #1926 I tried it out and got it working but had to manually install systemd-resolved before running the script |
Your step 1 says: Seems to be a significant typo right at the top here... |
@Halloran Thank you, yeah that's a typo :) |
I ran today into this issue: #1930 |
Nope, I see, that nothing happens, script is hanging and when I try to follow these instructions:
@theCalcaholic Would you have some ideas, how I could try to fix my NCP? |
I also ran into this issue with v1.54.2 (on Buster, not sure if this is the same for all). Before I got that far, I first had to solve issue with gcc-8-base, described in #1460. Seems still exist. While following instruction above, struggled with following:
Any idea? Thanks. |
Starting from 1.52.2 I too ran into the following:
Your steps fixed it luckily, thanks. |
Thanks to wiborgit I finally made it: |
Same problem with issue #1927 fresh RPi5 install from SD flashed with "https://github.com/nextcloud/nextcloudpi/releases/download/v1.54.0/NextcloudPi_RaspberryPi5_v1.54.0.zip" After activation page and SSH : reboot of RPi5 (takes 10min to get prompt login of Armbian !!! Instead of 2-3mins for official raspbian linux) And launching "sudo ncp-update", process run until "Processing Triggers for man-db (2.11,2-2)" and nothing happening during 24h... see picture below. |
my system broke today doing this update. going to reinstall but figured I would let you know what the error looked like. |
looks like the images are all still based on bullseye. Is the only way to update to bookworm via ncp-dist-upgrade? |
correction -- the new images are on bookworm. thanks again - love this project been using it for years. |
I'll close this issue now, since all bugs have been fixed since and there shouldn't be any new occurrences of the original bug. |
First of all: This issue should be fixed by now, but I could not yet verify it on an actual Raspberry Pi. So, if this happened to you, please let me know when you performed the update, so I can check if there is still something that needs to be fixed.
1. Fix your package sources
bullseye
withbookworm
. Also make sure, no line starts with an#
(indicates that it is ignored). The result should look something like this:2. Upgrade packages
Run the following commands:
sudo apt-get update && sudo apt-get upgrade -y --without-new-pkgs sudo apt-get full-upgrade -y sudo apt-get --purge autoremove -y
3. Install missing PHP packages
Run the following command
4. Reload apache
4. Complete the dist-upgrade
Run the following commands:
sudo ncc maintenance:mode --off sudo sed -i -e 's/bullseye/bookworm/' /usr/local/etc/ncp.cfg sudo rm -f /etc/update-motd.d/30-ncp-dist-upgrade sudo rm -f /usr/local/etc/ncp-recommended.cfg
Now, Nextcloud should be back up again (if not, try rebooting and check again).
The text was updated successfully, but these errors were encountered: