From 6d149ea5c0116b2e312201932a1ec899af47629a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Mon, 11 Dec 2023 11:52:48 +0200 Subject: [PATCH] README.md / Troubleshooting - port taken Add tip how to see who's taking the port. You could be running accidentally another instance of mbed-edge already, that you forgot about. Or snap-pelion-edge... --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index b7b58fe..7cdb905 100644 --- a/README.md +++ b/README.md @@ -494,3 +494,24 @@ This generates the Doxygen documentation under `build-doc/doxygen` folder. Run for example: `firefox build-doc/doxygen/index.html &` to view them. NOTE! If you have a `snap`-based Firefox in use, it will not have access rights to show local files anymore. + + +## Troubleshooting + +### mbed-edge will not start due port being taken + +``` +$ bin/edge-core +2023-12-11 11:42:06.302 tid: 20972 [ERR ][serv]: Couldn't bind to port 8080. +2023-12-11 11:42:06.302 tid: 20972 [ERR ][serv]: Cannot create http server to port 8080. +2023-12-11 11:42:06.302 tid: 20972 [ERR ][serv]: Could not create http server. +``` + +Someone else has taken port 8080. You can see who is taking the port with: +``` +sudo lsof -i :8080 +``` + +Solutions: +- Remove that other program using that same port. +- Start mbed-edge to a different port than 8080 (`bin/mbed-edge --http-port ``).