gitea: CreateIssuesIndexer: mkdir indexers: permission denied
- Gitea version (or commit ref): 1.1.0
- Git version: 2.11.1
- Operating system: FreeBSD 11.0-RELEASE-p8 (or) FreeBSD 10.3-RELEASE-p17
- 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:
2017/03/23 14:47:42 [I] Log Mode: File(Info)
2017/03/23 14:47:42 [I] XORM Log Mode: File(Info)
2017/03/23 14:47:42 [I] Cache Service Enabled
2017/03/23 14:47:42 [I] Session Service Enabled
2017/03/23 14:47:42 [I] Mail Service Enabled
2017/03/23 14:47:42 [I] Notify Mail Service Enabled
2017/03/23 14:47:43 [I] Git Version: 2.11.1
2017/03/23 14:47:43 [...els/issue_indexer.go:77 InitIssueIndexer()] [E] CreateIssuesIndexer: mkdir indexers: permission denied
Description
I updated two of my productions Gitea servers from v1.0.1 to v1.1.0 through FreeBSD ports and now Gitea service refuses to start with the following line in the logs:
2017/03/23 14:47:43 [...els/issue_indexer.go:77 InitIssueIndexer()] [E] CreateIssuesIndexer: mkdir indexers: permission denied
The error is very ambiguous and hard to understand. So, now both servers are simply out of production due to this error or whatever caused it.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (13 by maintainers)
@NuLL3rr0r I don’t think indexers uses APP_DATA_PATH. Try setting something like this instead in your app.ini
Maybe
ISSUE_INDEXER_PATH = /var/db/gitea/data/indexers/issues.bleveshould be added to config cheetsheet and change the default value togitea/data.Maybe move indexers into the data directory? Or is there a reason why it isn’t in there?
worked here too! thanks
@cez81 Thank you so much!
That solved the issue for me.