Questions tagged [github-codespaces]
114 questions
1
vote
0 answers
Github-cli codespace ssh ubuntu@localhost: permission denied (publickey,password)
I wanted to connect to my Codespace through terminal using gh or github-cli. But when I try to connect to my codespace I encounter this error.
[xyz@xyzPC ~]$ gh cs ssh ? Choose codespace: code50/93048025 (main): ideal disco ubuntu@localhost:…

8AMIUL
- 13
- 2
1
vote
0 answers
is there a way to let github codespaces to connect my other SQL server?
is there a way to allow specified IP, which codespaces can connect?
i've tried to ping everything inside a codespace, and all got nothing, such as bing.com, github.com etc..

PlanC14
- 11
- 4
1
vote
1 answer
How to open a default file in a Visual Studio Code devcontainer
I have a few devcontainer configurations that I use with both the Visual Studio Code Remote Container extensions and GitHub Codespaces to teach classroom topics.
I have a sample here on GitHub: https://github.com/seesharprun/how-to-sql-query
I want…

sidney.andrews
- 5,146
- 3
- 23
- 29
1
vote
2 answers
How to install python package on GitHub Codespaces without having to rebuild the container?
I copied a template codespace https://github.com/github/codespaces-flask and now whenever I need to add a new package pip install redis for example I have to add it to my requirements.txt and rebuild the entire codespace again.
What is the proper…

user762345
- 11
- 2
1
vote
0 answers
Github Codespace - Environment Setting
I started using github-codespace for branch experimentation. So far, experience has been really good. I have one problem. There are few settings about the vscode environment I would prefer, e.g. color theme.
Is there way to set config for the…

Mert Kurttutan
- 355
- 1
- 3
- 7
1
vote
0 answers
How to cache docker images with GitHub Codespaces devcontainer prebuild?
I'm using github codespaces and I have pre-built my devcontainer with feature kubernetes-helm-minikube which contains a minikube pre-installed in the dev container.
My question is, with prebuilding, my devcontainer users still have to download…

amyxia
- 21
- 1
1
vote
0 answers
How to update Node version in Codespace
I am trying to use Node version 16 in a codespace.
First I ran nvm install-latest-nvm.
Then I ran nvm use 16 which returned Now using node v16.18.1 (npm v9.1.1)
However, node -v then returns v14.20.1.
And I'm still getting the same errors from…

javaandy
- 205
- 3
- 12
1
vote
1 answer
Codespaces and https
I have a working node.js express based server (and client) application here that shows RPC over http+websockets. This works perfectly when run locally (using devcontainers) and includes the Dockerfile as well as devcontainer.json. However, when run…

Ani
- 10,826
- 3
- 27
- 46
1
vote
1 answer
How do I fix GitHub and VSC Codespace ssh Configuration Failed
I am having issues configuring my GitHub SSH with VSC codespace.
I keep having this information below:
Warning: Permanently added '[ssh.github.com]:443' (ED25519)
to the list of known hosts.
fit@ssh.github.com: Permission denied…

Olugbenga Raymond
- 13
- 2
1
vote
0 answers
Unable to import library errors while using conda environments from GitHub Codespaces
I'm seeing Unable to import 'PACKAGE' errors when using Codespaces:
As you see here, I have the IDE set up to use the right conda environment (dev):
I also verified that the packages are installed with conda list:
Restarting, Rebuilding or just…

aphexlog
- 1,503
- 3
- 16
- 43
1
vote
1 answer
Port forward non-HTTP data on Codespaces
I'm trying to run a game server on GitHub Codespaces, partially to test if I can make a game server to run on Codespaces for testing purposes. When selecting how to forward a port, the only options I am given for protocol are HTTP and HTTPS, neither…

Ray Redondo
- 19
- 1
1
vote
0 answers
Connect to Codespace: Get codespace request failed with status 499. Correlation ID: undefined
When I try to create codespaces for this repo: https://github.com/mrdulin/expressjs-research.
VS Code - GitHub Codespaces (Extension) v1.9.1 popup an error:
Connect to Codespace: Get codespace request failed with status 499. Correlation ID:…

Lin Du
- 88,126
- 95
- 281
- 483
1
vote
2 answers
GitHub Codespace secrets when using VSCode devcontainers locally
I am using a GCP service account file as a GitHub Codespaces secret, and I am able to access it from the Codespace container, as explained here.
Now, I want to also support developing locally without GitHub Codespaces but still use VSCode…

galah92
- 3,621
- 2
- 29
- 55
1
vote
0 answers
GitHub Codespace Logon Script // GitHub Enterprise
I'm using GitHub-Codespaces in an enterprise subscription. The environment is preconfigured with a dev-container: https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/configuring-codespaces-for-your-project
After successful…

Impulsleistung
- 177
- 3
- 13
1
vote
0 answers
Update Linux Kernel on a Codespace
Problem
I'd like to use codespaces to work on a project that requires newer features of the Linux kernel (specifically the accept() syscall for io_uring). Even though I am using the Ubuntu devcontainer, this does not update the codespace's kernel to…

A-Mozeak
- 11
- 1