bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
169 stars 24 forks source link

Home Assistant Add On crashes on boot. "Killed" #283

Closed handcraftedcc closed 8 months ago

handcraftedcc commented 8 months ago

Version

1.7.1

Node version

?

Operating System type

Other

Operating system version

Home Assistant 2023.11.3

Describe the bug

Add on crashes on boot (see log below). "Killed"

To reproduce

Install Eufy Security Addon for Home Assistant. Add in login info. Try to run add-on and after a short time the log outputs "Killed" and shuts down.

Screenshots & Logfiles

Here the log:

eufy-security-ws s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 2023-11-29 14:23:10.335 DEBUG [undefined.constructor] Loaded API { apieBase: 'https://security-app.eufylife.com', country: 'US', username: 'redacted persistentData: { user_id: 'redacted email: 'redacted nick_name: 'dom', device_public_keys: {}, clientPrivateKey: 'redacted serverPublicKey: 'redacted } } 2023-11-29 14:23:10.614 DEBUG [EufySecurity._initializeInternals] Load previous login_hash { login_hash: 'redacted } 2023-11-29 14:23:10.887 DEBUG [EufySecurityServer.start] Starting server on host 0.0.0.0, port 3000 2023-11-29 14:23:10.958 INFO [EufySecurityServer.start] Eufy Security server listening on host 0.0.0.0, port 3000 2023-11-29 14:23:11.000 DEBUG [HTTPApi.login] Login and get an access token { token: null, tokenExpiration: null, options: { force: false } } 2023-11-29 14:23:11.076 DEBUG [HTTPApi.request] Api request { method: 'post', endpoint: 'v2/passport/login_sec', responseType: undefined, token: null, data: { ab: 'US', client_secret_info: { public_key: redacted }, enc: 0, email: 'redacted password: '[]', time_zone: -21600000, transaction: 'redacted } } Killed s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped


Home assistant logs only show this: 2023-11-29 08:41:52.120 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration eufy_security which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-29 08:41:52.122 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

Additional context

No response

handcraftedcc commented 8 months ago

Nevermind! After giving my instance more ram and CPUs it fixed the issue!