Skip to content

Investigate GPRD failed wikis

We have about 42 failed Wikis on the GPRD site:

failures = Geo::ProjectRegistry.failed_wikis
data = CSV.open('/tmp/failures.csv', 'w')
failures.each do |fail|
   data << [fail.project_id, fail.last_wiki_sync_failure&.gsub("\n", " ")]
end
data.close

It looks like most of these are due to ResourceExhausted errors?

# cut -d, -f2 failures.csv | perl -ne "s/'.*?'/TOKEN/g; s/[a-f0-9]{40}/HASH/g; s/stored in .*/stored in HASH/g; s/\bhttps?:\/\/.*? /URL /g; print"  | sort|uniq -c|sort -nr | more
     23 Error syncing wiki repository: 8:
      7 Error syncing wiki repository: ProjectWiki::CouldNotCreateWikiError
      4 Error syncing wiki repository: 2:Fetching remote geo failed: fatal: unable to update url base from redirection:   asked for: URL    redirect: URL
       3 Error syncing wiki repository: 2:Fetching remote geo failed: remote: Internal server error fatal: unable to access TOKEN: The requested URL returned error: 500 
      2 Error syncing wiki repository: 2:Fetching remote geo failed: fatal: unable to access TOKEN: The requested URL returned error: 500 
      2 Error syncing wiki repository: 2:Fetching remote geo failed: fatal: TOKEN does not appear to be a git repository fatal: Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists. 
      1 Error syncing wiki repository: 2:Fetching remote geo failed: remote: The project you were looking for could not be found. fatal: repository TOKEN
 not found 
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information