-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HB-Config No longer works after latest update #1913
Comments
See discussion in #1912 |
I'm also still experiencing this issue. Was able to get homebridge-config-ui-x working again and the web UI is up and running. But the Nothing happens after hitting return. Super don't want to nuke my whole setup |
We can also move discussion of |
Hi all, there have been no changes to hb-config in the 4.54.x versions, and there are no plans to remove it. It's likely that if you tried to update to 4.54.0 within the first hour or so after its release, then the hb-config service was deleted. A reinstall of homebridge-config-ui-x should get this working again. |
That doesn't seem to be true - I've reinstalled (as have dozens of my friends in that other issue) and the binary is still a 1 byte, empty file. |
Mine is 28K -rwxr-xr-x 1 root root 26K Nov 28 13:18 /usr/local/sbin/hb-config That particular file is not part of home bridge-config-ui-x, and is only part of the homebridge-raspbian-image |
The original file is here - https://github.com/homebridge/homebridge-raspbian-image/tree/latest/stage3_homebridge/01-homebridge/files The one hb-config-new is the current version, and hb-config is a legacy version |
Interesting. The fact remains that it was there before this plugin upgrade and is gone now though... |
@jonnyborbs Looking at your screen shot, that file was last updated on |
@NorthernMan54 in that image the file hb-config is |
I don't remember doing anything there, no. I haven't logged directly into the box in ages before the trouble yesterday |
I also wasn't the only one for whom the file vanished after the UI plugin upgrade yesterday, there were loads of reports of the same |
What commands should we run in order to restore hb-config with those files? |
@adavison007 I think you might have mistakenly marked this as closed, could you reopen? |
Mine also stopped working after the UI update yesterday.... no error when running, nothing simply happens after typing the command in. |
You got it :) |
That would be good to know |
I am wondering if this is a packaging and release issue based on the repo you linked @NorthernMan54 - since the |
@jonnyborbs Looking at forensically for a second, what does these commands show on your system ? pi@homebridge:~ $ ls -lc /usr/local/sbin/hb-config My understanding is that the repository / package is only used when a new homebridge raspbian image is installed onto a SD card, and not used by homebridge-config-ui-x. But we need to look further into why / how the file was truncated |
If you are in an emergency situation and need the file back immediately:
But I still think this is something that should be corrected in a packaged release and not via this method |
@NorthernMan54 here you go |
Humm, still shows Dec 2nd What about
That is the build image for your homebridge-raspbian image |
I'm getting this: |
Sorry mate I had a typo. I updated the command above |
This is probably unrelated. I am zeroing in on pre- or post- install scripts in the UI package |
As a side note: I ran the So I still really think there is some pre- or post- install script that is not properly instantiating the new version as part of the UI package upgrades. |
@jonnyborbs Thank you! |
@jonnyborbs Spent the last while digging thru things, and not seeing a trigger, I even went so far as to grab your version from 2020 and looked for a trigger. Did you see anything ? |
Sorry, I'm not clear what you mean by trigger here. Do you mean an event that could have triggered the update? Only thing I can think of is I had to shut the RPi down for the first time in ages due to some electrical work I was doing around that time. |
I was looking for a trigger in the code, that would cause hb-config to be erased / truncated What date / time do you have for these ? pi@homebridge:~ $ ls -l /etc/update-motd.d/* |
What commands did you do to make this happen and did it affect the system running without a rebuild of config? |
|
Scroll up a bit, I posted a step by step |
This? sudo wget https://raw.githubusercontent.com/homebridge/homebridge-raspbian-image/latest/stage3_homebridge/01-homebridge/files/hb-config-new -O=/usr/local/sbin/hb-config-new ; sudo chmod +x /usr/local/sbin/hb-config-new |
@jonnyborbs What is in the unattended-upgrades file ? |
Keep scrolling. That is one step and that version has a typo in it. |
Don't worry, I'm too scared at trying if I have to pull it together, if you have a moment it would be good for all steps and commands on this response. It would be highly appreciated |
|
I already did. Keep scrolling. |
That worked a charm, big thanks :) |
@jonnyborbs I have a working theory on what happened with hb-config, and would like your opinion if it makes makes sense. 1 - Back in late November the hb-config file was truncated on the homerbidge-raspbian-image repo. ( This was done as the first step in merging hb-config-new back into hb-config ) 2 - In your case on Dec 2, you had ran hb-config and used the update command ( This would have run normally, but it downloaded the blank file and would have broken the file) 3 - Yesterday you tried the command again, and discovered it was missing. Does this make sense ? |
Everything about it except my not remembering having done this |
Am thinking we can close this, as I think this is the scenario that caused the issue. I did scour the various homebridge component code bases looking for other triggers, but did not see anything. Am thinking that unless something else comes up, we can close this. |
Not my issue originally but I agree FWIW, particularly since at least two other folks besides me used my workaround above successfully. Thanks for all the help! |
Thanks for everyone’s support, now closing |
Describe The Bug
HB-Config No longer works after latest update - Nothing happens when typing this command in via SSH
Logs
No response
Config
No response
Homebridge UI Version
Latest
Homebridge Version
Latest
Node.js Version
Latest
Operating System
Official Homebridge Raspberry Pi Image
Environment Info
Raspberry Pi Model
None
The text was updated successfully, but these errors were encountered: