Page 1 of 1

website not fully updating - not new update related

Posted: Sat 22 Jul 2023 3:15 pm
by Nossie
So again this is not related to the new update - appears this happened on the 16/07

Only seems to half update, the graphs etc do not.. attached utils log

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 5:54 pm
by HansR
Ian,

What I can see is:
  1. that apparently the realtime files have a date of 21/07/23 10:18:53 so apparently they are no longer updated by CMX
  2. the UserAskedData does not complete because the extrasensorsdata.json does not exist because there appears to be an issue with ExtraLog202307.txt which seems to be empty
  3. For the same reason as above the CO2 sensor is ignored because it cannot find any data.
I don't know why but there seems to be a data issue suddenly both for CMX (no realtime files are being sent) and for CUtils.
Start with:
  1. remove any copy_* file from the data directory
  2. check your ExtraLog202307.txt file. That should not be empty!
Then we'll see where we stand.

The CUtils update seems to have been completed correctly

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 6:21 pm
by Nossie
that apparently the realtime files have a date of 21/07/23 10:18:53 so apparently they are no longer updated by CMX
That's the last time I ran the update manually
the UserAskedData does not complete because the extrasensorsdata.json does not exist because there appears to be an issue with ExtraLog202307.txt which seems to be empty
ExtraLog202307.txt is 7,277kb and full of digits

no copy files found

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 6:28 pm
by HansR
Nossie wrote: Sat 22 Jul 2023 6:21 pm That's the last time I ran the update manually
Update of what?

Could you post the MXdiags logfile (if it rolled over to a new one please include the one covering 21 july).

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 6:36 pm
by Nossie
If I force it to update from the terminal (it has partially updated again)

diag files attached.

thanks,
Ian.

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 6:58 pm
by Nossie
For the same reason as above the CO2 sensor is ignored because it cannot find any data.
Just also discovered the CO2 sensor was physically switched off as part of a server diagnostic the other day - just turned it back on.

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 7:00 pm
by HansR
OK, it all seems to be running OK:

Code: Select all

2023-07-22 19:32:55.866 Realtime[10]: Start cycle
2023-07-22 19:32:55.871 Realtime[10]: Creating realtime.txt
2023-07-22 19:32:55.876 Realtime[10]: Creating realtime file - realtimegauges.txt
2023-07-22 19:32:55.887 Realtime[10]: Copying extra file[16] config/CamdataT.txt to config/Camdata.txt
2023-07-22 19:32:55.905 RealtimeLocalCopy[10]: Copying - realtime.txt
2023-07-22 19:32:55.918 RealtimeLocalCopy[10]: Copying - realtimegauges.txt
2023-07-22 19:32:55.932 Realtime[10]: Real time files starting
2023-07-22 19:32:55.937 PHP[10]: Uploading to realtime.txt
2023-07-22 19:32:55.937 Realtime[10]: End cycle
2023-07-22 19:32:55.978 PHP[10]: Upload to realtime.txt: Response code = 200: OK
2023-07-22 19:32:55.983 PHP[10]: Upload to realtime.txt: Response text follows:
Opening text file realtime.txt for replacement
Writing text file realtime.txt
Write complete
2023-07-22 19:32:55.987 Realtime[10]: Extra Files starting
2023-07-22 19:32:55.990 PHP[10]: Uploading to realtimegauges.txt
2023-07-22 19:32:56.020 PHP[10]: Upload to realtimegauges.txt: Response code = 200: OK
2023-07-22 19:32:56.024 PHP[10]: Upload to realtimegauges.txt: Response text follows:
Unzipping data
Opening text file realtimegauges.txt for replacement
Writing text file realtimegauges.txt
Write complete
2023-07-22 19:32:56.029 Realtime[10]: Uploading extra web file utils/extrasensorsrealtime.txt to extrasensorsrealtime.txt
2023-07-22 19:32:56.036 PHP[10]: Uploading to extrasensorsrealtime.txt
2023-07-22 19:32:56.066 PHP[10]: Upload to extrasensorsrealtime.txt: Response code = 200: OK
2023-07-22 19:32:56.071 PHP[10]: Upload to extrasensorsrealtime.txt: Response text follows:
Opening text file extrasensorsrealtime.txt for replacement
Writing text file extrasensorsrealtime.txt
Write complete
2023-07-22 19:32:56.077 Realtime[10]: Real time files complete, 3 files uploaded
So this means CMX is uploading to somewhere where your CUtils website can't find the data.
  • Did you install CUtils to a different directory and did you [note?] change the value of CumulusRealTimeLocation?
  • Did you now start using PHP upload and did you not take into account the relative paths?
To put it short: it all seems to work fine but CUtils can't find the data so 1) either the files are copied to the wrong place or 2) you did change things such that CumulusRealTimeLocation now points to the wrong place.

My first idea would be that the PHP upload is wrongly configured because CMX does not move the realtime files to the webroot (http://www.stewartonweather.com/) That is something you first have to correct.

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 7:02 pm
by Nossie
I don't understand why it would just start happening though - I've not made any changes.
Did you install CUtils to a different directory and did you [note?] change the value of CumulusRealTimeLocation?
Did you now start using PHP upload and did you not take into account the relative paths?
nothing has changed.

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 7:02 pm
by HansR
Nossie wrote: Sat 22 Jul 2023 6:36 pm If I force it to update from the terminal (it has partially updated again)
I actually thought about what was "it" ;)
Is it CMX or CUtils which you mean to update here? And is it data or software which you update?

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 7:03 pm
by HansR
Nossie wrote: Sat 22 Jul 2023 7:02 pm I don't understand why it would just start happening though - I've not made any changes.
Yes, good question :lol:

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 7:10 pm
by HansR
What did you do? It is working!

Aha.... only once...

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 7:17 pm
by Nossie
I checked the CMX setup and that appears to be fine.

It's the website that partially updates and stalls I have everything uploading to the web_html folder and utils it the utils folder - but again I've not changed anything.


graphs are not showing anything past the 16/07

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 7:32 pm
by HansR
Nossie wrote: Sat 22 Jul 2023 7:17 pm It's the website that partially updates and stalls I have everything uploading to the web_html folder and utils it the utils folder - but again I've not changed anything.
So on the website you have a utils folder? That is interesting because the webroot - where the index.html file is - should be the web_html folder. That folder must contain data and all generated CUtils files including the data. Is that not the case?

Re: website not fully updating - not new update related

Posted: Sat 22 Jul 2023 7:36 pm
by Nossie
sorry yes - it's pushing everything to the webroot

most of the json files on the host have not updated since 16/07