Duplicated feed for new repos #5503

Closed
opened 2025-11-02 06:26:52 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @ozonep on GitHub (Jun 5, 2020).

  • Gitea version (or commit ref): 1.11.0-rc1 and later
  • Git version: not relevant
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I faced an issue.
Every time I create new repo it appears twice in my feed + it's counted as 2 contributions instead of 1.
Although new commits appear correctly in feed, as 1 entry.
After testing all versions I can say that this bug appeared for the first time in v1.11.0-rc1.
On 1.10.6 everything's fine.
Also tried dev version from "master" branch - the bug is still there.

Running in Kubernetes + also tested locally running official Docker container (with default settings).

Screenshots

ivan - Dashboard - Gitea: Git with a cup of tea 2020-06-05 15-44-14

Originally created by @ozonep on GitHub (Jun 5, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.11.0-rc1 and later - Git version: not relevant - Operating system: Linux - Database (use `[x]`): - [x] PostgreSQL - [x] MySQL - [x] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description I faced an issue. Every time I create new repo it appears twice in my feed + it's counted as 2 contributions instead of 1. Although new commits appear correctly in feed, as 1 entry. After testing all versions I can say that this bug appeared for the first time in v1.11.0-rc1. On 1.10.6 everything's fine. Also tried dev version from "master" branch - the bug is still there. Running in Kubernetes + also tested locally running official Docker container (with default settings). ## Screenshots ![ivan - Dashboard - Gitea: Git with a cup of tea 2020-06-05 15-44-14](https://user-images.githubusercontent.com/20884214/83878022-25ae0e00-a744-11ea-93a6-b56d37f5ecbe.png)
GiteaMirror added the issue/stale label 2025-11-02 06:26:52 -06:00
Author
Owner

@ozonep commented on GitHub (Jun 9, 2020):

I found root cause of that issue.
It happens after initial install (with setting configuration options), and is fixed after first reboot of the server.
I see 2 options here:

  • Add to Docs that server should be rebooted not only after upgrade but after clean install too.
  • Add
    ctx.Redirect(form.AppURL)
    graceful.GetManager().DoGracefulRestart()
    at the end of 'install.go' script... To force-restart service....
@ozonep commented on GitHub (Jun 9, 2020): I found root cause of that issue. It happens after initial install (with setting configuration options), and is fixed after first reboot of the server. I see 2 options here: - Add to Docs that server should be rebooted not only after upgrade but after clean install too. - Add `ctx.Redirect(form.AppURL)` `graceful.GetManager().DoGracefulRestart()` at the end of 'install.go' script... To force-restart service....
Author
Owner

@ozonep commented on GitHub (Jun 9, 2020):

The main issue here is that usually with Docker install you don't stop your service once it's started, (until/unless you update image version).
So I'd never guessed to just restart container or Kubernetes pod...

@ozonep commented on GitHub (Jun 9, 2020): The main issue here is that usually with Docker install you don't stop your service once it's started, (until/unless you update image version). So I'd never guessed to just restart container or Kubernetes pod...
Author
Owner

@stale[bot] commented on GitHub (Aug 8, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Aug 8, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Sep 2, 2020):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Sep 2, 2020): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5503