Comment 6 for bug 1444500

Revision history for this message
Kick In (kick-d) wrote : Re: [Bug 1444500] Re: Update doesn't work when upgrading from devel r145 to r383 devel-proposed

Sorry, I missed this obvious reason :( .

2015-04-16 15:57 GMT-05:00 James Hunt <email address hidden>:

> The fix is in ubuntu-core-upgrader 0.7.10 so if you are starting from a
> revision with an older version of the upgrader (unclear from your pb),
> it will still crash of course.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1444500
>
> Title:
> Update doesn't work when upgrading from devel r145 to r383 devel-
> proposed
>
> Status in Snappy Ubuntu:
> Fix Committed
>
> Bug description:
> kick@kick-Lenovo-Yoga-2-13:~/work/sprint/base_work$ ./start_it.sh dev
> Les ports de cette machine seront les suivants:
> SSH: 8022
> HTTP: 8080
> HTTPS: 8443
> Un rappel des ports est disponible: dev.ports
> kick@kick-Lenovo-Yoga-2-13:~/work/sprint/base_work$ ./ssh_it dev
> ssh_exchange_identification: read: Connection reset by peer
> kick@kick-Lenovo-Yoga-2-13:~/work/sprint/base_work$ ./ssh_it dev
> Warning: Permanently added '[127.0.0.1]:8022' (ECDSA) to the list of
> known hosts.
> Welcome to Ubuntu Vivid Vervet (development branch) (GNU/Linux
> 3.19.0-12-generic x86_64)
>
> * Documentation: https://help.ubuntu.com/
> Welcome to the Ubuntu Core rolling development release.
>
> * See https://ubuntu.com/snappy
>
> It's a brave new world here in snappy Ubuntu Core! This machine
> does not use apt-get or deb packages. Please see 'snappy --help'
> for app installation and transactional updates.
>
> Last login: Tue Apr 14 15:46:36 2015
> ubuntu@localhost:~$ cat /etc/system-image/channel.ini | grep devel
> channel: ubuntu-core/devel
> ubuntu@localhost:~$ cat
> /writable/cache/system/etc/system-image/channel.ini | grep devel
> channel: ubuntu-core/devel
> ubuntu@localhost:~$ sudo mount -o remount rw /
> ubuntu@localhost:~$ sudo mount -o remount rw /writable/cache/system
> ubuntu@localhost:~$ sudo sed -i s/devel/devel-proposed/
> /etc/system-image/channel.ini
> ubuntu@localhost:~$ cat /etc/system-image/channel.ini | grep devel
> channel: ubuntu-core/devel-proposed
> ubuntu@localhost:~$ sudo sed -i s/devel/devel-proposed/
> /writable/cache/system/etc/system-image/channel.ini
> ubuntu@localhost:~$ cat
> /writable/cache/system/etc/system-image/channel.ini | grep devel
> channel: ubuntu-core/devel-proposed
> ubuntu@localhost:~$ sudo mount -o remount ro /
> ubuntu@localhost:~$ sudo mount -o remount ro /writable/cache/system
> ubuntu@localhost:~$ sudo reboot
> Connection to 127.0.0.1 closed by remote host.
> Connection to 127.0.0.1 closed.
> kick@kick-Lenovo-Yoga-2-13:~/work/sprint/base_work$ ./ssh_it dev
> Warning: Permanently added '[127.0.0.1]:8022' (ECDSA) to the list of
> known hosts.
> Welcome to Ubuntu Vivid Vervet (development branch) (GNU/Linux
> 3.19.0-12-generic x86_64)
>
> * Documentation: https://help.ubuntu.com/
> Welcome to the Ubuntu Core rolling development release.
>
> * See https://ubuntu.com/snappy
>
> It's a brave new world here in snappy Ubuntu Core! This machine
> does not use apt-get or deb packages. Please see 'snappy --help'
> for app installation and transactional updates.
>
> Last login: Wed Apr 15 14:08:18 2015 from 10.0.2.2
> ubuntu@localhost:~$ cat
> /writable/cache/system/etc/system-image/channel.ini | grep devel
> channel: ubuntu-core/devel-proposed
> ubuntu@localhost:~$ cat
> /writable/cache/system/etc/system-image/channel.ini
> [service]
> base: system-image.ubuntu.com
> http_port: 80
> https_port: 443
> channel: ubuntu-core/devel-proposed
> device: generic_amd64
> build_number: 145
> version_detail: ubuntu=20150223.2,raw-device=20150223.2,version=145
> ubuntu@localhost:~$ cat /etc/system-image/channel.ini | grep devel
> channel: ubuntu-core/devel-proposed
> ubuntu@localhost:~$ cat /etc/system-image/channel.ini
> [service]
> base: system-image.ubuntu.com
> http_port: 80
> https_port: 443
> channel: ubuntu-core/devel-proposed
> device: generic_amd64
> build_number: 146
> version_detail: ubuntu=20150410.3,raw-device=20150410.3,version=146
> ubuntu@localhost:~$ sudo snappy update
> Installing ubuntu-core (384)
> Starting download of ubuntu-core
> 135.00 MB / 135.00 MB
> [=============================================================================================================================================================================================]
> 100.00 % 1.55 MB/s
> Done
> error from system-image-cli: ('%s exited with %s:\n%s',
> ['ubuntu-core-upgrade'], 1, 'I: preparing root filesystem\nTraceback (most
> recent call last):\n File "/usr/bin/ubuntu-core-upgrade", line 182, in
> <module>\n main()\n File "/usr/bin/ubuntu-core-upgrade", line 155, in
> main\n prepare_upgrade(options)\n File "/usr/bin/ubu')
>
> Journalctl is not very verbose:
>
> Apr 15 14:11:06 localhost.localdomain systemd[731]: Starting Default.
> Apr 15 14:11:36 localhost.localdomain sudo[766]: ubuntu : TTY=pts/0 ;
> PWD=/home/ubuntu ; USER=root ; COMMAND=/usr/bin/snappy update
> Apr 15 14:11:36 localhost.localdomain sudo[766]: pam_unix(sudo:session):
> session opened for user root by ubuntu(uid=0)
> Apr 15 14:12:35 localhost.localdomain kernel: EXT4-fs (sda3):
> re-mounted. Opts: (null)
> Apr 15 14:12:35 localhost.localdomain kernel: EXT4-fs (sda4): mounted
> filesystem with ordered data mode. Opts: (null)
> Apr 15 14:12:35 localhost.localdomain kernel: EXT4-fs (sda4): mounted
> filesystem with ordered data mode. Opts: (null)
> Apr 15 14:13:04 localhost.localdomain sudo[766]: pam_unix(sudo:session):
> session closed for user root
> Apr 15 14:17:01 localhost.localdomain CRON[908]: pam_unix(cron:session):
> session opened for user root by (uid=0)
> Apr 15 14:17:01 localhost.localdomain CRON[909]: (root) CMD ( cd / &&
> run-parts --report /etc/cron.hourly)
> Apr 15 14:17:01 localhost.localdomain CRON[908]: pam_unix(cron:session):
> session closed for user root
> Apr 15 14:17:13 localhost.localdomain sudo[911]: ubuntu : TTY=pts/0 ;
> PWD=/home/ubuntu ; USER=root ; COMMAND=/bin/journalctl -l
> Apr 15 14:17:13 localhost.localdomain sudo[911]: pam_unix(sudo:session):
> session opened for user root by ubuntu(uid=0)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/snappy-ubuntu/+bug/1444500/+subscriptions
>