Replies: 7 comments 8 replies
-
|
Update: running |
Beta Was this translation helpful? Give feedback.
-
Looks like your device cannot connect to the npm repositories, either an issue at npm, or something wrong with your internet. |
Beta Was this translation helpful? Give feedback.
-
|
I have seen some commentary on the npm GitHub with others having the same issue but with different projects (see npm/cli#3078). There were supposed to be some fixes that would help but not sure if these are part of this build. I think they were talking about being better at handling these situations. In my case, it might be something to do with this being a Raspberry Pi v1 as the network and internet connection should be pretty good. However, I wonder, now that I have run |
Beta Was this translation helpful? Give feedback.
-
|
Looks like you ran |
Beta Was this translation helpful? Give feedback.
-
|
OK. I think I'm actually getting somewhere :). However, I'm not there yet :(. Node.js > v12 running the older Raspberry Pi's (based on the AMR v6 architecture) is no longer officially part of the main builds. It was moved to an experimental branch (see https://github.com/nodejs/unofficial-builds#user-content-builds - linux-armv6l). This means that the Zigbee2MQTT installation instructions for Linux (https://www.zigbee2mqtt.io/guide/installation/01_linux.html#installing) don't quite work for this architecture :(. The line: Installs the lower versions. It would be great if you could add a note here for older Pi users to NOT install nodejs or npm from the default repositories using Instead, these users should install nodejs/npm directly from the binaries. Using these instructions (https://gist.github.com/davps/6c6e0ba59d023a9e3963cea4ad0fb516) I was able to install the latest LTS version of nodejs (v16.15) and npm, although npm itelf also need to be upgraded (to v8.10). To determine the Pi architecture, run In which case, grab that nodejs binaries from the unofficial builds site (currently 16.15 - see https://unofficial-builds.nodejs.org/download/release/v16.15.0/): And just to be sure, I updated npm to the latest version: Check the versions to be sure: Note, the npm that was available before updating to the latest version was v8.5.5. This version still had the issue when the network socket would timeout. I'm not sure why this happens. Perhaps it's a NIC setting on the Pi, but the weird thing is that other network related tasks (such as curl, get or even updating the OS) are completed quickly and without issue. Npm, however, is very slow and times out. Version 8.10 of npm does seem to behave better and running Here is the last line of the log: However, running So, for the moment, I'm still stuck. There is NO HTTP proxy involved here, and nothing weird (that I know of) about the network. |
Beta Was this translation helpful? Give feedback.
-
|
OK, after 3 weeks+ of trying simply to install Zigbee2MQTT, I finally have a running system. Npm finally completed and will now start. 🎉 . FWIW, others are still seeing similar issues with npm. I ran a PCAP during an install process and it was clear that most of the TLS connection resets came from the npm registry servers immediately after the npm client sent a TLS Client Hello. I'm not sure if this is as designed, either on the client or server side, but I did follow up in a separate npm issue in their repo. I tried to reduce the number of concurrent sockets the npm client used (using the And finally: I hope this might help someone else who thinks it would be a good idea to repurpose an old Raspbery Pi for this purpose. |
Beta Was this translation helpful? Give feedback.
-
|
Argh, I hit this issue again on the upgrade. I have a feeling this is more to do with the hardware (and Pi v1) rather than anything else. Since last time, the ISP has been changed which uses a completely different connection medium (now FTTP) with a bandwidth of 1 Gbps. I don't see anything odd with any other network device on my home network, so I can only point the finger at the old Pi. I wonder if it would be good to add a note to the installation guide (https://www.zigbee2mqtt.io/guide/installation/01_linux.html#installing) and the upgrade guide (https://www.zigbee2mqtt.io/guide/installation/01_linux.html#for-later-update-zigbee2mqtt-to-the-latest-version) that npm may need some additional teaks when running on older hardware. In this case on the upgrade, I only needed to reduce the maximum number of sockets: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I suspect this has nothing to do with zigbee2mqtt directly, but when installing using the Linux instruction on a Raspberry Pi v1, when issuing the
npm cicommand, the installation fails with aERR_SOCKET_TIMEOUTerror. The last lines of the log are:Running
npm ciagain general stalls and gets automatically killed after some time.I have very little knowledge of the
npm, but runningnpm infogives:And running
npm upalso ended with anERR_SOCKET_TIMEOUTerror, but this time for a different file.I guess the Pi is struggling with the network, although it's wired and should be OK.
Any ideas on how to get this to complete?
Beta Was this translation helpful? Give feedback.
All reactions