MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    unable to get noble package running

    Scheduled Pinned Locked Moved Bug Hunt
    6 Posts 4 Posters 4.7k Views 5 Watching
    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.
    • aschulz90A Offline
      aschulz90
      last edited by

      I have tested your module (both in MM and stand-alone) and in both cases i get "scanning was started. Everything is working fine." shown in the console (i use a RaspberryPi 2 with an USB-Bluetooth adapter).

      Are you runnung MagicMirror with sudo-rights? If there is no console output, then it indicates, that the bluetooth adapter wasn’t started (no “stateChange”-event).

      Is my module fully working for you? I currently can’t think of any reason it should only work in one of the both cases (except for the “version mismatch”-error).

      SvenSommerS 1 Reply Last reply Reply Quote 0
      • SvenSommerS Offline
        SvenSommer @aschulz90
        last edited by

        @aschulz90
        Thanks for your effort and you for quick help. After using a totally new image and installing everything again. I finally started the MM² with sudo-rights without using a ssh-connection.
        This finally solved my issue.

        Via ssh-connection I’m unable to start the MM². I tried DISPLAY=:0 sudo npm start. This caused

        > magicmirror@2.1.0 start /home/pi/MagicMirror
        > electron js/electron.js
        
        No protocol specified
        
        npm ERR! Linux 4.4.45-v7+
        npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
        npm ERR! node v6.9.4
        npm ERR! npm  v3.10.10
        npm ERR! code ELIFECYCLE
        npm ERR! magicmirror@2.1.0 start: `electron js/electron.js`
        npm ERR! Exit status 1
        ...
        

        Is there a way to start the MM² via ssh with sudo rights?

        Looking for some building inspiration?
        Check out my large, thin and metal framed mirror on robstechlog.com.

        Modules released:
        MMM-GoogleAnalytics
        MMM-GrafanaChart
        MMM-GrafanaGauges

        aschulz90A OdomLinxO 2 Replies Last reply Reply Quote 0
        • aschulz90A Offline
          aschulz90 @SvenSommer
          last edited by

          @SvenSommer

          Here the following command is suggested:

          DISPLAY=:0 nohup npm start &

          1 Reply Last reply Reply Quote 0
          • OdomLinxO Offline
            OdomLinx @SvenSommer
            last edited by

            @SvenSommer Late but…
            https://github.com/sandeepmistry/noble#running-without-rootsudo
            Running without root/sudo
            Run the following command:

            sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
            

            This grants the node binary cap_net_raw privileges, so it can start/stop BLE advertising.

            Note: The above command requires setcap to be installed, it can be installed using the following:

            sudo apt-get install libcap2-bin
            

            This works on my Zero W with Debian Stretch

            1 Reply Last reply Reply Quote 1
            • K Offline
              kunakasaki
              last edited by

              @SvenSommer this solution worked for ur project?
              Having the same problem to run noble via ssh.

              for me the command : sudo setcap cap_net_raw+eip $(eval readlink -f which node) , seems to do nothing.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy