Danish
Danish
CCoder.com
Created by Danish on 5/3/2024 in #help
Websocket issues with code-server
Yes, my bad for not making that exactly clear
7 replies
CCoder.com
Created by Danish on 5/3/2024 in #help
Websocket issues with code-server
Don't have access to the deployment for a few days, but last I checked I was still encountering the same issues
7 replies
CCoder.com
Created by Danish on 2/8/2024 in #help
Create workspace API endpoint stops working after upgrading Coder
7 replies
CCoder.com
Created by Danish on 2/8/2024 in #help
Create workspace API endpoint stops working after upgrading Coder
Got the fix by going through the release notes of each version after 2.0.2. Turns out the param template_version_id has been replaced with template_active_version_id and that's what causing the issue in the API request
7 replies
CCoder.com
Created by Danish on 2/8/2024 in #help
Create workspace API endpoint stops working after upgrading Coder
Coder v2.0.2+76ad116 - Your Self-Hosted Remote Development Platform
Started HTTP listener at http://0.0.0.0:3000
Using built-in PostgreSQL (/home/<user>/.config/coderv2/postgres)

View the Web UI: <my_coder_deployment>
Stopping built-in PostgreSQL...
Stopped built-in PostgreSQL
running command "coder server": connect to postgres:
github.com/coder/coder/cli.(*RootCmd).Server.func1
/home/runner/actions-runner/_work/coder/coder/cli/server.go:619
- migrate up:
github.com/coder/coder/cli.connectToPostgres
/home/runner/actions-runner/_work/coder/coder/cli/server.go:1949
- up:
github.com/coder/coder/coderd/database/migrations.Up
/home/runner/actions-runner/_work/coder/coder/coderd/database/migrations/migrate.go:81
- no migration found for version 187: read down for version 187 .: file does not exist
Coder v2.0.2+76ad116 - Your Self-Hosted Remote Development Platform
Started HTTP listener at http://0.0.0.0:3000
Using built-in PostgreSQL (/home/<user>/.config/coderv2/postgres)

View the Web UI: <my_coder_deployment>
Stopping built-in PostgreSQL...
Stopped built-in PostgreSQL
running command "coder server": connect to postgres:
github.com/coder/coder/cli.(*RootCmd).Server.func1
/home/runner/actions-runner/_work/coder/coder/cli/server.go:619
- migrate up:
github.com/coder/coder/cli.connectToPostgres
/home/runner/actions-runner/_work/coder/coder/cli/server.go:1949
- up:
github.com/coder/coder/coderd/database/migrations.Up
/home/runner/actions-runner/_work/coder/coder/coderd/database/migrations/migrate.go:81
- no migration found for version 187: read down for version 187 .: file does not exist
If I downgrade back, I get the above error so I'm kinda stuck here. Looking at a similar issue reported here, I guess fix to the above migration issue is to delete the postgres database? (to be fair I didn't backup a snapshot of database as the docs suggested) Would like some guidance on how that's done Edit: Nvm, I think I found how to delete the database by going over the uninstall Coder docs.
7 replies