Page 1 of 1

Issue with Timelapse

Posted: Thu 02 Nov 2023 1:55 pm
by philpugh
Until recently I have had no problem with the metocam stiill image and timelapse - however I have just noticed on 6.20.0 and 6.21.0 that the list for the timelapse is not being populated.

The cumulusutils.ini section is:
[MeteoCam]
MeteoCamMenu=true
MeteoCamDir=./HP10
TimelapseExtension=mp4
MeteoCamName=HP10.jpg
and the console log from my web browser shows the following:-
GET https://goosegate.uk/HP10/ 403 (Forbidden)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
S.<computed> @ jquery.min.js:2
(anonymous) @ VM904:4
e @ jquery.min.js:2
t @ jquery.min.js:2
setTimeout (async)
(anonymous) @ jquery.min.js:2
c @ jquery.min.js:2
add @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
Deferred @ jquery.min.js:2
then @ jquery.min.js:2
S.fn.ready @ jquery.min.js:2
S.fn.init @ jquery.min.js:2
S @ jquery.min.js:2
(anonymous) @ VM904:3
b @ jquery.min.js:2
He @ jquery.min.js:2
append @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
$ @ jquery.min.js:2
html @ jquery.min.js:2
(anonymous) @ cumulusutils.js:1
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
l @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
load (async)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
LoadUtilsReport @ cumulusutils.js:1
onclick @ (index):1
jquery.min.js:2
for the first time click on the Timelapse 'button' and
GET https://goosegate.uk/HP10/null 404 (Not Found)
goosegate.uk/:1 Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().
null:1
for subsequent clicks.

The still image is stored in the same web directory ..../HP10 as all the timelapse videos.

One piece of information that may be relevant is that I have a timelapse video for each day starting from the beginning of the year - I archive them anually!

If I issue https://goosegate.uk/HP10 I get a 403 error - I would expect that. If I issue a specific video request (e.g. https://goosegate.uk/HP10/tl20231101.mp4 ) the video plays correctly.

Any thoughts?
Phil

Re: Issue with Timelapse

Posted: Thu 02 Nov 2023 2:19 pm
by HansR
If I look at your webcam menu I see a correct image and clicking the timelapse I get the player (black/empty) and the list has no entries.

If you say the entries are there then it is most likely that the HP10 directory is not with user rights : rwxr-xr-x as it should be for CUtils (being just a world user reading the directory). So I assume that is it.

Re: Issue with Timelapse

Posted: Thu 02 Nov 2023 4:53 pm
by philpugh
Hans,

Directory Rights are rwxr-xr-x. I even set them to rwxrwxrwx and still got the same result.

Re: Issue with Timelapse

Posted: Thu 02 Nov 2023 5:17 pm
by HansR
And the mp4's themselves are rw-r--r-- ?

Re: Issue with Timelapse

Posted: Thu 02 Nov 2023 5:30 pm
by HansR
Could you post a directory listing of the HP10 directory?

Re: Issue with Timelapse

Posted: Fri 03 Nov 2023 2:59 pm
by philpugh
Hans,

Attached is result of ls -l in the directory HP10.

Re: Issue with Timelapse

Posted: Fri 03 Nov 2023 3:33 pm
by HansR
OK. I see no fundamental difference with my own situation. So it is kind of trial and error. I have no idea tbh.
Maybe it is the number of mp4. Could you try with just one or two mp4's? Just move the rest temporarily out of the way?

Re: Issue with Timelapse

Posted: Sat 04 Nov 2023 4:43 pm
by philpugh
Hans,

Still getting the same error with only 3 time;apse videos in the directory - not sure what is happening here :?

Re: Issue with Timelapse

Posted: Sat 04 Nov 2023 5:50 pm
by freddie
I think the problem is that your web server software doesn't allow you to list that directory. You might see a "client denied by server configuration" message in your server logs. You say this feature worked before - perhaps there has been a server config change recently, maybe even at the .htaccess level if you're using Apache.

Re: Issue with Timelapse

Posted: Sat 04 Nov 2023 6:59 pm
by HansR
philpugh wrote: Sat 04 Nov 2023 4:43 pm Hans,

Still getting the same error with only 3 time;apse videos in the directory - not sure what is happening here :?
I agree with @freddie, this is a 403, access denied error so the web user (the CUtils website client) does not have the right to read that directory. It is an ownership user/group issue. But I can't tell your from here what to do.

Re: Issue with Timelapse

Posted: Sun 05 Nov 2023 11:06 am
by philpugh
Ok - fixed it! It was a directory access problem but the cause was a non printing character in my NGINX config file. It must have been a recent update to NGINX that highlighted the issue !

Thanks all.

Re: Issue with Timelapse

Posted: Sun 05 Nov 2023 11:33 am
by HansR
Pfff.... :roll: