Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error listen EADDRINUSE: address already in use :::8080 #493

Closed
cdisk opened this issue Feb 1, 2020 · 2 comments
Closed

error listen EADDRINUSE: address already in use :::8080 #493

cdisk opened this issue Feb 1, 2020 · 2 comments

Comments

@cdisk
Copy link

cdisk commented Feb 1, 2020

When I use code-server to install the VSIX file.
and after restart browser, IDE alert message say : The SQLTools Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.

The logs output:
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Info - 4:28:05 AM] Connection to server got closed. Server will restart.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Info - 4:28:06 AM] Connection to server got closed. Server will restart.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Info - 4:28:06 AM] Connection to server got closed. Server will restart.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Info - 4:28:07 AM] Connection to server got closed. Server will restart.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Error - 4:28:08 AM] Connection to server got closed. Server will not be restarted.

another my code-server run as docker image. default port is 8080.

I enter this container, run "ps" command, found the following command:
/usr/local/bin/code-server /home/coder/.local/share/code-server/extensions/mtxr.sqltools-0.21.6/languageserver.js --node-ipc --clientProcessId=1050

I think, The correct command should be:
node /home/coder/.local/share/code-server/extensions/mtxr.sqltools-0.21.6/languageserver.js --node-ipc --clientProcessId=1050

Please help me how can I fix it, Thanks everyone.

@cdisk cdisk added the triage label Feb 1, 2020
@mtxr
Copy link
Owner

mtxr commented Feb 7, 2020

This is more like a https://github.com/cdr/code-server issue than the extension itself.

We don't use port 8080 for nothing, so it shouldnt be breaking.

I don't really understand how code-server works, so I can't help much, also I've in a hurry to deliver v0.22, would you mind opening this issue in their project?

They might have a solution quickly for you.

Thanks!

@ggongaware
Copy link

I attempted the same thing, and found a work around - On the code-server server, make sure nodejs is installed in the path, then enable in the user settings.json:

{ "sqltools.useNodeRuntime": true }

I can now run queries and see results in the code-server browser :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants