Skip to content

Agent Fails to Start (SSL Certificate Error) #19

@asano69

Description

@asano69

Describe the bug
When starting the Docker container using portabase/agent:latest, the agent fails to start due to an SSL certificate error. It cannot connect to portabase.app.internal because rustls is unable to verify the server's certificate issuer (UnknownIssuer).

To Reproduce
Steps to reproduce the behavior:

  1. Start the portabase-dashboard container with the environment variable PROJECT_URL=https://portabase.app.internal
  2. Complete the initial setup (account creation, etc.) on the dashboard
  3. Pull the agent image: docker pull portabase/agent:latest
  4. Start the portabase-agent container
  5. See error

Expected behavior
The agent starts successfully and establishes a connection to portabase.app.internal.

Additional context
Full error log:

ERROR An error occurred while executing task ping_server: Http(reqwest::Error { kind: Request, url: "https://portabase.app.internal/api/agent/f28ef39c-0b52-41b1-a506-84005d6b7d1f/status", source: hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: Custom { kind: InvalidData, error: InvalidCertificate(UnknownIssuer) } }) })

The root cause is likely that the Docker image does not include the necessary root CA certificates, or rustls-native-certs is not configured correctly inside the container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions