mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-21 04:02:17 -05:00
web UI remains empty (Quick Guide) after pushing from existing git repository #7819
Closed
opened 2025-11-02 07:37:53 -06:00 by GiteaMirror
·
24 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.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.3
v1.4.0-rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#7819
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @frnmst on GitHub (Sep 8, 2021).
Gitea version (or commit ref): 1.15.2 (affects 1.15.1 and 1.15.0 as well)
Git version: 2.20.1
Operating system: Debian 10 using
deb [arch=amd64] https://packaging.gitlab.io/gitea buster stableas APT sourceDatabase (use
[x]):Can you reproduce the bug at https://try.gitea.io:
Log gist:
file log
console log
Description
Hello,
when I create an empty repository and I push an existing one from git, the web UI does not update. This did not happen with version 1.14.7. I made a copy of the database and tried migrating like this:
1.14.7 -> 1.15.0 -> 1.15.1 -> 1.15.2
and
1.14.7 -> 1.15.2
the problem happens both using a systemd service and
$ HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea /usr/bin/gitea -c /etc/gitea/app.ini web --verboseI read that the problem might be that the git hooks are not running because the partition is marked as
noexec. Not my case:SSH keys are all in order because it works with version 1.14.7
gitea doctor says
Any ideas?
@delvh commented on GitHub (Sep 8, 2021):
What confuses me the most is that Gitea apparently updated the web UI on the first push previously…
As far as I know, you always have to reload Gitea to see the new current state.
I don't see why it should be different for the first push.
Unlike GitHub, where you get notified about every single action immediately.
Or do you perhaps mean that the web UI remains empty even after a page reload?
@frnmst commented on GitHub (Sep 8, 2021):
Yes, it remains empty after each reload (F5 on browser, tried on two different browsers). Sometimes if I restart gitea changes are loaded (no more Quick Guide and actual content) but most of the time it does not work.
@frnmst commented on GitHub (Sep 8, 2021):
If I do the same actions using version 1.14.7 the page refreshes correctly.
@delvh commented on GitHub (Sep 8, 2021):
Does it even persist after a force refresh (on Firefox
Ctrl+Shift+R)?Because if not this issue is most likely cache related, otherwise it is more serious…
@frnmst commented on GitHub (Sep 8, 2021):
Yes it persists
@delvh commented on GitHub (Sep 8, 2021):
Not good.
I hope one of the core maintainers can help you better than I can,
because this was the easiest and only thing I could think of that might have resolved this error.
@frnmst commented on GitHub (Sep 8, 2021):
Yes it's really strange. There is another problem which might be related so i don't know if I need to open a new issue: when I add a new repository as a migration (tested with "Git" only, both mirror and simple migration) it is stuck on
Migrating from .... Tested with https://github.com/thockin/test which is 120KB so it should be instant@frnmst commented on GitHub (Sep 8, 2021):
I installed redis yesterday for performance. By trial and error, adding these settings to the config seem to solve the problem somehow. Something does not work with queue on simple files maybe
@lunny commented on GitHub (Sep 9, 2021):
Have you checked the files permission that owners are
git?@frnmst commented on GitHub (Sep 9, 2021):
permissions are these:
@idealism-xxm commented on GitHub (Sep 9, 2021):
I ran into a similar problem after Gitea was updated from v1.14.7 to v.1.15.0
After I pushed a commit, I didn't see anything in web UI and the result of API (
/repos/{owner}/{repo}/contents/{filepath}) was also empty.But I could get all files and all commits when I clone it into a new directory.
I also have found a strange thing twice: I created many repositories and pushed commits, but I could only saw the records of creating repositories at Home page.
Suddenly all records appeared at the same time and all created time were same.
@idealism-xxm commented on GitHub (Sep 16, 2021):
This problem happened again with version v1.15.2
Missing records appear after I delete new pod and start a new pod.
So I thought there was something stuck and I found two running process.
@zeripath commented on GitHub (Sep 22, 2021):
OK, so we're not sure what's causing this - and without some more logging we're kinda stuck...
However, one of the PRs that went into 1.15.3 means that we now can tell what is opening these repos.
So would it be possible to upgrade to 1.15.3 and try again - and try to give us DEBUG logs from when the cat-file batch is opened and tell us what opened the cat-file batch too.
@idealism-xxm commented on GitHub (Sep 23, 2021):
Thanks for your reply. I'll try again with v1.15.3
I find another way that could handle this: flushing queue with name
push_update-channelon page/admin/monitor/queue/{qid}will make all of missing records appear. (This action will post/admin/monitor/queue/{qid}/flush)And I find there is something missing in the failure log. Maybe the later task won't add a new worker.
Success:
Failure:
I notice that the
repo_pathof the stuck process mentioned before isn't a existent repo.Is it casued by deleting a repo when pushing to remote?
@cweijden commented on GitHub (Oct 27, 2021):
I started a fresh docker instance (v1.15.5 + MySQL:8) and also ran into the first posters problem. Do I understand correctly that when using Redis, this problem does not occur? Could it be database (version) specific?
@zeripath commented on GitHub (Oct 27, 2021):
Sorry I missed this.
I think this might be hinting as to what's going on.
There are two queues that could be getting full here:
Both of these queues can block if they are full and you would need to adjust their lengths - for which there are settings.
Now if you set the default Queue type to be "redis" or "level" then for the patch checking queue (and the mirror queue on 1.16) you will avoid this limit.
So... I think the question is how many PRs do you have in your instance?
@frnmst commented on GitHub (Oct 27, 2021):
@cweijden in my case it works perfectly
@zeripath At the moment I'm still on Gitea 1.15.2. I have these queue settings in the app.ini file:
I just read in the config cheatsheet that these configs are deprecated although their defaults are still 1000.
I have ~= 300 repository mirrors but practically no PRs. Just for reference here is the full report of what happened.
@zeripath commented on GitHub (Oct 27, 2021):
Sorry incorrect PR linking above!
The cheatsheet you are looking at is referring to 1.16 not 1.15. Both of those values are still used in 1.15
@frnmst commented on GitHub (Oct 28, 2021):
Ah ok. Is 1.16 still in dev? If so maybe it would be useful to put a version identifier for https://docs.gitea.io something like the one used in the Sphinx RTD theme.
@zeripath commented on GitHub (Oct 28, 2021):
There are other issues to discuss online documentation.
I think there's another queue that could actually be getting full - the repo_stats_update queue.
It would be useful to know if you have changed your queue settings from default at all.
If not why don't you try setting your base queue type to level or redis to see if that solves the issue.
@frnmst commented on GitHub (Oct 28, 2021):
I found a solution soon after opening this issue. At the moment I have these queue settings and everything is working fine:
The problem is that this does not answer the question of what went wrong in the first place with the default queue type.
I don't remember changing the queue values before updating to 1.15.2 because of this issue.
@cweijden commented on GitHub (Oct 30, 2021):
For me there seems to be some environmental factor in play. I have started a fresh docker-compose instance on a physical amd64 machine (running Ubuntu 21.04), for which the first personal local repository can be pushed to Gitea, though without proceeding past the Quick Guide page. When starting the same docker-compose.yml in a Ubuntu 21.10 vm (same physical machine) Gitea gets past the Quick Guide after pushing that same local repository.
I guess one of the other Docker containers on the physical machine interferes somehow. I will be sifting through the networking configuration when I have some more time.
@lunny commented on GitHub (Nov 4, 2021):
Could you help to run
./gitea doctor?@wxiaoguang commented on GitHub (Apr 6, 2022):
This problem should have been fixed after adding the
IsEmptycheck in repo view.