modrin
CCoder.com
•Created by modrin on 4/22/2024 in #help
Internal error checking workspace agent authorization (after db reinit from dump)
Hi.
Today we tried to update Coder from v2.9.1 to v2.9.3 but the DB got corrupted (probably because of 2 pgsql instances running at the same time, rookie mistake).
We have PG dumps each day, so I tried to run v2.9.3 version and import the backup dump (schema + data) from last known working version; the Coder works, I can access the dashboard, the data is there, but now all workspaces created show me the following error:
Agent side:
Coder side:
I have tried investigating if the problem lies in some schema change, but that didn't help. I have also tried running v2.9.0, no change.
If anybody has any idea, it would be very appreciated!
11 replies
CCoder.com
•Created by modrin on 1/18/2023 in #help
Question/clarification about codercom/enterprise-base image
I'm trying to build my own base image for Coder, and I've been researching various Ubuntu base images, but since I need docker-in-docker, my main reference is the following Dockerfiles from Sysbox:
https://github.com/nestybox/dockerfiles/blob/master/ubuntu-jammy-systemd/Dockerfile
https://github.com/nestybox/dockerfiles/blob/master/ubuntu-jammy-docker/Dockerfile
compared with this
https://github.com/coder/enterprise-images/blob/main/images/base/Dockerfile.ubuntu
1. Is there a specific reason why
containerd-io
is downgraded, when compared to sysbox
image, which installs it from apt-get?
2. Why does sysbox install libsystemd0
, dbus
, iptables
, iproute2
, kmod
, udev
, but it's missing from Coder?
3. In sysbox image, some services are disabled, but not in Coder? (might be related to #2)
4. Sysbox makes use of STOPSIGNAL
and ENTRYPOINT
for systemd, but Coder doesn't?
Maybe I'm missing some inside-image processing details (like Coders init.sh
script?)
Unrelated, but - about Homebrew, if I understand correctly, it's a package manager with broad OS support which can run without user privileges. Assuming a user runs a workspace instance with /home
attached as a volume, would brew
installed packages persist container destructions? Because that could solve user personalization problems a lot of people are having 😁
I apologize for these wildly technical questions, but I'd love to learn the process of Coder and better understand it 😅
Thank you!3 replies
CCoder.com
•Created by modrin on 1/6/2023 in #help
Got permission denied while trying to connect to the Docker daemon socket
Hi everyone. I'm trying to test an instance of Coder on Docker Swarm, but the Docker daemon socket is not connecting, because "coder" user is not in the docker group - this is while trying to run
coder templates create
for swarm
this will not work (because it's not applicable to Swarm instances).
I'm thinking if I need to write a custom Dockerfile and add the user there, or should I use a docker socket proxy image for this? I'm not sure which is a more secure solution - ideally I thought it'd be possible to separate our main Docker containers and Coder containers from each other via host user separation or so, but I'm not sure if that's possible.
Appreciate any help 🙂
Docs reference - https://coder.com/docs/coder-oss/latest/install/docker#run-coder-with-docker-compose3 replies