docker-wyze-bridge icon indicating copy to clipboard operation
docker-wyze-bridge copied to clipboard

IOTC_ER_FAIL_CREATE_SOCKET error

Open Kilonga opened this issue 3 years ago • 10 comments

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?

Kilonga avatar Jan 27 '22 15:01 Kilonga

Are you running this as a standalone docker container?

mrlt8 avatar Feb 09 '22 14:02 mrlt8

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

Kilonga avatar Feb 09 '22 15:02 Kilonga

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

phillnom avatar Feb 20 '22 01:02 phillnom

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

pwaterz avatar Feb 26 '22 22:02 pwaterz

Could this be another AppArmor issue?

mrlt8 avatar Feb 27 '22 00:02 mrlt8

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

pwaterz avatar Feb 27 '22 03:02 pwaterz

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

mrlt8 avatar May 04 '22 03:05 mrlt8

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

phillnom avatar May 04 '22 14:05 phillnom

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

eraticmastermind avatar Jul 22 '22 20:07 eraticmastermind

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

  • Serving Flask app 'frontend'
  • Debug mode: off 2022/08/09 17:20:40 [WyzeBridge] 🔍 Could not find local cache for 'user' 2022/08/09 17:20:40 [WyzeBridge] 🔍 Could not find local cache for 'auth' 2022/08/09 17:20:40 [WyzeBridge] ☁️ Fetching 'auth' from the Wyze API... 2022/08/09 17:20:40 [WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:5000
  • Running on http://172.18.0.2:5000 2022/08/09 17:20:40 [WyzeBridge] Press CTRL+C to quit 2022/08/09 17:20:41 [WyzeBridge] 💾 Saving 'auth' to local cache... 2022/08/09 17:20:41 [WyzeBridge] ☁️ Fetching 'user' from the Wyze API... 2022/08/09 17:20:41 [WyzeBridge] 💾 Saving 'user' to local cache... 2022/08/09 17:20:41 [WyzeBridge] 🔍 Could not find local cache for 'cameras' 2022/08/09 17:20:41 [WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API... 2022/08/09 17:20:42 [WyzeBridge] 💾 Saving 'cameras' to local cache... 2022/08/09 17:20:42 [WyzeBridge] 🪄 WHITELIST MODE ON 2022/08/09 17:20:42 [WyzeBridge] 🎬 STARTING 1 OF 5 CAMERAS 2022/08/09 17:20:42 [WyzeBridge] Starting rtsp-simple-server v0.19.3 2022/08/09 17:20:42 [WyzeBridge] 🎉 Connecting to WyzeCam V2 - BridgeTest on 192.168.0.67 (1/3) 2022/08/09 17:20:43 [BridgeTest] IOTC_ER_FAIL_CREATE_SOCKET 2022/08/09 17:20:45 [WyzeBridge] 🎉 Connecting to WyzeCam V2 - BridgeTest on 192.168.0.67 (1/3) 2022/08/09 17:20:46 [BridgeTest] IOTC_ER_FAIL_CREATE_SOCKET 2022/08/09 17:20:48 [WyzeBridge] 🎉 Connecting to WyzeCam V2 - BridgeTest on 192.168.0.67 (1/3) 2022/08/09 17:20:49 [BridgeTest] IOTC_ER_FAIL_CREATE_SOCKET 2022/08/09 17:20:51 [WyzeBridge] 🎉 Connecting to WyzeCam V2 - BridgeTest on 192.168.0.67 (1/3) 2022/08/09 17:20:52 [BridgeTest] IOTC_ER_FAIL_CREATE_SOCKET

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)

mdabbs avatar Aug 09 '22 17:08 mdabbs

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

ethagnawl avatar Nov 16 '22 17:11 ethagnawl

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 avatar Dec 23 '22 05:12 davidchilin

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

davidchilin avatar Jul 05 '23 02:07 davidchilin