gitea not starting as a homebrew service on macOS #12380

Closed
opened 2025-11-02 10:08:01 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Fryguy on GitHub (Jan 24, 2024).

Description

I installed gitea just now via homebrew on macOS. However, the homebrew service kept failing with an obscure error code #19968.

Playing around, I noticed that the plist file described the working directory as /opt/homebrew/opt/gitea/libexec, however that directory didn't exist (/opt/homebrew/opt/gitea existed, just not the libexec subdir). So, I created the directory manually and now everything is working.

I noticed in that gitea directory there's also a systemd unit file named homebrew.gitea.service that also has the working directory set to /opt/homebrew/opt/gitea/libexec, so it's possible this also applies to linux environments as well.

Gitea Version

Gitea version 1.21.4 built with GNU Make 3.81, go1.21.6 : bindata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

macOS 13.6.3

How are you running Gitea?

homebrew installation / brew services on macOS (M1)

Database

None

Originally created by @Fryguy on GitHub (Jan 24, 2024). ### Description I installed gitea just now via homebrew on macOS. However, the homebrew service kept failing with an obscure error code `#19968`. Playing around, I noticed that the plist file described the working directory as `/opt/homebrew/opt/gitea/libexec`, however that directory didn't exist (`/opt/homebrew/opt/gitea` existed, just not the `libexec` subdir). So, I created the directory manually and now everything is working. I noticed in that gitea directory there's also a systemd unit file named `homebrew.gitea.service` that also has the working directory set to `/opt/homebrew/opt/gitea/libexec`, so it's possible this also applies to linux environments as well. ### Gitea Version Gitea version 1.21.4 built with GNU Make 3.81, go1.21.6 : bindata, sqlite, sqlite_unlock_notify ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System macOS 13.6.3 ### How are you running Gitea? homebrew installation / brew services on macOS (M1) ### Database None
GiteaMirror added the type/bugtype/upstream labels 2025-11-02 10:08:01 -06:00
Author
Owner

@lunny commented on GitHub (Jan 25, 2024):

Hi, Gitea for Brew now maintained in the brew official repository. Please submit an issue there.

ref https://github.com/Homebrew/homebrew-core/blob/master/Formula/g/gitea.rb

@lunny commented on GitHub (Jan 25, 2024): Hi, Gitea for Brew now maintained in the brew official repository. Please submit an issue there. ref https://github.com/Homebrew/homebrew-core/blob/master/Formula/g/gitea.rb
Author
Owner

@github-actions[bot] commented on GitHub (Feb 29, 2024):

Automatically locked because of our CONTRIBUTING guidelines

@github-actions[bot] commented on GitHub (Feb 29, 2024): Automatically locked because of our [CONTRIBUTING guidelines](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#issue-locking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12380