canove
(Canove)
June 5, 2019, 9:37am
1
NethServer Version: 7.6.1810
Module: config-backup
I am trying to simulate a disaster recovery. I just installed a Nethserver VM on Proxmox, with unattended install.
When i try to upload my backup on wizard, i get this:
I think i am missing something
davidep
(Davide Principi)
June 5, 2019, 10:28am
2
Are you running a VM snapshot? Is the machine clock set correctly?
If that’s not enough, skip the restore step in First config wizard: complete the initial configuration, install updates from Software center, then try the restore from the Backup config page.
canove
(Canove)
June 5, 2019, 11:16am
3
Its not a snapshot, its a new VM with fresh installation.
I tried skipping the wizard, adjusted time clock and updated, but I am still geting “The request cannot be completed because this page has expired”
pike
(Michael Kicks)
June 5, 2019, 11:39am
4
Yesterday evening i got stuck into a firewall restore.
Bad idea to restore a 7.6 configuration on 7.5 setup.
For anyone who’s trying to do the same thing: install Nethserver, update to latest release, and only then restore.
Maybe one day there will be a disclaimer during first NethServer setup who will tell you “restore only a configuration from the same version of this installation”.
This happened to me when i tried to restore a 7.6 setup on a 7.5 install.
Basic setup should have at least one green interface.
canove
(Canove)
June 5, 2019, 11:45am
5
It is the same version. I just installed it some days ago, create a DC, some users and groups, and now I’m trying to test a disaster recovery.
pike
(Michael Kicks)
June 5, 2019, 11:49am
6
Did you follow this steps for the recovery?
install from available media
full update the installation (this leads to have internet connection on the installation)
load the configuration from file (for config restore)
or
configure the hostname as the same as old installation and start the restore
canove
(Canove)
June 5, 2019, 12:04pm
7
The only step I skipped was to change the hostname.
I tried it now, but it still give the same error.
Where I can find a log with the background error for this message?
I can’t even upload the tar file
pike
(Michael Kicks)
June 5, 2019, 12:05pm
8
@davidep is in messages? Or there’s another specific location for the backup/restore Log?
davidep
(Davide Principi)
June 5, 2019, 12:40pm
9
That message is a “CSRF token verification failed!” error. It is an UI problem. You should have it in the messages log file:
grep -B 10 -F 'CSRF token verification failed!' /var/log/messages
Please attach the grep output. Also an excerpt of httpd-admin error log might help…
grep -B 50 -F 'POST' /var/log/httpd-admin/access_log
canove
(Canove)
June 5, 2019, 12:46pm
10
Jun 5 09:12:29 acde01fs01 httpd: [ERROR] Nethgui\Framework: CSRF token verification failed!
Jun 5 09:12:29 acde01fs01 httpd: [2] POST Content-Length of 80445988 bytes exceeds the limit of 8388608 bytes - File Unknown, line 0
Jun 5 09:15:42 acde01fs01 dhclient[6085]: DHCPREQUEST on eth0 to 192.168.1.1 port 67 (xid=0x5d7d899b)
Jun 5 09:15:42 acde01fs01 dhclient[6085]: DHCPACK from 192.168.1.1 (xid=0x5d7d899b)
Jun 5 09:15:44 acde01fs01 dhclient[6085]: bound to 192.168.1.157 -- renewal in 3158 seconds.
Jun 5 09:43:40 acde01fs01 httpd: [ERROR] Nethgui\Framework: CSRF token verification failed!
It seems like a problem with the size of archive, right?
1 Like
davidep
(Davide Principi)
June 5, 2019, 12:55pm
11
Yes it seems so. Shouldn’t be that big!
Could you look at the archive contents? What are the biggest ones?
1 Like
canove
(Canove)
June 5, 2019, 1:04pm
12
I put some installation files on “\mydomain\netlogon”, to be used on login scripts
I removed them and now the recovery went just fine!
Thank you very much for your support!
1 Like
pike
(Michael Kicks)
June 5, 2019, 1:07pm
13
davidep:
Shouldn’t be that big!
There’s a “max size” for backup? 8mb?
And… why it’s not reported that the file exceedes the allowed size during backup?
davidep
(Davide Principi)
June 5, 2019, 1:10pm
14
Because that error never happened before
80MB of config backup is a faulty use-case IMO.
pike
(Michael Kicks)
June 5, 2019, 1:11pm
15
Limit comes from the procedure of restore or from the upload capacity of nethgui?
davidep
(Davide Principi)
June 5, 2019, 1:12pm
16
It’s the PHP upload limit.