Problems after running the script "factoryreset"

Hi

I've been messing around with my emonPi configuration rather a lot adding/deleting/renaming feeds etc so I decided to wipe everything and start again from scratch.

So I ran the script /home/pi/emonpi/factoryreset to clear everything.

I then started adding my feeds back in and went to see if they are working in the "Apps - My Electric" and I get the following error....

Notice: Undefined index: write in /var/www/emoncms/Theme/menu_view.php on line 20

and I then have to log back in.

I could just re-image the SDcard to fix it but I thought I'd post the error here in case anyone wants to investigate it further, I'll have a mess tonight and if I fix it I'll post here.

Chewie's picture

Re: Problems after running the script "factoryreset"

Well after manually checking all the files/directories it deletes have been recreated it turns out it just needs a reboot to sort itself out. It might be worth adding a message on the end of the "factoryreset" script telling the user a reboot is required, I hope TrystanLea reads this.

Paul Reed's picture

Re: Problems after running the script "factoryreset"

...or simply adding;

sudo reboot

to the end of the 'factoryreset' script.

 

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.