-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Permission denied errors after upgrade to 1.16.5 / fails to start #19367
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
It is recommended you use absolute paths because |
Thank you @techknowlogick that fixed the issue. Setting APP_DATA_PATH to an absolute path. Is there something planned to add an automatic fix or alert to check for absolute paths? I didn't think of path problems, because the gitea doctor did not alert on the check and it worked without issue on the versions before.
|
@catinello would you mind reopening this issue? I believe this was a regression and should at least be documented. I was just bit by it myself. gitea/custom/conf/app.example.ini Line 227 in 8720f87
The example config still has it as a relative path, too. I see you use the Void package, another solution I found for it was to cd into |
- add log service - cd into $HOME before running: fixes issues with APP_DATA_PATH being a relative path, which is the default in the example config. See [1] [1] go-gitea/gitea#19367
@ericonr from which Gitea version did you upgrade? |
There are multiple repeated issues whereby a non-absolute provided APP_DATA_PATH causes strange issues. This PR simply absolutes the APP_DATA_PATH against the AppWorkPath if its not so. It also ensures that AppWorkPath is also always absolute. Ref go-gitea#19367 Signed-off-by: Andrew Thornton <[email protected]>
See https://hostea.org/blog/path-not-found/ for a detailed explanation of this issue. |
- add log service - cd into $HOME before running: fixes issues with APP_DATA_PATH being a relative path, which is the default in the example config. See [1] [1] go-gitea/gitea#19367
@silentcodeg I updated from 1.15.8 |
@ericonr does https://hostea.org/blog/path-not-found/ shed some light as to why this regression happened and how to avoid it in the future in void packages? |
* Make AppDataPath absolute against the AppWorkPath if it is not There are multiple repeated issues whereby a non-absolute provided APP_DATA_PATH causes strange issues. This PR simply absolutes the APP_DATA_PATH against the AppWorkPath if its not so. It also ensures that AppWorkPath is also always absolute. Ref #19367 Signed-off-by: Andrew Thornton <[email protected]> * Add logging Signed-off-by: Andrew Thornton <[email protected]> * absolute workpath against pwd instead of app path first Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
- add log service - cd into $HOME before running: fixes issues with APP_DATA_PATH being a relative path, which is the default in the example config. See [1] [1] go-gitea/gitea#19367
- add log service - cd into $HOME before running: fixes issues with APP_DATA_PATH being a relative path, which is the default in the example config. See [1] [1] go-gitea/gitea#19367
…tea#19815) * Make AppDataPath absolute against the AppWorkPath if it is not There are multiple repeated issues whereby a non-absolute provided APP_DATA_PATH causes strange issues. This PR simply absolutes the APP_DATA_PATH against the AppWorkPath if its not so. It also ensures that AppWorkPath is also always absolute. Ref go-gitea#19367 Signed-off-by: Andrew Thornton <[email protected]> * Add logging Signed-off-by: Andrew Thornton <[email protected]> * absolute workpath against pwd instead of app path first Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
Description
After upgrading to 1.16.5 my installation was not coming back up. I'm receiving those errors (see GIST for Log and Doctor output), even though the permissions are correct. Switching to the gitea user allows me to create directories and files in the given paths.
This kind of output loops forever.
If you need further information, please let me know.
Gitea Version
1.16.5
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/catinello/910df81c3dfa131fe347f3a528fa8966
Screenshots
No response
Git Version
2.35.1
Operating System
Void Linux
How are you running Gitea?
Packaged gitea version as a running service. https://github.com/void-linux/void-packages/tree/master/srcpkgs/gitea
Database
SQLite
The text was updated successfully, but these errors were encountered: