Cannot upload saved config from BETA2 to new installed BETA2

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Hi all,

I thought that bug was fixed in BETA2? Is there a workaround? Otherwise I will have to create my entire config from scratch in the UI ... :frown:

Version numbers are identical: FreeBSD truenas.local 12.1-STABLE FreeBSD 12.1-STABLE dee9159d38b(HEAD) TRUENAS amd64

Thanks,
Patrick

Bildschirmfoto 2020-08-17 um 19.54.13.png
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Go to /usr/local/lib/python3.8/site-packages/middlewared/plugins, find config.py, and on the else: that does the CallError, do a found = True instead. Then restart middlewared. Obviously not the intent, but it'll get you past this.

So this:

Code:
                else:
                    raise CallError(
                        'Failed to upload config, version newer than the '
                        'current installed.'
                    )


to this:

Code:
                else:
                    found = True


And maybe make sure that a jira bug for it already exists.
 
Top