Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitea doesn't run with readonly git config #622

Closed
kachick opened this issue Jun 4, 2024 · 4 comments
Closed

gitea doesn't run with readonly git config #622

kachick opened this issue Jun 4, 2024 · 4 comments

Comments

@kachick
Copy link
Owner

kachick commented Jun 4, 2024

Stating form is executed, but starting will be rejected with frozen git config

> nix develop
> TAGS="bindata sqlite sqlite_unlock_notify" make build
> ./gitea web
2024/06/04 12:11:39 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization.
2024/06/04 12:11:39 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2024/06/04 12:11:39 ...s/install/install.go:594:SubmitInstall() [I] First-time run install finished!
2024/06/04 12:11:42 cmd/web.go:355:listen() [I] HTTP Listener: 0.0.0.0:3000 Closed
2024/06/04 12:11:42 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.23.0+dev-177-g433963e52c built with GNU Make 4.4.1, go1.22.2 : bindata, sqlite, sqlite_unlock_notify
2024/06/04 12:11:42 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2024/06/04 12:11:42 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /home/kachick/repos/github.com/go-gitea/gitea/gitea
2024/06/04 12:11:42 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /home/kachick/repos/github.com/go-gitea/gitea
2024/06/04 12:11:42 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /home/kachick/repos/github.com/go-gitea/gitea/custom
2024/06/04 12:11:42 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /home/kachick/repos/github.com/go-gitea/gitea/custom/conf/app.ini
2024/06/04 12:11:42 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2024/06/04 12:11:42 routers/init.go:73:mustInitCtx() [F] code.gitea.io/gitea/modules/git.InitFull(ctx) failed: failed to set git global config diff.algorithm, err: exit status 255 - error: could not lock config file /home/kachick/.config/git/config: Permission denied
 - error: could not lock config file /home/kachick/.config/git/config: Permission denied

Looks like same problem as go-gitea/gitea#28810

@kachick
Copy link
Owner Author

kachick commented Jun 4, 2024

If I use NixOS and no develop versions, this module maybe useful

@kachick
Copy link
Owner Author

kachick commented Aug 15, 2024

https://forgejo.org/

@kachick
Copy link
Owner Author

kachick commented Sep 18, 2024

Part of GH-504?

@kachick kachick mentioned this issue Sep 25, 2024
11 tasks
@kachick
Copy link
Owner Author

kachick commented Oct 16, 2024

See #850

@kachick kachick closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant