-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
InitIssuesIndexer: create index, mkdir /usr/local/bin/data: permission denied #4672
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
Comments
What output to you get in gitea.log or stdout about directories? |
Maybe it doesn't parse environment config correct?
|
gitea.log I pasted in my first message. stdout.log: Probably AppWorkPath is the issue here. Removing spaces in environment didn't help. |
I also hit this problem while trying to start gitea manually.
|
Looks like problem is that supervisor does not set |
Documenting on the off chance that someone else has to deal with this situation, In order to make the contributed service definition work under Centos 6, I had to make these changes to pick up the GITEA_WORK_DIR. I also had to change the cwd to ~git explicitly in order for it to find the https certificate files. It seems like there must be a better approach. Maybe a gitea option to set the AppWorkPath: value directly? Starting with
|
this problem its due the explained in #5482 |
see #5482 |
[x]
):2018/08/11 16:54:30 [I] Log Mode: File(Info)
2018/08/11 16:54:30 [I] XORM Log Mode: File(Info)
2018/08/11 16:54:30 [I] Cache Service Enabled
2018/08/11 16:54:30 [I] Session Service Enabled
2018/08/11 16:54:30 [I] Mail Service Enabled
2018/08/11 16:54:30 [I] Notify Mail Service Enabled
2018/08/11 16:54:32 [I] Git Version: 2.17.1
2018/08/11 16:54:32 [...les/indexer/issue.go:64 InitIssueIndexer()] [E] InitIssuesIndexer: create index, mkdir /usr/local/bin/data: permission denied
Description
Fresh install. Done according to documentation, yet it attempts to create a subdirectory of its binary path, not in the working directory.
Started by supervisor with the following config:
[program:gitea]
directory=/var/lib/gitea
command=/usr/local/bin/gitea web -c /etc/gitea/app.ini
autostart=true
autorestart=true
startsecs=10
stdout_logfile=/var/log/gitea/stdout.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/var/log/gitea/stderr.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
user = git
environment = HOME="/home/git", USER="git", GITEA_WORK_DIR="/var/lib/gitea"
The text was updated successfully, but these errors were encountered: