ctime
The task we have is the present time 06/02/2024, the task is to convert the time to the number 02062024, how can this be done? Below is the code that needs conversion
```
struct tm newtime;
time_t now = time(NULL);
localtime_s(&newtime, &now);...
code-server python extension bypass.
Hey I am using python extension. But its limiting and syntax hilighting doesn't works. Many issues said Pylance refused to work for VScode unofficial clone. How can I use Pylance and other official Python extensions with full functionalities?
1 Workspace, multiple container, coder_app on each
I hope this is a quick question: I've been playing with the docker version of coder to see what it can do, and was wondering whether it's possible to use multiple containers in a single workspace and expose multiple
coder_app
s via a Terraform template, where each coder_app resides on a different container.
I thought the URL parameter in the coder_app
would enable this, but it returns a "502 - Bad Gateway" for the app that isn't running on the coder_workspace container. My presumption is that it only tries to proxy to localhost, since the error looks like it's failing to connect to an [<IPv6_addr>]:80 and the agent log appears to have entries failing to connect to localhost:80.
I'm basing the work on the Docker Containers
template....Solution:
Yes you are correct. Your solution is to run an agent in each container where you want to expose a coder_app
Open port via wildcard hostname keep loading
I tried to open a port via a wildcard domain name, but the page keep loading. The back end server is a NodeJS Express server
Docker windows, default template error on the template creation
Hello I'm new to Coder, and I'm trying to run the template with Docker Containers the one that is as template but it keeps failing the build
Get last created workspace of user via CLI
From https://discord.com/channels/747933592273027093/971231372373033030/1245469675895394325 - @joshiscool
---
Hi, is there any easy way to see when a workspace is created? I know its in the json output of coder ls but it would be nice if it was in a more accisble place....
Coder with cloudflare tunnels + cloudflare access?
I have seen the other thread on this, was just curious if anyone got this to work with cloudflare access for access. if not, tis fine. thanks!
sometimes getting 504 gateway timeout from port forwarded proxy from a docker workspace
image is just a request made from my application which sometimes gives this
Git push username show as `default`
I can push successfully but the username show as
default
, username is correct in git config --list
Solution:
Either set .gitconfig or these env variables
VSCode Extension Gives Connection Error
When trying to connect to a workspace using the extension it gives the error on the image
VSCode Web extensions disappear after restart
Hey!
So I crafted a template and installed the module
vscode-web
because of the copilot support and profile sync, only I am facing some issues!
After I update my workspace or restart the workspace, the extensions that I installed previously are gone, I then attempted to make the /root directory presistant but that really didn't go well. Does anyone know how to solve this?...Solution:
@Nick you can set
extensions_dir
to a directory that is persistent in your workspaceCode Server giving 404
Hello
I am trying to access the code server and it shows this error, when I have them shared to authenticated users.
Doesn anyone know how to use it?...
home path empty
im running it on docker
Solution:
i suggest that you install code-server directly on the host if you need to access files from the host
`workspace is unhealthy` error in `docker-compose` coder installation
I see the attached error when attempting to create a workspace from the vanilla docker template.
- My coder service was constructed using the instructions from here: https://github.com/coder/coder/blob/main/examples/web-server/caddy/README.md
- I have a domain hosted on Route 53 which redirects to my server IPv4
- If it's related, I am having websocket connectivity issues according to the health url (second attachment)...
Can't start built-in postgres
I'm getting an error saying that i can't start postgres when i try to start coder
AWS AMI works for a while then stops
Hey everyone 👋 newbie to Coder v2 here. Having a small issue and was hoping for some help
I deploy Coder v2 to an AWS EC2 instance, this works initially for a few hours, but eventually the site redirects /login to /setup to create new account. After a couple minutes, I then get the following error:
{"message":"Peer is not connected."}...
Shared ports still not working in OSS
I've updated to the latest version of Coder and I still get the same issue as in the picture below.
Was apparently fixed here: https://github.com/coder/coder/issues/13259...