LFS_CONTENT_PATH defaults to '' #1061

Closed
opened 2025-11-02 03:46:53 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @chorvus on GitHub (Sep 14, 2017).

  • Gitea version (or commit ref): 1.2.0+rc2
  • Git version: not relevant
  • Operating system: Win 10 x64
  • 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

I was trying to test out the LFS support, I flipped LFS_START_SERVER to true and I got this:

2017/09/14 18:50:16 [...s/setting/setting.go:735 NewContext()] [E] Failed to create '': mkdir : The system cannot find the path specified.

Manually adding LFS_CONTENT_PATH = data/lfs to my app.ini makes it run as intended, updating the conf file with LFS_JWT_SECRET and booting up without issues.

It should either default to data/lfs (updating the app.ini) or quit with a descriptive error message.

Originally created by @chorvus on GitHub (Sep 14, 2017). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.2.0+rc2 - Git version: not relevant - Operating system: Win 10 x64 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description I was trying to test out the LFS support, I flipped `LFS_START_SERVER` to `true` and I got this: ``` 2017/09/14 18:50:16 [...s/setting/setting.go:735 NewContext()] [E] Failed to create '': mkdir : The system cannot find the path specified. ``` Manually adding `LFS_CONTENT_PATH = data/lfs` to my app.ini makes it run as intended, updating the conf file with `LFS_JWT_SECRET` and booting up without issues. It should either default to `data/lfs` (updating the app.ini) or quit with a descriptive error message.
GiteaMirror added the type/bug label 2025-11-02 03:46:53 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1061