mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.58k stars 158 forks source link

IOTC_ER_FAIL_CREATE_SOCKET error #281

Open Kilonga opened 2 years ago

Kilonga commented 2 years ago

I am receiving the following error:

🚀 STARTING DOCKER-WYZE-BRIDGE v1.0.4

2022/01/27 14:52:18 [WyzeBridge] 🔍 Could not find local cache for 'user'
2022/01/27 14:52:18 [WyzeBridge] 🔍 Could not find local cache for 'auth'
2022/01/27 14:52:18 [WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
2022/01/27 14:52:19 [WyzeBridge] 💾 Saving 'auth' to local cache...
2022/01/27 14:52:19 [WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
2022/01/27 14:52:19 [WyzeBridge] 💾 Saving 'user' to local cache...
2022/01/27 14:52:19 [WyzeBridge] 🔍 Could not find local cache for 'cameras'
2022/01/27 14:52:19 [WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
2022/01/27 14:52:20 [WyzeBridge] 💾 Saving 'cameras' to local cache...

🎬 STARTING ALL 2 CAMERAS
2022/01/27 14:52:20 [WyzeBridge] Starting rtsp-simple-server v0.17.10
2022/01/27 14:52:20 [Garage Back Side Cam] IOTC_ER_FAIL_CREATE_SOCKET
2022/01/27 14:52:20 [Garage Front Side Cam] IOTC_ER_FAIL_CREATE_SOCKET

Any ideas?

mrlt8 commented 2 years ago

Are you running this as a standalone docker container?

Kilonga commented 2 years ago

I am running it with the docker run command in an ubuntu Linux box.

phillnom commented 2 years ago

I'm running this as a standalone docker container on Ubuntu 18.04.6 and I'm experiencing this error as well:

wyze_bridge | 🚀 STARTING DOCKER-WYZE-BRIDGE v1.1.1
wyze_bridge | 
wyze_bridge | 2022/02/20 01:06:09 [WyzeBridge] 🔍 Could not find local cache for 'user'
wyze_bridge | 2022/02/20 01:06:09 [WyzeBridge] 🔍 Could not find local cache for 'auth'
wyze_bridge | 2022/02/20 01:06:09 [WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
wyze_bridge | 2022/02/20 01:06:10 [WyzeBridge] 💾 Saving 'auth' to local cache...
wyze_bridge | 2022/02/20 01:06:10 [WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
wyze_bridge | 2022/02/20 01:06:10 [WyzeBridge] 💾 Saving 'user' to local cache...
wyze_bridge | 2022/02/20 01:06:10 [WyzeBridge] 🔍 Could not find local cache for 'cameras'
wyze_bridge | 2022/02/20 01:06:10 [WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
wyze_bridge | 2022/02/20 01:06:11 [WyzeBridge] 💾 Saving 'cameras' to local cache...
wyze_bridge | 
wyze_bridge | 🎬 STARTING ALL 2 CAMERAS
wyze_bridge | 2022/02/20 01:06:11 [WyzeBridge] Starting rtsp-simple-server v0.17.17
wyze_bridge | 2022/02/20 01:06:11 [WyzeBridge] 🎉 Connecting to WyzeCam V2 - Cat Room on 192.168.1.89 (1/3)
wyze_bridge | 2022/02/20 01:06:11 [WyzeBridge] 🎉 Connecting to WyzeCam Pan - Dining Room/Kitchen on 192.168.1.64 (1/3)
wyze_bridge | 2022/02/20 01:06:11 [Dining Room/Kitchen] IOTC_ER_FAIL_CREATE_SOCKET
wyze_bridge | 2022/02/20 01:06:11 [Cat Room] IOTC_ER_FAIL_CREATE_SOCKET
pwaterz commented 2 years ago

Same issue on linux mint 20.2. Oddly it works on my laptop which is running ubuntu 20.04.

mrlt8 commented 2 years ago

Could this be another AppArmor issue?

pwaterz commented 2 years ago

Not AppArmor. I disabled it and still getting the same error.

mrlt8 commented 2 years ago

Does --net=host or network_mode: host in the docker-compose help?

phillnom commented 2 years ago

I recently switched from Ubuntu 18.04.6 to Manjaro 21.2.6 and I'm not longer experiencing this issue.

eraticmastermind commented 2 years ago

I am experiencing the same issue on Ubuntu 20.04. Docker version 20.10.17, build 100c701

mdabbs commented 2 years ago

Me too.

Docker version 20.10.12, build e91ed5707e Gentoo Linux mrlt8/wyze-bridge:latest

I tried docker-compose and straight docker. Default networking and --net=host. Same error all the time.

2022/08/09 17:20:40 [WyzeBridge] 🚀 STARTING DOCKER-WYZE-BRIDGE v1.8.2

It does however work on a different Gentoo server. Weird. Obviously some networking issue on my end. (No firewalls or anything in place, but I think my docker and my lxc networks don't play nice)

ethagnawl commented 1 year ago

I'm seeing this issue on Debian 11.5 but it's working without issue on Ubuntu 22.04.

davidchilin commented 1 year ago

Update: Error is gone, bridge is working. I didn't change anything besides trying it out again a few days later on computer.

OG Post: Seeing the same on Xubuntu 22.04. Cameras are recognized but IOTC_ER_FAIL_CREATE_SOCKET. Running firmware version 4.36.8.15, I'm holding off on updating to 4.36.9.139. Cameras work fine on the app. Great work on the project, I like the interface and all the options, thank you for sharing.

davidchilin commented 1 year ago

setup a new ubuntu 22.04 server (ethernet) and seeing this error with 2.3.5 and 2.3.8. TOTP is working well. I have tried firewall off, apparmor disabled and no change in error for each camera: wyze-bridge | [cor] [-6] IOTC_ER_FAIL_CREATE_SOCKET

I have another laptop (wifi) with xubuntu 22.04 and that runs the wyze-bridge just fine with same docker-compose.yml