SCALE Nightlies upgrade broken ?

Joined
Jun 2, 2019
Messages
591
I've done it 4 times. Same error over and over again. Middleware won't load , errors in files I did not edit.
That seems like an unrelated problem.

Suggest
1. Backup your config (export secret seed)
2. If you can't access the WebGUI to backup your config, you can do it manually (see example script).
NOTE: I think there is a way to backup config via CLI, but it isn't working on my system.

#!/bin/sh FILENAME="`hostname -s`-`cut -d' ' -f1 /etc/version`-`date +%Y%m%d`.tar" #echo $FILENAME tar -cvlf /mnt/data/Software/truenas/$FILENAME --strip-components=2 \ /data/freenas-v1.db \ /data/pwenc_secret \ /root/.ssh echo "Backup $FILENAME created" find /mnt/data/Software/truenas/NAS-?-TrueNAS-*.tar -mtime +365 -exec rm {} \;
3. Re-install the latest nightly from ISO. https://download.truenas.com/truenas-scale-nightly/
4. Restore config
 
Last edited:

AndyMcSchopf

Dabbler
Joined
Feb 8, 2022
Messages
11
I tried this on my Test-Server coming from TrueNAS-SCALE-22.02-RC.2, added the 4 lines, reboot and then updated with the Update-File. Worked like a charm.
 
Joined
Jun 2, 2019
Messages
591
SCALE Nightlies are borked again.

Error: [EFAULT] You already are using 22.02.1-MASTER-20220215-092936 close​



Same error message via webGUI and CLI, and manual update file.


Screen Shot 2022-02-15 at 3.42.02 PM.png
Screen Shot 2022-02-15 at 3.45.58 PM.png
Screen Shot 2022-02-15 at 4.00.04 PM.png
Screen Shot 2022-02-15 at 4.25.29 PM.png



UPDATE

Steps to force update for latest bug
1. cd /usr/lib/python3/dist-packages/middlewared/plugins/update_
2. nano install_linux.py
3. Comment out the following lines

# if old_version == new_version: # raise CallError(f'You already are using {new_version}') # if not can_update(old_version, new_version): # raise CallError(f'Unable to downgrade from {old_version} to {new_version}')

4. service middlewared stop
5. service middlewared start
6. cli -c 'system update update'
7. reboot
 
Last edited:

sgt_jamez

Explorer
Joined
Jul 30, 2021
Messages
88
Currently runnin TrueNAS-SCALE-22.02-MASTER-20220206-172922. Tried to cd /usr/lib/python3/dist-packages/middlewared/plugins/update_ but my dist-packages folder does not contain the middlewared folder. I'm not sure how to proceed from here.
 
Joined
Jun 2, 2019
Messages
591
Currently runnin TrueNAS-SCALE-22.02-MASTER-20220206-172922. Tried to cd /usr/lib/python3/dist-packages/middlewared/plugins/update_ but my dist-packages folder does not contain the middlewared folder. I'm not sure how to proceed from here.
That seems odd.

Your other option is to:
1. save your config backup
2. re-install SCALE from the iso file (RC.2 or nightly)


3. restore config backup
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
I've done it 4 times. Same error over and over again. Middleware won't load , errors in files I did not edit.
Not sure if that matters, but I am trying to switch to nightly from TrueNAS-SCALE-22.02-RC.2
The official release of SCALE will be on Tuesday....suggest waiting for that if it's getting frustrating.
 
Top