• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

EADDRINUSE: address already in use

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 2 Posters 1.1k Views 2 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.
  • E Offline
    ebolisa @sdetweil
    last edited by ebolisa Feb 13, 2021, 5:03 PM Feb 13, 2021, 5:03 PM

    @sdetweil actually, I use npm trhrough service to autostart it.
    This’ what I get in the log. I know the app is talking to me, but I just cannot interpret it :confused_face:

    0 info it worked if it ends with ok
    1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'stop' ]
    2 info using npm@6.14.11
    3 info using node@v10.23.3
    4 verbose stack Error: missing script: stop
    4 verbose stack     at run (/usr/lib/node_modules/npm/lib/run-script.js:155:19)
    4 verbose stack     at /usr/lib/node_modules/npm/lib/run-script.js:63:5
    4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:116:5
    4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:436:5
    4 verbose stack     at checkBinReferences_ (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:391:45)
    4 verbose stack     at final (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:434:3)
    4 verbose stack     at then (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:161:5)
    4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:382:12
    4 verbose stack     at /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:123:16
    4 verbose stack     at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
    5 verbose cwd /home/pi/MagicMirror
    6 verbose Linux 5.10.11-v7l+
    7 verbose argv "/usr/bin/node" "/usr/bin/npm" "stop"
    8 verbose node v10.23.3
    9 verbose npm  v6.14.11
    10 error missing script: stop
    11 verbose exit [ 1, true ]
    
    S 1 Reply Last reply Feb 13, 2021, 5:58 PM Reply Quote 0
    • S Away
      sdetweil @ebolisa
      last edited by Feb 13, 2021, 5:58 PM

      @ebolisa there are no nom commands stop.

      u have to hit ctrl-c in the window where u started it or use sudo kill to kill the process running detached

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply Feb 13, 2021, 6:55 PM Reply Quote 0
      • E Offline
        ebolisa @sdetweil
        last edited by Feb 13, 2021, 6:55 PM

        @sdetweil Not sure I’m following you. The MM boot is done via the service and it works. Meaning, MM app is booting and the display looks as designed.
        What I showed in my last post is the content of the last log file. There’s an error but I don’t know how to interpret it.

        S 1 Reply Last reply Feb 13, 2021, 7:07 PM Reply Quote 0
        • S Away
          sdetweil @ebolisa
          last edited by Feb 13, 2021, 7:07 PM

          @ebolisa it says therenis no npm stop function

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Feb 13, 2021, 7:12 PM Reply Quote 0
          • E Offline
            ebolisa @sdetweil
            last edited by Feb 13, 2021, 7:12 PM

            @sdetweil Thanks, I’m probably looking into a non existing problem. Will check.

            S 1 Reply Last reply Feb 13, 2021, 7:18 PM Reply Quote 0
            • S Away
              sdetweil @ebolisa
              last edited by sdetweil Feb 14, 2021, 12:49 PM Feb 13, 2021, 7:18 PM

              @ebolisa if u started it as a service, then u need to stop it as a sevice

              you can remove the service and use pm2 to auto start and give u commands to stop

              run the fixuppm2 script from my scripts

              https://github.com/sdetweil/MagicMirror_scripts

              pm2 --help for all the things u can do

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Feb 14, 2021, 12:18 PM Reply Quote 0
              • E Offline
                ebolisa @sdetweil
                last edited by Feb 14, 2021, 12:18 PM

                @sdetweil thank you. That explains my error shown in the first post.
                I’m using npm and a service because I used this procedure to install MM https://docs.magicmirror.builders/getting-started/installation.html#manual-installation

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  7/9
                  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