motioneye-project / motioneyeos

A Video Surveillance OS For Single-board Computers
Other
7.87k stars 900 forks source link

Reolink camera mjpg client connection for camera 2 on port 8082 is closed #2821

Closed Sangoku closed 3 years ago

Sangoku commented 3 years ago

Have my MotionEye running as HA Addon. This worked prioor to firmware update to the reolink cameras where they replaced the flash GUI with the html5 UI. And i switched from VMbox to Linux instal on a clean OS.

The usb cam works without problems. The Reolink cam which worked earlier is the problem. Cant get it to work at all. Same config as earlier.. just get this port closed error.

motionEyeOS version: 0.15.1 Running in a HASSIO addon Operating System Debian GNU/Linux 11 (bullseye) Docker version 20.10.9

Board Model

Intel NUC Barebone BOXNUC7I3BNH

Camera

I am using the following type of cameras: 1 V4L2 1 RSTP Network Camera

Camera models are: 1 usb camera connected to the nuc directly via usb LifeCam HD-3000

2 reolink Network Camera** Model RLC-410-5MP build 20121100 Hardware No. IPC_51516M5M Config Version v3.0.0.0 Firmware Version v3.0.0.136_20121100 Details IPC_51516M5MS10E1W01100000001

Network Connection

My motionEyeOS unit is connected to the network via: Ethernet

Logs:

(xxxx is redacted)


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: motionEye
 Simple, elegant and feature-rich CCTV/NVR for your cameras
-----------------------------------------------------------
 Add-on version: 0.15.1
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 11 (bullseye)  (amd64 / intel-nuc)
 Home Assistant Core: 2021.10.5
 Home Assistant Supervisor: 2021.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to DEBUG
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] motioneye.sh: executing... 
[07:46:09] DEBUG: Running startup migrations
backing up /data/motioneye/motioneye.conf
`[cont-init.d]` motioneye.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[07:46:09] INFO: Starting motionEye...
    INFO: hello! this is motionEye server 0.42.1
   DEBUG: using motion version 4.3.2
   DEBUG: using ffmpeg version 4.4
   DEBUG: reading main config from file /data/motioneye/motion.conf...
   DEBUG: loading additional config structure for main, without separators
   DEBUG: additional config section: network
   DEBUG: listing config dir /data/motioneye...
   DEBUG: found camera with id 2
   DEBUG: found camera with id 1
   DEBUG: reading camera config from /data/motioneye/camera-1.conf...
   DEBUG: loading additional config structure for camera, without separators
   DEBUG: reading camera config from /data/motioneye/camera-2.conf...
   DEBUG: listing smb mounts...
   DEBUG: starting motion
   DEBUG: starting motion binary "/usr/bin/motion"
   DEBUG: motion detection disabled by config for camera with id 1
   DEBUG: disabling motion detection for camera with id 1
    INFO: cleanup started
    INFO: wsswitch started
    INFO: tasks started
    INFO: mjpg client garbage collector started
    INFO: smb mounts started
    INFO: server started
   DEBUG: successfully disabled motion detection for camera with id 1
[07:46:13] INFO: Starting NGinx...
[07:46:13] DEBUG: Requested API resource: http://supervisor/discovery
[07:46:13] DEBUG: Request method: POST
[07:46:13] DEBUG: Request data: {"service":"motioneye","config":{"url":"http://127.0.0.1:28765"}}
[07:46:13] DEBUG: API HTTP Response code: 200
[07:46:13] DEBUG: API Response: {"result": "ok", "data": {"uuid": "xxxxxxxxxx"}}
[07:46:13] DEBUG: Filtering response using: .uuid
[07:46:13] INFO: Successfully send discovery information to Home Assistant.

DEBUG: found mount "overlay" at "/"
   DEBUG: found mount "proc" at "/proc"
   DEBUG: found mount "/dev/sda2" at "/media"
   DEBUG: found mount "devpts" at "/dev/pts"
   DEBUG: found mount "tmpfs" at "/dev/shm"
   DEBUG: found mount "mqueue" at "/dev/mqueue"
   DEBUG: found mount "hugetlbfs" at "/dev/hugepages"
   DEBUG: found mount "udev" at "/proc/kcore"
   DEBUG: listing resolutions of device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0...
   DEBUG: found resolution 640x480 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 1280x720 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 960x544 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 800x448 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 640x360 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 424x240 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 352x288 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 320x240 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 800x600 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 176x144 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 160x120 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 1280x800 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: found resolution 416x240 for device /dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0
   DEBUG: getting disk usage for path /share/motioneye/Camera1...
   DEBUG: listing disks using /dev/disk/by-id/
   DEBUG: found partition "1" at "/dev/sda1" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "3" at "/dev/sda3" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "2" at "/dev/sda2" on bus "ata": "INTENSO SATA"
   DEBUG: found disk at "/dev/sda" on bus "ata": "INTENSO SATA"
   DEBUG: listing mounts...
   DEBUG: found mount "overlay" at "/"
   DEBUG: found mount "proc" at "/proc"
   DEBUG: found mount "/dev/sda2" at "/media"
   DEBUG: found mount "devpts" at "/dev/pts"
   DEBUG: found mount "tmpfs" at "/dev/shm"
   DEBUG: found mount "mqueue" at "/dev/mqueue"
   DEBUG: found mount "hugetlbfs" at "/dev/hugepages"
   DEBUG: found mount "udev" at "/proc/kcore"
   DEBUG: getting disk usage for path /share/motioneye/Camera2...
   DEBUG: 200 GET /config/list?_username=xxxx&_signature=xxxxxx(127.0.0.1) 63.34ms
   DEBUG: creating mjpg client for camera 1
   DEBUG: mjpg client for camera 1 connected on port 8087
   DEBUG: loading additional config structure for main, with separators
   DEBUG: additional config section: network
   DEBUG: loading additional config structure for camera, with separators
/bin/sh: lsb_release: not found
   DEBUG: 304 GET / (127.0.0.1) 221.73ms
   DEBUG: 200 GET /login/?_=1634535999300&_username=xxxx&_signature=xxxx(127.0.0.1) 0.96ms
   DEBUG: preferences file "/data/motioneye/prefs.json" does not exist, using default preferences
   DEBUG: 200 GET /prefs/?_=1634535999352&_username=xxx&_signature=xxxx (127.0.0.1) 1.39ms
   DEBUG: getting main config
   DEBUG: 200 GET /config/main/get/?_=1634535999475&_username=xxxx&_signature=xxxxx(127.0.0.1) 1.19ms
   DEBUG: listing cameras
   DEBUG: listing disks using /dev/disk/by-id/
   DEBUG: found partition "1" at "/dev/sda1" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "3" at "/dev/sda3" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "2" at "/dev/sda2" on bus "ata": "INTENSO SATA"
   DEBUG: found disk at "/dev/sda" on bus "ata": "INTENSO SATA"
   DEBUG: listing mounts...
   DEBUG: found mount "overlay" at "/"
   DEBUG: found mount "proc" at "/proc"
   DEBUG: found mount "/dev/sda2" at "/media"
   DEBUG: found mount "devpts" at "/dev/pts"
   DEBUG: found mount "tmpfs" at "/dev/shm"
   DEBUG: found mount "mqueue" at "/dev/mqueue"
   DEBUG: found mount "hugetlbfs" at "/dev/hugepages"
   DEBUG: found mount "udev" at "/proc/kcore"
   DEBUG: getting disk usage for path /share/motioneye/Camera1...
   DEBUG: listing disks using /dev/disk/by-id/
   DEBUG: found partition "1" at "/dev/sda1" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "3" at "/dev/sda3" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "2" at "/dev/sda2" on bus "ata": "INTENSO SATA"
   DEBUG: found disk at "/dev/sda" on bus "ata": "INTENSO SATA"
   DEBUG: listing mounts...
   DEBUG: found mount "overlay" at "/"
   DEBUG: found mount "proc" at "/proc"
   DEBUG: found mount "/dev/sda2" at "/media"
   DEBUG: found mount "devpts" at "/dev/pts"
   DEBUG: found mount "tmpfs" at "/dev/shm"
   DEBUG: found mount "mqueue" at "/dev/mqueue"
   DEBUG: found mount "hugetlbfs" at "/dev/hugepages"
   DEBUG: found mount "udev" at "/proc/kcore"
   DEBUG: getting disk usage for path /share/motioneye/Camera2...
   DEBUG: 200 GET /config/list/?_=1634535999517&_username=xxxx&_signature=xxxxx(127.0.0.1) 14.71ms
   DEBUG: getting config for camera 1
   DEBUG: listing disks using /dev/disk/by-id/
   DEBUG: found partition "1" at "/dev/sda1" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "3" at "/dev/sda3" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "2" at "/dev/sda2" on bus "ata": "INTENSO SATA"
   DEBUG: found disk at "/dev/sda" on bus "ata": "INTENSO SATA"
   DEBUG: listing mounts...
   DEBUG: found mount "overlay" at "/"
   DEBUG: found mount "proc" at "/proc"
   DEBUG: found mount "/dev/sda2" at "/media"
   DEBUG: found mount "devpts" at "/dev/pts"
   DEBUG: found mount "tmpfs" at "/dev/shm"
   DEBUG: found mount "mqueue" at "/dev/mqueue"
   DEBUG: found mount "hugetlbfs" at "/dev/hugepages"
   DEBUG: found mount "udev" at "/proc/kcore"
   DEBUG: getting disk usage for path /share/motioneye/Camera1...
   DEBUG: 200 GET /config/1/get/?force=true&_=1634535999551&_username=xxxx&_signature=xxxxx(127.0.0.1) 6.38ms
 DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
 WARNING: mjpg client connection for camera 2 on port 8082 is closed
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
 WARNING: mjpg client connection for camera 2 on port 8082 is closed
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
 WARNING: mjpg client connection for camera 2 on port 8082 is closed
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
 WARNING: mjpg client connection for camera 2 on port 8082 is closed
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: mjpg client for camera 2 on port 8082 removed
   DEBUG: creating mjpg client for camera 2
   DEBUG: mjpg client for camera 2 connected on port 8082
 WARNING: mjpg client connection for camera 2 on port 8082 is closed
   DEBUG: connection closed for mjpg client for camera 2 on port 8082
   DEBUG: found disk at "/dev/sda" on bus "ata": "INTENSO SATA"
   DEBUG: listing mounts...
   DEBUG: found mount "overlay" at "/"
   DEBUG: found mount "proc" at "/proc"
   DEBUG: found mount "/dev/sda2" at "/media"
   DEBUG: found mount "devpts" at "/dev/pts"
   DEBUG: found mount "tmpfs" at "/dev/shm"
   DEBUG: found mount "mqueue" at "/dev/mqueue"
   DEBUG: found mount "hugetlbfs" at "/dev/hugepages"
   DEBUG: found mount "udev" at "/proc/kcore"
   DEBUG: getting disk usage for path /share/motioneye/Camera1...
   DEBUG: listing disks using /dev/disk/by-id/
   DEBUG: found partition "1" at "/dev/sda1" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "3" at "/dev/sda3" on bus "ata": "INTENSO SATA"
   DEBUG: found partition "2" at "/dev/sda2" on bus "ata": "INTENSO SATA"
   DEBUG: found disk at "/dev/sda" on bus "ata": "INTENSO SATA"
   DEBUG: listing mounts...
   DEBUG: found mount "overlay" at "/"
   DEBUG: found mount "proc" at "/proc"
   DEBUG: found mount "/dev/sda2" at "/media"
   DEBUG: found mount "devpts" at "/dev/pts"
   DEBUG: found mount "tmpfs" at "/dev/shm"
   DEBUG: found mount "mqueue" at "/dev/mqueue"
   DEBUG: found mount "hugetlbfs" at "/dev/hugepages"
   DEBUG: found mount "udev" at "/proc/kcore"
   DEBUG: getting disk usage for path /share/motioneye/Camera2...
   DEBUG: 200 GET /config/list?_username=xxx&_signature=xxxxx(127.0.0.1) 12.01ms
   DEBUG: running cleanup process...
   DEBUG: cleaning up pictures...
   DEBUG: cleaning up movies...
   DEBUG: cleanup done
starbasessd commented 3 years ago

Closed. Issue is motionEye, not motionEyeOS. MotionEye issues are at https://github.com/ccrisan/motioneye/issues Include: Board Hardware running on PC, RPi and version, etc. BaseOS: Which linux, Ubuntu and version, Debian and version, etc. Which version of docker, if used? docker-ce or docker.io or other. Using portainer? Which camera and model. Have you tested WITHOUT HA or HASSIO? What do you get when you connect to http://ip_address:8765

starbasessd commented 3 years ago

The reolink URL may have changed as noted in https://www.ispyconnect.com/camera/reolink to rtmp://ip_address:1935/bcs/channel0_main.bcs?token=[TOKEN]&channel=0&stream=0 or rtsp://ip_address/h264Preview_01_main or rtsp://ip_address/h264Preview_01_sub