-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
DietPi Update failed no space left Linux image #5371
Comments
can you share following
|
|
Also interesting could be the output of Shouldn't linux-firmware-image-4.9.241-arm64 |
is that an older installation? Just asking because we updated the image mid of Feb. and changed to an Armbian based image. |
Yes it is an older one. |
did you installed kernel 5.15 / 5.16 yourself? |
Alright, the update went through without any issue. Possibly I tried upgrading the kernel manually to fix my btrfs issue https://dietpi.com/phpbb/viewtopic.php?p=42762#p42762 but without success. Would you recommend upgrading the c4 image? The kernel that is running now is |
It would be a good idea to get to a newer kernel version. But this would require to download/flash a new image. It is not possible to upgrade the image you are running. |
Can I do that without damaging my current installation? |
No, flashing a new image would mean to start from scratch with a fresh install. |
Seems you tried to install the Debian arm64 kernels, but those are not picked up OOTB by the bootloader. Our new image ships with Linux 5.10 and AFAIK will upgrade to v5.15 during first boot, so yep is has some benefits, if you find the time for a fresh setup 🙂. Also the new image won't suffer from insufficient /boot space anymore since it contains a single partition only, no dedicated /boot partition. So more space to play with different kernels.
Well, flashing a new image means all data is lost, so you'd need to migrate your data and configs and install freshly the software you use. |
I have a nextcloud running with all my personal files and a nice setup. I have to figure out what needs to migrated somehow and what can be restored by backups automatically. Thanks anyway |
we offer a tool @MichaIng |
I just wanted to say 😄: https://github.com/MichaIng/DietPi/blob/master/.meta/dietpi-cloud-migration
|
would it be something for our docs or blog? |
Makes sense. I actually created it for that when when DietPi v6.0 was released which required everyone to reflash, but I see it still has some use. Works with ownCloud as well and it could be theoretically expanded to cover other software titles which use a MySQL or PostgreSQL database and update migration steps (so that database version and application versions need to match). |
@MichaIng I have a little customized installation as I didn't want to have the database on the otating disks but only the raw data. Therefor I changed the Additionally I have custom cron jobs, proftpd configs and so on. Do I have to migrate all this by hand or can I use the dietpi backup? Nevertheless I think for migrating nextcloud your script at least works for the database which is most of the hard stuff. |
No you can't use |
It works as well when you manually changed the data directory via But, generally I'd recommend to move the database to an external drive. It is I/O intense. It's internal buffers and the native filesystem cache should prevent too many drive spin up/down switches, but this may depend on the Nextcloud usage. But saying "SD card", probably you use a different system drive anyway, in which case forget what I wrote 😉. |
@MichaIng because of the I/O of the database I decided to have it on the SD card as the one I got is pretty good and better than the rotation hdd. Additionally I wanted to safe some energy by spindown hdds if there are no real accesses on the raw files what are most cases for our family setup :) |
Okay, great that it worked. If you have any suggestions to enhance the procedure, script output or any such, please tell us. The script wasn't used so much, but when we change that by adding it to our docs, probably to the DietPi core code, it should be as simple to use and as clear in its output as possible 🙂.
I get the point with the disk rotation. It is quite rare on my own Nextcloud home server, I have to say, database buffers and filesystem cache collect much of it in memory until writing it in a batch to the disk. On the other hand, if not many actual changes are done to the Nextcloud data, then most access is read access, so yeah, it depends on usage, power consumption and noise of the drive, SD card quality etc. Should be all fine. The only thing I suggest, if you do not do that anyway, is running regular database backups. Here an example about how to achieve this via daily cron job, keeping backups of the last 10 days: https://dietpi.com/phpbb/viewtopic.php?p=39595#p39595 |
@MichaIng Thank you for the hint regarding the database backups. I will look into it. Regarding sugesstions to enhance the procedure, I have several ideas:
|
I meant suggestions regarding the Nextcloud migration script and procedure 😄.
If we did find those reasonable, we'd install them via Those warnings get enhanced with Nextcloud 24 to better explain what they are used for: nextcloud/server#31470
I think this goes too far, breaking the ability to use if for migrating from one server to a different one with different hostname. Furthermore HTTPS relies on webserver configs, and the webserver is installed freshly and configured via
Again, this goes beyond of what the script is aimed to do. PHP is freshly reinstalled, so its configs cannot be reasonably migrated without massive added logic + what was right on the old server may be completely wrong on the new one, e.g. due to new Debian version and hence changed PHP version. But out of interest, how did you need to adjust it? By default it's 2-5 PHP workers, which should work pretty fine for a home instance, and it is Debian's PHP default. I personally use 4 static PHP workers here. But of course, the larger the instance (the more users/clients), the more workers become reasonable.
Similar to Note that this script really is only for migrating Nextcloud and ownCloud, in the future probably other web applications with databases, where it is important that the application version matches the database version so that one cannot simply copy the database and install the latest application. It is not meant to migrate a whole webserver stack with all configs or a whole DietPi server, which requires logic for being failsafe we cannot reasonably develop. |
Details:
Linux DietPi 4.9.241-arm64 #1 SMP PREEMPT Thu Feb 25 17:57:15 CET 2021 aarch64 GNU/Linux
apt-get -qq upgrade
Steps to reproduce:
Expected behaviour:
Dietpi should be updated
Actual behaviour:
error occured
Extra details:
Additional logs:
The text was updated successfully, but these errors were encountered: