Skip to content

try.coder.app web UI URL changes between restarts with default docker-compose.yaml #15663

Closed
@hugodutka

Description

@hugodutka

When you run docker compose up -d, then docker compose down, then docker compose up -d again the web UI URLs differ between runs. The first URL stops working after container restart.

This makes it hard to share your deployment with other people when you're starting out, as people will often restart the container.

Is this expected behavior or a bug? @bpmct thought the URL would be static when we talked recently.

Here are my terminal logs showing the current behavior:

coder@Coder:~/coder$ docker compose up -d
WARN[0000] The "CODER_ACCESS_URL" variable is not set. Defaulting to a blank string. 
WARN[0000] /home/coder/coder/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 21/21
 ✔ database Pulled                                                                                                                                                                                                       12.7s 
   ✔ 2d429b9e73a6 Pull complete                                                                                                                                                                                           3.0s 
   ✔ 02ac22796872 Pull complete                                                                                                                                                                                           3.0s 
   ✔ 88f75faf33db Pull complete                                                                                                                                                                                           3.3s 
   ✔ c3ae0369690d Pull complete                                                                                                                                                                                           3.4s 
   ✔ 3ba31d16e3ea Pull complete                                                                                                                                                                                           4.0s 
   ✔ f2472e86bb95 Pull complete                                                                                                                                                                                           4.1s 
   ✔ f4aea017e8c6 Pull complete                                                                                                                                                                                           4.1s 
   ✔ 0db39fc18600 Pull complete                                                                                                                                                                                           4.1s 
   ✔ e7fcd258ae2b Pull complete                                                                                                                                                                                          10.7s 
   ✔ e8ff22324bb7 Pull complete                                                                                                                                                                                          10.8s 
   ✔ 19f34ace1599 Pull complete                                                                                                                                                                                          10.8s 
   ✔ 6b90a5f0db3a Pull complete                                                                                                                                                                                          10.8s 
   ✔ e8f988f6189d Pull complete                                                                                                                                                                                          10.8s 
   ✔ 123815a0060e Pull complete                                                                                                                                                                                          10.8s 
 ✔ coder Pulled                                                                                                                                                                                                           7.4s 
   ✔ da9db072f522 Pull complete                                                                                                                                                                                           0.5s 
   ✔ da81c76f44a7 Pull complete                                                                                                                                                                                           1.4s 
   ✔ 67f9abd2388e Pull complete                                                                                                                                                                                           3.0s 
   ✔ bd9ddc54bea9 Pull complete                                                                                                                                                                                           3.0s 
   ✔ 560c7cd0c33c Pull complete                                                                                                                                                                                           6.2s 
[+] Running 4/4
 ✔ Network coder_default       Created                                                                                                                                                                                    0.1s 
 ✔ Volume "coder_coder_data"   Created                                                                                                                                                                                    0.0s 
 ✔ Container coder-database-1  Healthy                                                                                                                                                                                    7.5s 
 ✔ Container coder-coder-1     Started                                                                                                                                                                                    6.7s 
coder@Coder:~/coder$ docker logs -f coder-coder-1
Started HTTP listener at http://0.0.0.0:7080
Opening tunnel so workspaces can connect to your deployment. For production scenarios, specify an external access URL
Error picking closest dev tunnel: socket: permission denied
Defaulting to US East Pittsburgh
Using tunnel in US East Pittsburgh with latency 0s.
╔═══════════════════════════════════════════════╗
║               View the Web UI:                ║
║   https://2gek8do2um9sq.pit-1.try.coder.app   ║
╚═══════════════════════════════════════════════╝

==> Logs will stream in below (press ctrl+c to gracefully exit):
2024-11-26 16:49:59.863 [info]  coderd.keyrotator: no valid keys detected, inserting new key  feature=workspace_apps_token
2024-11-26 16:49:59.865 [info]  coderd.keyrotator: inserted new key for feature  feature=workspace_apps_token
2024-11-26 16:49:59.865 [info]  coderd.keyrotator: no valid keys detected, inserting new key  feature=workspace_apps_api_key
2024-11-26 16:49:59.865 [info]  coderd.keyrotator: inserted new key for feature  feature=workspace_apps_api_key
2024-11-26 16:49:59.865 [info]  coderd.keyrotator: no valid keys detected, inserting new key  feature=oidc_convert
2024-11-26 16:49:59.866 [info]  coderd.keyrotator: inserted new key for feature  feature=oidc_convert
2024-11-26 16:49:59.866 [info]  coderd.keyrotator: no valid keys detected, inserting new key  feature=tailnet_resume
2024-11-26 16:49:59.866 [info]  coderd.keyrotator: inserted new key for feature  feature=tailnet_resume
2024-11-26 16:49:59.878 [info]  notifications.manager: started
2024-11-26 16:49:59.878 [info]  notifications.manager.notifier: started  notifier_id=8bb6abd9-2943-41e3-b83e-682d8e3432da
2024-11-26 16:49:59.879 [info]  notifications.report_generator: report generator is executing the job for the first time  notification_template_id=34a20db2-e9cc-4a93-b0e4-8569699d7a00
2024-11-26 16:49:59.879 [info]  notifications.report_generator: report generator finished  duration=1.224651ms
2024-11-26 16:49:59.884 [info]  provisionerd-5e10927ec0cb-1: successfully connected to coderd
2024-11-26 16:49:59.884 [info]  provisionerd-5e10927ec0cb-0: successfully connected to coderd
2024-11-26 16:49:59.887 [info]  provisionerd-5e10927ec0cb-2: successfully connected to coderd
2024-11-26 16:49:59.893 [info]  dbpurge: purged old database entries  duration=15.090579ms
2024-11-26 16:50:00.113 [info]  provisionerd-5e10927ec0cb-0: detected terraform version  installed_version=1.9.8  min_version=1.1.0  max_version=1.9.9
2024-11-26 16:50:00.409 [info]  provisionerd-5e10927ec0cb-2: detected terraform version  installed_version=1.9.8  min_version=1.1.0  max_version=1.9.9
2024-11-26 16:50:00.416 [info]  provisionerd-5e10927ec0cb-1: detected terraform version  installed_version=1.9.8  min_version=1.1.0  max_version=1.9.9
^Ccontext canceled
coder@Coder:~/coder$ docker compose down
WARN[0000] The "CODER_ACCESS_URL" variable is not set. Defaulting to a blank string. 
WARN[0000] /home/coder/coder/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 3/3
 ✔ Container coder-coder-1     Removed                                                                                                                                                                                    0.9s 
 ✔ Container coder-database-1  Removed                                                                                                                                                                                    1.4s 
 ✔ Network coder_default       Removed                                                                                                                                                                                    0.2s 
coder@Coder:~/coder$ docker compose up -d
WARN[0000] The "CODER_ACCESS_URL" variable is not set. Defaulting to a blank string. 
WARN[0000] /home/coder/coder/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 3/3
 ✔ Network coder_default       Created                                                                                                                                                                                    0.1s 
 ✔ Container coder-database-1  Healthy                                                                                                                                                                                    6.1s 
 ✔ Container coder-coder-1     Started                                                                                                                                                                                    6.5s 
coder@Coder:~/coder$ docker logs -f coder-coder-1
Started HTTP listener at http://0.0.0.0:7080
Opening tunnel so workspaces can connect to your deployment. For production scenarios, specify an external access URL
Error picking closest dev tunnel: socket: permission denied
Defaulting to US East Pittsburgh
Using tunnel in US East Pittsburgh with latency 0s.
╔═══════════════════════════════════════════════╗
║               View the Web UI:                ║
║   https://q8uq6k916apqg.pit-1.try.coder.app   ║
╚═══════════════════════════════════════════════╝

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions