Giter Site home page Giter Site logo

Comments (6)

github-actions avatar github-actions commented on June 26, 2024

✅ Pre-checks completed successfully.

from verified.

bwp91 avatar bwp91 commented on June 26, 2024

Hi @ChristophFausak

As part of the checks I make, I install the plugin, open the config screen and click save without making any changes. This resulted in the following config:

        {
            "name": "Resol VBus Platform",
            "servers": [
                {
                    "connectionOptions": {
                        "path": "/dev/ttyACM0"
                    },
                    "connectionClassName": "TcpConnection"
                }
            ],
            "platform": "ResolVBus"
        }

And this sent Homebridge into a crash loop:

[17/04/2023, 21:32:33] Error: Unable to connect
    at onSocketTermination (/usr/local/lib/node_modules/homebridge-resol-vbus/node_modules/resol-vbus/src/tcp-connection.js:334:26)
    at Socket.onError (/usr/local/lib/node_modules/homebridge-resol-vbus/node_modules/resol-vbus/src/tcp-connection.js:363:17)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[17/04/2023, 21:32:33] Got SIGTERM, shutting down Homebridge...

This needs to be fixed (error caught within the plugin and the plugin logs the issue and 'stops') so that it does not affect other plugins!

from verified.

ChristophFausak avatar ChristophFausak commented on June 26, 2024

Thanks, @bwp91 !

pls. check version 1.1.4

from verified.

bwp91 avatar bwp91 commented on June 26, 2024

Okay great, updated and it is no longer crashing homebridge which is the main thing!

Next one: with a config of this, (and I now have this plugin in a child bridge but have removed this bridge part from the config):

        {
            "name": "Resol VBus Platform",
            "servers": [
                {
                    "connectionOptions": {
                        "path": "jfkdsjfklds",
                        "host": "192.168.4.1"
                    },
                    "name": "jkl",
                    "autoDiscover": true,
                    "connectionClassName": "SerialConnection"
                }
            ],
            "platform": "ResolVBus"
        }

The child bridge is constantly restarting:

[19/04/2023, 22:44:57] [Resol VBus Platform] Child bridge process ended
[19/04/2023, 22:44:57] [Resol VBus Platform] Process Ended. Code: 1, Signal: null
[19/04/2023, 22:45:04] [Resol VBus Platform] Restarting Process...
[19/04/2023, 22:45:05] [Resol VBus Platform] Launched child bridge with PID 31900
[19/04/2023, 22:45:07] Registering platform 'homebridge-resol-vbus.ResolVBus'
[19/04/2023, 22:45:07] [Resol VBus Platform] Loaded homebridge-resol-vbus v1.1.4 child bridge successfully
[19/04/2023, 22:45:07] Loaded 0 cached accessories from cachedAccessories.0E67B266B231.
Error: Error: No such file or directory, cannot open jfkdsjfklds
[19/04/2023, 22:45:08] [Resol VBus Platform] Child bridge process ended
[19/04/2023, 22:45:08] [Resol VBus Platform] Process Ended. Code: 1, Signal: null
[19/04/2023, 22:45:15] [Resol VBus Platform] Restarting Process...
[19/04/2023, 22:45:16] [Resol VBus Platform] Launched child bridge with PID 31911
[19/04/2023, 22:45:18] Registering platform 'homebridge-resol-vbus.ResolVBus'
[19/04/2023, 22:45:18] [Resol VBus Platform] Loaded homebridge-resol-vbus v1.1.4 child bridge successfully
[19/04/2023, 22:45:18] Loaded 0 cached accessories from cachedAccessories.0E67B266B231.
Error: Error: No such file or directory, cannot open jfkdsjfklds
[19/04/2023, 22:45:18] [Resol VBus Platform] Child bridge process ended
[19/04/2023, 22:45:18] [Resol VBus Platform] Process Ended. Code: 1, Signal: null
[19/04/2023, 22:45:25] [Resol VBus Platform] Restarting Process...
[19/04/2023, 22:45:27] [Resol VBus Platform] Launched child bridge with PID 31922
[19/04/2023, 22:45:29] Registering platform 'homebridge-resol-vbus.ResolVBus'
[19/04/2023, 22:45:29] [Resol VBus Platform] Loaded homebridge-resol-vbus v1.1.4 child bridge successfully
[19/04/2023, 22:45:29] Loaded 0 cached accessories from cachedAccessories.0E67B266B231.
Error: Error: No such file or directory, cannot open jfkdsjfklds
[19/04/2023, 22:45:29] [Resol VBus Platform] Child bridge process ended

This may seem like a strange config for me to have, and unrealistic too(!), but the main thing here is to make sure that your plugin catches all errors and deals with them appropriately, rather than crashing the node process (which could affect other plugins).

from verified.

github-actions avatar github-actions commented on June 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from verified.

github-actions avatar github-actions commented on June 26, 2024

This issue has been closed as no further activity has occurred.

from verified.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.