Failed to start #44

Closed
opened 2025-12-29 09:22:01 +01:00 by adam · 4 comments
Owner

Originally created by @BlueHtml on GitHub (Mar 1, 2025).

Hello,

I downloaded godoxy-agent-linux-amd64 from actions/workflows/agent-binary.yml, and when I try to start it in WSL, it keeps reporting errors as follows:

02-23 18:25 FTL init CA error: invalid PEM pair
02-23 18:25 FTL init CA error: tls: failed to find any PEM data in certificate input
02-23 18:25 FTL init SSL error: tls: failed to find any PEM data in certificate input

Is this due to missing certificates?

Originally created by @BlueHtml on GitHub (Mar 1, 2025). Hello, I downloaded `godoxy-agent-linux-amd64` from [actions/workflows/agent-binary.yml](https://github.com/yusing/godoxy/actions/workflows/agent-binary.yml), and when I try to start it in WSL, it keeps reporting errors as follows: ``` 02-23 18:25 FTL init CA error: invalid PEM pair 02-23 18:25 FTL init CA error: tls: failed to find any PEM data in certificate input 02-23 18:25 FTL init SSL error: tls: failed to find any PEM data in certificate input ``` Is this due to missing certificates?
adam closed this issue 2025-12-29 09:22:01 +01:00
Author
Owner

@yusing commented on GitHub (Mar 1, 2025):

Hi, agent binary is not ready to use yet. Yes it is missing certificates and those are defined in environment variables.

Agent runs a HTTPS server with mTLS so certificates are required.

Please run agent with docker for now (docker compose copied from here, and with Nightly checked).

Image

It will generate something like this and copied to your clipboard.

services:
  agent:
    image: "ghcr.io/yusing/godoxy-agent:nightly"
    container_name: godoxy-agent
    restart: always
    network_mode: host # do not change this
    environment:
      AGENT_NAME: ...
      AGENT_PORT: ...
      AGENT_CA_CERT: ...
      AGENT_SSL_CERT: ...
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./data:/app/data
@yusing commented on GitHub (Mar 1, 2025): Hi, agent binary is not ready to use yet. Yes it is missing certificates and those are defined in environment variables. Agent runs a HTTPS server with mTLS so certificates are required. Please run agent with docker for now (docker compose copied from here, and **with `Nightly` checked**). ![Image](https://github.com/user-attachments/assets/687fd466-6eed-499c-a814-e19b84f5e378) It will generate something like this and copied to your clipboard. ```yaml services: agent: image: "ghcr.io/yusing/godoxy-agent:nightly" container_name: godoxy-agent restart: always network_mode: host # do not change this environment: AGENT_NAME: ... AGENT_PORT: ... AGENT_CA_CERT: ... AGENT_SSL_CERT: ... volumes: - /var/run/docker.sock:/var/run/docker.sock - ./data:/app/data ```
Author
Owner

@BlueHtml commented on GitHub (Mar 1, 2025):

@yusing Thank you for your reply.

I am simply trying to do a basic test.

Is it possible to configure the Agent to listen on port 80 only? I tried removing GODOXY_HTTPS_ADDR=:443 from the environment variables, but it did not work.

@BlueHtml commented on GitHub (Mar 1, 2025): @yusing Thank you for your reply. I am simply trying to do a basic test. Is it possible to configure the Agent to listen on port 80 only? I tried removing `GODOXY_HTTPS_ADDR=:443` from the environment variables, but it did not work.
Author
Owner

@yusing commented on GitHub (Mar 1, 2025):

Is it possible to configure the Agent to listen on port 80 only

No, it's unsafe so I do not and will not provide an option for that.

I tried removing GODOXY_HTTPS_ADDR=:443

Agent does not need the these environment variables (from .env.example), so removing these have no effect.

Required variables are in the docker compose above, also CA Cert and Client Cert is also required on the main server. Manual setup is not a good idea.

@yusing commented on GitHub (Mar 1, 2025): > Is it possible to configure the Agent to listen on port 80 only No, it's unsafe so I do not and will not provide an option for that. > I tried removing GODOXY_HTTPS_ADDR=:443 Agent does not need the these environment variables (from [`.env.example`](https://github.com/yusing/godoxy/blob/main/.env.example)), so removing these have no effect. Required variables are in the docker compose above, also CA Cert and Client Cert is also required on the main server. Manual setup is not a good idea.
Author
Owner

@BlueHtml commented on GitHub (Mar 1, 2025):

Okay, I will try Docker.

@BlueHtml commented on GitHub (Mar 1, 2025): Okay, I will try Docker.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy#44