Skip to content

Kubernetes - Port is 0 / Slash not starting #384

@thxrben

Description

@thxrben

Describe the bug

When running slash in kubernetes (AFAIK with containerd), the Pod that starts is running on port 0 and the webinterface cannot start:

2025/03/04 08:47:03 WARN failed to find migration history in pre-migrate error="SQL logic error: no such table: migration_history (1)"
---
Server profile
dsn: /var/opt/slash/slash_prod.db
port: 0
mode: prod
version: 1.0.0
---
Welcome to Slash!
---
See more in:
---
Version 1.0.0 has been started on port 0
👉GitHub: https://github.com/yourselfhosted/slash

It does not give any more information than what you can see above. No errors, nothing. Using wget inside the container with 127.0.0.1:5231 does not work.

Steps to reproduce

Create a new deployment or pod according to the docker run command, with the image: yourselfhosted/slash:latest, a storage/volume claim mounted to /var/opt/slash/ and a service (in my case ClusterIP for the port 5231).

Expected behavior

The (web-) server starts up successfully and exposes the dashboard.

Screenshots or additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions