Problems with a snappy tour

Bug #1400960 reported by Tom Vaughan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Expired
Undecided
Unassigned
snappy (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

[This was also sent to <email address hidden>.]

Hi,

I followed the steps in the "Launch Snappy locally with KVM on Linux"
section on http://www.ubuntu.com/cloud/tools/snappy. Then I ran the
steps in the "A snappy tour of Ubuntu Core!" section on
http://www.ubuntu.com/cloud/tools/snappy. Sorry, I don't see a way to
link directly to these sections. I ran into a few problems. Please see
below.

kvm is running just fine, no errors.

This is on a 64-bit version of 14.10. I am running with LUKS encrypted
root partition and an ecryptfs encrypted home directory, if that's
relevant.

Thanks.

-Tom

> ssh -p 8022 ubuntu@localhost
The authenticity of host '[localhost]:8022 ([127.0.0.1]:8022)' can't be established.
ECDSA key fingerprint is 78:88:86:be:e4:4b:6f:73:3d:b0:1b:5a:1c:ce:1b:dc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:8022' (ECDSA) to the list of known hosts.
ubuntu@localhost's password:
Welcome to Ubuntu Vivid Vervet (development branch) (GNU/Linux 3.16.0-25-generic x86_64)

 * Documentation: https://help.ubuntu.com/

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

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.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@localhost:~$ snappy info
release: ubuntu-core/devel
frameworks:
apps:
ubuntu@localhost:~$ snappy versions
Part Tag Installed Available Fingerprint Active
ubuntu-core edge 140 141 184ad1e863e947 *
ubuntu@localhost:~$ sudo snappy install docker
docker 4 MB [===============================================] OK
Traceback (most recent call last):
  File "/usr/bin/snappy", line 9, in <module>
    status = Main().__main__()
  File "/usr/lib/python3/dist-packages/snappy/main.py", line 159, in __main__
    return callback(args)
  File "/usr/lib/python3/dist-packages/snappy/main.py", line 380, in _do_install
    self._do_versions(args)
  File "/usr/lib/python3/dist-packages/snappy/main.py", line 262, in _do_versions
    parts = (SystemImageDataSource().versions(all) +
  File "/usr/lib/python3/dist-packages/snappy/systemimage.py", line 158, in versions
    info = self._iface.Information()
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ubuntu@localhost:~$ sudo snappy install docker
Traceback (most recent call last):================================================================================================================================= ]
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 105, in run
    t = download_click(details["anon_download_url"], progress_class)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 48, in download_click
    acq.fetch(package_uri, package_path)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 264, in fetch
    self._run_acquire_method(uri, destfile)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 235, in _run_acquire_method
    for number, raw_message in _read_messages(p.stdout, self.TIMEOUT):
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 84, in _read_messages
    rl, wl, xl = select.select([infd], [], [], timeout)
InterruptedError: [Errno 4] Interrupted system call
ubuntu@localhost:~$ Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/click/acquire/https", line 30, in <module>
    m.run()
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 295, in run
    self.fetch(message.get("URI"), message.get("FileName"))
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 385, in fetch
    self.uri_done(uri, destfile)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 321, in uri_done
    """).format(uri=uri, filename=filename, size=os.path.getsize(filename),
  File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpioh9kw4x'

Tom Vaughan (tvaughan)
description: updated
Revision history for this message
Tv (tv42) wrote :

Similar things here, after uninstalling docker and trying to reinstall it:

ubuntu@localhost:~$ sudo snappy install docker
Traceback (most recent call last):================================================================ ]
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 105, in run
    t = download_click(details["anon_download_url"], progress_class)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 48, in download_click
    acq.fetch(package_uri, package_path)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 264, in fetch
    self._run_acquire_method(uri, destfile)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 235, in _run_acquire_method
    for number, raw_message in _read_messages(p.stdout, self.TIMEOUT):
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 84, in _read_messages
    rl, wl, xl = select.select([infd], [], [], timeout)
InterruptedError: [Errno 4] Interrupted system call
ubuntu@localhost:~$ sudo snappy install docker
Traceback (most recent call last): ]
  File "/usr/lib/x86_64-linux-gnu/click/acquire/https", line 30, in <module>
    m.run()
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 295, in run
    self.fetch(message.get("URI"), message.get("FileName"))
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 385, in fetch
    self.uri_done(uri, destfile)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 321, in uri_done
    """).format(uri=uri, filename=filename, size=os.path.getsize(filename),
  File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp9oapnyt5'
docker 4 MB [===================================================================================================] OK
Part Tag Installed Available Fingerprint Active
docker edge 1.3.2.007 - b1f2f85e77adab *
ubuntu@localhost:~$

Revision history for this message
Barry Warsaw (barry) wrote :

When you hit this error, if possible, please attach /var/log/system-image/client.log

Alexander Sack (asac)
Changed in snappy (Ubuntu):
status: New → Invalid
Revision history for this message
Alexander Sack (asac) wrote :

hi,

fwiw, you can find direct links to the sections of the tour on developer.ubuntu.com/snappy

Revision history for this message
Alexander Sack (asac) wrote :

I had a few folks try to reproduce by installing, uninstalling docker to no success. Could you try reproducing from a clean image download and give us step by step instructions?

Changed in snappy-ubuntu:
status: New → Incomplete
Revision history for this message
Alexander Sack (asac) wrote :

tried myself:

1. start with fresh image
2. snappy install docker
3. snappy uninstall docker
4. snappy install docker
5. snappy install owncloud
6. snappy uninstall docker
7. snappy install docker

-> all success

Revision history for this message
Alexander Sack (asac) wrote :

guess:

 InterruptedError: [Errno 4] Interrupted system call

is what caused you get in such state... would be great to get repro instructions and the log that barry asked for in comment #2

Revision history for this message
Tom Vaughan (tvaughan) wrote :
Download full text (5.9 KiB)

I suspect the problem is SIGWINCH. I can reproduce this problem if I resize or maximize the terminal window while snappy installs docker. However once things fail they seem to continue to fail no matter what.

> ssh -p 8022 ubuntu@localhost
ubuntu@localhost's password:
Welcome to Ubuntu Vivid Vervet (development branch) (GNU/Linux 3.16.0-25-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: Thu Dec 11 01:11:05 2014 from 10.0.2.2
ubuntu@localhost:~$ sudo snappy uninstall docker
ubuntu@localhost:~$ sudo snappy install docker
Traceback (most recent call last): ]
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 105, in run
    t = download_click(details["anon_download_url"], progress_class)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 48, in download_click
    acq.fetch(package_uri, package_path)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 264, in fetch
    self._run_acquire_method(uri, destfile)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 235, in _run_acquire_method
    for number, raw_message in _read_messages(p.stdout, self.TIMEOUT):
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 84, in _read_messages
    rl, wl, xl = select.select([infd], [], [], timeout)
InterruptedError: [Errno 4] Interrupted system call
ubuntu@localhost:~$ sudo snappy install docker
docker 4 MB [========================================= Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 105, in run
    t = download_click(details["anon_download_url"], progress_class)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 48, in download_click
    acq.fetch(package_uri, package_path)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 264, in fetch
    self._run_acquire_method(uri, destfile)
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 235, in _run_acquire_method
    for number, raw_message in _read_messages(p.stdout, self.TIMEOUT):
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 84, in _read_messages
    rl, wl, xl = select.select([infd], [], [], timeout)
InterruptedError: [Errno 4] Interrupted system call
ubuntu@localhost:~$ Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/click/acquire/https", line 30, in <module>
    m.run()
  File "/usr/lib/python3/dist-packages/click/acquire.py", line 295, in run
    self.fetch(message.get("URI"), m...

Read more...

Michael Terry (mterry)
affects: snappy-ubuntu → snappy
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Snappy because there has been no activity for 60 days.]

Changed in snappy:
status: Incomplete → Expired
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.