Gitea: GitHub migration: Show "API rate limit of 5000 still exceeded" to user

Created on 21 Oct 2020  路  4Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.13.0+rc1
  • Git version: 2.20.1
  • Operating system: debian stable 10.6
  • Database (use [x]):

    • [ ] PostgreSQL

    • [X] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [X] i get migration failed too, but can't look into your logs ;)

Description

When i try to migrate a big GitHub repo, i see that the API limit is reached in the logs, but as an end-user, i see just "migration failed" without reason.

Please show it also to the user and what they can do.

API rate limit of 5000 still exceeded until 2020-10-21 16:33:28 +0200 CEST

Just wait and try again.

Related to https://github.com/go-gitea/gitea/issues/13241

Log

modules/task/task.go:51:handle() [E] Run task failed: GET https://api.github.com/repos/NixOS/nixpkgs: 403 API rate limit of 5000 still exceeded until 2020-10-21 16:33:28 +0200 CEST, not making remote request. [rate reset in 34m49s]

Screenshots

Screenshot from 2020-10-21 17-31-45

kinmigration

Most helpful comment

let's deal with one problem at a time

All 4 comments

A repository notice is always created if there is a failure.

https://github.com/go-gitea/gitea/blob/f0fe5683feb2799e3ca467bc75fd77871b65452b/modules/migrations/migrate.go#L71

That is of course slightly opaque.

Just wait and try again.

For big repos retry will fail too -- something like sleep+resume migration might work?

let's deal with one problem at a time

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonasfranz picture jonasfranz  路  3Comments

kolargol picture kolargol  路  3Comments

BRMateus2 picture BRMateus2  路  3Comments

thehowl picture thehowl  路  3Comments

adpande picture adpande  路  3Comments