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

permission denied on ARMv7 #1211

Closed
noomio opened this issue Aug 20, 2019 · 5 comments
Closed

permission denied on ARMv7 #1211

noomio opened this issue Aug 20, 2019 · 5 comments
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@noomio
Copy link

noomio commented Aug 20, 2019

  • VSCode Version: Insiders
  • Local OS Version: Windows
  • Remote OS Version: 3.18.71
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. Run the server.sh locally on my target

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

This is the log:

[09:01:53.903] remote-ssh@0.45.5
[09:01:53.903] win32 x64
[09:01:53.904] SSH Resolver called for "ssh-remote+alias", attempt 1
[09:01:53.904] SSH Resolver called for host: alias
[09:01:53.904] Setting up SSH remote "alias"
[09:01:53.917] Using commit id "c8d44e24dd250d416475a10efe64e35c9e2c65b3" and quality "insider" for server
[09:01:53.919] Testing ssh with ssh -V
[09:01:53.973] ssh exited with code: 0
[09:01:53.973] Got stderr from ssh: OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[09:01:53.973] Running script with connection command: ssh -o ClearAllForwardings=true alias bash
[09:01:53.974] Install and start server if needed
[09:01:54.119] > 
[09:01:54.119] Got some output, clearing connection timeout
[09:01:54.277] > root@192.168.225.1's password:
[09:01:59.933] "install" wrote data to terminal: "**********"
[09:01:59.967] > 
> 
[09:02:00.118] > Running remote connection script
> 
[09:02:00.155] > Acquiring lock on /home/root/.vscode-server-insiders/bin/c8d44e24dd250d416475a10
> efe64e35c9e2c65b3/vscode-remote-lock.c8d44e24dd250d416475a10efe64e35c9e2c65b3
> 
[09:02:00.244] > Found existing installation at /home/root/.vscode-server-insiders/bin/c8d44e24dd
> 250d416475a10efe64e35c9e2c65b3...
> 
[09:02:00.342] > SSH_CONNECTION=192.168.225.29 50795 192.168.225.1 22
> USER=root
> PWD=/home/root
> HOME=/home/root
> SSH_CLIENT=192.168.225.29 50795 22
> MAIL=/var/mail/root
> SHELL=/bin/sh
> SHLVL=2
> VSCODE_AGENT_FOLDER=/home/root/.vscode-server-insiders
> LOGNAME=root
> PATH=/usr/bin:/bin:/usr/sbin:/sbin
> _=/bin/printenv
> Starting server...
> Waiting for server log...
> 
[09:02:00.904] > Waiting for server log...
> 
[09:02:01.428] > Waiting for server log...
> 
[09:02:01.966] > Waiting for server log...
> 
[09:02:02.490] > Waiting for server log...
> 
[09:02:03.022] > Waiting for server log...
> 
[09:02:03.555] > Waiting for server log...
> 
[09:02:04.062] > 
> *
> * Reminder: You may only use this software with Visual Studio family products,
> * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)
> *
> 
> 
[09:02:04.124] > Server did not start successfully. Full server log >>>
> bash: line 210: /home/root/.vscode-server-insiders/bin/c8d44e24dd250d416475a10ef
> e64e35c9e2c65b3/server.sh: Permission denied
> <<< End of server log

@egamma egamma added the ssh Issue in vscode-remote SSH label Aug 20, 2019
@ghost
Copy link

ghost commented Aug 27, 2019

I do have the same problem here. Log ends with....

[20:54:01.787] > cat:
[20:54:01.790] > /root/.vscode-server-insiders/.8cd00a7935eabef4aad0b0130b1d46daca0a47aa.log: No such file or directory
[20:54:01.926] > cat: /root/.vscode-server-insiders/.8cd00a7935eabef4aad0b0130b1d46daca0a47aa.log: No such file or directory
Server did not start successfully. Full server log >>>
cat: /root/.vscode-server-insiders/.8cd00a7935eabef4aad0b0130b1d46daca0a47aa.log: No such file or directory
[20:54:01.959] > <<< End of server log
[20:54:02.265] "install" terminal command done
[20:54:02.265] Install terminal quit with output: <<< End of server log
[20:54:02.265] Received install output: <<< End of server log
[20:54:02.265] Failed to parse remote port from server output: <<< End of server log
[20:54:02.266]
[20:54:02.266] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"UnparsableOutput"},"measures":{"resolveAttempts":1,"retries":1}}
[20:54:02.267] ------

@noomio
Copy link
Author

noomio commented Aug 27, 2019

Hi,

It was a mount that had no_exec option. Check if the user is able to execute commands.
I also found out that this will not work on ARM devices and better to use this approach:

https://github.com/OmniSharp/omnisharp-vscode/wiki/Remote-Debugging-On-Linux-Arm

@ghost
Copy link

ghost commented Aug 28, 2019

Hi noomio, thanks for getting back. Yes, the user is able to execute commands. I should have mentioned that in my case the goal is to remote debug C programs on the ARM SBC. From the output it looks like the log files are not even created. I checked file permissions and everything looks fine.

@roblourens
Copy link
Member

@noomio is it just your user directory that is mounted with no_exec? Could the script be executed from /tmp? I don't follow how that remote debugging method actually works.

@roblourens roblourens added the info-needed Issue requires more information from poster label Sep 9, 2019
@noomio
Copy link
Author

noomio commented Sep 10, 2019

@roblourens yes it can be executed from /tmp. Hoever it prompts afterwards platform not supported.
I discovered even though once I could execute the linux arm 32 bit platform isnt supported so I switched to framework dependent deployment. See the link above I posted.

@noomio noomio closed this as completed Sep 10, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 25, 2019
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

3 participants