The pfSense Store

Author Topic: fresh nanobsd install wont restore config  (Read 3819 times)

0 Members and 1 Guest are viewing this topic.

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
fresh nanobsd install wont restore config
« on: September 29, 2015, 12:40:00 am »
a fresh install of nanobsd on alix doesnt seem to restore the config from 2.2.4 or even 2.2.5. The web gui just keeps going on and on without any effect

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #1 on: September 29, 2015, 01:57:01 am »
the only way i got around this is to winscp the config file into pfsense and reboot

Offline phil.davis

  • Hero Member
  • *****
  • Posts: 4612
  • Karma: +550/-3
    • View Profile
    • International Nepal Fellowship
Re: fresh nanobsd install wont restore config
« Reply #2 on: September 29, 2015, 02:33:30 am »
On a 2.2.5 32-bit nanoBSD Alix test system with an almost-default config I just did:
1) Backup config using webGUI
2) Change the ost name (so I can see the name difference when I restore the config.
3) Manual update to the latest 2.2.5-DEVELOPMENT Mon Sep 28 14:53:35 CDT 2015
4) Login, restore config on webGUI
5) The system rebooted automagically.

It now has the previous host name.

So the backup/restore webGUI functionality works, at least in a simple case.

More details will be needed, what is in the system log (error messages about failing to write or...)?
As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #3 on: September 29, 2015, 02:39:36 am »
there is no error log etc, earlier i thought it might be a failing CF card so i got a new one, flashed a fresh snap and plugged it in, once on the web gui i simply went to restore and gave it the config file but the page kept saying waiting but even after 5mins nothing happens and then the browser says lsot connection to site.

i then permanently mounted the CF in RW mode and rebooted and tried but still same.

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #4 on: September 29, 2015, 02:40:39 am »
can u plz factory restore ur alix, reboot and then simply try to upload the config and see what happens?

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #5 on: September 29, 2015, 02:56:53 am »
even after manually restoring config using winscp and system completely up and running and i try to restore again it doesnt go ahead, i can backup the config though.

i think its related to the below thread as i tried editing the config file and that too wont save
https://forum.pfsense.org/index.php?topic=100028.0



Offline phil.davis

  • Hero Member
  • *****
  • Posts: 4612
  • Karma: +550/-3
    • View Profile
    • International Nepal Fellowship
Re: fresh nanobsd install wont restore config
« Reply #6 on: September 29, 2015, 03:20:58 am »
can u plz factory restore ur alix, reboot and then simply try to upload the config and see what happens?
Reset to Factory Defaults - it rebooted, I had to do the interface assignment from the console, then it came up fine.
Restored the config - it rebooted and came up with that restored config.
No problem.

Off-topic note of frustration: I forgot that these days the factory default config does not have the vr0 and vr1 device names of the Alix Ethernet devices. I left it for a while wondering why the lights were flashing funny on the front and why it had not come back. Then realised I had to plug in a serial console cable and do interface assignment.
It would be nice for the factory default config to choose some matching devices out of what is reasonably available on first boot, avoiding the interface assignment for most cases. Possible code is waiting https://github.com/pfsense/pfsense/pull/1819 and can easily work for 2.2.* also.
As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #7 on: September 29, 2015, 03:29:34 am »
what CF card r u using?
what could be broken on my box, could it be the bios which i updated to 0.99m from 0.99h?

Offline phil.davis

  • Hero Member
  • *****
  • Posts: 4612
  • Karma: +550/-3
    • View Profile
    • International Nepal Fellowship
Re: fresh nanobsd install wont restore config
« Reply #8 on: September 29, 2015, 03:34:25 am »
Mine has 0.99h BIOS - I would be surprised if a newer BIOS broke this, given that you can SCP the file to the box.
My CF card is SanDisk Ultra 15MB/s - it comes from a system that was running in production for about 2 years and is now a test unit on my desk.
As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #9 on: September 29, 2015, 03:49:37 am »
i downgraded to 0.99h and during the process i noticed in bios LBA was set so changed that to CHS but still no luck.

how can it be 2 CF cards having same issue and no sign of any error in any system log and plus the earlier snaps of 2.2.5 were working perfectly fine

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #10 on: September 29, 2015, 04:57:24 am »
i tried it on a 2.2.4 alix box running in production in a remote location using same brand of CF card and they work all fine, am able to edit any file, config restore also works fine so im definitely sure its something in 2.2.5 only

Offline cmb

  • Hero Member
  • *****
  • Posts: 11230
  • Karma: +893/-7
    • View Profile
    • Chris Buechler
Re: fresh nanobsd install wont restore config
« Reply #11 on: September 30, 2015, 06:30:39 pm »
This the same ALIX that always has problems that no one else on earth has ever seen?

Nothing related to writing of files has changed since 2.2.4 or earlier much less since earlier 2.2.5 snapshots. That's what's failing there from the sounds of it, likely the same cause as your other thread. Backup/restore and editing of files works fine here.

Go back to 2.2.4 with the same board and CF and try same, what happens? 

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #12 on: October 01, 2015, 12:49:29 am »
like i said earlier everything else works and on 2.2.4 also everything works.

- if u insist the board is failing then it cant be 2 of them that r failing together and that too without even a single error message anywhere.
- if the board were failing then rest of the 99% of the features would also give issues but thats not the case, can use pfsense completely, rules, alias, nat, dhcp, openvpn etc etc
- even on the earlier 2.2.5 everything was fine, just since a month or so 2 things stopped working, wasnt able to edit files in www directory and then tried a fresh install and it wont restore the config which i then had to do using winscp and then everything came up just fine

but still if u think its my board only then im in no hurry, we can wait till 2.2.5 is out and some1 else reports the same on a fresh install
« Last Edit: October 01, 2015, 12:53:08 am by xbipin »

Offline cmb

  • Hero Member
  • *****
  • Posts: 11230
  • Karma: +893/-7
    • View Profile
    • Chris Buechler
Re: fresh nanobsd install wont restore config
« Reply #13 on: October 01, 2015, 02:38:23 am »
I missed that you'd tried two boards. How about the same setup with 2.3-ALPHA?

Offline xbipin

  • Hero Member
  • *****
  • Posts: 1631
  • Karma: +6/-0
    • View Profile
Re: fresh nanobsd install wont restore config
« Reply #14 on: October 01, 2015, 02:56:28 am »
i tried the below

same board on 2.2.5 and different CF cards doesnt work on all
same board on 2.2.4 and different CF cards and works on all
different board on 2.2.4 with same brand CF card and works
cant try that other board with 2.2.5 as its in production and in remote location so dont want to bring it down

2.3 i dont feel confident enough to try it out.

i could give u access to this board if u want to have a look at it