From v6.19.7 to new update

Having issues with your DietPi installation, or, found a bug? Post it here.
pakikje
Posts: 124
Joined: Fri Nov 11, 2016 3:04 pm

From v6.19.7 to new update

Post by pakikje »

Upgrade problem.

I just did a dietpi-update. I am now in a "menu-loop"

Dietpi has not been fully installed...

I did go to "Install", but there is no additional software i want to install (i went on as a pure minimal install) , i get the questions if i want to change unix password/dietpi/root password. After that it goes back to the menu (i can't go to the shell/prompt)

What should i do?

ps: i am connected via ssh / vpn
OdroidC2
Last edited by pakikje on Tue Jan 29, 2019 6:10 pm, edited 1 time in total.
pakikje
Posts: 124
Joined: Fri Nov 11, 2016 3:04 pm

Re: From V16.9.7 to new update

Post by pakikje »

sorry, couldn't wait.
Did a dietpi-backup -1

ps: dietpi-backup is awesome!!
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: From V16.9.7 to new update

Post by MichaIng »

@pakikje
So your system is actually already installed, right?

Can you verify the expected install stage is 1: cat /DietPi/dietpi/.install_stage
And the expected .update_stage file is in place: cat /DietPi/dietpi/.update_stage

Please retry dietpi-update, if the above is correct. When it asks if you want to reboot, please cancel.
First recheck cat /DietPi/dietpi/.install_stage which should be 2 now.
If this is the case, then please reboot to sync RAMdisk to disk, load new login scripts, globals and such.
User avatar
katastrofa
Posts: 5
Joined: Thu Nov 01, 2018 12:37 pm

Re: From V16.9.7 to new update

Post by katastrofa »

Same problem here...
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: From V16.9.7 to new update

Post by MichaIng »

@katastrofa
Please go through/check the same as mentioned above.

I opened an issue on GitHub: https://github.com/Fourdee/DietPi/issues/2466
User avatar
katastrofa
Posts: 5
Joined: Thu Nov 01, 2018 12:37 pm

Re: From V16.9.7 to new update

Post by katastrofa »

I changed /DietPi/dietpi/.update_stage to 1 and no problems now. Thanks a lot :D
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: From V16.9.7 to new update

Post by MichaIng »

@katastrofa
What was the files content before? Actually when updating to v6.20.5 it should be removed, it's info merged into /DietPi/dietpi/.install_stage, which is for this set to 2.

/DietPi/dietpi/.update_stage should not be read/nor required by any DietPi script after successful update to v6.20.5, if it still is, then something went wrong.
User avatar
katastrofa
Posts: 5
Joined: Thu Nov 01, 2018 12:37 pm

Re: From v6.19.7 to new update

Post by katastrofa »

In my case the content of the file was:

0

Hope that helps.
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: From v6.19.7 to new update

Post by MichaIng »

Hmm, and this was not fresh install right? Strange, since when you install the DietPi image and you boot it the first time, an automated dietpi-update should be done and lift /DietPi/dietpi/.update_stage to one. Patch to v6.20.5 should remove the file then, as mentioned above.

So does the file still exist now after update to v6.20.5?
User avatar
katastrofa
Posts: 5
Joined: Thu Nov 01, 2018 12:37 pm

Re: From v6.19.7 to new update

Post by katastrofa »

In both cases, the same thing has happened to me. I have made an update and a clean installation. In both cases I ended up with a "menu-loop" when trying to update using "dietpi-update".

And yes, the file still exists.
Post Reply