Closed Bug 1417804 Opened 8 years ago Closed 8 years ago

Got ``CalledProcessError: Command '['wget', '--continue', 'https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip']' returned non-zero exit status 5`` when doing mach bootstrap on Mac

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: JamesCheng, Unassigned)

Details

The full log is as below, and I need to change this line https://searchfox.org/mozilla-central/rev/550148ab69b2879bfb82ffa698720ede1fa626f2/python/mozboot/mozboot/android.py#101 into subprocess.check_call(['wget', '--continue', '--no-check-certificate', url]) Was it a known issue? =========================================================== Your choice: 4 Looks like you have Homebrew installed. We will install all required packages via Homebrew. --2017-11-16 10:39:40-- https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip Resolving dl.google.com... 172.217.24.14, 2404:6800:4008:800::200e Connecting to dl.google.com|172.217.24.14|:443... connected. ERROR: cannot verify dl.google.com's certificate, issued by ‘CN=Google Internet Authority G2,O=Google Inc,C=US’: Unable to locally verify the issuer's authority. To connect to dl.google.com insecurely, use `--no-check-certificate'. Error running mach: ['bootstrap'] The error occurred in code that was called by the mach command. This is either a bug in the called code itself or in the way that mach is calling it. You should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: CalledProcessError: Command '['wget', '--continue', 'https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip']' returned non-zero exit status 5 File "/Users/jacheng/Projects/gecko-fennec/python/mozboot/mozboot/mach_commands.py", line 32, in bootstrap bootstrapper.bootstrap() File "/Users/jacheng/Projects/gecko-fennec/python/mozboot/mozboot/bootstrap.py", line 296, in bootstrap getattr(self.instance, 'install_%s_packages' % application)() File "/Users/jacheng/Projects/gecko-fennec/python/mozboot/mozboot/osx.py", line 202, in install_mobile_android_packages getattr(self, 'ensure_%s_mobile_android_packages' % self.package_manager)() File "/Users/jacheng/Projects/gecko-fennec/python/mozboot/mozboot/osx.py", line 366, in ensure_homebrew_mobile_android_packages no_interactive=self.no_interactive) File "/Users/jacheng/Projects/gecko-fennec/python/mozboot/mozboot/android.py", line 175, in ensure_android artifact_mode=artifact_mode) File "/Users/jacheng/Projects/gecko-fennec/python/mozboot/mozboot/android.py", line 200, in ensure_android_sdk_and_ndk install_mobile_android_sdk_or_ndk(ndk_url, mozbuild_path) File "/Users/jacheng/Projects/gecko-fennec/python/mozboot/mozboot/android.py", line 101, in install_mobile_android_sdk_or_ndk subprocess.check_call(['wget', '--continue', url]) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 186, in check_call raise CalledProcessError(retcode, cmd)
Hi nalexander, Would you know who can help on this? Thank you.
Flags: needinfo?(nalexander)
It might be an individual case... But someone has no knowledge about this(like me), I have no idea how to fix it.
(In reply to James Cheng[:JamesCheng] from comment #1) > Hi nalexander, > > Would you know who can help on this? Does this reproduce? --2017-11-16 10:39:40-- https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip Resolving dl.google.com... 172.217.24.14, 2404:6800:4008:800::200e Connecting to dl.google.com|172.217.24.14|:443... connected. ERROR: cannot verify dl.google.com's certificate, issued by ‘CN=Google Internet Authority G2,O=Google Inc,C=US’: Unable to locally verify the issuer's authority. To connect to dl.google.com insecurely, use `--no-check-certificate'. Error running mach: is pretty clear -- something is horribly wrong with your network connection to google.com. Are you being man-in-the-middled? Maybe a transient issue?
Flags: needinfo?(nalexander) → needinfo?(jacheng)
Sorry for the noise. I do brew update brew upgrade and then.... it works without this error... I have no idea what happened. So I will close this issue! Thanks.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(jacheng)
Resolution: --- → INVALID
Product: Firefox for Android → Firefox Build System
You need to log in before you can comment on or make changes to this bug.