-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
When creating repo without init it shows still howto #2898
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
Can not reproduce that locally. |
Is there any way how I can debug it more from my side? |
Could you find the xorm.log to put it also on gist? |
I'm still having this issue over at #2665 - You can fix it for individual repos by editing your database manually, but I still haven't figured out where the error's coming from. |
Here is the log: https://ncry.pt/p/ugKn#B9sqCgoGCJzWgHYb-GljnXP20lKkGDxfr9DrcsWBrws @cathalgarvey yep, I know you can fix it manually.. bt that´s actually not what I am looking for :)) |
Line 527 in f2e20c8
This function is called by Line 203 in 9ddbbd9
gitea hook command. This command is run from the $REPO/hooks/post-receive.d/gitea script, which is called from the $REPO/hooks/post-receive wrapper, which is (finally) run by git when pushing over ssh .
This means that if for some reason git hooks are not getting called, or some program they depend on is missing, the In my case the problem was having my repo storage on a ZFS dataset mounted After remounting the filesystem |
Hi @smaeul, Wow, such a detailed and great explanation. Many thanks! Yes, I have filesystem mounted with noexec, so that could be the issue. I will give it a try tonight and report if it's working or not. |
Same error here. I push in a bare repo via HTTP, not via SSH. So I need to update the bare flag manually. Is here a solution for this? |
Same error |
I seem to be able to reproduce this. But no Docker and no crazy filesystems (regular ext4, no special mount options). It's late now, will see what I can figure out another day. |
This has to do with git version, and gitea is broken on older versions. On a Centos 7 box, git (1.8.3.1) does not support the Gitea runs something like:
If you replace the ref with a real ref, and run on a "modern" git, it will work, but with an older git, it will fail (and yes, with a non-zero exit code). The only hint that something is going wrong in Gitea is, if you run with log level Trace, something that looks like:
Sorry I can't be of more help in debugging (or even fixing this), but I've only just started on my journey learning Go, and I know very little about the architecture of Gitea - this is what I've been able to glean in about 10 minutes of poking through the code. My suggestions going forward:
|
I think this should be fixed by #4059 |
Seems to still be a problem: Gitea version b1ad573 built with: bindata, sqlite I haven't run the sqlite changes yet - instead, I just upgraded gitea. When I ran into this with a repo again, I just deleted the empty repo, recreated, and re-pushed. Still seeing the HOWTO. |
And filesystem from which gitea is running doesnt have noexec option? |
I also observing this issue. |
Check gitea.log for errors |
pushed something here
|
I have the same symptoms (nothing shows up in the repository home page, even after two pushes). Server side
Client side
|
It seems that the hook which should update the database is not executed always. While evaluating, I ran multiple times into this issue, but somehow the push on the production system did not had this issue. |
I installed yesterday's version (gitea 1.5.2). For a good measure, I disabled SELinux ( |
I further fiddled with gitea 1.5.2:
So the issue of the frozen repository page seems correlated to the fact that the offending repository started completely empty. When pre-populated with the |
Still cannot reproduce on MacOS |
For the record, I enabled SELinux again ( |
@pcopissa this issue only appears to impact brand new repos (including on non-SELinux distros). Do you still see this after:
If you are still having the issue, your initial push will not show up in the web UI (it'll look as if the git repo is empty) |
@jamiesonbecker I confirm I just ran step 1 and 2 above and the web UI shows no file.
|
@pcopissa hmm, maybe creating |
This issue is particularly annoying because it is the direct result of leaving the web UI defaults unchanged when creating a new repository. This is a perfect way of discouraging people evaluating the software to continue. |
Agreed - of course, adding a file seems to make it more difficult to push an existing repo with a git history of its own. |
I now have to deal with something that looks like issue #3848... |
I think you should reopen this issue because it certainly isn't gone... I am having the problem with gitea 1.9.1 on CentOS, git 2.21.0, filesystem is NOT noexec. Please advise... |
Reproducible on Gitea Version: 1.9.3 |
Please fire another issue and give more detail there. |
This comment has been minimized.
This comment has been minimized.
Have you ensured that your SSD partition is not flagged "noexec", as I documented above? Gitea relies on executable hooks in the git repositories, if the partition does not permit these to execute then the operations will fail within the shelled-out "git" command in a way that doesn't give great tracebacks to Gitea. This was the cause of my problem.
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:
https://tutanota.com
1 Oct 2020, 08:25 by [email protected]:
…
Same for me:
Gitea version: v1.12.4
Git version: 2.24.3
Operating system: Alpine (Docker image)
Database: SQLite
I'm running the docker image below on a raspberry pi 3 and the /data directory is mounted on a USB external ssd.
> https://hub.docker.com/r/kunde21/gitea-arm
—
You are receiving this because you were mentioned.
Reply to this email directly, > view it on GitHub <#2898 (comment)>> , or > unsubscribe <https://github.com/notifications/unsubscribe-auth/AAI5DXJ64LYANKD4TBVKAQTSIQVHZANCNFSM4EDLMFSA>> .
|
Well, I first tested just after changing my fstab file with no luck, but I just made another test after restarting the pi and now it works, so I guess you can forget my comment, sorry. |
[x]
):https://ncry.pt/p/VfKn#hZGWhGd1lY4mCeABs78BHL-Kn570v07pvFC9Fy2htjM
Description
Using latest gitea/gitea docker image. When I create new repository, but do not initialize it on server it shows howto push it from client. So I create repository, add all files, commit it to git, push it to remote according to howto but nothing shows on web (but code is there) - I tried to clone files locally to different folder. On Discord with lafriks we find out that I have to change is_bare to f in postgres then it's working, but he was not able to reproduce it (and for him it changes to is_bare to f when he push something)
Screenshots
The text was updated successfully, but these errors were encountered: