MekayelAnik / ispyagentdvr-docker

Multi Aarch image of iSpy's Agent DVR, standalone free-to-use NVR software for IP Camera management
https://hub.docker.com/r/mekayelanik/ispyagentdvr
GNU General Public License v3.0
26 stars 10 forks source link

Running ispyagentdvr-docker on VPN interface #26

Closed ZMJGMADHPXWT closed 2 months ago

ZMJGMADHPXWT commented 2 months ago

The firs thing - I have to say "thank you" for that great project! But I'm here to ask for help. I have some conditions for running that container: 1) Container (it's ports) should be on a VPN interface 10.8.1.1. It was created to gather video from various cameras from separate locations. 2) WEB interface should listen on 10.8.1.1 also 3) My Docker is running in rootless mode 4) That container should be in separate network from another containers on my host

Here are commands I used to start that container:

docker network create -d bridge docker-net-ispyagentdvr

mkdir -p ispyagentdvr/config
mkdir -p ispyagentdvr/recordings
mkdir -p ispyagentdvr/commands

docker run -d --memory=300m --cpus=0.5 \
  --name=ispyagentdvr-container \
  --network=docker-net-ispyagentdvr \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Europe/Barcelona \
  -p 10.8.1.1:36789:8090 \
  -p 10.8.1.1:3478:3478/udp \
  -p 10.8.1.1:50000-50010:50000-50010/udp \
  -v /home/docker-user/ispyagentdvr/config:/AgentDVR/Media/XML \
  -v /home/docker-user/ispyagentdvr/recordings:/AgentDVR/Media/WebServerRoot/Media \
  -v /home/docker-user/ispyagentdvr/commands:/AgentDVR/Commands \
  --restart unless-stopped \
  --security-opt=no-new-privileges \
  mekayelanik/ispyagentdvr:latest

I tried to get to the web interface of that DVR via 10.8.1.1:36789, but it's restarting constantly. Could you please help my to run it according my needs? Thanks in advance.

Here are Docker logs: docker logs ispyagentdvr-container cat: /AgentDVR/Media/XML/current_port.txt: No such file or directory ________________________________________________________________________________________________________________________________________________ oo .d88888b .d888888 dP 888888ba dP dP 888888ba 88. d8 88 88 88 8b 88 88 88 8b dP Y88888b. 88d888b. dP dP 88aaaaa88a .d8888b. .d8888b. 88d888b. d8888P 88 88 88 .8P a88aaaa8P 88 8b 88 88 88 88 88 88 88 88 88ooood8 88 88 88 88 88 88 d8 88 8b. 88 d8 .8P 88. .88 88. .88 88 88 88. .88 88. ... 88 88 88 88 .8P 88 .d8P 88 88 dP Y88888P 88Y888P 8888P88 88 88 8888P88 88888P dP dP dP 8888888P 888888 dP dP 88 .88 .88 dP d8888P d8888P __________ _________ ___ _ ___ __ _ ___ _ ___ __ _ _ _ __ __ _ _ _ _ _ _ _ _ _ _____ _ _ _ __ _______ _ _ ______ _ __ _ _ ______ _ _ _ ______ __ __ _ _____ _ _ _ _____ __ _ __ _ ________________ ____ _ _ _ _ _ __ ___________________ ____ _ _ _ __________________ ___________ _ _ ____ _ _ _ _ _ _ _______________ _ ______ _____ _ ____ ______________ _ ___ _____ ____ _ _ ______________ _ ____ ____ _ _ _ __ ____________ ____________ _ ____ _ _ __ _ _______________ __________ ___ _____ _ _ _ ________________ _ __ _ ______ ___ _ __________________ _ _________ ___ _ _____________________________________ ___ _ _ _______________________________________ _ _ _____________________________________ _ _ _ _________________________________ _ __ ___________________________ _ __ _ _____________________ _ __ ______ _______ _ _ _ ______ ____ _ _ _ _ _ _ _ _ _ _ 888888ba dP dP dP dP dP 88 8b 88 88 88 88 88 a88aaaa8P 88d888b. .d8888b. dP dP .d8888b. 88d888b. d8888P d8888P .d8888b. dp dp .d8888b. dP dP 88d888b. dP dP 88 8b. 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 .88 88 88. .88 88. .88 88. .88 88 88 88 88 88. .88 88. .88 88. .88 88. .88 88. .88 88. .88 dP 88888888P dP 88888P 88888P 8888P88 dP dP 888P 888P 88888P 8888P88 88888P 88888P 88Y8888 8888P88 88 .88 .88 .88 d8888P d8888P d8888P ███╗ ███╗██████╗ ███╗ ███╗███████╗██╗ ██╗ █████╗ ██╗ ██╗███████╗██╗ █████╗ ███╗ ██╗██╗██╗ ██╗ ████╗ ████║██╔══██╗ ████╗ ████║██╔════╝██║ ██╔╝██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██╔══██╗████╗ ██║██║██║ ██╔╝ ██╔████╔██║██║ ██║ ██╔████╔██║█████╗ █████╔╝ ███████║ ╚████╔╝ █████╗ ██║ ███████║██╔██╗ ██║██║█████╔╝ ██║╚██╔╝██║██║ ██║ ██║╚██╔╝██║██╔══╝ ██╔═██╗ ██╔══██║ ╚██╔╝ ██╔══╝ ██║ ██╔══██║██║╚██╗██║██║██╔═██╗ ██║ ╚═╝ ██║██████╔╝██╗ ██║ ╚═╝ ██║███████╗██║ ██╗██║ ██║ ██║ ███████╗███████╗ ██║ ██║██║ ╚████║██║██║ ██╗ ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝ ________________________________________________________________________________________________________________________________________________ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Starting iSpy Agent DVR Surveillance System! <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< cat: /AgentDVR/Media/XML/current_port.txt: No such file or directory Current AgentDVR Docker Image: 5.6.6.0 If this Container is deployed on a Docker-Macvlan or Docker-IPvlan Network, then the IP Address of this AgentDVR container is: 172.31.0.2, Otherwise the AgentDVR IP is the IP of your HOST Server IP or localhost if you are accessing the WebUI from a Browser on the HOST Server. AgentDVR WebUI can be accessed on PORT: Therefore Most Probable AgentDVR WebUI Address: 172.31.0.2: or Your-HOST-Server-IP: or localhost: iSpy Agent DVR is free to use locally for private use. You can add as many cameras as you like. SSL secured web access, SMS, Twitter, email alerts, mobile device access, cloud uploads, Virtual Reality and other services that use iSpy Agent DVR online platform require a subscription or an annual payment. If you desire to obtain a Subscription plan or want a Business License, please visit https://www.ispyconnect.com/pricing.aspx cat: /usr/bin/share/base-image-timestamp: No such file or directory This docker image was built at: Thu Aug 15 02:28:48 +06 2024 : Bangladesh Time (UTC+06) This Container was started on: Mon Aug 19 19:01:42 CEST 2024 usermod: no changes CheckContent: Copying /AgentDVR/Content/Commands/Alerts Off.bat CheckContent: Copying /AgentDVR/Content/Commands/Start Record.bat CheckContent: Copying /AgentDVR/Content/Commands/Snapshot.bat CheckContent: Copying /AgentDVR/Content/Commands/Run Storage Mgmt.bat CheckContent: Copying /AgentDVR/Content/Commands/All Off.bat CheckContent: Copying /AgentDVR/Content/Commands/All On.bat CheckContent: Copying /AgentDVR/Content/Commands/Alerts On.bat CheckContent: Copying /AgentDVR/Content/Commands/Stop Record.bat CheckContent: Copying /AgentDVR/Content/Commands/Restart Agent.bat CheckContent: Copying /AgentDVR/Content/Commands/Record Off.bat CheckContent: Copying /AgentDVR/Content/Commands/_Example.bat CheckContent: Copying /AgentDVR/Content/Commands/readme.txt CheckContent: Copying /AgentDVR/Content/Commands/Stop Streaming.bat CheckContent: Copying /AgentDVR/Content/Commands/Record on Alert.bat CheckContent: Copying /AgentDVR/Content/Commands/Record on Detect.bat CheckContent: Copying /AgentDVR/Content/Commands/Stop Cloud Uploads.bat CheckContent: Copying /AgentDVR/Content/Commands/Apply Schedule.bat CheckContent: Copying /AgentDVR/Content/Masks/demo_mask.png CheckContent: Copying /AgentDVR/Content/sounds/rottweiler_bark.wav CheckContent: Copying /AgentDVR/Content/sounds/alsationxsiberian_bark.wav CheckContent: Copying /AgentDVR/Content/sounds/alsation_bark.wav CheckContent: Copying /AgentDVR/Content/sounds/police.wav CheckContent: Copying /AgentDVR/Content/sounds/pop.wav CheckContent: Copying /AgentDVR/Content/sounds/spanielgrowlbark.wav CheckContent: Copying /AgentDVR/Content/sounds/doorbell.wav CheckContent: Copying /AgentDVR/Content/sounds/wiggle.wav CheckContent: Copying /AgentDVR/Content/sounds/airhorn.wav CheckContent: Copying /AgentDVR/Content/sounds/cairnterrierbark.wav CheckContent: Copying /AgentDVR/Content/sounds/alarm.wav Log start Agent (v5.6.6.0) Starting... Detected: Linux64 Creating temp path for opencv in /tmp/ Get com port list Conf: Check /AgentDVR/Media/WebServerRoot/Media/ Using WorkStation GC StartUp: Inbuilt SOAP auth unavailable (using alternate) Using Original WebRTC library Computer Name: ced9ffd37d05 Init FFmpeg ffmpeg6/lib not found ffmpeg-v6/workspace/lib not found Checking in /usr/local/lib Checking in /usr/lib/x86_64-linux-gnu Looking for ffmpeg in /usr/lib/x86_64-linux-gnu Found FFmpeg6 in /usr/lib/x86_64-linux-gnu ffmpeg path: /usr/lib/x86_64-linux-gnu Initializing devices Init: cuda Init: vaapi Init: qsv Init: drm Init: opencl Init: vulkan Init: Finding Hardware Encoders Init: Codec: av1_nvenc, Type: Video, Capabilities: 3407906 Init: Codec: av1_qsv, Type: Video, Capabilities: 524320 Init: Codec: av1_amf, Type: Video, Capabilities: 262178 Init: Codec: av1_vaapi, Type: Video, Capabilities: 1310754 Init: Codec: h264_amf, Type: Video, Capabilities: 262178 AddCodec: h264_amf is blocked on this platform (broken) Init: Codec: h264_nvenc, Type: Video, Capabilities: 3407906 Init: Codec: h264_qsv, Type: Video, Capabilities: 524320 Init: Codec: h264_vaapi, Type: Video, Capabilities: 1310754 Init: Codec: hevc_amf, Type: Video, Capabilities: 262178 AddCodec: hevc_amf is blocked on this platform (broken) Init: Codec: hevc_nvenc, Type: Video, Capabilities: 3407906 Init: Codec: hevc_qsv, Type: Video, Capabilities: 524320 Init: Codec: hevc_vaapi, Type: Video, Capabilities: 1310754 Init: Codec: mjpeg_qsv, Type: Video, Capabilities: 524320 Init: Codec: mjpeg_vaapi, Type: Video, Capabilities: 1310722 Init: Codec: mpeg2_qsv, Type: Video, Capabilities: 524320 Init: Codec: mpeg2_vaapi, Type: Video, Capabilities: 1310754 Init: Codec: vp8_vaapi, Type: Video, Capabilities: 1310754 Init: Codec: vp9_vaapi, Type: Video, Capabilities: 1310754 Init: Codec: vp9_qsv, Type: Video, Capabilities: 524320 Init: Codec: h264_qsv, Type: Video, Capabilities: 655394 Init: Codec: hevc_qsv, Type: Video, Capabilities: 655394 Init: Codec: mpeg2_qsv, Type: Video, Capabilities: 655394 Init: Codec: vc1_qsv, Type: Video, Capabilities: 655394 Init: Codec: av1_cuvid, Type: Video, Capabilities: 393248 Init: Codec: av1_qsv, Type: Video, Capabilities: 655394 Init: Codec: h264_cuvid, Type: Video, Capabilities: 393248 AddCodec: h264_cuvid is not an encoder Init: Codec: hevc_cuvid, Type: Video, Capabilities: 393248 AddCodec: hevc_cuvid is not an encoder Init: Codec: mjpeg_cuvid, Type: Video, Capabilities: 393248 Init: Codec: mjpeg_qsv, Type: Video, Capabilities: 655394 Init: Codec: mpeg1_cuvid, Type: Video, Capabilities: 393248 Init: Codec: mpeg2_cuvid, Type: Video, Capabilities: 393248 Init: Codec: mpeg4_cuvid, Type: Video, Capabilities: 393248 Init: Codec: vc1_cuvid, Type: Video, Capabilities: 393248 Init: Codec: vp8_cuvid, Type: Video, Capabilities: 393248 AddCodec: vp8_cuvid is not an encoder Init: Codec: vp8_qsv, Type: Video, Capabilities: 655394 Init: Codec: vp9_cuvid, Type: Video, Capabilities: 393248 AddCodec: vp9_cuvid is not an encoder Init: Codec: vp9_qsv, Type: Video, Capabilities: 655394 Found 0 devices GetOutput: call arecord -l Init: NDI Init SDL Failed to create secure directory (/root/.config/pulse): Permission denied Database CREATE UNIQUE INDEX IF NOT EXISTS idx_unique_agent_alert_id ON AgentAlert(ID); CREATE UNIQUE INDEX IF NOT EXISTS idx_unique_agent_file_oid_otid_filename ON AgentFile(ObjectId, ObjectTypeId, Filename); CREATE UNIQUE INDEX IF NOT EXISTS idx_unique_agent_file_archived_location ON AgentFile(Archived, ArchiveLocation); CREATE UNIQUE INDEX IF NOT EXISTS idx_unique_filename ON AgentFile(Filename); CREATE INDEX IF NOT EXISTS idx_image_tag_objectid ON ImageTag(ObjectId); CREATE INDEX IF NOT EXISTS idx_agent_alert_otid_oid ON AgentAlert(ObjectTypeID, ObjectId); CREATE INDEX IF NOT EXISTS idx_agent_file_otid_oid ON AgentFile(ObjectTypeID, ObjectId); CREATE INDEX IF NOT EXISTS idx_agent_file_id_combination ON AgentFile(ObjectTypeId, ObjectId); Preloading Images Turn Server accepting connections at 172.31.0.2:3478 using range 50000-50010 Init: MQTT not configured or enabled SetPriority: Set Process Priority failed (Permission denied) SetPriority: Run Agent as root or set the Agent priority using nice or renice GetObjects: Loaded 0 cameras and 0 mics from /AgentDVR/Media/XML/objects.xml LocalServerPort: Using default port (8090) Access locally at http://localhost:8090/ LogLevel: Info Running at http://localhost:8090/ AddressListIPv4: IP addresses: AddressListIPv4: 172.31.0.2 Listen: Accepting http connections at http://*:8090/ ScanNetwork: No network devices found Init: Address family not supported by protocol at System.Net.Sockets.Socket..ctor(AddressFamily , SocketType , ProtocolType ) at System.Net.Sockets.UdpClient.CreateClientSocket() at System.Net.Sockets.UdpClient..ctor(AddressFamily ) at Makaretu.Dns.MulticastService..ctor(Func`2 filter) at CoreLogic.ZeroConf.ZCSVC.Init() TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user StorageManager: Running Storage Management CleanDirectory: Skip storage management on /AgentDVR/Media/WebServerRoot/Media/ as it is disabled TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user TURN: Welcome user
MekayelAnik commented 2 months ago

Use Macvlan to deploy the container on IP address of your desire.

You can easily find this in the Documentation on AgentDVR's Dockerhub page. I have added details on how to do this. I personally have deployed AgentDVR using Macvlan to give it a IP of my choice.

If you are still facing difficulty after following the steps there, please let me know. It may but I can't guarantee it be attached the container to a VPN interface, cause I haven't tried it & don't have any solid idea on how to do this.

And as this is not an issue with the AgentDVR or the container image, I am closing the issue. But your further comments are welcome & will be answered. Your best bet of getting good help on this is Reddit of ispyagentdvr or Docker Regards