-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
bug: working dir path its not fully honored with GITEA_WORK_DIR #5482
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
version 1.6.1 released !! i can understand that this issue are not easy to solve but... |
I had the same issue (v1.6.4). And the binary's path is written in some files like repositories hooks and authorized_keys. I ended up moving the binary in a writeable directory, and sedding the previously mentioned files to update the path... |
this still does not work for other webservers using reverse proxy and also for binary distribution.. again more features = more bugs |
I think this might not be so hard to fix and I'd put a PR in to do so, but I don't understand what the problem is exactly from the above comments. Can you for each problem file:
|
I'm not sure if this is related to this issue or not. If not, I'll create a new one. I am using Arch Linux installation of gitea, which is using this service file. After updating to 1.7.0, the service fails to start and the following can be found from the status command.
If I run the followng as root gitea starts with no errors, but I'm unable to access anything ssh related. Logs show that it is a permissions error to /home/git/.ssh.
|
So, my original app.ini had SSH_ROOT_PATH set to /home/git/.ssh. I changed it to be null and gitea service started up. |
now we have 1.7.3 and this problem still persist! |
@mckaygerhard we are unable to assist you and solve the issue if we don't have all the information about your problem. Are you able to respond to @zeripath's questions? |
@zeripath and @techknowlogick all are obviously posted in the original iisue request, but well let's posted that wants you here in detail again:
can you see in the original request:
i setup in gitea ini a "xxxx" path .. whatever path i setup , no matter what, i set at command line
no re-creates database again (sqlite) and read ini file (where i setup database to mysql or sqlite, no matter what i setup or environment variable i set, it's not honored) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Hmm... I think this is solved already. |
[x]
):Description
i setup my fles (either compile with bindata or not) in /srv/gitea and the binary in /usr/bin/gitea, then run using GITEA_WORK_DIR to set to /srv/gitea, as cgi or as daemon ...
seems due changes since #2192 due the issue #1419 the gitea assumes many files will be in current path from where are "invoked" the binary (in daemon case from nowhere, in others cases from users home) so some very non-dessire behaviour will happened:
using the variable of working dir gitea "reads" de db (with pingin) and later create it? as i can see in the log file seems that are very confused!
Log
later i can see that database are crated:
The text was updated successfully, but these errors were encountered: