Update from 148 to 149 does not work

Having issues with your DietPi installation, or, found a bug? Post it here.
dietpiOK
Posts: 76
Joined: Thu Mar 16, 2017 9:33 am

Re: Update from 148 to 149 does not work

Post by dietpiOK »

When run this command after the update to switch off the ramdisk I see the following things:
  • After next reboot the ramdisk is on again
    Without ramdisk I might have lower performance
    AND: Even switching the ramdisk off after the update the /boot/dietpi/.version will still show 148
So this obviously does not work for me :(
SubNoize
Posts: 7
Joined: Wed Mar 30, 2016 5:40 am

Re: Update from 148 to 149 does not work

Post by SubNoize »

anyone have a fix? stuck on 150, can't go to v151 @Fourdee
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Update from 148 to 149 does not work

Post by Fourdee »

SubNoize wrote:anyone have a fix? stuck on 150, can't go to v151 @Fourdee
Do you have PiHole installed?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
dietpiOK
Posts: 76
Joined: Thu Mar 16, 2017 9:33 am

Re: Update from 148 to 149 does not work

Post by dietpiOK »

No, what is it?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Update from 148 to 149 does not work

Post by Fourdee »

dietpiOK wrote:No, what is it?
Great :) http://dietpi.com/phpbb/viewtopic.php?f ... rt=20#p174

Our update system appears to be fully functional at the moment. We cant replicate this at our end.
Have you made any changes to the system (eg: installed software/changed a config), outside of the DietPi scripts (eg: manually)?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
dietpiOK
Posts: 76
Joined: Thu Mar 16, 2017 9:33 am

Re: Update from 148 to 149 does not work

Post by dietpiOK »

I am running the LAMP stack and also Python scripts. I installed some additional Python modules.
And additionally I mounted my NAS via /etc/fstab. Furthermore I applied some cron jobs at /etc/crontab.

When I reboot the machine at Login I can see "UPdate available". /boot/dietpi/.version will show me "148".
Can you help me investigate on the root cause? For example:

1) Can I check in any way if I have the latest builds on my raspi (dietpi-update will do something but I cant'f figure out if it all succeeds).
2) When will the new version be written to /boot/dietpi/.version? And what might have happened if writing to this file does not succeed?



Here are some details from my last dietpi-update run:


[Ok] kernel dietpi_rpi | Completed

[Ok] Patch 150 completed


DietPi-Update
─────────────────────────────────────────────────────
Mode: Updating DietPi
Please wait...

[Info] Current Version : 150
[Info] Server Version : 151

[Info] Patching 150 to 151
[Info] Checking RootFS R/W access. Please wait...
[Ok] RootFS R/W access.
[Info] Initializing database, please wait...
[Info] Reading database, please wait...

DietPi-Software
─────────────────────────────────────────────────────
Mode: Automated reinstall
Please wait...

[Info] 37: Shairport Sync is not currently installed
[Info] The program must be installed, before reinstall can be used
[Ok] No changes applied for: Shairport Sync
[Ok] Patch 151 completed


DietPi-Update
─────────────────────────────────────────────────────
Mode: Completed
Please wait...

[Info] Current Version : 151
[Info] Server Version : 151
[Ok] Update completed


After this dietpi-update run the /boot/dietpi/.version still shows 148 :(


Best regardsm
Olaf
dietpiOK
Posts: 76
Joined: Thu Mar 16, 2017 9:33 am

Re: Update from 148 to 149 does not work

Post by dietpiOK »

Are there any other actions I can take to get the Pi updated properly? Even the latest update to 153 results in the same behaviour.

Is there a chance to check if the dietpi-update command did all updates but only the wrong version will be shown?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Update from 148 to 149 does not work

Post by Fourdee »

dietpiOK wrote:Are there any other actions I can take to get the Pi updated properly? Even the latest update to 153 results in the same behaviour.

Is there a chance to check if the dietpi-update command did all updates but only the wrong version will be shown?
Hi,

Most likely dietpi-ramdisk is failing to save on shutdown.

After updating DietPi, try forcing a ramdisk save and checking status:

Code: Select all

systemctl restart dietpi-ramdisk
systemctl status dietpi-ramdisk -l
If it reports active and success, reboot system and recheck version.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
dietpiOK
Posts: 76
Joined: Thu Mar 16, 2017 9:33 am

Re: Update from 148 to 149 does not work

Post by dietpiOK »

Hmm...

can someone explain this to me?

Loggin in does not seem to ask for an update:

───────────────────────────────────────
DietPi | 21:50 | Wed 12/07/17
───────────────────────────────────────
V153 | RPi 3 Model B (armv7l)
───────────────────────────────────────
IP Address | 192.168.168.212
───────────────────────────────────────

Created by : Daniel Knight
Web : http://DietPi.com
Twitter : http://twitter.com/dietpi_
Donate : http://goo.gl/pzISt9
DietPi's web hosting is powered by: MyVirtualServer.com

dietpi-launcher = All the DietPi programs in one place.
dietpi-config = Feature rich configuration tool for your device.
dietpi-software = Select optimized software for installation.
htop = Resource monitor.
cpu = Shows CPU information and stats.



In the .version file I can find 148:


root@maschine2:~# cat /boot/dietpi/.version
148





dietpi-update determines version 153:


root@maschine2:~# dietpi-update
[Info] Checking RootFS R/W access. Please wait...
[Ok] RootFS R/W access.

DietPi-Update
─────────────────────────────────────────────────────
Mode: Checking for DietPi updates
Please wait...

[Info] Checking Mirror : http://dietpi.com/downloads/dietpi-upda ... er_version
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6 100 6 0 0 103 0 --:--:-- --:--:-- --:--:-- 115
[Ok] Using update server: http://dietpi.com/downloads/dietpi-upda ... er_version
[Info] Detecting drives, please wait...
[Info] Detected /dev mount: /dev/mmcblk0p1 > /boot
[Info] Detected /dev mount: /dev/mmcblk0p2 > /
[Info] Processing drive information, please wait...
[Info] Checking available free space on RootFS, please wait...
[Ok] 13178 MB available, 500 MB required

[Ok] No updates required, your DietPi installation is up to date.

[Info] Current Version : 153
[Info] Server Version : 153




So the only weird thing is why /boot/dietpi/.version is outdated? How can I fix that?
Post Reply