Installing Forgejo from the Fedora repository doesn't end with a working instance – at least for me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have a Forgejo rpm in the Fedora f41 repository, version 10 for x86_64. A aarch64 variant is currently missing (there is, however, a version 9 in COPR). 

I tried to install it on my Fedora Server test instance to check how it goes. The rpm doesn’t create a working directory, e.g. /var/lib/forgejo, nor a configuration directory and config file, e.g. /etc/forgejo/app.ini. And it creates a (admin) user git, but no home directory as stated in the passwords entry.

A systemctl start forgejo ends with

     Loaded: loaded (/usr/lib/systemd/system/forgejo.service; disabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf, 50-keep-warm.conf
     Active: activating (auto-restart) (Result: exit-code) since Sat 2025-03-08 21:43:05 CET; 387ms ago
 Invocation: 54b4c38e9cdb46ac8860b0ab5562ffb7
    Process: 18368 ExecStart=/usr/local/bin/forgejo web --config /etc/forgejo/app.ini (code=exited, status=203/EXEC)
   Main PID: 18368 (code=exited, status=203/EXEC)

In journal I found:

Mar 08 21:44:46 cbox.fritz.box systemd[1]: forgejo.service: Scheduled restart job, restart counter is at 47.
Mar 08 21:44:46 cbox.fritz.box systemd[1]: Started forgejo.service - Forgejo (Beyond coding. We forge.).
Mar 08 21:44:46 cbox.fritz.box (forgejo)[18467]: forgejo.service: Unable to locate executable '/usr/local/bin/forgejo': No such file or directory>
Mar 08 21:44:46 cbox.fritz.box (forgejo)[18467]: forgejo.service: Failed at step EXEC spawning /usr/local/bin/forgejo: No such file or  directory>
Mar 08 21:44:46 cbox.fritz.box systemd[1]: forgejo.service: Main process exited, code=exited, status=203/EXEC
Mar 08 21:44:46 cbox.fritz.box systemd[1]: forgejo.service: Failed with result 'exit-code'. directory


Indeed, there is no forgejo in /usr/local/bin but in /usr/bin.

When I, as an unprivileged user, launch forgejo directly, it starts with a workpath for repos from /usr/bin – rather suboptimal.



Is this the intended result of the rpm installation? I also couldn't find any information about what an admin might have to do after the installation. 

Any help or information greatly appreciated.



—
Peter Boy
https://fedoraproject.org/wiki/User:Pboy
PBoy@xxxxxxxxxxxxxxxxx

Timezone: CET (UTC+1) / CEST (UTC+2)

Fedora Server Edition Working Group member
Fedora Docs team contributor and board member
Java developer and enthusiast


-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux