Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

[Bug]: Error: write EPIPE at WriteWrap.onWriteComplete [as oncomplete] #474

Closed
DMeNTED556 opened this issue Mar 7, 2022 · 1 comment
Closed
Labels
bug Something isn't working no-issue-activity This issue does not have recent activity

Comments

@DMeNTED556
Copy link

DMeNTED556 commented Mar 7, 2022

Describe the bug

Installed latest version of plugin today (just starting my Homebridge build)

Node.js Version v16.14.0
NPM v8.5.1
Homebridge v1.4.0 (HAP v0.10.0) (Homebridge 12B4)

Nest Hello appears in Home and refreshes with latest vid from stream. On clicking the cam interface comes up and streams correctly (audio works, etc.) but as soon as I click the X to end the video stream Homebridge throws an error and restarts:

[06/03/2022, 22:53:58] [Nest-cam] [NexusStreamer] Connected
[06/03/2022, 22:53:58] [Nest-cam] [NexusStreamer] Redirecting...
[06/03/2022, 22:53:58] [Nest-cam] [NexusStreamer] Disconnected
[06/03/2022, 22:53:58] [Nest-cam] [NexusStreamer] Connected
[06/03/2022, 22:54:09] [Nest-cam] [NexusStreamer] Disconnected
[06/03/2022, 22:54:09] Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
[06/03/2022, 22:54:09] Got SIGTERM, shutting down Homebridge...

Note ... I am not using a google account to authenticate I just copied the auth code into my config as I still have the old sub and non-google account.

Debug Output

pi@homebridge:/var/lib/homebridge $ homebridge -D
[06/03/2022, 23:03:10] Loaded config.json with 1 accessories and 3 platforms.
[06/03/2022, 23:03:10] Loaded 1 cached accessories from cachedAccessories.
[06/03/2022, 23:03:10] ---
[06/03/2022, 23:03:13] Loaded plugin: [email protected]
[06/03/2022, 23:03:13] Registering platform 'homebridge-config-ui-x.config'
[06/03/2022, 23:03:13] ---
[06/03/2022, 23:03:17] Loaded plugin: [email protected]
[06/03/2022, 23:03:17] Registering platform 'homebridge-hue.Hue'
[06/03/2022, 23:03:17] ---
[06/03/2022, 23:03:17] Loaded plugin: [email protected]
[06/03/2022, 23:03:17] Registering accessory 'homebridge-messenger.HomebridgeMessenger'
[06/03/2022, 23:03:17] ---
[06/03/2022, 23:03:18] Loaded plugin: [email protected]
[06/03/2022, 23:03:18] Registering platform 'homebridge-nest-cam.Nest-cam'
[06/03/2022, 23:03:18] ---
[06/03/2022, 23:03:18] Loading 3 platforms...
[06/03/2022, 23:03:18] [Config] Initializing config platform...
[06/03/2022, 23:03:18] [Config] *********** Homebridge Standalone Mode Is Depreciated **********
[06/03/2022, 23:03:18] [Config] * Please swap to "service mode" using the hb-service command. *
[06/03/2022, 23:03:18] [Config] * See https://git.io/JUvQr for instructions on how to migrate. *
[06/03/2022, 23:03:18] [Config] Running in Standalone Mode.
[06/03/2022, 23:03:18] [Hue] Initializing Hue platform...
[06/03/2022, 23:03:18] [Hue] homebridge-hue v0.13.38, node v16.14.0, homebridge v1.4.0
[06/03/2022, 23:03:18] [Hue] warning: planned changes, see ebaauw/homebridge-hue#1070
[06/03/2022, 23:03:18] [Hue] config.json: {"name":"Hue","users":{"####":"*********1"},"anyOn":true,"effects":true,"hosts":["homebridge.local:4530"],"lights":true,"nativeHomeKitLights":true,"nativeHomeKitSensors":true,"resource":true,"sensors":true,"platform":"Hue"}
[06/03/2022, 23:03:18] [Hue] config: {"anyOn":true,"brightnessAdjustment":1,"effects":true,"excludeSensorTypes":{},"forceHttp":false,"heartrate":5,"hosts":["homebridge.local:4530"],"lowBattery":25,"homebridgeDeconz":"","homebridgeHue2":"","nativeHomeKitLights":true,"nativeHomeKitSensors":true,"resetTimeout":500,"resource":true,"timeout":5,"users":{"####":"*1"},"waitTimePut":50,"waitTimePutGroup":1000,"waitTimeResend":300,"waitTimeUpdate":20,"name":"Hue","lights":true,"sensors":true,"platform":"Hue"}
[06/03/2022, 23:03:18] [Nest-cam] Initializing Nest-cam platform...
[06/03/2022, 23:03:18] [Nest-cam] Using motionDetection from config: false
[06/03/2022, 23:03:18] [Nest-cam] Using doorbellAlerts from config: true
[06/03/2022, 23:03:18] [Nest-cam] Using doorbellSwitch from config: false
[06/03/2022, 23:03:18] [Nest-cam] Using streamingSwitch from config: true
[06/03/2022, 23:03:18] [Nest-cam] Using chimeSwitch from config: false
[06/03/2022, 23:03:18] [Nest-cam] Using announcementsSwitch from config: false
[06/03/2022, 23:03:18] [Nest-cam] Using audioSwitch from config: true
[06/03/2022, 23:03:18] [Nest-cam] Defaulting structures to []
[06/03/2022, 23:03:18] [Nest-cam] Defaulting cameras to []
[06/03/2022, 23:03:18] Loading 1 accessories...
[06/03/2022, 23:03:18] [Messenger] Initializing HomebridgeMessenger accessory...
[06/03/2022, 23:03:18] [Messenger] Added Main Switch : Messenger
[06/03/2022, 23:03:18] [Messenger] Main Switch status : true
[06/03/2022, 23:03:18] [Messenger] Added pushover : High Humidity - Left
[06/03/2022, 23:03:18] [Messenger] Added pushover : High Humidity - Right
[06/03/2022, 23:03:18] [Nest-cam] Configuring accessory Front Door
[06/03/2022, 23:03:18] [Nest-cam] Using alertTypes from config: Motion,Sound,Person,Package Delivered,Package Retrieved,Face,Zone
[06/03/2022, 23:03:18] [Nest-cam] Using importantOnly from config: true
[06/03/2022, 23:03:18] [Nest-cam] Creating microphone for Front Door.
[06/03/2022, 23:03:18] [Nest-cam] Creating doorbell sensor for Front Door.
[06/03/2022, 23:03:18] [Nest-cam] Creating switch for Front Door Streaming.
[06/03/2022, 23:03:18] [Nest-cam] Creating switch for Front Door Audio.
[06/03/2022, 23:03:18] [Nest-cam] Authenticating via pre-defined nest_token
[06/03/2022, 23:03:18] [Hue] homebridge.local: request 1: GET /config
[06/03/2022, 23:03:18] [Hue] homebridge.local: request 1: 200 OK
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: dresden elektronik deCONZ gateway v2.14.1, api v1.16.0
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: warning: support for deCONZ will be deprecated in favour of Homebridge deCONZ
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: request 1: GET /
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: request 1: 200 OK
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: request 2: GET /groups/0
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: request 2: 200 OK
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: #####: dresden elektronik deCONZ gateway "Phoscon-ConbeeII"
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: /lights/1: ignore repeater {"etag":"#####","hascolor":false,"lastannounced":null,"lastseen":"2022-03-07T04:03Z","manufacturername":"dresden elektronik","modelid":"ConBee II","name":"Configuration tool 1","state":{"reachable":true},"swversion":"0x26660700","type":"Configuration tool","uniqueid":"00:21:2e:ff:ff:07:eb:5d-01"}
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: 00212EFFFF07EB5D-1: Philips PHDL00 "Daylight"
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: /sensors/1: Daylight "Daylight"
[06/03/2022, 23:03:18] [Hue] Daylight: sensor lightlevel changed from undefined to 0
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: 00124B002502CC14: eWeLink TH01 "StackOn-Left"
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: /sensors/2: ZHATemperature "StackOn-Left"
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: /sensors/2: warning: unknown ZHATemperature sensor {"config":{"battery":100,"offset":0,"on":true,"reachable":true},"ep":1,"etag":"c5bbb79477bd2f44980f7c5c6fd7a129","lastannounced":"2022-03-06T21:49:57Z","lastseen":"2022-03-07T04:00Z","manufacturername":"eWeLink","modelid":"TH01","name":"StackOn-Left","state":{"lastupdated":"2022-03-07T03:58:46.181","temperature":1837},"swversion":"20211103","type":"ZHATemperature","uniqueid":"00:12:4b:00:25:02:cc:14-01-0402"}
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: /sensors/3: ZHAHumidity "StackOn-Left"
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: /sensors/3: warning: unknown ZHAHumidity sensor {"config":{"battery":100,"offset":0,"on":true,"reachable":true},"ep":1,"etag":"a2b48c2f3dfbea62392a7fdbdb91b369","lastannounced":"2022-03-06T21:49:57Z","lastseen":"2022-03-07T04:00Z","manufacturername":"eWeLink","modelid":"TH01","name":"StackOn-Left","state":{"humidity":3757,"lastupdated":"2022-03-07T04:00:55.923"},"swversion":"20211103","type":"ZHAHumidity","uniqueid":"00:12:4b:00:25:02:cc:14-01-0405"}
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: 00124B00250314CF: eWeLink TH01 "StackOn-Right"
[06/03/2022, 23:03:18] [Hue] Phoscon-ConbeeII: /sensors/4: ZHATemperature "StackOn-Right"
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: /sensors/4: warning: unknown ZHATemperature sensor {"config":{"battery":100,"offset":0,"on":true,"reachable":true},"ep":1,"etag":"06506702218ff77128b46a5aa3da163c","lastannounced":"2022-03-06T22:17:14Z","lastseen":"2022-03-07T03:59Z","manufacturername":"eWeLink","modelid":"TH01","name":"StackOn-Right","state":{"lastupdated":"2022-03-07T03:59:15.245","temperature":1749},"type":"ZHATemperature","uniqueid":"00:12:4b:00:25:03:14:cf-01-0402"}
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: /sensors/5: ZHAHumidity "StackOn-Right"
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: /sensors/5: warning: unknown ZHAHumidity sensor {"config":{"battery":100,"offset":0,"on":true,"reachable":true},"ep":1,"etag":"98bd0be1fa0732374c8ac4cc00263d51","lastannounced":"2022-03-06T22:17:14Z","lastseen":"2022-03-07T03:59Z","manufacturername":"eWeLink","modelid":"TH01","name":"StackOn-Right","state":{"humidity":3944,"lastupdated":"2022-03-07T04:00:01.233"},"type":"ZHAHumidity","uniqueid":"00:12:4b:00:25:03:14:cf-01-0405"}
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: 5 sensors
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: 0 lights
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: 0 schedules
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: 0 rules
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: 0 groups
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: 4 accessories
[06/03/2022, 23:03:19] [Hue] masked debug info dumped to /home/pi/.homebridge/homebridge-hue.json.gz
[06/03/2022, 23:03:19] Initializing platform accessory 'Phoscon-ConbeeII'...
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: 2 services
[06/03/2022, 23:03:19] Initializing platform accessory 'Daylight'...
[06/03/2022, 23:03:19] Initializing platform accessory 'StackOn-Left'...
[06/03/2022, 23:03:19] Initializing platform accessory 'StackOn-Right'...
[06/03/2022, 23:03:19] Publishing bridge accessory (name: Homebridge 12B4, publishInfo: {
username: '#####',
port: 51234,
pincode: '
--
',
category: 2,
bind: undefined,
mdns: undefined,
addIdentifyingMaterial: true,
advertiser: undefined
}).
Setup Payload:
X-HM://#####
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ #### 
└────────────┘     

[06/03/2022, 23:03:19] [Hue] npm registry: request 1: GET /homebridge-hue/latest
[06/03/2022, 23:03:19] Error: listen EADDRINUSE: address already in use :::51234
at Server.setupListenHandle [as _listen2] (node:net:1330:16)
at listenInCluster (node:net:1378:12)
at Server.listen (node:net:1465:7)
at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:155:20)
at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:332:21)
at Bridge. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1279:18)
at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
at /usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:117:75
at new Promise ()
[06/03/2022, 23:03:19] Got SIGTERM, shutting down Homebridge...
[06/03/2022, 23:03:19] [Hue] Phoscon-ConbeeII: websocket connected to ws://homebridge.local:4531
[06/03/2022, 23:03:19] [Hue] npm registry: request 1: 200 OK
[06/03/2022, 23:03:19] [Hue] latest version: homebridge-hue v0.13.38
[06/03/2022, 23:03:20] [Hue] last heartbeat 0, drift 1

Steps to reproduce

  1. Open Home app.
  2. Tap Nest Camera.
  3. Watch stream.
  4. Tap "X".

Device Type

Raspberry Pi running latest Homebridge Pi Image

iOS Version

15.3.1

Camera Types

Hello Doorbell

Bug Persistence

Consistently

Last Working Version

No response

@DMeNTED556 DMeNTED556 added the bug Something isn't working label Mar 7, 2022
@github-actions
Copy link

github-actions bot commented Apr 7, 2022

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 3 days

@github-actions github-actions bot added the no-issue-activity This issue does not have recent activity label Apr 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working no-issue-activity This issue does not have recent activity
Projects
None yet
Development

No branches or pull requests

1 participant