Can not save config on AP121

  • 1
  • Question
  • Updated 3 years ago
I'm having some problems with some of my AP121. I succesfully apply the configuration through HiveManager but after a reboot I lost the configuration. I tried to save manually the configuration running "save config running current" or "save config running bootstrap" but I got this error on the flash log:
#show logging flash
2015-06-29 12:08:30 err     ah_cli: write configuration failed!: No such file or directory

any ideas? Is this AP broken?
Photo of Julián García-Sotoca Pascual

Julián García-Sotoca Pascual

  • 19 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes
Have you tried resetting the AP to factory defaults and trying again?

You can do this by holding the reset button in or entering the following command at the CLI:

_reset press

Which version of HiveOS are you using on the AP?
(Edited)
Photo of Julián García-Sotoca Pascual

Julián García-Sotoca Pascual

  • 19 Posts
  • 0 Reply Likes
Hi, I've reseted to factory defaults but nothing changed.

I'm running HiveOS 6.4r1d.2111.

I think it should be a problem with the flash memory after a power cut:
Photo of Mike Kouri

Mike Kouri, Official Rep

  • 1030 Posts
  • 271 Reply Likes
Julián,
I believe that you are trying to use a command not available on that platform, if I recall correctly that generation of device did not support dual images. What results do you get from a simple "save config running"?
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes

Julián,

To me, prima facie, this didn't seem to be anything to do with the software image - it's configuration. I don't think therefore that the AP121s/AP141s only having a single HiveOS image stored is likely to be related.

Having just tested on my test AP121, the following three commands completed without such an error being recorded:

AH-af0700#save config running current
AH-af0700#save config running bootstrap AH-af0700#show logging flash | include "write configuration failed"
I do suggest that you try factory resetting the device to see if this makes a difference. If it doesn't, I would have thought that some jiggery pokery via the bootloader may have to be in order.

Regards,

Nick
(Edited)
Photo of Crowdie

Crowdie, Champ

  • 972 Posts
  • 272 Reply Likes
I have had issues with AP121, AP141 and AP170 access points where I have to reboot the access point before configuration changes will take affect.  The majority of times I get an "out of memory" error when pushing the new configuration but sometimes not.
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes
Good point about trying a reboot. I did think implicitly that Julián would have tried that, but it's definitely worth stating that explicitly! :)
(Edited)
Photo of Crowdie

Crowdie, Champ

  • 972 Posts
  • 272 Reply Likes
It is probably a good time to upgrade those AP121s to AP130s
Photo of Julián García-Sotoca Pascual

Julián García-Sotoca Pascual

  • 19 Posts
  • 0 Reply Likes
Yes, I've rebooted that AP several times. In fact, every time I reboot the configuration is empty.
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes
IF you have already tried factory resetting the device
and
IF you have a serial console cable that you can use with the AP
and
IF you feel comfortable doing this

Follow the instructions here:
https://community.aerohive.com/aerohive/topics/ap_121_stuck_with_orange_lite_wont_reset_how_to_recov...

With one change, in the bootloader, first use the format_flash_fs command:
ar7240> format_flash_fs
NAND erase: device 0 offset 0x4400000, size 0x3c00000
OK
Then follow the instructions as per the link with an accessible TFTP server:
(You'll need AP121-141-6.4r1d.img.S which you can download from https://support.aerohive.com/secur/download_page)
ar7240> set_bootparam
Change boot parameter, ENTER to skip the item
Device IP        : [0.0.0.0] 192.168.1.99
Netmask          : [0.0.0.0] 255.255.255.0
TFTP Server IP   : [0.0.0.0] 192.168.1.112
Gateway IP       : [0.0.0.0] 192.168.1.1
VLAN ID          : [0]
NVLAN ID         : [0]
Boot File        : [] AP121-141-6.4r1d.img.S
Netboot after flashboot failed [1 for yes, 0 for no] : [0]
Netdump after crash [1 for yes, 0 for no]: [0]
Are you sure to save? [Y/N] y
chip #0: First 0xa last 0xa sector size 0x10000                                                                                                                                                              10
Parameter saved
ar7240> image_flash
{BLAH}
ar7240> reset
Resetting...checking for the az feature of 8035...
Disabling 802.3az feature...
Restart auto-negotiation
current reprogram_nand is 4e4f5250
chip #0: First 0xa last 0xa sector size 0x10000   
(Edited)
Photo of Julián García-Sotoca Pascual

Julián García-Sotoca Pascual

  • 19 Posts
  • 0 Reply Likes
When I hit space bar to skip the autoboot the AP is asking me a password. Do you know what is this password by default?

I've found it: "administrator"
(Edited)
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes
Cool!

Please let us know how you get on! :)
(Edited)