repo init failing for restricted builds

Bug #1137666 reported by vishal
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android Infrastructure
Fix Released
Данило Шеган

Bug Description

repo init is failing on restricted builds:

Here is the error log:
+ repo init --quiet -u ssh://<email address hidden>/srv/ -b linaro_android_4.2.2 -m vexpress-juice-aosp.xml --repo-url=git:// --reference=/mnt/jenkins/workspace/linaro-android-restricted_juice-aosp/build/uniseed -g all,-notdefault,-eclipse

gpg: keyring `/home/jenkins-build/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/jenkins-build/.repoconfig/gnupg/pubring.gpg' created

gpg: /home/jenkins-build/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <email address hidden>" imported

gpg: key 338871A4: public key "Conley Owens <email address hidden>" imported
gpg: Total number processed: 2

gpg: imported: 2 (RSA: 1)
fatal: repo init failed; run without --quiet to see why

++ infrastructure_error
++ echo 'Caught infrastructure error - finishing build with '\''Not Built'\'' status'

Caught infrastructure error - finishing build with 'Not Built' status
++ exit 123

The build 148 seem to have moved ahead with repo init after adding REPO_QUIET=false:

vishal (vishalbhoj)
description: updated
Revision history for this message
Данило Шеган (danilo) wrote :

git processes are using all the memory on the so it likely fails in trying to fetch repo itself from git:// -- try switching that URL to in the "repo init" line.

We're working on providing the same scalable setup for private repositories as well. However, if it fails on them right now, there's not really a lot we can do other than suggest waiting for traffic to go down on and then try again. We can also kill off git protocol access to, but that'd be pretty unpopular measure if done all of a sudden.

Changed in linaro-android-infrastructure:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Axel Fagerstedt (fagerstedt-axel) wrote :

Confirmed that it is the repo fetch from git:// which is failing.

+ repo init -u git:// -b refactor-2 -m tracking.xml --repo-url=git:// --reference=/mnt/jenkins/workspace/linaro-android-restricted_test-iks-manifest-consolidation/build/uniseed -g common,vexpress,vexpress-tests
Get git://
fatal: read error: Connection reset by peer

Revision history for this message
Axel Fagerstedt (fagerstedt-axel) wrote :

Changing the url used in --repo-url would most likely require patching linaro-android-build-tools

Its currently set like:

Revision history for this message
Axel Fagerstedt (fagerstedt-axel) wrote :

It might be best to move it to setup-repo-vars and allow it to be overridden from the build config so we don't end up setting it to http indefinitely.

Revision history for this message
Данило Шеган (danilo) wrote :

For now, I've hard-coded it to http: there's nothing wrong with it being set to http indefinitely (fwiw, we want to move everything to http anyway). We might look into allowing it to be overridden when a need arises.

Changed in linaro-android-infrastructure:
milestone: none → 2013.02
assignee: nobody → Данило Шеган (danilo)
status: Triaged → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Just a comment - there's no need to override --repo-url= from build config, it's static and internal thing. We override it at all to not depend on AOSP tree's ups and downs (to remind, there were times, when AOSP wasn't available for almost 2 months in rows (great blackout)).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.