Install / update hosed my box

83 views
Skip to first unread message

Steve Mitchell

unread,
Dec 28, 2017, 3:01:26 PM12/28/17
to Signal K
I have been running SignalK for a long time, and after today's announcement of the new Admin UI, I decided to save my settings and re-install from scratch just for fun.

During npm install, I got some weird errors, and then my box stopped responding altogether.  This is a very reliable Raspberry Pi that I have had zero issues with the last year plus of running SignalK.  The last error/output from npm install was:

pi@grace:~/signalk-server-node $ npm install
npm WARN deprecated cry...@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN deprecated objec...@0.2.0: Please update to the latest object-keys
npm WARN deprecated node...@1.4.8: Use uuid module instead
npm WARN deprecated lod...@2.4.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN prefer global json...@1.6.0 should be installed with -g
npm WARN prefer global ji...@0.4.18 should be installed with -g

> sql...@3.1.13 install /home/pi/signalk-server-node/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Pre-built binaries not found for sql...@3.1.13 and no...@6.12.2 (node-v48 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/signalk-server-node/node_modules/sqlite3/build'
  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o


I got network monitoring errors shortly after that (I use Zabbix everywhere) that my disk I/O was maxed out, swap was at 100%, and then eventually a few minutes later, the box was gone off the network.

Has anyone else seen this?

Teppo Kurki

unread,
Dec 28, 2017, 3:41:22 PM12/28/17
to signalk
> sql...@3.1.13 install /home/pi/signalk-server-node/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Pre-built binaries not found for sql...@3.1.13 and no...@6.12.2 (node-v48 ABI) (falling back to source compile with node-gyp)

Sorry to hear about your troubles.

All I can say that sqlite compile is pretty heavy on RPi, takes a while, but I've been able to successfully compile it.

Sqlite is there for mbtiles chart support. We could make @mapbox/mbtiles an optional install for those who want to use mbtiles charts, and save considerably in installation time. I have another feature in the pipeline that will use Sqlite and I believe Joachim switched his polars plugin to sqlite as well.

Another option would be to pull the whole charts support into an optional plugin.

But that won't bring back your hosed RPi. 

Steve Mitchell

unread,
Dec 28, 2017, 3:43:34 PM12/28/17
to Signal K
Thanks Teppo. That's good to know that SQLite was added to support something, and that I didn't mess something up or miss when it was installed before. 

The good news is that the box still responds to pings, so it might be continuing to compile stuff even though I can't get SSH or anything else to respond. The terminal window I had up while installing things is still active inasmuch as it hasn't disconnected. 

I think it would be a good idea to provide some way of avoiding this for others if possible. I know several other people locally, and probably even more in the community, that use an RPI for SignalK!

Teppo Kurki

unread,
Dec 28, 2017, 4:23:39 PM12/28/17
to signalk
I just pushed a change that makes mbtiles support optional. Hope it helps more than hinders.

--
You received this message because you are subscribed to the Google Groups "Signal K" group.
To unsubscribe from this group and stop receiving emails from it, send an email to signalk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve Mitchell

unread,
Dec 29, 2017, 3:23:07 PM12/29/17
to sig...@googlegroups.com
Any details on how to use that change? I just pulled the newest version and it still tried to compile SQLite.  Alternatively, can I install SQLite system-wide and have it leverage that instead? Through apt I have access to a pretty standard version of SQLite... 

--
You received this message because you are subscribed to a topic in the Google Groups "Signal K" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/signalk/oX0av4ypDXw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to signalk+unsubscribe@googlegroups.com.

Teppo Kurki

unread,
Dec 29, 2017, 4:35:44 PM12/29/17
to signalk
Sorry, in my haste I had not committed the real dependency in package.json. Please try again.

Steve Mitchell

unread,
Dec 29, 2017, 10:02:12 PM12/29/17
to Signal K
All good! I am back up and running on my Pi and testing out the new admin interface. 
To unsubscribe from this group and stop receiving emails from it, send an email to signalk+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Signal K" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/signalk/oX0av4ypDXw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to signalk+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Signal K" group.
To unsubscribe from this group and stop receiving emails from it, send an email to signalk+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages