digitarald / flash-b2g

Flash Firefox OS devices from public Mozilla builds.
MIT License
18 stars 5 forks source link

adb command not found even though it's on $PATH #14

Closed kumar303 closed 10 years ago

kumar303 commented 10 years ago

My flash fails with adb: command not found but I have it on my $PATH. I'm on Mac OS X 10.9.4

$ which adb
/Users/kumar/src/adt-bundle-mac/sdk/platform-tools/adb
$ echo $PATH
/Users/kumar/src/stackato-1.6.2-macosx10.5-i386-x86_64:/Users/kumar/src/install-all-firefox:/Users/kumar/src/adt-bundle-mac/sdk/tools:/Users/kumar/src/adt-bundle-mac/sdk/platform-tools:./node_modules/.bin:/usr/local/share/npm/bin:/Users/kumar/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/share/python:/Users/kumar/.virtualenvs/ezboot/bin:/Users/kumar/dev/toolbox:/Users/kumar/src/tox-env/bin:/Users/kumar/src/check-env/bin

full output:

$ flash-b2g -c 1.4 -e -p -r
Connecting to ftp.mozilla.org
Downloading from http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-b2g30_v1_4-flame-eng/
Waiting for device (is remote debugging on?)
Attempting to keep profile
Executing shallow_flash.sh --gaia /var/folders/35/sy1j355d6y3gyjb5wnmczl600000gn/T/flash-b2g114715-97426-1010nfw/gaia-flame-_v1_4-eng-latest.zip --gecko /var/folders/35/sy1j355d6y3gyjb5wnmczl600000gn/T/flash-b2g114715-97426-1010nfw/b2g-flame-_v1_4-eng-latest.tar.gz -y --keep_profile
[shallow_flash] ### Waiting for device... please ensure it is connected, switched on and remote debugging is enabled in Gaia
[shallow_flash] /usr/local/lib/node_modules/flash-b2g/scripts/shallow_flash.sh: line 64: adb: command not found
[shallow_flash] ### Restarting adb with root permissions...
[shallow_flash] /usr/local/lib/node_modules/flash-b2g/scripts/shallow_flash.sh: line 64: adb: command not found
[shallow_flash]
[shallow_flash] /usr/local/lib/node_modules/flash-b2g/scripts/shallow_flash.sh: line 64: adb: command not found
[shallow_flash] ### Remounting the /system partition...
[shallow_flash] /usr/local/lib/node_modules/flash-b2g/scripts/shallow_flash.sh: line 64: adb: command not found
[shallow_flash]
[shallow_flash] /usr/local/lib/node_modules/flash-b2g/scripts/shallow_flash.sh: line 64: adb: command not found
[shallow_flash]
[shallow_flash] ### Stopping b2g process...
[shallow_flash] /usr/local/lib/node_modules/flash-b2g/scripts/shallow_flash.sh: line 64: adb: command not found
[shallow_flash] ### Package "mktemp" not found!
[shallow_flash] ### Profile back up to /private/var/folders/35/sy1j355d6y3gyjb5wnmczl600000gn/T/flash-b2g114715-97426-1010nfw/profile_temp
[shallow_flash] bash: ./backup_restore_profile.sh: No such file or directory
[shallow_flash] ### Processing Gaia: /var/folders/35/sy1j355d6y3gyjb5wnmczl600000gn/T/flash-b2g114715-97426-1010nfw/gaia-flame-_v1_4-eng-latest.zip
[shallow_flash] ### Package "mktemp" not found!
[shallow_flash] ### Unzip /var/folders/35/sy1j355d6y3gyjb5wnmczl600000gn/T/flash-b2g114715-97426-1010nfw/gaia-flame-_v1_4-eng-latest.zip to /private/var/folders/35/sy1j355d6y3gyjb5wnmczl600000gn/T/flash-b2g114715-97426-1010nfw/shallowflashgaia_temp ...
[shallow_flash] ### Cleaning Gaia and Profiles ...
[shallow_flash] /usr/local/lib/node_modules/flash-b2g/scripts/shallow_flash.sh: line 64: adb: command not found
[shallow_flash] ### Failed: Pushing Gaia to device failed.
Error code from shallow_flash.sh!
digitarald commented 10 years ago

I can't reproduce this on my machine but I have a patch in mind. brb

digitarald commented 10 years ago

@kumar303, can you verify with 0.0.9?

kumar303 commented 10 years ago

Thanks! I just tried with 0.0.10 and it worked.