22.02-RC.1 fresh install not working (middleware doesn't start)
Description
Problem/Justification
Impact
Activity

Ferid Zénasni October 29, 2021 at 11:05 PM
I was unable to upload the file over scp so just updated the original dmi.py via the console
This changed : line.split(':', 1)]
did a reboot and all is well again
thanks

Caleb October 27, 2021 at 9:06 PM
thanks for the confirmation! You can install the latest nightly and it will have my fix (give it a couple hours to get a new nightly built) or you can wait until the next official release is out. Thanks again for your help!

Moses Leslie October 27, 2021 at 8:11 PM(edited)
Success!
A restart didn't fix it (just hung, let it go for 5 min but still nothing), I thought it might be in a weird state since I brought up an interface manually and a few other things, so I went ahead and rebooted. It also got stuck on stopping middlewared there, so I just power cycled it after another 5 or so min, and everything came up as expected now.
Thank you!
edit: typo

Caleb October 27, 2021 at 7:50 PM
, I've attached a file that should fix this problem and allow middlewared to start. Could you test it on your system and see if it fixes the problem?
Take this file:
and scp/sftp/rsync it to your truenas to the /root directory.
Then do the following:
1. make a backup of original file "cp /usr/lib/python3/dist-packages/middlewared/plugins/system_/dmi.py /usr/lib/python3/dist-packages/middlewared/plugins/system_/dmi.py.orig"
2. copy the new file over to it's location "cp /root/dmi.py /usr/lib/python3/dist-packages/middlewared/plugins/system_/dmi.py"
3. restart the middlewared service "systemctl restart middlewared"
Let me know if that fixes it for you.
Details
Details
Assignee

Reporter

Fresh bare metal install of 22.02-RC.1 on a new nvme drive does not work, after the first boot it says "middleware not started, press enter for a root shell" or something similar. The middleware is in a restart loop. /var/log/middlewared.log shows:
I brought up an IP and started ssh to poke around, so if there's other logs/info i should grab to help debug please lmk.