Docker Container for Record Engine

Downloads & Instructions
Post Reply
rikd
Silicondust
Posts: 105
Joined: Thu Mar 02, 2023 10:48 am
Device ID: 1260AFEF
Location: Portugal
x 8

Re: Docker Container for Record Engine

Post by rikd »

CockneyBoy wrote: Thu Nov 26, 2026 12:53 pmThanks, pity our Harvest Days and Erntedankfest are not celebrated in the same way!
That's right, you mentioned German data regulations.. my bad.
The results

Code: Select all

:/$ sudo docker exec <container> tail -n 30 /var/log/nginx/error.log
-sh: container: No such file or directory
:/$ sudo docker exec <container> grep fastcgi_pass /etc/nginx/modules/nginx-dvrui.conf
-sh: container: No such file or directory
:/$ sudo docker logs <container> 2>&1 | grep -iE 'php-fpm|ERROR|WARN'
-sh: syntax error near unexpected token `2'
Oops.. replace <container> with the name of your container.. I think is HDHRDVR-1-1 from previous
After I read the results
I dug out my old WinSCP in order to see what the logs looked like.

On var/log/nginz
I got
The command “cd “nginx””
failed with return code 1 and the following error message.
-sh: line 48: cd: nginx: Permission denied
Maybe that helps.
Tomorrow is another day.
That's probably the one on the Synology and not the one in the DVR container. Those command lines are about examining what the container sees and not what the Synology sees.

CockneyBoy
Posts: 39
Joined: Tue Oct 01, 2019 2:14 pm
Location: Hamburg, Germany

Re: Docker Container for Record Engine

Post by CockneyBoy »

Oops.. replace <container> with the name of your container.. I think is HDHRDVR-1-1 from previous
That i should have seen myself - its late!

On the first line, password requested and then nothing happened.
2nd and third did

Code: Select all

:/$ sudo docker exec HDHRDVR-1-1 grep fastcgi_pass /etc/nginx/modules/nginx-dvrui.conf
Password:
        fastcgi_pass unix:/var/run/php/php-dvrui.sock;

:/$ sudo docker logs HDHRDVR-1-1 2>&1 | grep -iE 'php-fpm|ERROR|WARN'
2026-11-26 12:51:36,035 INFO spawned: 'php-fpm' with pid 61
2026-11-26 12:51:37,143 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
WARN: Creating group with GID [100] FAILED - sticking with root
ERROR: Creating user with UID [1026] FAILED
2026-11-26 12:54:58,240 INFO spawned: 'php-fpm' with pid 62
2026-11-26 12:54:59,520 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

rikd
Silicondust
Posts: 105
Joined: Thu Mar 02, 2023 10:48 am
Device ID: 1260AFEF
Location: Portugal
x 8

Re: Docker Container for Record Engine

Post by rikd »

CockneyBoy wrote: Thu Nov 26, 2026 2:12 pm
Oops.. replace <container> with the name of your container.. I think is HDHRDVR-1-1 from previous
That i should have seen myself - its late!
tell me about it - am just an hour behind you ;)
On the first line, password requested and then nothing happened.
hmm.. that's not good - the error log would be really helpful. let me check if I have the right location.
2nd and third did

Code: Select all

:/$ sudo docker exec HDHRDVR-1-1 grep fastcgi_pass /etc/nginx/modules/nginx-dvrui.conf
Password:
        fastcgi_pass unix:/var/run/php/php-dvrui.sock;
        
THis looks good - thats the updated version :)

Code: Select all

:/$ sudo docker logs HDHRDVR-1-1 2>&1 | grep -iE 'php-fpm|ERROR|WARN'
2026-11-26 12:51:36,035 INFO spawned: 'php-fpm' with pid 61
2026-11-26 12:51:37,143 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
WARN: Creating group with GID [100] FAILED - sticking with root
ERROR: Creating user with UID [1026] FAILED
2026-11-26 12:54:58,240 INFO spawned: 'php-fpm' with pid 62
2026-11-26 12:54:59,520 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
hmm.. that all looks ok actually
The 502 must be something else...

EDIT - just to confirm
you are pointing your browser to http://<ip of NAS>:<DVRUI_PORT>
note the http and not https.....
There is no error in the logs - so am not sure what created the 502..
Maybe you can try access the UI again and on getting the 502 run one last command

Code: Select all

 sudo docker logs HDHRDVR-1-1 2>&1 | grep -E '\[(error|crit|alert|emerg)\]'

Post Reply