• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Limited acces to node-red

    Scheduled Pinned Locked Moved Node-RED
    3 Posts 2 Posters 962 Views
    Loading More Posts
    • 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
      GS
      last edited by

      Hello unipi,

      we are working on a node-red project (Neuron M20.) and it seems like we have limited access to the original functions of node-red and npm. Started with your image 1.0.6, now on 1.2.5. Some basic commands lines line "node-red-stop" - and for example commands for installing own nodes for testing - seems not to work in the console.

      Are there special limitations to your delivered image with node-red?

      Is it possible to update node-red using the node-red script descriped on "Running on Raspberry Pi"? After doing that, more commands - not all - work but node-red seems not to be stable.

      Looking forward to your reply.

      Best regrads
      GS

      Martin KudláčekM 1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        Martin Kudláček @GS
        last edited by

        Hello @GS,
        the Node-RED is maintained by a systemd service. To start and stop it use:

        sudo systemctl start node-red
        sudo systemctl stop node-red

        The image versions you have mentioned (1.0.6, 1.2.5) are not versions of any of our images. The images are versioned by the date when they were built, such as neuron-node-red_image-20201119.0.zip

        Martin KudláčekM 1 Reply Last reply
        Reply Quote 0
        • Martin KudláčekM
          Martin Kudláček @Martin Kudláček
          last edited by

          And this is the installation script we use:

          set -e
          
          # don't ask question
          export DEBIAN_FRONTEND=noninteractive
          
          # gnupg for apt-key
          # g++ for the node-red NPM package
          echo "installation of dependenicies"
          apt install -y --no-install-recommends wget curl gnupg g++ make
          
          # add unofficial NodeJS repository and install the nodejs
          # https://github.com/nodesource/distributions/blob/master/README.md#debmanual
          echo "Installation of nodejs and npm"
          wget -O - -q https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
          echo "deb https://deb.nodesource.com/node_12.x buster main" > /etc/apt/sources.list.d/nodesource.list
          apt update
          apt install -y --no-install-recommends nodejs
          
          # installation of npm
          curl https://www.npmjs.com/install.sh | bash
          
          # Node-RED installation
          echo "Installation of node-red via npm"
          npm install -g --unsafe-perm node-red
          
          # install the Node-RED systemd service
          echo "Setting up the Node-RED to be run via systemd"
          cp "${SCRIPT_FILES}/node-red.service" /etc/systemd/system
          systemctl enable node-red
          1 Reply Last reply
          Reply Quote 1

          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
          • First post
            Last post