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

[Remote-SSH Bug]: unexpected mac address format #8149

Closed
2 of 3 tasks
markieboy223 opened this issue Mar 6, 2023 · 12 comments
Closed
2 of 3 tasks

[Remote-SSH Bug]: unexpected mac address format #8149

markieboy223 opened this issue Mar 6, 2023 · 12 comments
Assignees
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@markieboy223
Copy link

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It doesn’t connect successfully (same error message)

->

When remote server listen on socket is turned off
image
I cannot connect to my linux server when trying to connect using remote ssh. Does anyone have a solution, this came out of nowhere btw on saturday it was still working properly.

When remote server listen on socket is turned off this happens
image
or this happens
image
image
image

Does anyone know what's going wrong and the solution.

Expected Behavior

Just 2 days ago it was connecting fine as expected.

Steps To Reproduce

No response

Remote-SSH Log

Remote-SSH Log

Spawned remote server: 54389
Waiting for server log...
Waiting for server log...
Waiting for server log...
Waiting for server log...
Waiting for server log...
Waiting for server log...
Waiting for server log...
Waiting for server log...
Waiting for server log...
Waiting for server log...
 
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*

7df6b01e0e3d: start
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==43220==
osReleaseId==ubuntu==
arch==x86_64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime==365==
connectionToken==3d5935c3-e1d3-4069-96e6-531d6164fc5d==
7df6b01e0e3d: end
 channel 3: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused


Anything else?

So far ive tried to change extension settings and the kill vscode server on remote command.
Also i tried connecting with one other device which is my laptop and first time it connected but the second time the same errors occured.

Other devices still work properly just my laptop and dekstop get these errors now.

@markieboy223 markieboy223 added the ssh Issue in vscode-remote SSH label Mar 6, 2023
@bvv400
Copy link

bvv400 commented Mar 6, 2023

Same here...

In de log file on the remote host these entries are the last before the code server stops ..

Visual Studio Code Server .. v 1.76

Error: Unable to retrieve mac address (unexpected format)

Error: Unable to retrieve mac address (unexpected format)
at S (/home/...../.vscode-server/bin/92da9481c0904c6adfe372c12da3b7748d74bdcb/out/vs/server/node/server.main.js:63:3251)
at v (/home/...../.vscode-server/bin/92da9481c0904c6adfe372c12da3b7748d74bdcb/out/vs/server/node/server.main.js:74:8276)
at async /home/..../.vscode-server/bin/92da9481c0904c6adfe372c12da3b7748d74bdcb/out/vs/server/node/server.main.js:74:8133
at Timeout._onTimeout (/home/bvveen/.vscode-server/bin/92da9481c0904c6adfe372c12da3b7748d74bdcb/out/vs/server/node/server.main.js:8:12)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)

I understand on 1 March the server code change and is now using the MAC address as a security....
On my remote server ( Strato VM ) there is no MAC address when I use IP LINK of IP ADDR.

Seems that the change introduced a new problem.

@markieboy223
Copy link
Author

Same here...

In de log file on the remote host these entries are the last before the code server stops ..

Visual Studio Code Server .. v 1.76

Error: Unable to retrieve mac address (unexpected format)

Error: Unable to retrieve mac address (unexpected format) at S (/home/...../.vscode-server/bin/92da9481c0904c6adfe372c12da3b7748d74bdcb/out/vs/server/node/server.main.js:63:3251) at v (/home/...../.vscode-server/bin/92da9481c0904c6adfe372c12da3b7748d74bdcb/out/vs/server/node/server.main.js:74:8276) at async /home/..../.vscode-server/bin/92da9481c0904c6adfe372c12da3b7748d74bdcb/out/vs/server/node/server.main.js:74:8133 at Timeout._onTimeout (/home/bvveen/.vscode-server/bin/92da9481c0904c6adfe372c12da3b7748d74bdcb/out/vs/server/node/server.main.js:8:12) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)

I understand on 1 March the server code change and is now using the MAC address as a security.... On my remote server ( Strato VM ) there is no MAC address when I use IP LINK of IP ADDR.

Seems that the change introduced a new problem.

Using strato as well so that seems to be the problem,
are there any solutions to this yet?

@RussianProtein
Copy link

Same problem. I can't find a solution yet

@bmakan
Copy link

bmakan commented Mar 7, 2023

My vscode couldn't download the vscode-server remotely. It was just hanging. So, I logged into the remote machine and downloaded the vs-server manually:

wget  https://update.code.visualstudio.com/commit:92da9481c0904c6adfe372c12da3b7748d74bdcb/server-linux-x64/stable
mv stable vscode-server.tar.gz
tar -zxf vscode-server.tar.gz
mv vscode-server-linux-x64/* ./

Commit hash depends on your current version. You can check it in Help -> About.

@cggit
Copy link

cggit commented Mar 7, 2023

Same problem. I can't find a solution yet

Downgrade VSCode should fix it

@eleanorjboyd
Copy link
Member

Could someone include their full remote-ssh logs?

@eleanorjboyd eleanorjboyd added the info-needed Issue requires more information from poster label Mar 13, 2023
@eleanorjboyd
Copy link
Member

I understand on 1 March the server code change and is now using the MAC address as a security....

@bvv400 could you elaborate a bit more on what you mean by this?

@eleanorjboyd eleanorjboyd changed the title [Remote-SSH Bug]: [Remote-SSH Bug]: unexpected mac address format Mar 13, 2023
@bvv400
Copy link

bvv400 commented Mar 13, 2023

@eleanorjboyd

This is de log file on de server when Remote SSH connection is started. Also the ifconfig.

92da9481c0904c6adfe372c12da3b7748d74bdcb.log

ifconfig.txt

@bvv400
Copy link

bvv400 commented Mar 13, 2023

@eleanorjboyd

Found the error txt in vscode-1.76.1\src\vs\base\node\macAddress.ts.

If no MAC address is registered then an error is thrown.

@eleanorjboyd
Copy link
Member

@sbatten, do you have any thoughts? This specific code that throws the MAC address error has not been edited recently but you seem to be the last person to have touched that code. Looks to be something related in the most recent release is causing this code to error

@sbatten
Copy link
Member

sbatten commented Mar 14, 2023

I think this is fixed now with microsoft/vscode#176512

@eleanorjboyd
Copy link
Member

This change should therefore be out on insiders. I will close this in favor of the other discussion so please post in that issue if you are still seeing problems on insiders or have further questions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

7 participants