Page 1 of 1

Issue updating

Posted: Tue 31 Oct 2023 2:03 am
by Nossie
I've been trying to get to the bottom of my problems....

I've been trying to understand why various things are not working.

Short answer for one part of it is that docker hardcodes from my buildscript to publicweb when I use public_html remotely. This is on the back burner for now but in getting that far I was getting quite confused and changing a lot of locations in a not so methodical way near the end. This broke my reports and a few other things.

In the process of me identifying this CMX has now completely stopped updating and I need to eliminate something

Code: Select all

[31-Oct-2023 01:48:05 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined function shell_exec() in /home/stewartonweather/public_html/upload.php:111
Stack trace:
#0 {main}
  thrown in /home/stewartonweather/public_html/upload.php on line 111
[31-Oct-2023 01:48:05 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined function shell_exec() in /home/stewartonweather/public_html/upload.php:111
Stack trace:
#0 {main}
  thrown in /home/stewartonweather/public_html/upload.php on line 111
[31-Oct-2023 01:48:05 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined function shell_exec() in /home/stewartonweather/public_html/upload.php:111
Stack trace:
Any idea what might be causing everything to seem to go through and then nothing updates, and I get pages of the above?

Re: Issue updating

Posted: Tue 31 Oct 2023 5:55 am
by HansR
First: no locations have been changed in or by CUtils!

Apparently you moved from FTP to the PHP upload system. Good for you but you have to be aware the destinations are different: see wiki. The difference is that the destinations are defined as relative to the location of the upload.php file. Hope this helps.

EDIT: and btw, your CMX data are updating normally so indeed it appears to have something to do with CUtils. Note that a bugfix 6.21.1 is released today though I don't think it will solve your issue.

Re: Issue updating

Posted: Tue 31 Oct 2023 9:58 am
by Nossie
I had been using php upload for the last few months with some success - however your hint was enough to realise I had overlooked the nature of the script when I tried to fix my previous misunderstanding :) so thank you.

I'm still having a few issues with the reports but from what I've changed - and I think it's correct, I wont know until tomorrow, right?

Re: Issue updating

Posted: Tue 31 Oct 2023 10:42 am
by water01
Use Utilities > FTP/Copy & Dayfile and tick all the boxes and you should get all the files uploaded to date.

Re: Issue updating

Posted: Tue 31 Oct 2023 11:25 am
by HansR
@Nossie OK, good. And if you follow @water01's advise it'll be knowing before morning :)

Re: Issue updating

Posted: Thu 02 Nov 2023 10:02 am
by Nossie
Hi Hans,

Thanks for the two of your thoughts on this one.

I was having issues generating and uploading the reports previously - but if I manually transferred them Cutils would then use them.

I've now resolved the copying issue but cutils wont show them - https://stewartonweather.com/Reports/NOAAYR2023.txt this one generated this morning. So did this one - https://stewartonweather.com/Reports/NOAAMO1123.txt

I have Cutils setup this way for NOAA

Code: Select all

[NOAA]
FTPDirectory=./reports/
StartInCurrentMonth=true
ColorNOAAText=Black
ColorNOAABackground=#f9f8EBy
Am I being dim again? :bash:

Re: Issue updating

Posted: Thu 02 Nov 2023 10:18 am
by HansR
Is it reports and Reports?

Re: Issue updating

Posted: Thu 02 Nov 2023 10:28 am
by Nossie
Yes, it is and yes I'm being dim :shock:

Amazing how it's possible to glaze over such an obvious error.

Thanks again!

Re: Issue updating

Posted: Thu 02 Nov 2023 12:51 pm
by HansR
That's life ;)