Skip to content

Issue accessing homeport - error 404 Not Found - Docker compose deployment #14

@Grinbel

Description

@Grinbel

Hi i followed the deployment process on website but when trying to access localhost i get a 404 Error.
i've set up the docker-id variable in .env.

Host Ubuntu 22.4
Client: Docker Engine - Community
 Version:           28.0.4
 API version:       1.48
 Go version:        go1.23.7
 Git commit:        b8034c0
 Built:             Tue Mar 25 15:07:11 2025
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          28.0.4
  API version:      1.48 (minimum version 1.24)
  Go version:       go1.23.7
  Git commit:       6430e49
  Built:            Tue Mar 25 15:07:11 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.26
  GitCommit:        753481ec61c7c8955a23d6ff7bc8e4daed455734
 runc:
  Version:          1.2.5
  GitCommit:        v1.2.5-0-g59923ef
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
WALDUR_MASTERMIND_IMAGE_TAG=7.4.7
WALDUR_HOMEPORT_IMAGE_TAG=7.4.7

# WALDUR_DOMAIN will be used to generate both for Let's Encrypt and Self-signed (internal) certificates
WALDUR_DOMAIN=localhost
WALDUR_HTTP_PORT=80
WALDUR_HTTPS_PORT=443
WALDUR_TITLE=Waldur | Cloud Service Management

# (Required) Choose SSL certificate type (tls config value in Caddy)
# 1. email (Specify your email) - auto generate let's encrypt SSL certificates for your domain
# 2. "internal" - use self-signed certificates for dev environments (default)
# 3. path_to_cert.crt path_to_key.key - use custom certificate. Be sure to pass them in docker-compose.yml
TLS=internal

CONFIG_FOLDER=./config/
LOG_FOLDER=./waldur_logs

GLOBAL_SECRET_KEY=changeme
POSTGRESQL_PASSWORD=default
WALDUR_POSTGRES_IMAGE_TAG=16
KEYCLOAK_POSTGRES_IMAGE_TAG=16
RABBITMQ_USERNAME=waldur
RABBITMQ_PASSWORD=waldur
GLOBAL_DEFAULT_FROM_EMAIL=waldur@example.com
SENTRY_DSN=
GLOBAL_DEBUG=false
SENTRY_ENVIRONMENT=docker-compose-demo

# set gid of a docker group so that container user would be able to read and write to docker socket
# to get the gid, run: getent group docker
# for OS X, set the value to 0 if using Docker Desktop
DOCKER_GROUP_ID=998

DOCKER_REGISTRY_PREFIX=docker.io/

KEYCLOAK_POSTGRESQL_PASSWORD=changeme
KEYCLOAK_ADMIN_PASSWORD=changeme

KEYCLOAK_SECRET=76bc7e31-3c1b-4406-bd82-5c7f1fefd00a

EXTRA_HOST=host1.example.com:127.0.0.1

homeport log
172.18.0.4 - - [03/Apr/2025:10:48:45 +0000] "GET / HTTP/1.1" 200 3709 "-" "curl/8.12.1" "-" 172.18.0.4 - - [03/Apr/2025:10:49:15 +0000] "GET / HTTP/1.1" 200 3709 "-" "curl/8.12.1" "-" 172.18.0.4 - - [03/Apr/2025:10:49:45 +0000] "GET / HTTP/1.1" 200 3709 "-" "curl/8.12.1" "-" 172.18.0.4 - - [03/Apr/2025:10:50:15 +0000] "GET / HTTP/1.1" 200 3709 "-" "curl/8.12.1" "-" 172.18.0.4 - - [03/Apr/2025:10:50:45 +0000] "GET / HTTP/1.1" 200 3709 "-" "curl/8.12.1" "-"

Mastermind api log:

INFO: Welcome to Waldur Mastermind!
INFO: Docker socket found.
INFO: Spawning mastermind
INFO: Running Mastermind on address bind = ":8080"
[2025-04-03 09:54:28 +0000] [14] [INFO] Starting gunicorn 22.0.0
[2025-04-03 09:54:28 +0000] [14] [INFO] Listening at: http://0.0.0.0:8080 (14)
[2025-04-03 09:54:28 +0000] [14] [INFO] Using worker: sync
[2025-04-03 09:54:28 +0000] [15] [INFO] Booting worker with pid: 15
[2025-04-03 09:54:28 +0000] [16] [INFO] Booting worker with pid: 16
[2025-04-03 09:54:28 +0000] [17] [INFO] Booting worker with pid: 17
[2025-04-03 09:54:28 +0000] [18] [INFO] Booting worker with pid: 18
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
[2025-04-03 09:54:28 +0000] [17] [INFO] Booting worker with pid: 17
[2025-04-03 09:54:28 +0000] [18] [INFO] Booting worker with pid: 18
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':
/usr/local/lib/python3.11/site-packages/glanceclient/common/http.py:171: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':

caddy last line logs:

{"level":"info","ts":1743675122.3968577,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0008cb080"}
{"level":"info","ts":1743675122.3968697,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
{"level":"info","ts":1743675122.3981616,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
{"level":"info","ts":1743675122.3988078,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
{"level":"info","ts":1743675122.3989794,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"warn","ts":1743675122.3990407,"logger":"http","msg":"HTTP/2 skipped because it requires TLS","network":"tcp","addr":":80"}
{"level":"warn","ts":1743675122.3990567,"logger":"http","msg":"HTTP/3 skipped because it requires TLS","network":"tcp","addr":":80"}
{"level":"info","ts":1743675122.399075,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
{"level":"info","ts":1743675122.3990939,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["localhost"]}
{"level":"info","ts":1743675122.3994102,"logger":"pki.ca.local","msg":"root certificate is already trusted by system","path":"storage:pki/authorities/local/root.crt"}
{"level":"info","ts":1743675122.3998542,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1743675122.399883,"msg":"serving initial configuration"}
{"level":"info","ts":1743675122.4003654,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/data/caddy","instance":"843d92f4-b379-41ff-b7f7-0db49f315a94","try_again":1743761522.4003627,"try_again_in":86399.999999579}
{"level":"info","ts":1743675122.4005396,"logger":"tls","msg":"finished cleaning storage units"}

Thanks for your help !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions