Closed basu-a closed 2 years ago
Did you check this Common Issues pages ?
Yes, but to no avail -> Tried reinstalling ffmpeg-for-homebridge via multiple methods already, but nothing worked. The stable release works fine and issue is only persistent with the beta (local streaming)
I was having this save issue on the 1.1.1beta2 release while using homebridge via docker but the issue went away with a natively installed instance of homebridge.
Thanks for the input, @swemoney, seems like it could be something to do with the docker. The only issue I have is that I cannot run Homebridge standalone and have to rely on docker like many of the homebridge users! :)
For additional info, I can confirm that I have tried running this docker both with elevated permissions as well as user group permission mod; and both have the same issue as listed above.
I can also confirm that in docker I constantly get No response. With native image it works, BUT when I start streaming I see stream, as soon as I stop streaming my HB restarts instantly and I see this in logs
I know why Docker is not working.
There is NAT done between the host and the container which run the homebridge. Unfortunately, when we request local stream, the Eufy Device will stream directly by creating another UDP session with dynamic port from the Device to the HB with random port. So when Docker receive UDP packet, it can't guess on which container it need to send it, so it will discard the packet.
Happens on my non docker setup as well.
Happens on my non docker setup as well.
But it does work for few seconds ?
Hey guys, hadn’t checked in a while as was super happy with original beta with local streaming that worked great for me… this latest version… I just got no response from camera.
Using the latest 1.0.4 version works but takes a while to load image with white screen showing eufy logo.
local streaming worked great for me on original beta with this.
gapoy to provide what ever logs etc needed
can’t go back to original beta as it’s no longer available to install
update
Fixed it by completely uninstalling plugin, resetting HomeBridge and reinstalling only beta version.
Local streaming is now working. Still iffy resetting of homebridge after stream but live stream works now
Happens on my non docker setup as well.
But it does work for few seconds ?
@lenoxys any suggestions on getting it to work with docker? If you have the UDP port range, maybe I could test with opening the ports up on docker compose yml? Any ideas that I can help making this work on a docker setup?
Still getting ECONNRESET when leaving the stream.
[17/11/2021, 12:51:16] [homebridge-eufy-security] Doorbell_video [AVIOContext @ 0x36f8480] [verbose] Statistics: 1622653 bytes read, 0 seeks [17/11/2021, 12:51:16] Error: read ECONNRESET at Pipe.onStreamRead (internal/stream_base_commons.js:209:20) [17/11/2021, 12:51:16] Got SIGTERM, shutting down Homebridge... [17/11/2021, 12:51:16] [homebridge-eufy-security] Doorbell_video FFmpeg exited with code: 0 and signal: null (Expected)
@lenoxys I guess this happens since we ask to close the stream, when the user exits the video in the home app?
Isn't it problematic that the sig kill waits 2 seconds to stop FFMPEG but we stop the stream in the meantime?
The global setTimeout() method sets a timer which executes a function or specified piece of code once the timer expires.
I assume the below means that this.platform.eufyClient.stopStationLivestream is executed prematurely?
Well. It seems that the ffmpeg process is definitely not being terminate correctly on stop. And it is probably causing the error.
Will take a look at this when streaming has been fixed in the client library again.
Got an idea to try and fix the exception. Will try it out tonight.
Hey found the issue. we don't handle the station livestream stop event
. I've implemented it. Just checking some other thing because it don't trigger a message on the apple device
Happy to test any update on this 👍
Sent from my iPhone
On 3 Jan 2022, at 14:04, Aurélien @.***> wrote:
Hey found the issue. we don't handle the station livestream stop event. I've implemented it. Just checking some other thing because it don't trigger a message on the apple device
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
should be better can you test the latest beta version ?
Testing now….. I’ll report on any issues soon
Sent from my iPhone
On 3 Jan 2022, at 16:13, Aurélien @.***> wrote:
should be better can you test the latest beta version ?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
Hey, installed latest beta8 and still HB restarts after stream stops. I see this in logs:
Hey, installed latest beta8 and still HB restarts after stream stops. I see this in logs:
can you open another issue ? and fill all the informations from your environment ?
Hey, installed latest beta8 and still HB restarts after stream stops. I see this in logs:
can you open another issue ? and fill all the informations from your environment ?
Sure, here you go https://github.com/samemory/homebridge-eufy-security/issues/321
Fixed in beta now.
What happened?
Hi,
I have been testing the EufySecurity-1.1.1-beta.2 (and have the same issue with beta.1 as well). The snapshot works fine, but whenever I try streaming, It fails with the listen EACCES error, and then restarts my home bridge with a sigterm.
I have tried the following:
reinstalling ffmpeg-for-homebridge with elevated permission (both using Docker command as well as home bridge terminal).
The first failure happens as soon as I click the camera icon on home app to steam. Logs highlight -
[10/27/2021, 10:31:15 PM] Error: listen EACCES: permission denied ./2.sock at Server.setupListenHandle [as _listen2] (net.js:1303:21) at listenInCluster (net.js:1368:12) at Server.listen (net.js:1465:5) at new NamePipeStream (/homebridge/node_modules/homebridge-eufy-security/src/accessories/UniversalStream.ts:35:21) at StreamInput (/homebridge/node_modules/homebridge-eufy-security/src/accessories/UniversalStream.ts:44:12) at StreamingDelegate.startStream (/homebridge/node_modules/homebridge-eufy-security/src/accessories/streamingDelegate.ts:384:41) at processTicksAndRejections (internal/process/task_queues.js:95:5)
[10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp --enable-indev=alsa --enable-outdev=alsa [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] libavutil 56. 51.100 / 56. 51.100 [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] libavcodec 58. 91.100 / 58. 91.100 [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] libavformat 58. 45.100 / 58. 45.100 [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] libavdevice 58. 10.100 / 58. 10.100 [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] libavfilter 7. 85.100 / 7. 85.100 [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] libswscale 5. 7.100 / 5. 7.100 [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] libswresample 3. 7.100 / 3. 7.100 [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] DEBUG: 1223 Doorbell_video [info] libpostproc 55. 7.100 / 55. 7.100 [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] ERROR: 1223 Doorbell_video [error] unix:./2.sock: No such file or directory [10/27/2021, 10:31:15 PM] [EufySecurity-1.1.1-beta.2] ERROR: 1223 Doorbell_video FFmpeg exited with code: 1 and signal: null (Error)
Full Log attached
Device Type
Doorbell (Supported)
Plugin Version
beta (Best Effort)
HomeBridge Version
v1.3.x (Supported)
NodeJS Version
v14 (Supported)
Operating System
Ubuntu
Relevant log output