Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Node-RED
  4. mysdb not finding node_sqlite3.node

mysdb not finding node_sqlite3.node

Scheduled Pinned Locked Moved Node-RED
10 Posts 3 Posters 2.9k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gbfromhb
    wrote on last edited by gbfromhb
    #1

    Here is what I'm getting when I start node-red:

    
    Start Node-RED
    
    Once Node-RED has started, point a browser at http://192.168.1.168:1880
    On Pi Node-RED works better with the Firefox or Chrome browser
    
    Use   node-red-stop                          to stop Node-RED
    Use   node-red-start                         to start Node-RED again
    Use   node-red-log                           to view the recent log output
    Use   sudo systemctl enable nodered.service  to autostart Node-RED at every boot
    Use   sudo systemctl disable nodered.service to disable autostart on boot
    
    To find more nodes and example flows - go to http://flows.nodered.org
    
    Starting as a systemd service.
    Started Node-RED graphical event wiring tool.
    25 Jun 01:15:56 - [info]
    Welcome to Node-RED
    ===================
    25 Jun 01:15:56 - [info] Node-RED version: v0.18.7
    25 Jun 01:15:56 - [info] Node.js  version: v8.11.3
    25 Jun 01:15:56 - [info] Linux 4.14.50-v7+ arm LE
    25 Jun 01:15:57 - [info] Loading palette nodes
    25 Jun 01:16:03 - [info] Dashboard version 2.9.4 started at /ui
    25 Jun 01:16:06 - [warn] ------------------------------------------------------
    25 Jun 01:16:06 - [warn] [node-red-contrib-mysensors/mysdb] Error: Cannot find module '/home/pi/.node-red/node_modules/sqlite/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node'
    25 Jun 01:16:06 - [warn] ------------------------------------------------------
    25 Jun 01:16:06 - [info] Settings file  : /home/pi/.node-red/settings.js
    25 Jun 01:16:06 - [info] User directory : /home/pi/.node-red
    25 Jun 01:16:06 - [warn] Projects disabled : editorTheme.projects.enabled=false
    25 Jun 01:16:06 - [info] Flows file     : /home/pi/.node-red/flows_HS-HomeAuto.json
    25 Jun 01:16:06 - [info] Server now running at http://127.0.0.1:1880/
    25 Jun 01:16:06 - [info] Starting flows
    25 Jun 01:16:06 - [info] Started flows
    25 Jun 01:16:06 - [info] [sqlitedb:d9370fe2.50bc5] opened /home/pi/dbFiles/ByronWorld.db ok
    

    If I was to guess it is not finding the sqlite database file. If this is the case I already had sqlite installed before I added node-red-contrib-mysensors, and have a folder I have an other database file in. Can I configure this to have the db files in the same directory?

    If I'm completely off on what I think is going on here, and somebody can guide me on getting this resolved, I would be great-full.

    Thanks Glenn

    T 1 Reply Last reply
    0
    • G gbfromhb

      Here is what I'm getting when I start node-red:

      
      Start Node-RED
      
      Once Node-RED has started, point a browser at http://192.168.1.168:1880
      On Pi Node-RED works better with the Firefox or Chrome browser
      
      Use   node-red-stop                          to stop Node-RED
      Use   node-red-start                         to start Node-RED again
      Use   node-red-log                           to view the recent log output
      Use   sudo systemctl enable nodered.service  to autostart Node-RED at every boot
      Use   sudo systemctl disable nodered.service to disable autostart on boot
      
      To find more nodes and example flows - go to http://flows.nodered.org
      
      Starting as a systemd service.
      Started Node-RED graphical event wiring tool.
      25 Jun 01:15:56 - [info]
      Welcome to Node-RED
      ===================
      25 Jun 01:15:56 - [info] Node-RED version: v0.18.7
      25 Jun 01:15:56 - [info] Node.js  version: v8.11.3
      25 Jun 01:15:56 - [info] Linux 4.14.50-v7+ arm LE
      25 Jun 01:15:57 - [info] Loading palette nodes
      25 Jun 01:16:03 - [info] Dashboard version 2.9.4 started at /ui
      25 Jun 01:16:06 - [warn] ------------------------------------------------------
      25 Jun 01:16:06 - [warn] [node-red-contrib-mysensors/mysdb] Error: Cannot find module '/home/pi/.node-red/node_modules/sqlite/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node'
      25 Jun 01:16:06 - [warn] ------------------------------------------------------
      25 Jun 01:16:06 - [info] Settings file  : /home/pi/.node-red/settings.js
      25 Jun 01:16:06 - [info] User directory : /home/pi/.node-red
      25 Jun 01:16:06 - [warn] Projects disabled : editorTheme.projects.enabled=false
      25 Jun 01:16:06 - [info] Flows file     : /home/pi/.node-red/flows_HS-HomeAuto.json
      25 Jun 01:16:06 - [info] Server now running at http://127.0.0.1:1880/
      25 Jun 01:16:06 - [info] Starting flows
      25 Jun 01:16:06 - [info] Started flows
      25 Jun 01:16:06 - [info] [sqlitedb:d9370fe2.50bc5] opened /home/pi/dbFiles/ByronWorld.db ok
      

      If I was to guess it is not finding the sqlite database file. If this is the case I already had sqlite installed before I added node-red-contrib-mysensors, and have a folder I have an other database file in. Can I configure this to have the db files in the same directory?

      If I'm completely off on what I think is going on here, and somebody can guide me on getting this resolved, I would be great-full.

      Thanks Glenn

      T Offline
      T Offline
      tbowmo
      Admin
      wrote on last edited by
      #2

      @gbfromhb
      How did you install the mysensors nodered nodes? It seems that something might went wrong, and some dependencies is missing

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gbfromhb
        wrote on last edited by
        #3

        @tbowmo thanks for the quick response. I had started with Raspian Stretch.
        To install node-red I used the following:

        bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
        

        I then installed sqlite3, and phliteadmin, and finally mySensors.

        I just started over, and skipped the whole sqlite3 and phpliteAdmin, and it seems to be working great, thanks again for the response.

        1 Reply Last reply
        1
        • D Offline
          D Offline
          David Barber
          wrote on last edited by
          #4

          Hi. I'm having the same problem getting these extensions to install on my (original) Pi. Going back to a fresh version of stretch, then reinstalling the node-red extensions didn't help.

          It appears to be failing on sqlite3, which I can't add myself via npm either - as there are no pre-built binaries for sqlite3 (4.0.1) or node (8.11.3). Letting it build it itself with node-gyp (the standard fallback) just hangs. Grateful for any thoughts?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tbowmo
            Admin
            wrote on last edited by
            #5

            @David-Barber

            Did you use npm to install the mysensors nodes in node-red? Or the node-red UI?

            I have experienced that you need to use the cli to install it, or else node-gyp is not working..

            I'm running my setup on an atom based machine, so running standard amd64 kernel, so haven't tried on a rPi.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              David Barber
              wrote on last edited by
              #6

              Thanks @tbowmo. I used the cli. It seems to be a common problem with sqlite3 and the Pi, although the solutions elsewhere haven't worked for me yet. I'm using an old Pi as that is what I have lying around... Basically, the node-gyp is starting to build but then just hangs. I guess it could be a memory issue on my old pi...

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tbowmo
                Admin
                wrote on last edited by
                #7

                @David-Barber

                Could be an issue with low memory, is it a 256Mb or a 512Mb r-pi?

                D 1 Reply Last reply
                0
                • T tbowmo

                  @David-Barber

                  Could be an issue with low memory, is it a 256Mb or a 512Mb r-pi?

                  D Offline
                  D Offline
                  David Barber
                  wrote on last edited by
                  #8

                  @tbowmo Just 256MB I was going to get a Pi3 anyway for something else, so I 'll see if that makes a difference. Thanks.

                  Shame it was nice to use something just sitting around.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    David Barber
                    wrote on last edited by
                    #9

                    Just to update this thread. It worked on a pi3 so I assume it was a memory issue. All running as expected now.

                    T 1 Reply Last reply
                    0
                    • D David Barber

                      Just to update this thread. It worked on a pi3 so I assume it was a memory issue. All running as expected now.

                      T Offline
                      T Offline
                      tbowmo
                      Admin
                      wrote on last edited by
                      #10

                      @david-barber

                      Thanks for the update. I'll add a note to the documentation, about minimum requirements.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      15

                      Online

                      12.0k

                      Users

                      11.2k

                      Topics

                      113.4k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular