-
Notifications
You must be signed in to change notification settings - Fork 64
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
3.0.15 won't start web interface after updating from previous version with node version updated #124
Comments
Same here, as I wrote in the other open issue you can use the Synology integrated node.js as a workaround until it is clarified what is wrong with this updated package. My guess is that it installed a wrong node.js binary which isn't compiled for the cpu architecture we use. |
Same... homberidge UI not accesable after update. |
I have the exact same problem. Really annoying because part of my smart home stopped working. I'm going to check out the above workaround. |
How do I change which node.js the synology package uses?
|
edit the file /var/packages/homebridge/target/app/source.sh and replace the path for HB_SERVICE_NODE_EXEC_PATH to /var/packages/Node.js_v18/target/usr/local/bin/node so the line should look like this: export HB_SERVICE_NODE_EXEC_PATH="/var/packages/Node.js_v18/target/usr/local/bin/node" |
Can any kind soul talk me through how to make that edit? |
Talk through any of the above options would be very much appreciated... |
this issue seems not a general. I have a DS1821+ and here are no problems after updtating to 3.0.15 from previous version (with edited node config) |
Hi, now that I know where the node packaged with homebride is, I tried to run it manually and it gives this error:
I did the change and it works now. Thanks For the people asking how to do this:
You coud do this installing a graphical text editor in DSM but I would not know how to get root access for that. |
No issues on DS918+ nor on DS920+ running DSM 7.2-64570 Update 1. Both have an Intel Celeron processor.
Maybe the issue is related to the DSM version instead of the cpu? 7.1 doesn't contain the shared library that the homebridge-bundled NodeJS needs? |
Maybe? I have DS918+ and DSM 7.1.1-42962 Update 6, which is the latest build (not beta or anything like that, at least according to the information in the control panel). |
No, it's not. It is the latest shown in the control panel, though. From the release notes:
Not suggesting you should upgrade, although it would be interesting to see if that would indeed fix the issue. Not sure if the original issue (cannot upgrade to NodeJS v18) can be fixed on DSM 7.1, other than, of course, using the Synology-provided NodeJS v18 package. Maybe the new version of the Homebridge package should be made available only to DSM 7.2? |
Hmm, I didn't know that. Synology updates are pretty weird right now. Since DSM7, actually. I'll give it a shot, see if that solves the problem. |
Hmm this sounds like a real mess. I'm definitely not happy with editing config files. I only use HomeBridge to bring my CCTV Cameras into the Home app on iOS. I can manage without that until a fixed version arrives. |
@pasqualito79 Am thinking that to resolve this issue change This will place a dependancy on the Synology supplied nodejs being installed. |
It's work for me. |
Within an hour, am going to publish a change to
Any feedback ? |
Is there any way to download the older package so it can be reinstalled? |
It seems that the update of a plugin won't work that way, it'll still point to the /var/packages/homebridge/target/app/bin/node and the update of a plugin will fail. I didn't look into this more as of now, so I don't know where the plugin update of the web UI stored the node.js binary path. |
I just upgraded and unfortunately it still doesn't work. The package pretends to be running but still can't get into the web-ui. DS918+ / DSM 7.2-64570 Update 1 Tested via VPN and remote access with mapped ports - both worked before the update. I'll try the local network again when I get home, but I don't think it will work either way. For me, it was the impulse to finally migrate some things directly into Home Assistant and I will probably leave HomeBridge completely. |
@dbrewood The older version is here https://github.com/homebridge/homebridge-syno-spk/releases/tag/3.0.9 Download and manually install the appropriate package |
Thanks for responding, 2 questions:
Sorry for asking but I can never work out where to get the 'final' 'user usable that is compiled' files on Git :) |
@dbrewood DS918+ is intel based, braswell Sorry, you are correct, 3.0.10 is the previous release - https://github.com/homebridge/homebridge-syno-spk/releases/tag/3.0.10 Looking closer at 3.0.10, it was never published |
Make sure to put the node package as a dependency for DSM 7.1 El 19 jul 2023, a las 15:28, Northern Man ***@***.***> escribió:
Within an hour, am going to publish a change to source.sh
# Use Synology supplied NodeJS v18 if installed - #124
if [ -f /var/packages/Node.js_v18/target/usr/local/bin/node ]; then
export HB_SERVICE_NODE_EXEC_PATH="/var/packages/Node.js_v18/target/usr/local/bin/node"
else
export HB_SERVICE_NODE_EXEC_PATH="/var/packages/homebridge/target/app/bin/node"
fi
Any feedback ?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@pasqualito79 - When plugins are installed or updated it uses a unix shell to run a npm command, so it looks for node on the path. This should resolve that
|
works, thanks! |
Thanks, hmm it looks like there aren't any assets to download for 3.0.10 so I guess I'll have to go with 3.0.9 :) Thanks for confirming it is braswell which is needed. Darn it won't allow me to downgrade..... I'll have to wait until it is fixed then. I don't want to risk uninstalling it and losing my settings. |
Excuse the inexperienced question, but if a 'new' package is made available with this patch in it can that be downloaded and installed to fix the issue? |
And its published, fingers crossed |
You sir are a positive hero, it works perfectly for me on my DS918+ Many many thanks! |
Just updating to 7.2 solved everything here.... |
I was already running 7.2... |
it's still good to have an option for 7.1.1 because a lot of devices aren't able to be updated to 7.2 anymore, like my DS415play ;-) |
I was running fine on 3.0.15 now I can't get homebridge to start with 3.0.16. Update. Apparently I had to install Node.js from the package center also. |
Should this be displayed as a Dependent Package in Package Center or even auto-install when installing Homebridge? |
Seems 3.0.16 is delivered with some strange sources.sh?
for me it works this way, but I think this crippled the ones that doesn't have the Synology node.js 18 installed. Why is the whole thing delivered as comments? |
@pasqualito79 when creating the patch I was debating between using a bundled nodejs or the Synology supplied one, and had coded it originally to make it switchable. But changed the approach before the release, and commented out the other approach. for the dependency I’m working thru adding it to the package manifest, to automate the install. this is the test version https://github.com/NorthernMan54/homebridge-syno-spk/releases/tag/3.0.19 ps the version numbers are wacky |
Release 3.0.17 Fixes the dependency for the Synology NodeJS 18 package, and makes sure that it is installed prior allowing the homebridge package to be installed. Also included are fixes to the command line sudo interface made by @ebaauw |
I just upgraded my DS1515+ from |
Me again guys..... I updated the Homebridge GUI again today and didn't read the warnings properly (yeah I know, idiot me) and it looks lime the node.js issues are back. Homebridge in dead in the water again. |
Why that? I also update to the newest version and no problems...it just says that the homebridge-ui needs node.js 18 or 20 which should be that case when using the homebridge-syno package |
Hmm the latest version I can ese is v18 and I have that installed..... |
This is running Homebridge 3.0.17, I can't see a later version being available? |
No, there's no newer version. |
Okay does this help at all: `innerError Error: Cannot find module '../build/Debug/pty.node'
|
The full log is attached.... |
@dbrewood - If you have ssh access, and the make tools installed, you can try this - |
Hmm newbie to SSH stuff. I can turn it on in the Synology System. I've no ideas how to log into it though or how to check if the make tools are installed. |
Okay I got in via SSH and terminal came back with: `adminuser@syncity:/$ sudo hb-service rebuild npm ERR! A complete log of this run can be found in: /var/packages/homebridge/home/.npm/_logs/2023-10-31T19_38_18_264Z-debug-0.log So maybe I don't have the tools you mention? |
Yep the exactly the problem I have... I'll have a look at that quick fix tomorrow. I lost my config backups and yep I've had other things on my plate so never resaved them (major hospital issues) out. If your fix will be within a few days I'll wait for it..... :) |
If you look around on your NAS, homebridge does daily backups, I just don't know where the files get stored but I think they may be here /volume1/homebridge/backups/instance-backups And it should have files like this -rw-r--r-- 1 homebridge homebridge 395609 Oct 25 01:03 homebridge-backup-BC223DE3CF31.1698210228527.tar.gz For the fix, to recover your system you will need to go back to the older version then go forward with the fixed version. |
Ah ha thanks for that I'll take a look tomorrow. Just about to hit family TV time now :) |
I had the same problem and I fixed it. I try to explain what I did, but I am not sure I remember everything. First you need to ssh to the nas
Start the app again Good luck. I might have forgotten something and am no expert at all so do it at your own risk |
@NorthernMan54 I followed the instructions you suggested and I am indeed up and running again. I still have the above message saying I need to update the Homebridge UI, but as that is what broke things I'll hold off with that until somebody on here advises it is safe to do so. @manudar thanks for those additional suggestions I've filed them away for future reference :) |
Analysis
Web interface do not start.
Expected Behavior
Web interface should start
Steps To Reproduce
In DSM 7.1.1-42962 Update 6 in an INTEL Xeon D-1527 nas, with the previous versionof Homebridge, and some plugins that would not update to the lates version with the version of node installed in the package, connected to the terminal of Homebridge and updated to a newer node version (sorry I don't remember which one and I cannot check after the update). After this, the plugins updated.
Update to 3.0.15 and the web user interface does not start, I get the connextion restarted browser error each time.
Logs
Configuration
Environment
Process Supervisor
not applicable
Additional Context
No response
The text was updated successfully, but these errors were encountered: