Port 80 Error in AjaxGetJSON: Not Found

Topics about the Software of Revolution Pi
Post Reply
jenskastensson
Posts: 40
Joined: 27 Feb 2018, 15:47

Port 80 Error in AjaxGetJSON: Not Found

Post by jenskastensson »

Hi,
after the latest update I get this "Error in AjaxGetJSON: Not Found " when open the revpi web interface.
I have cleared the cache, tried with several browsers, restarted revPI, problem persists.

Another question: where can I find release information - on the Internet - about kunbus/revpi software releases, e.g. piSerial was updated too.
Frank
Posts: 65
Joined: 09 Jan 2017, 10:46

Re: Port 80 Error in AjaxGetJSON: Not Found

Post by Frank »

Hi,
> when open the revpi web interface.

by this, do you mean the 'PiCtory' app, or the 'REVOLUTION PI - RevPi Status' app?

For latest release information please look here under category 'Release Notes':
https://revolution.kunbus.de/tutorials/downloads/

or even better - directly subscribe to 'News & Announcements' on this page:
https://revolution.kunbus.de/forum/viewforum.php?f=5

Additional Info: you are seeing the updates because we've released a new image on March 15th

Frank
jenskastensson
Posts: 40
Joined: 27 Feb 2018, 15:47

Re: Port 80 Error in AjaxGetJSON: Not Found

Post by jenskastensson »

Hello the revpi status page. Pictory is not installed on our systems.
Jens
Frank
Posts: 65
Joined: 09 Jan 2017, 10:46

Re: Port 80 Error in AjaxGetJSON: Not Found

Post by Frank »

Could you please have your Browser's debug window open (F12) and look into the 'Network' tab when you try to open the 'revpi Status' page?
You should see which file the program tries to open that is obviously missing. It is possibly one of the following:

- config.json
- configServices.json

These files are supposed to exist in the /var/www directory of your device and are being loaded on the startup of the 'revpi Status' page.
If either one of those is completely missing OR has a file size of 0 Bytes this could explain the error.

If you need assistance for this, please tell me which Browser you use ...

Frank
jenskastensson
Posts: 40
Joined: 27 Feb 2018, 15:47

Re: Port 80 Error in AjaxGetJSON: Not Found

Post by jenskastensson »

Hi Frank and thank you for the reply!
I checked the /var/www directory and the files seems alright:
files-AjaxGetJSONNotFound.png
files-AjaxGetJSONNotFound.png (10.59 KiB) Viewed 10774 times
One file is missing in the the network output, the /pictory/config.json.
AjaxGetJSONNotFound.png
AjaxGetJSONNotFound.png (209.6 KiB) Viewed 10774 times
Do you think this file the problem?
Kindly Jens
Frank
Posts: 65
Joined: 09 Jan 2017, 10:46

Re: Port 80 Error in AjaxGetJSON: Not Found

Post by Frank »

Hi Jens,

yes, this may actually be the problem - the 'revpi Status' page does some kind of version checking and tries to access the pictory/config.json file on startup also; unfortunately I forgot this yesterday ...
You said that you don't use 'PiCtory' - but it needs to be installed anyway for the 'revPi Status' page to work correctly. At least the 'config.json' file needs to be present in the 'pictory' subdirectory ... as a simple workaround.

Regards,
Frank
jenskastensson
Posts: 40
Joined: 27 Feb 2018, 15:47

Re: Port 80 Error in AjaxGetJSON: Not Found

Post by jenskastensson »

Thanks Frank,
I'm afraid I have flashed all my revPI's without Pictory, do you mind pointing to the file(s) ( if it is available somewhere) or sending me the file(s) here or to jens at proknx dot com?
Best
Jens
User avatar
lukas
Expert
Posts: 186
Joined: 13 Feb 2017, 10:29

Re: Port 80 Error in AjaxGetJSON: Not Found

Post by lukas »

Hi Jens,

I've just pushed an updated revpi-webstatus package (version 1.2.8-1) to our apt repository to fix this issue. Be sure to clear your browser cache before testing it. (I've tested with the pre-installed epiphany browser and had to reload the page in addition to clearing the browser cache.) Let us know if you come across further issues. Thanks a lot for the report.
jenskastensson
Posts: 40
Joined: 27 Feb 2018, 15:47

Re: Port 80 Error in AjaxGetJSON: Not Found

Post by jenskastensson »

Thanks Lukas, looks like the issue is fixed!
I did this:
1. remove the temporary fix var/www/pictory/config.json
2. opened port 80, got the Error in AjaxGetJSON: Not Found
3. apt update and upgrade
4. refreshed port 80 , no error
Thanks for your support!
Post Reply