Comments (6)
Here's some more system detail:
Let me know if there's anything else that would help track this down, happy to help however I can
from devpod.
I'm also affected:
What happened?
I created an SSH provider, using a remote machine which uses fish shell. The agent isn't properly injected.
What did you expect to happen instead?
The agent is properly injected, starts and the workspace opens in the selected IDE.
How can we reproduce the bug? (as minimally and precisely as possible)
- Create an SSH provider using a remote machine on which the default login shell for the SSH user is fish
- Create a workspace using this provider. I used https://github.com/microsoft/vscode-remote-try-go for the repo
- Start the workspace
Debug logs:
[11:07:54] info Workspace vscode-remote-try-go already exists
[11:07:54] debug Acquire workspace lock...
[11:07:54] debug Acquired workspace lock...
[11:07:54] info Creating devcontainer...
[11:07:54] debug Inject and run command: '/tmp/devpod/agent' helper ssh-server --stdio --debug
[11:07:54] debug Attempting to create SSH client
[11:07:54] debug execute inject script
[11:07:54] debug download agent from https://github.com/loft-sh/devpod/releases/download/v0.5.4
[11:07:54] debug Run command provider command: ${SSH_PROVIDER} command
[11:07:55] debug done exec
[11:07:55] debug done inject
[11:07:55] debug done injecting
[11:07:55] debug Inject Error: fish: Unsupported use of '='. In fish, please use 'set INSTALL_DIR "/tmp/devpod"'.
INSTALL_DIR="/tmp/devpod"
^~~~~~~~~~~~~~~~~~~~~~~~^
EOF
It tries to inject in a loop, until:
[11:11:18] error Try enabling Debug mode under Settings to see a more verbose output
[11:11:18] fatal error retrieving container status: fish: Unknown command: /tmp/devpod/agent
fish:
'/tmp/devpod/agent' agent workspace status --workspace-info 'xxx'
^~~~~~~~~~~~~~~~~~^
exit status 127
Local Environment:
- DevPod Version: v0.5.4
- Operating System: mac
- ARCH of the OS: ARM64
DevPod Provider:
- Local/remote provider: ssh
Anything else we need to know?
Possible workaround before the fix: use bash as login shell.
from devpod.
Hi @ItsMeBrianD, thanks for opening the issue. Did you symlink /bin/sh
to /bin/fish
(or wherever fish is installed) by chance?
from devpod.
On the remote host, I did not, fish is only at /usr/bin/fish
from devpod.
I'm asking because we run the command with sh -c
, not sure why it's executed in the fish shell
from devpod.
@ItsMeBrianD I can reproduce the issue, I'm just not entirely sure where the problem lies. Will take another look but for now it's rather low priority tbh
from devpod.
Related Issues (20)
- Canβt use Intellij as IDE HOT 8
- Windows signing is broken HOT 1
- rocky9 appimage fail
- code directory not updating HOT 1
- devcontainer features: support dependencies HOT 1
- Owner of /workspaces is root instead of codespace
- Broken Linux Installation Links
- postCreateCommand doesn't run in the right context?
- Could you provide an Accessibility Conformance Report? HOT 1
- Support RustRover IDE HOT 1
- Run Python Application in PyCharm Client via JetBrains Gateway HOT 2
- Vendoring the rust dependencies for offline-building a package for openSUSE
- Support native Wayland HOT 1
- The order of versions in "Or download a specific version" does not follow semver HOT 1
- Agent Url Override HOT 4
- Default workspace directory is not mounted in AWS provider HOT 1
- Temporary permissions issues on launch (detected dubious ownership in repository)
- Cannot create ssh provider HOT 7
- Cannot forward gpg-agent in DigitalOcean machine HOT 4
- Cannot forward gpg-agent when "docker-in-docker" is enabled in devcontainer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devpod.