Skip to content

Commit

Permalink
README.md / Troubleshooting - port taken
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
JanneKiiskila committed Dec 11, 2023
1 parent c9036fa commit 6d149ea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <int>``).

0 comments on commit 6d149ea

Please sign in to comment.