Upgrade 2.3 to 2.7.2 issues with config restore
-
@stephenw10
Yes, full config meaning...un-sanitized? or not a config.xml?Is there a safe way to share that?
-
Yes the full config if you can. If not then at least soemthing that still hit's this error when you try to recover it.
You can upload files here: https://nc.netgate.com/nextcloud/s/myLNdL9CbWeKWqT
-
@stephenw10
Thank you! I dropped 2 unsantized config.xmls there, one with the package & rrd data and one without. -
@sneakking said in Upgrade 2.3 to 2.7.2 issues with config restore:
Any luck with my configs I uploaded?
Thank you.
-
@sneakking Hello, how do you are trying the update?
Did you try a clean install then a restore from gui? Instead updating an old version with conf on?
If doesn't work (you may need to refit interfaces) you may take the clean conf from new install, and take the parts of config you need from the old one and override the sections. -
Ah, sorry this got swamped. Let me test....
-
Yup seeing that error. Digging....
-
Ok so this is fixed in newer versions. It was fixed between 24.03 and 24.11 which means it will be fixed in 2.8 but that doesn't help much in 2.7.2! unfortunately there were a lot of changes went in at that time so it's not straight forward to patch in 2.7.2.
However I was able to workaround it by manually updating the vlan config format and removing the ppp line from the config file. It then imported successfully.
So replace
_vlan
with.
and remove<ppps></ppps>
.I have a modified file I can send you if you need it.
-
@stephenw10
Thank you! I have been running on a modified version of my old config that I updated to what I needed most, but afraid to reboot because of the issue I was seeing before.I exported my current modified config, edited the file with your suggestions to _vlan and ppps and it seems to hold the config now after being restored/rebooted. Darn that formatting.
Not seeing the PHP error anymore like I was persistently seeing.
Thank you again for all your help!
-
No worries. It is a legitimate bug. You should just be able to import it. But because it's already fixed it's unlikely to see much traction in 2.7.2. At least there's a relatively easy workaround.