-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Permission denied after latest docker upgrade #5688
Comments
Can you add your |
Sure, this is my
I'm using the |
I'm getting the same error. Was running without issue prior to the update.
|
For reference, reverting to |
Same error here. Changing permissions in the mounted volume does not help for me. |
Nope Gitea isn't starting, caused by:
|
@apricote PR #5290 was to prevent that message from occuring so if it still is, then PR #5290 isn't working correctly - I suspect the message is coming up because gitea can't talk to the database - so hence the migrate is failing.
|
@zeripath I checked my xorm.log and found the following lines repeatedly: https://pastebin.com/1J6CZkWW |
Hmm so that xorm.log isn't particularly enlightening... There was a bug with migration that was recently fixed #5682 . I don't know if you would be able to retry and see if that solves your issue. |
I gave this PR a try, but this issue is still persistent in the latest version. |
Hmm do you mean latest or v1.7? |
1.7 is working fine. |
Ok right, this is annoying. If you're able to edit the entry point file of the latest could you try to change the migrate line to:
|
How can I edit this file? |
OK
Or something equivalent then you should be able to edit the /usr/bin/entrypoint file. |
After changing the entrypoint I get the following error:
|
You don't have the latest docker. That's bug #5861 which was fixed in PR #5862 which was committed to master on January 12 as commit 9e9d1b8 and should have been in docker shortly after. You need to remove your current docket image and get the latest docker image again. That is what I was asking a day ago. I think however we should change the migrate line to the one I've suggested above as it's clearly better. |
I upgraded Docker to version 18.09.1, build 4c52b90 |
I've found that the second -c (the one passed to gitea migrate) is actually trying to be interpreted by |
@AragurDEV Sorry to hear you're still having problems. It's not our aim and we really do appreciate your patience. Does Gitea still not start with the new docker image (I wouldn't necessarily be worried about the permission denied error if it does - it just means automigration isn't working.) If not, does changing the entrypoint line as I suggested, (copied again below), allow Gitea to start?
If it does, then we'll get the change put in to the master and you shouldn't have this problem again Thanks once again for your patience. |
@zeripath No problem, that's what the latest tag is for :) It's still not working with the latest image. |
Latest still does not work for me even on latest commit 47ca106 |
I'm having the same issue as @Keridos
|
@Keridos what's your logs? |
@AragurDEV it seems that's another issue? |
@lunny it is the same issue as last time. |
Have you guys been able to fix this problem or found a proper workaround? |
@nik-bauer what's your issue? I think we have fixed this problem? |
When I change my docker compose file from gitea:1.6.3 to gitea:latest it still comes not up. Containerlogs just show the same starting up messages every few seconds. |
You could find logs on container's filesystem |
|
@lunny unfortunately I'm still getting the same issue as @pr4xx in the logs, as well as the initial |
Same docker-compose as posted above. The permission denied error that started this thread is gone but gitea:latest still fails to run. Same error as @pr4xx and @nik-bauer. It appears the same error was encountered in #5681 but that issue has been marked as closed. In our use case, fix #5682 does not seem to be a working patch. As suggested in #5681 I've used phpMyAdmin to edit Database:gitea Table:User and changed the Table column for each entry from NULL to gitea. I now have a working gitea:latest |
@danofun thx to your reply I got it working now! The problem was that even though I set the default value for the field |
I also have the same problem. so how to solve it? |
@zuosc I think there are serval problems in this thread. Please fire another issue to describe your issue. |
[x]
):Description
After upgrading my docker-compose instance from Gitea to the latest version I get the following error (as seen above).
I already tried chowning the my mounted gitea volume to 999 (docker) and 1000 (default Gitea user) with now success.
The text was updated successfully, but these errors were encountered: