Arduino is not getting connected to Wifi or Ethernet. Any help/advice

Arduino Yun worked all along for the past six months and suddenly, I am not able to access it because It is not getting connected to WiFi or Ethernet.

After I try to connect to Wifi and try to access 192.168.240.1 page it gives me following error.

?:0: attempt to index a nil value
stack traceback:
** ?: in function 'read_gpg_pub_key'**
** ?: in function <?:144>**
** ?: in function 'dispatch'**
** ?: in function <?:194>**

Any suggestions / pointers welcome.

Thanking you in advance

Regards
BRE

Wait a minute and retry

Federico,

Thank you very much for the reply

I tried all that. It is still not getting connected.

Thanks

BRE

Do you still get the error message "attempt to index a nil value" even after having waited for an additional minute?

Federico,

Thank you very much for the reply.

Yes - It is giving the same message - after a minute and even waiting for long time as well

Regards

BRE

That error message means one of the first services (software) that the yun runs when booting is not working or it's not even starting. I suggest you reset the yun to factory settings by pressing the reset side button for more than 30 seconds and retry.