You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message means that the application couldn't bind to the port it's configured to listen on (8080 by default), because some other process is using it.
This can be another instance of your app, or something else completely. You can use sudo lsof -i :8080 to see what it is, then kill it.
You can give your Vapor application a pre-actions to automatically delete the port being used each time you build and run your project.
The credit goes to @tiborbodecs and you can find the information on his website.
Open the Scheme of your app and add this pre-action before your project run:
Fatal error: Error raised at top level: bind(descriptor:ptr:bytes:) failed: Address already in use (errno: 98): file /home/buildnode/jenkins/workspace/oss-swift-4.1-package-linux-ubuntu-16_04/swift/stdlib/public/core/ErrorType.swift, line 191
Current stack trace:
0 libswiftCore.so 0x00007f0adfee15c0 _swift_stdlib_reportFatalErrorInFile + 221
1 libswiftCore.so 0x00007f0adfc503dc + 1369052
2 libswiftCore.so 0x00007f0adfe8a222 + 3703330
3 libswiftCore.so 0x00007f0adfe8b689 + 3708553
4 libswiftCore.so 0x00007f0adfc4fad6 + 1366742
5 libswiftCore.so 0x00007f0adfe89feb + 3702763
6 libswiftCore.so 0x00007f0adfc4fad6 + 1366742
7 libswiftCore.so 0x00007f0adfdbcf79 + 2862969
8 libswiftCore.so 0x00007f0adfc8d960 swift_errorInMain + 318
9 Run 0x0000002e7410d252 + 5984850
10 libc.so.6 0x00007f0add4ab740 __libc_start_main + 240
11 Run 0x0000002e73c04189 + 704905
It's the same error to run "vapor run" on MAC(local), but it's normal to run "vapor update".
Error messages are always reported on Ubuntu(server)
The text was updated successfully, but these errors were encountered: