Skip to content

Intermitent errors while using migration api backup on github  #62

Closed
@DiegoSpinola

Description

First and foremost , this is a great tool and I have been using it to automate my repo backups (Thanks!)

I noticed this in the last few weeks( it appears to be happening intermittently) :

2021/10/24 06:05:02 <Redacted>/backups/github.com doesn't exist, creating it
2021/10/24 06:05:02 Creating a user migration for 1 repos
2021/10/24 06:05:03 Waiting for migration state to be exported: 0xc00018d6a0
2021/10/24 06:06:03 Downloading file to: <Redacted>/backups/github.com/user-migration-720156.tar.gz
2021/10/24 06:06:08 Creating a org migration (<Redacted>) for 106 repos
2021/10/24 06:06:18 {
"message": "Server Error"
}
2021/10/24 06:06:18 Error creating migration: POST https://api.github.com/orgs/<Redacted>/migrations: 502 Server Error []
Result is: 1
backup failed...

Since then modified my script so as to check the result of gitbackup and to retry a few times with exponential backoff... it seems to do the trick I evenctually get a migration backup to "stick" every 5 tries...

My guesses:

  • anecdotally I think it coincides with my organization having passed 100 repos which , not knowing the underlying API used, would lead me to believe it might be because of some "paging" issue with the migration API maybe?
  • It may be due to some infrastructure weirdness by github's API while serving my particlar location (south america....I'm thinking about trying these requests from a different server elsewhere in the globe, it wouldn't be the first time I see such things)

either way I think it is relevant enough to post here as an FYI

DS

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions