kerxkerby
kerxkerby
CCoder.com
Created by kerxkerby on 5/2/2024 in #help
Recovering from disaster
I'm planning to execute: sudo rsync -avhP --delete -e "ssh -l coder" /var/lib/docker/ 192.168.193.61:/var/lib/docker/ Are there any important details I may have missed?
15 replies
CCoder.com
Created by kerxkerby on 5/2/2024 in #help
Recovering from disaster
Btw, I found a copy of our Coder-OSS server from a SATA drive. I'm curious if there's a way to backup the Docker workspaces to the new Coder-OSS server.
15 replies
CCoder.com
Created by kerxkerby on 5/2/2024 in #help
Recovering from disaster
There are still some issues that need to be addressed, one of which is that Docker is currently unable to run.
May 03 01:21:17 coder systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit docker.service has finished with a failure.
░░
░░ The job identifier is 4546 and the job result is failed.
May 03 01:21:17 coder systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit docker.service has finished with a failure.
░░
░░ The job identifier is 4546 and the job result is failed.
15 replies
CCoder.com
Created by kerxkerby on 5/2/2024 in #help
Recovering from disaster
I was able to successfully restore the SQL dump to the Coder database that is built-in. The process was completed using: PGPASSWORD=$(cat /home/coder/.config/coderv2/postgres/password) psql -h localhost -p $(cat /home/coder/.config/coderv2/postgres/port) -U coder -d coder -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;" -f coder.sql
15 replies
CCoder.com
Created by kerxkerby on 5/2/2024 in #help
Recovering from disaster
Hi @Atif, Suppose we have access to the original built-in PostgreSQL, what should we back up? Should we only back up the "coder" database? Also, what is the proper way to restore it? I tried to restore it by running coder server and connecting to the SQL server, but the response was not successful. How do we run /home/coder/.config/coderv2/postgres so the client can be connected and be able to fix the issues.
15 replies
CCoder.com
Created by kerxkerby on 5/2/2024 in #help
Recovering from disaster
The login credentials for the accounts that created the workspaces are still valid (as it seems since it can still log in). Can we list all docker containers (workspaces) and back up their data?
15 replies
CCoder.com
Created by kerxkerby on 5/2/2024 in #help
Recovering from disaster
We made a mistake as we forgot to back up the database.
15 replies
CCoder.com
Created by kerxkerby on 4/3/2024 in #help
Access module through VPN IP instead of Tunnel
Hi @Atif yes, but I've been trying to make the CODER_ACCESS_URL work with local network address and not something public
8 replies
CCoder.com
Created by kerxkerby on 4/3/2024 in #help
Access module through VPN IP instead of Tunnel
(Also with the FileBrowser module)
8 replies
CCoder.com
Created by kerxkerby on 3/9/2024 in #help
Accessing Self-Hosted Coder Server Through ZeroTier VPN
Yes, I setup the access URL: export CODER_HTTP_ADDRESS=<zerotier-ip>:<port> with the IP address provider by ZeroTier keeping the port to 3000 , it's now accessible to remote developers in the same ZT network.
9 replies