{"_id":"54d03542c795960d009f4219","__v":2,"version":{"_id":"54cf411f9d09bb0d00a17a1f","project":"54cf411f9d09bb0d00a17a1c","__v":14,"createdAt":"2015-02-02T09:19:27.656Z","releaseDate":"2015-02-02T09:19:27.656Z","categories":["54cf41209d09bb0d00a17a20","54cfb99bbba1a023008741af","54cfb9a65ff7e617002bbd7f","54cfba03bba1a023008741b6","54cfba0ebba1a023008741b8","54cfba19bba1a023008741b9","54cfba29bba1a023008741bb","54cfba345ff7e617002bbd87","54cfba3ebba1a023008741bc","54cfba473995cf0d0006f6f0","54e371b18ef7552300409bf2","54e37aa5e887c50d005ef629","555a4e9b147f91190092d137","56b0e91802f4bc0d006ce254"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"54cfba19bba1a023008741b9","__v":24,"pages":["54d0351994f7980d0081b848","54d03542c795960d009f4219","54d0357d94f7980d0081b84b","54d039c3f530ca0d0005396a","54d039e394f7980d0081b859","54d03a1294f7980d0081b85b","54d03a3bf530ca0d0005396e","54d03a9294f7980d0081b85e","54d03abdc795960d009f4220","54d03ade94f7980d0081b860","54d03b02f530ca0d00053970","54d03b3794f7980d0081b862","54d03b69f530ca0d00053973","54d03b8994f7980d0081b864","54d03bb1c795960d009f4222","54d8f49e6a09052100a6b60e","54ec495d7ab3172d00c01a92","54ec6f2ec0c0ba1700386fa6","54f6f3f852174719008f6168","5628ed9b48742a0d00474591","564b714fcc472d0d00da941e","564b9e65288b1a2b00b3ae7d","564ba4872cabb82100943f0d","56995b3e54d7db17000ee9e6"],"project":"54cf411f9d09bb0d00a17a1c","version":"54cf411f9d09bb0d00a17a1f","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-02T17:55:37.930Z","from_sync":false,"order":4,"slug":"running-and-debugging","title":"Running and Debugging"},"parentDoc":null,"project":"54cf411f9d09bb0d00a17a1c","user":"54cfa8c8a8a4fd0d00b7fd1c","updates":["576eef9db81db017009e305d"],"next":{"pages":[],"description":""},"createdAt":"2015-02-03T02:41:06.932Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"Sometimes you run into issues when you run your project. Here you will find the most common issues and how to solve them.\n\n## Address in use or similar\n\nThe most common reason for an error thrown by your app stating that a port or address is in use is the fact that some process is already running/listening on that port/address. You need to take a look for those and kill the processes conflicting with your app:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// Find the process\\nlsof -i tcp:$PORT\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nIf any relevant process is running you will get a list looking like this:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"COMMAND PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME\\napache2 699 ubuntu    4u  IPv6 83213152      0t0  TCP *:http-alt (LISTEN)\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nYou now can kill that proccess. Make sure you replace PID with the ID of the process.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// Kill the process\\nkill -9 PID\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nFor the console wizards:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"kill -9 $(lsof -i:$PORT -t)\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"common-errors","type":"basic","title":"Common Errors"}
Sometimes you run into issues when you run your project. Here you will find the most common issues and how to solve them. ## Address in use or similar The most common reason for an error thrown by your app stating that a port or address is in use is the fact that some process is already running/listening on that port/address. You need to take a look for those and kill the processes conflicting with your app: [block:code] { "codes": [ { "code": "// Find the process\nlsof -i tcp:$PORT", "language": "shell" } ] } [/block] If any relevant process is running you will get a list looking like this: [block:code] { "codes": [ { "code": "COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME\napache2 699 ubuntu 4u IPv6 83213152 0t0 TCP *:http-alt (LISTEN)", "language": "shell" } ] } [/block] You now can kill that proccess. Make sure you replace PID with the ID of the process. [block:code] { "codes": [ { "code": "// Kill the process\nkill -9 PID", "language": "shell" } ] } [/block] For the console wizards: [block:code] { "codes": [ { "code": "kill -9 $(lsof -i:$PORT -t)", "language": "shell" } ] } [/block]