phablet-flash fails to wait for phone when doing ubuntu-system flashing

Bug #1215436 reported by Alan Pope 🍺🐧🐱 🦄
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Phablet Tools
Fix Released
Undecided
Unassigned
phablet-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I get this when flashing my mako..

INFO:phablet-flash:Restarting device... wait
INFO:phablet-flash:Restarting device... wait complete
INFO:phablet-flash:Clearing /data and /cache
error: device not found
ERROR:phablet-flash:Command 'adb shell mkdir /cache/recovery' returned non-zero exit status 255

Here's the full log

alan@deep-thought:~$ phablet-flash ubuntu-system
INFO:phablet-flash:Device detected as mako
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): system-image.ubuntu.com
INFO:phablet-flash:Download directory set to /home/alan/Downloads/phablet-flash/imageupdates/20130833
INFO:phablet-flash:Creating /home/alan/Downloads/phablet-flash/imageupdates/20130833
INFO:urllib3.connectionpool:Starting new HTTP connection (1): cdimage.ubuntu.com
INFO:phablet-flash:Downloading http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/saucy-preinstalled-recovery-armel+mako.img to /home/alan/Downloads/phablet-flash/imageupdates/20130833/saucy-preinstalled-recovery-armel+mako.img
--2013-08-22 13:52:37-- http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/saucy-preinstalled-recovery-armel+mako.img
Resolving cdimage.ubuntu.com (cdimage.ubuntu.com)... 91.189.92.174, 2001:67c:1360:8c01::1f, 2001:67c:1360:8c01::20, ...
Connecting to cdimage.ubuntu.com (cdimage.ubuntu.com)|91.189.92.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8810496 (8.4M) [application/octet-stream]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/saucy-preinstalled-recovery-armel+mako.img’

100%[======================================>] 8,810,496 1.84MB/s in 5.9s

2013-08-22 13:52:43 (1.43 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/saucy-preinstalled-recovery-armel+mako.img’ saved [8810496/8810496]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/ubuntu/ubuntu-20130822.full.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/ubuntu-20130822.full.tar.xz
--2013-08-22 13:52:43-- https://system-image.ubuntu.com/daily/ubuntu/ubuntu-20130822.full.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 292649520 (279M) [application/x-tar]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/ubuntu-20130822.full.tar.xz’

100%[======================================>] 292,649,520 2.65MB/s in 1m 46s

2013-08-22 13:54:30 (2.62 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/ubuntu-20130822.full.tar.xz’ saved [292649520/292649520]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/mako/mako-20130822.full.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/mako-20130822.full.tar.xz
--2013-08-22 13:54:32-- https://system-image.ubuntu.com/daily/mako/mako-20130822.full.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36904792 (35M) [application/x-tar]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/mako-20130822.full.tar.xz’

100%[======================================>] 36,904,792 2.63MB/s in 13s

2013-08-22 13:54:45 (2.62 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/mako-20130822.full.tar.xz’ saved [36904792/36904792]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/mako/version-20130833.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/version-20130833.tar.xz
--2013-08-22 13:54:46-- https://system-image.ubuntu.com/daily/mako/version-20130833.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 196 [application/x-tar]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/version-20130833.tar.xz’

100%[======================================>] 196 --.-K/s in 0s

2013-08-22 13:54:46 (3.76 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/version-20130833.tar.xz’ saved [196/196]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/gpg/image-master.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/image-master.tar.xz
--2013-08-22 13:54:46-- https://system-image.ubuntu.com/gpg/image-master.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 884 [application/x-tar]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/image-master.tar.xz’

100%[======================================>] 884 --.-K/s in 0s

2013-08-22 13:54:46 (23.5 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/image-master.tar.xz’ saved [884/884]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/gpg/image-signing.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/image-signing.tar.xz
--2013-08-22 13:54:46-- https://system-image.ubuntu.com/gpg/image-signing.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 904 [application/x-tar]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/image-signing.tar.xz’

100%[======================================>] 904 --.-K/s in 0s

2013-08-22 13:54:46 (13.5 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/image-signing.tar.xz’ saved [904/904]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/ubuntu/ubuntu-20130822.full.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/ubuntu-20130822.full.tar.xz
--2013-08-22 13:54:46-- https://system-image.ubuntu.com/daily/ubuntu/ubuntu-20130822.full.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 490 [text/plain]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/ubuntu-20130822.full.tar.xz.asc’

100%[======================================>] 490 --.-K/s in 0s

2013-08-22 13:54:46 (11.3 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/ubuntu-20130822.full.tar.xz.asc’ saved [490/490]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/mako/mako-20130822.full.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/mako-20130822.full.tar.xz
--2013-08-22 13:54:46-- https://system-image.ubuntu.com/daily/mako/mako-20130822.full.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 490 [text/plain]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/mako-20130822.full.tar.xz.asc’

100%[======================================>] 490 --.-K/s in 0s

2013-08-22 13:54:46 (11.4 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/mako-20130822.full.tar.xz.asc’ saved [490/490]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/mako/version-20130833.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/version-20130833.tar.xz
--2013-08-22 13:54:46-- https://system-image.ubuntu.com/daily/mako/version-20130833.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 490 [text/plain]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/version-20130833.tar.xz.asc’

100%[======================================>] 490 --.-K/s in 0s

2013-08-22 13:54:46 (11.2 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/version-20130833.tar.xz.asc’ saved [490/490]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/gpg/image-master.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/image-master.tar.xz
--2013-08-22 13:54:46-- https://system-image.ubuntu.com/gpg/image-master.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 836 [text/plain]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/image-master.tar.xz.asc’

100%[======================================>] 836 --.-K/s in 0s

2013-08-22 13:54:47 (15.0 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/image-master.tar.xz.asc’ saved [836/836]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/gpg/image-signing.tar.xz to /home/alan/Downloads/phablet-flash/imageupdates/20130833/image-signing.tar.xz
--2013-08-22 13:54:47-- https://system-image.ubuntu.com/gpg/image-signing.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 490 [text/plain]
Saving to: ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/image-signing.tar.xz.asc’

100%[======================================>] 490 --.-K/s in 0s

2013-08-22 13:54:47 (32.3 MB/s) - ‘/home/alan/Downloads/phablet-flash/imageupdates/20130833/image-signing.tar.xz.asc’ saved [490/490]

INFO:phablet-flash:Restarting device... wait
INFO:phablet-flash:Restarting device... wait complete
INFO:phablet-flash:Clearing /data and /cache
error: device not found
ERROR:phablet-flash:Command 'adb shell mkdir /cache/recovery' returned non-zero exit status 255
alan@deep-thought:~$ adb devices
List of devices attached
0123456789ABCDEF device

Related branches

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Ok, so it seems I can't use wait-for-device as adb in recovery is running in host mode instead of device mode

Revision history for this message
Boris Rybalkin (ribalkin) wrote :

I had the same issue on my nexus 4 I had to do the following to get ubuntu-system:

1. Install cdimage with bootstrap
phablet-flash cdimage-touch -b

2. after it is there and working install ubuntu system one
phablet-flash ubuntu-system

Revision history for this message
AdamOutler (adamoutler) wrote :

Borris, that is irrelevant. The problem is that the phablet flash is using a universal time delay that does not work on devices which are not Nexus devices.

Changed in phablet-tools:
status: New → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:phablet-tools at revision 216, scheduled for release in phablet-tools, milestone Unknown

Changed in phablet-tools:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package phablet-tools - 1.0+14.04.20131030.2-0ubuntu1

---------------
phablet-tools (1.0+14.04.20131030.2-0ubuntu1) trusty; urgency=low

  [ Sergio Schvezov ]
  * phablet-flash: Adding a friendly error message when device detection
    fails. (LP: #1228129)
  * Using wait_for_recovery when flashig. (LP: #1215436)
  * Provide some information of revision/version and channel used when
    flashing. (LP: #1233800)
  * phablet-flash: Switching default from saucy to trusty for cdimage-
    touch. (LP: #1245569)
  * phablet-flash: not formatting data when already on a system image
    and not doing a bootstrap and removing support from cdimage ->
    upgradable image backup support. --no-backup is a deprecated option.
    (LP: #1218270)

  [ Andy Doan ]
  * get error information from phablet-config package installation Since
    adb-shell sends the actual stderr via stdout, we were hiding the key
    information to a user if a package failed to install. This prints it
    out for them.
  * remove an incorrect logging statement about rebooting the device.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 220
 -- Ubuntu daily release <email address hidden> Wed, 30 Oct 2013 18:06:01 +0000

Changed in phablet-tools (Ubuntu):
status: New → Fix Released
Changed in phablet-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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