How can remove one invalid change from dash board?

76 views
Skip to first unread message

Yingchun Li

unread,
Dec 8, 2025, 3:25:52 AM (8 days ago) Dec 8
to Repo and Gerrit Discussion
There is a broken link in one user’s dashboard under “Outgoing Reviews”. When clicking on it, Gerrit returns a 404 error, indicating that the change no longer exists.

This likely happened because I recently restored the project from a backup, which may have caused the change (or its underlying data) to be lost or become inconsistent.

I’ve already tried the following steps:

Reindexed the entire Gerrit server(and even remove the whole cache)
Searched the server filesystem and logs for any trace of the change ID (using grep and find) — but found nothing.

The invalid link still appears in the dashboard.

It’s not a critical issue, but it’s annoying. Could you please suggest how to remove this stale link from the user’s dashboard?

Thanks in advance!
Br,
Yingchun

Luca Milanesio

unread,
Dec 8, 2025, 3:58:00 AM (8 days ago) Dec 8
to Repo and Gerrit Discussion, Luca Milanesio


> On 8 Dec 2025, at 08:25, Yingchun Li <sword.l...@gmail.com> wrote:
>
> There is a broken link in one user’s dashboard under “Outgoing Reviews”. When clicking on it, Gerrit returns a 404 error, indicating that the change no longer exists.
>
> This likely happened because I recently restored the project from a backup, which may have caused the change (or its underlying data) to be lost or become inconsistent.
>
> I’ve already tried the following steps:
>
> Reindexed the entire Gerrit server(and even remove the whole cache)

Did you perform an off-line reindex?

Luca.

> Searched the server filesystem and logs for any trace of the change ID (using grep and find) — but found nothing.
>
> The invalid link still appears in the dashboard.
>
> It’s not a critical issue, but it’s annoying. Could you please suggest how to remove this stale link from the user’s dashboard?
>
> Thanks in advance!
> Br,
> Yingchun
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/3f468f25-62f7-4637-94c2-5876783bea76n%40googlegroups.com.

Rikard Almgren

unread,
Dec 8, 2025, 3:59:16 AM (8 days ago) Dec 8
to Repo and Gerrit Discussion
On Monday, 8 December 2025 at 09:25:52 UTC+1 Yingchun Li wrote:
There is a broken link in one user’s dashboard under “Outgoing Reviews”. When clicking on it, Gerrit returns a 404 error, indicating that the change no longer exists.

This likely happened because I recently restored the project from a backup, which may have caused the change (or its underlying data) to be lost or become inconsistent.

I’ve already tried the following steps:

Reindexed the entire Gerrit server(and even remove the whole cache)
Searched the server filesystem and logs for any trace of the change ID (using grep and find) — but found nothing.

You can try
curl -X POST -H "content-type:application/json" -n https://<gerrit_instance>/a/config/server/index.changes -d '{"changes":["<change_number>"], "delete_missing": "true"}'

I feel like the full reindex should have covered this, but it is the most reliable "poke single change" I have found.

Yingchun Li

unread,
Dec 8, 2025, 4:43:03 AM (8 days ago) Dec 8
to Repo and Gerrit Discussion
On Monday, December 8, 2025 at 4:58:00 PM UTC+8 Luca Milanesio wrote:


> On 8 Dec 2025, at 08:25, Yingchun Li <sword.l...@gmail.com> wrote:
>
> There is a broken link in one user’s dashboard under “Outgoing Reviews”. When clicking on it, Gerrit returns a 404 error, indicating that the change no longer exists.
>
> This likely happened because I recently restored the project from a backup, which may have caused the change (or its underlying data) to be lost or become inconsistent.
>
> I’ve already tried the following steps:
>
> Reindexed the entire Gerrit server(and even remove the whole cache)

Did you perform an off-line reindex?
Yes, I did do the offline reindex, my server is 3.10.6. 

Yingchun Li

unread,
Dec 8, 2025, 4:50:49 AM (8 days ago) Dec 8
to Repo and Gerrit Discussion
On Monday, December 8, 2025 at 4:59:16 PM UTC+8 Rikard Almgren wrote:
On Monday, 8 December 2025 at 09:25:52 UTC+1 Yingchun Li wrote:
There is a broken link in one user’s dashboard under “Outgoing Reviews”. When clicking on it, Gerrit returns a 404 error, indicating that the change no longer exists.

This likely happened because I recently restored the project from a backup, which may have caused the change (or its underlying data) to be lost or become inconsistent.

I’ve already tried the following steps:

Reindexed the entire Gerrit server(and even remove the whole cache)
Searched the server filesystem and logs for any trace of the change ID (using grep and find) — but found nothing.

You can try
curl -X POST -H "content-type:application/json" -n https://<gerrit_instance>/a/config/server/index.changes -d '{"changes":["<change_number>"], "delete_missing": "true"}'
Thos Rest API   works, now the broken link disappear.
I feel like the full reindex should have covered this, but it is the most reliable "poke single change" I have found.
I did the offline reindex, but the link still exist.
and also did some online index like:
ssh -p 29418 localhost gerrit index changes
ssh -p 29418 localhost gerrit index start changes(this command always show the index the latest one like:
Nothing to reindex, index is already the latest version)

Thanks a lot. 

Daniele Sassoli

unread,
Dec 10, 2025, 5:34:35 PM (6 days ago) Dec 10
to Repo and Gerrit Discussion
On Monday, 8 December 2025 at 09:50:49 UTC sword.l...@gmail.com wrote:
On Monday, December 8, 2025 at 4:59:16 PM UTC+8 Rikard Almgren wrote:
On Monday, 8 December 2025 at 09:25:52 UTC+1 Yingchun Li wrote:
There is a broken link in one user’s dashboard under “Outgoing Reviews”. When clicking on it, Gerrit returns a 404 error, indicating that the change no longer exists.

This likely happened because I recently restored the project from a backup, which may have caused the change (or its underlying data) to be lost or become inconsistent.

I’ve already tried the following steps:

Reindexed the entire Gerrit server(and even remove the whole cache)
Searched the server filesystem and logs for any trace of the change ID (using grep and find) — but found nothing.

You can try
curl -X POST -H "content-type:application/json" -n https://<gerrit_instance>/a/config/server/index.changes -d '{"changes":["<change_number>"], "delete_missing": "true"}'
 
I wasn't aware of this endpoint, thanks for bringing it up, can think of a few interesting use cases for it.
 
Reply all
Reply to author
Forward
0 new messages