Docker image has no git-lfs path, and adding one will lead to an error without manual intervention #708

Closed
opened 2025-11-02 03:33:47 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @ghost on GitHub (May 13, 2017).

  • Gitea version (or commit ref): latest docker image
  • Git version: latest docker image
  • Operating system: Ubuntu 17.04 (Host) / latest docker image
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

The default install when launching the docker image has an empty path for LFS (why?).
If I add /data/git-lfs which is inside the docker volume, I get this:

invalid_lfs_path%!(EXTRA *os.PathError=mkdir /data/git-lfs/: permission denied)

If the docker image has no permissions to add paths, then I suggest there should be one preconfigured that actually works. (otherwise, at this point the user will be confused and/or required to manually open up a shell in the container to create a path for LFS storage which is a bit annoying)

Screenshots

If this issue involves the Web Interface, please include a screenshot

Originally created by @ghost on GitHub (May 13, 2017). - Gitea version (or commit ref): latest docker image - Git version: latest docker image - Operating system: Ubuntu 17.04 (Host) / latest docker image - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant - Log gist: ## Description The default install when launching the docker image has an empty path for LFS (why?). If I add `/data/git-lfs` which is inside the docker volume, I get this: ` invalid_lfs_path%!(EXTRA *os.PathError=mkdir /data/git-lfs/: permission denied) ` If the docker image has no permissions to add paths, then I suggest there should be one preconfigured that actually works. (otherwise, at this point the user will be confused and/or required to manually open up a shell in the container to create a path for LFS storage which is a bit annoying) ## Screenshots **If this issue involves the Web Interface, please include a screenshot**
GiteaMirror added the issue/duplicate label 2025-11-02 03:33:47 -06:00
Author
Owner

@evilstiefel commented on GitHub (May 16, 2017):

This is a duplicate of #1221

@evilstiefel commented on GitHub (May 16, 2017): This is a duplicate of #1221
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#708