Read the statement by Michael Teeuw here.
Problems restarting MagicMirror (Port 8080 in use ...)
-
Ups, there a bug for pm2 config. I pushed a fix
https://github.com/MichMich/MagicMirror/pull/640The restart is work for me. Are you try stop/start?
pi@raspberrypi:~/MagicMirror $ pm2 status MagicMirror ┌─────────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐ │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │ ├─────────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤ │ MagicMirror │ 0 │ fork │ 7689 │ online │ 1 │ 3h │ 0% │ 2.4 MB │ enabled │ └─────────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘ Use `pm2 show ` to get more details about an app pi@raspberrypi:~/MagicMirror $ pm2 restart MagicMirror Restarts are now immutable, to update environment or conf use --update-env [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0) [PM2] [MagicMirror](0) ✓ ┌─────────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐ │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │ ├─────────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤ │ MagicMirror │ 0 │ fork │ 6447 │ online │ 2 │ 0s │ 7% │ 2.3 MB │ enabled │ └─────────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘ Use `pm2 show ` to get more details about an appBy the way, there a interesting notice in restart process by pm2
Restarts are now immutable, to update environment or conf use --update-envHere I’m using 2.1.5 version
pi@raspberrypi:~/MagicMirror $ pm2 -version 2.1.5 -
@roramirez said in Problems restarting MagicMirror (Port 8080 in use ...):
pi@raspberrypi:~/MagicMirror $ pm2 -version
2.1.5Do I need pm2?
pi@MagicMirror:~ $ pm2 -version -bash: pm2: Kommando nicht gefunden.(translates: command not found)
-
@roramirez what i have to do to get the fix from github? I have installed MM v2.1.0
-
This seem to have fixed the issue. Thanks @roramirez!
-
@binderth said in Problems restarting MagicMirror (Port 8080 in use ...):
Do I need pm2?
Is optional. If you installed by script and choice. After that you can configurate mannually.
-
@ostfilinchen That version don’t have the feature for use pm2 for process control by installer script. What is your problem in 2.1.0?
-
@roramirez my Problem is this error
8080 at Object.exports._errnoException (util.js:1026:11) at exports._exceptionWithHostPort (util.js:1049:20) at Server._listen2 (net.js:1253:14) at listen (net.js:1289:10) at net.js:1399:9 at _combinedTickCallback (internal/process/next_tick.js:77:11) at process._tickCallback (internal/process/next_tick.js:98:9) at Module.runMain (module.js:592:11) at run (bootstrap_node.js:402:7) at startup (bootstrap_node.js:157:9) code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '::', port: 8080 }when i restart the mirror via pm2
-
Thanks guys!
-
@ostfilinchen What pm2 version are using?. There are other process to start control of MagicMirror?
Please, send some log lines of pm2 and what show you
pm2 status -
@roramirez i think the Problem is the pm2. My in Memory Version is 2.0.19 and my local Version is 2.3.0.
if i do pm2 update it updates the Version, but if i restart the pi, i have 2 Versions again.
-
@ostfilinchen So stranger. What is for you memory version?
Note: The last stable release of pm2 is 2.2.1.
I recomend use the last version stable. In my case, the 2.1.5, work fine the restart action.
-
@roramirez thanks for the Information. how can i update to 2.1.5?
-
@ostfilinchen by npm
sudo npm install -g pm2@2.1.5First remove previous version installed
https://docs.npmjs.com/cli/uninstall -
@roramirez i’ve done this and have a look on the restartprocess in the next time. thanks a lot.
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