"Internal Server Error" on Programs page after update - Printable Version +- SIP (https://nosack.com/sipforum) +-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1) +--- Forum: Report a problem (https://nosack.com/sipforum/forumdisplay.php?fid=9) +--- Thread: "Internal Server Error" on Programs page after update (/showthread.php?tid=237) |
"Internal Server Error" on Programs page after update - tvwebguy - 2020 Dec 05 Hi all, After updating to 4.1.10, I get an Internal Server Error when clicking on the Programs tab. When I look at the programs.json page, I get the following. Code: [ Am I looking in the right place? Any guidance would be appreciated. RE: "Internal Server Error" on Programs page after update - dan - 2020 Dec 05 SIP version 4 uses a new format for the json file that stores the irrigation programs. There is a conversion utility in the SIP directory that should have converted your old programs.json to the new format in a new file named programData.json in the SIP/data directory. The program data you posted looks like the old format. You can try running the conversion manually from the SIP directory by running Code: python convert_progs.py RE: "Internal Server Error" on Programs page after update - tvwebguy - 2020 Dec 05 (2020 Dec 05, 03:31 AM)dan Wrote: SIP version 4 uses a new format for the json file that stores the irrigation programs. Thanks for the reply! Here's what I got in the new file. Same result. Code: [ RE: "Internal Server Error" on Programs page after update - dan - 2020 Dec 05 I tested your program file here in a freshly cloned copy of SIP. Everything seems to be working properly. Some users have had to clear the cache in the browser they use with SIP. It that doesn't fix the problem, you could rename the SIP folder to something like SIP-old and clone a fresh copy. from the pi directory: Code: git clone https://github.com/Dan-in-CA/SIP.git Then copy the data folder from the old copy to the new one. RE: "Internal Server Error" on Programs page after update - tvwebguy - 2020 Dec 05 I'm at a loss. I cleared the browser cache and even loaded it in a different browser. Still the same. I went ahead and renamed the folder and cloned a new copy. Moved the programData.json over, still the same error. I appreciate your help. The programs are still running, but, I can't get back to that page. RE: "Internal Server Error" on Programs page after update - dan - 2020 Dec 05 (2020 Dec 05, 04:49 PM)tvwebguy Wrote: I'm at a loss. I cleared the browser cache and even loaded it in a different browser. Still the same. I went ahead and renamed the folder and cloned a new copy. Moved the programData.json over, still the same error. We may be able to get a clue about the problem if you open the developer tab in the browser (F12). Then try accessing the Programs page and see if any errors appear. RE: "Internal Server Error" on Programs page after update - tvwebguy - 2020 Dec 05 static/scripts/behaviors.js:47 GET http://192.168.254.145:8081/vp 500 (Internal Server Error) RE: "Internal Server Error" on Programs page after update - dan - 2020 Dec 05 The other way to diagnose the problem is to start SIP manually from the command line (Pi directory): Code: sudo systemctl stop sip RE: "Internal Server Error" on Programs page after update - tvwebguy - 2020 Dec 05 // Set up a live clock based on device time function dateString(d) { var dateString = dayList [d.getDay()]; // Moved translatable text to base.html, dk dateString += " " + d.getDate() + " "; dateString += monthList [d.getMonth()]; // Moved translatable text to base.html, dk return dateString; } function updateClock() { // Controls time and date clock. // Do our best to match this clock with the device clock (instead of the client device clock) var now = new Date(Date.now() + cliTzOffset - devTzOffset); /* Uncomment to test styling - sets a random time now.setHours(Math.floor(Math.random()*24)); now.setMinutes(Math.floor(Math.random()*60)); */ if (timeFormat) { jQuery("#deviceTime span.time").html((now.getHours() < 10 ? "0" : "") + now.getHours() + "<span class='sep'>:</span>" + (now.getMinutes() < 10 ? "0" : "") + now.getMinutes()); jQuery("#deviceTime span.ampm").html(""); } else { jQuery("#deviceTime span.time").html((now.getHours()%12 == 0 ? "12" : now.getHours() % 12) + "<span class='sep'>:</span>" + (now.getMinutes() < 10 ? "0" : "") + now.getMinutes()); jQuery("#deviceTime span.ampm").html((now.getHours() >= 12 ? "pm" : "am")); } jQuery("#deviceTime span.second").text(":" + (now.getSeconds() < 10 ? "0" : "") + now.getSeconds()); jQuery("#deviceDate").text(dateString(now)); } // Initialize standard behaviors jQuery(document).ready(function(){ jQuery("button#bHome").click(function(){ window.location = "/"; }); jQuery("button#bOptions").click(function(){ window.location = "/vo"; }); jQuery("button#bStations").click(function(){ window.location = "/vs"; }); jQuery("button#bPrograms").click(function(){ window.location = "/vp"; }); jQuery("button#bRunOnce").click(function(){ window.location = "/vr"; }); jQuery("button#bLog").click(function(){ window.location = "/vl"; }); jQuery("button#bLogout").click(function(){ window.location = "/logout"; }); jQuery("button#bHelp").click(function(){ window.open("https://github.com/Dan-in-CA/SIP/wiki", "_blank"); }); // start the clock now, and update every second updateClock(); setInterval(updateClock, 1000); }); vp:1 GET http://192.168.254.145:8081/vp 500 (Internal Server Error) So far, the "python sip.py" has shown no errors. RE: "Internal Server Error" on Programs page after update - dan - 2020 Dec 05 (2020 Dec 05, 05:23 PM)tvwebguy Wrote: static/scripts/behaviors.js:47 GET http://192.168.254.145:8081/vp 500 (Internal Server Error) That shows where the error is occurring but not what the error is. |