gruijter / com.gruijter.netgear

Homey app to integrate Netgear routers
8 stars 4 forks source link

Unable to delete logs #14

Closed edwinvdpol closed 5 years ago

edwinvdpol commented 5 years ago

When I push the button "Verwijderen" in the Netgear App log view, the log states the following:

[err] [MyApp] error deleting logfile: ENOENT: no such file or directory, unlink '/userdata/netgearLog.json'

gruijter commented 5 years ago

This is not really a bug. It happens if you press the delete button multiple times. The message just says that there is no logfile to delete anymore.

edwinvdpol commented 5 years ago

But when I push the button "ververs", there is still a log available?

gruijter commented 5 years ago

That shouldnt happen. What Homey version are you on?

edwinvdpol commented 5 years ago

Homey Firmware Versie: 1.5.13

gruijter commented 5 years ago

Weird. Same version I have, and just tested it ok. What browser are you using? Is the log still there if you refresh the browser webpage?

I will check the code to see if I see any possible cause for this.

edwinvdpol commented 5 years ago

I use the Homey App for Mac. I will reboot my Homey and see what is does after that.

edwinvdpol commented 5 years ago

Addition info: I did remove and re-added the app once. Don't know if that is relevant, just mentioning.

edwinvdpol commented 5 years ago

I rebooted my Homey. The log where not still not empty. When I push "ververs", nothing happens (which is ok I presume). When I clicked the "Verwijderen" button, the success modal came up "Logs are deleted.". After pushing the "Ververs" button, the logs were gone (as it should be). Don't know what went wrong exactly, but it is fixed now.

gruijter commented 5 years ago

Ok, thx for investigating!