Skip to content

Gitea 1.23.5 does not start as a Windows service with ACME enabled (works in 1.23.4) #33802

Closed
@Jang-Haemin

Description

@Jang-Haemin

Description

Note

Please understand that the content may be awkward as it was translated using a translator.

Hello,

I am using gitea-version-gogit-windows-4.0-amd64.exe and running Gitea as a Windows service.

To enable HTTPS, I am using Let's Encrypt and have applied the following ACME-related settings in my app.ini file:

[app.ini]

PROTOCOL = https
DOMAIN = r**.e**.co.kr
ENABLE_ACME = true
SSH_DOMAIN = r**.e**.co.kr
ACME_ACCEPTTOS = true
ACME_DIRECTORY = https
ACME_EMAIL = g**@e**.co.kr
HTTP_PORT = 443
ROOT_URL = https://r**.e**.co.kr
APP_DATA_PATH = F:\gitea/data
DISABLE_SSH = false
SSH_PORT = 22
OFFLINE_MODE = false
REDIRECT_OTHER_PORT = true
PORT_TO_REDIRECT = 80

With this configuration, Gitea worked fine up to version 1.23.4.
However, after updating to 1.23.5, the service fails to start.
When running the executable manually, I see the following error messages:

2025/03/05 23:16:39 cmd/web.go:364:listen() [E] Failed to start server: r**.e**.co.kr: obtaining certificate: [r**.e**.co.kr] Obtain: registering account [mailto:g**@e**.co.kr] with server: provisioning client: performing request: Get "https:": http: no Host in request URL
2025/03/05 23:16:39 cmd/web.go:366:listen() [I] HTTP Listener: 0.0.0.0:443 Closed

To provide more details, I have attached logs from both 1.23.4 (working version) and 1.23.5 (failing version) for comparison.

[logs]

Could this issue be related to recent ACME updates?
If I revert to 1.23.4 without changing the ACME configuration, Gitea runs without any issues.

Please investigate this issue.
Thank you!

Gitea Version

1.23.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.48.1

Operating System

Windows Server 2019 (1809)

How are you running Gitea?

I am using gitea-version-gogit-windows-4.0-amd64.exe and running Gitea as a Windows service.

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions