Failed configuration upload

Hi,

I am running truenas scale 24.10.0.2 and tried to change my boot drive. I downloaded the config before swapping from my old nvme drive to a new one. After reinstalling truenas I can’t upload the old config. I have the following error:

[EFAULT] Uploaded TrueNAS database file is not valid: + DATABASE=/tmp/tmpn5gho8a3/freenas-v1.db + python3 -c import os; import sys; sys.path.remove(“”) if “” in sys.path else None; import middlewared; print(os.path.dirname(middlewared.spec.origin)) + cd /usr/lib/python3/dist-packages/middlewared + FREENAS_DATABASE=/tmp/tmpn5gho8a3/freenas-v1.db alembic upgrade head INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. ERROR [alembic.util.messaging] Can’t locate revision identified by ‘b5829f78cec3’

Could you help me resolve this ? I would loose a lot of configuration time…

The only info I could find is that it may be because of alembic and I should DROP TABLE alembic_version; But I don’t know how to access the database.

Im not sure why this would happen… is it a software bug or a corrupted config file?

Can we start with full details of the hardware?

Perhaps a history of the system?

I think it may be a software bug, either on the upload or download of the config file. I have two versions of the config, generated 2 days apart. Both fail with the same error (I have tried uploading both the .db file and the .tar file).

As far as history goes, I’m not sure what would be useful here. The system is very young but I was running it on a placeholder SSD until I got something else.
I actually believe I used the same iso to install truenas on both SSDs.

I can think of two things, I updated the bios so that the motherboard would recognize the new SSD. But that was before downloading the config. And I set the default network gateway manually with the shell, to use a proxy.

Hardware:
Ryzen 3600
X470 Master SLI/ac
32GB of 3200hz ram
NVME SSD 1: crucial P1 1TB (old install)
NVME SSD 2: union memory AM6672 256GB (new install)
HDD: 3x Seagate st12000nm0127 12TB 7200 rpm in raid z1

Is it possible that your configuration file was saved in a TrueNAS version that is newer than than the install your are trying to import it into?

Even if your install media is the same, you could potentially have upgraded the TN version on the older system but neglected to do so in your second install.

1 Like

It was, feeling pretty stupid right now… Thank you

2 Likes