ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
897 stars 91 forks source link

Plugin update to version 0.13.46 not possible (ENOTEMPTY) #1113

Closed cl4udiu5 closed 1 year ago

cl4udiu5 commented 1 year ago
Bildschirmfoto 2022-10-01 um 00 23 08

Issue

Log Messages

OS | Raspbian GNU/Linux Bullseye (11)
Homebridge | v1.5.0 (running as service)
Node.js Version | v16.17.1
NPM Version | v8.13.2

Debug Files

cl4udiu5 commented 1 year ago
Bildschirmfoto 2022-10-01 um 00 52 12
ebaauw commented 1 year ago

This is an issue with npm, not with Homebridge Hue. Best delete that directory .homebridge-hue-… manually.

mandrean commented 1 year ago

I'm running a fresh install of the latest Homebridge version (with node upgraded to v16.17.1):

Getting the same error. Can't install homebridge-hue@0.13.46

sudo hb-service add homebridge-hue@0.13.44 works fine tho, so I'm guessing there's something wonky with 0.13.46

ebaauw commented 1 year ago

Guess again. That version has had over 3,500 downloads this week.

mandrean commented 1 year ago

And what? Let's not be cocky and over-defensive. And I'm guessing most of those are upgrades, not fresh installs.

If you work in software engineering I'm sure you know that some bugs only manifest themselves under very specific conditions.

ebaauw commented 1 year ago

If you work in software engineering, you should know better than guessing and collect facts instead:

$ sudo npm -g list homebridhe-hue
/usr/lib
└── (empty)

$ sudo npm -g i homebridge-hue@0.13.46

added 110 packages, and audited 111 packages in 14s

51 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
mandrean commented 1 year ago

Not sure what "homebridhe" [sic] has to do with anything I posted.

Probably the worst thing you can do is being rude towards your fans and users of your project. Very childish and immature behavior.

To anyone else reading this: Yeah can still reproduce. Fresh Homebridge image (latest as of writing), Raspberry Pi Zero W, installing 0.13.46 results in an error but 0.13.44 works.

ebaauw commented 1 year ago

My bad, that was a typo. I am far from infallible, but I had uninstalled Homebridge Hue just before. To wit:

$ sudo npm -g list homebridge-hue
/usr/lib
└── (empty)

$ sudo npm -g i homebridge-hue@0.13.46

added 110 packages, and audited 111 packages in 14s

51 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

As I said above: this is an issue with npm, nothing to do with the Homebridge Hue code. You're more than welcome to guess otherwise, but please don't waste my time with that. If you want my help, rather than accusing me of rudeness, you could provide the actual error message and attach the npm log file.

mandrean commented 1 year ago

It's not a random guess, but an educated guess (synonym: hypothesis). We do a lot of those at software companies.

It's based on:

I'll reproduce again and see what the logs said exactly. Another hypothesis I had was that perhaps some of the newer deps require a newer version of node, but I upgraded to v16.17.1 with similar results.

ebaauw commented 1 year ago

The Goolgle APIs are a dependency of the fakegato-history package; Homebridge Hue doesn't use that function. What OS are you running on the Pi Zero W? Did you update npm after installing / updating NodeJS?

Is this the original Pi Zero W, with ARM 6 processor? NodeJS hasn't been supported officially on that platform for a long time; last time I checked, a couple of months ago, the unofficial build still worked, but I already had issues with some libraries requiring C-extensions.