System Image fails with “FileNotFoundError”

Bug #1617290 reported by Simplehuman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-image (Ubuntu)
New
Undecided
Unassigned
ubuntu-system-settings (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello, I have a problem on my M10 FHD witch is on rc-proposed channel (r173 now). I can't receive any updates for system image or any installed app. I even receive a notify in message indicator, but when I open update manager it searches for updates and found nothing (saying that my system is up to date). There should be updates at least for some apps and 2 system image updates since then. Rebooting and shutdowning device didn't help. My Meizu MX4 is updating normally with
the same network connection.

It would be very nice to have some workaround and fix this.

`system-image-cli -n -vv` ouput:

phablet@ubuntu-phablet:~$ system-image-cli -n -vv
[systemimage] Aug 25 12:31:41 2016 (5245) -> [ 1] _cleanup
[systemimage] Aug 25 12:31:41 2016 (5245) -> [ 2] _get_blacklist_1
[systemimage] Aug 25 12:31:41 2016 (5245) No valid image master key found, downloading
[systemimage] Aug 25 12:31:41 2016 (5245) [0xf60d0850] Requesting group download:
        https://system-image.ubuntu.com/gpg/image-master.tar.xz -> /android/cache/recovery/keyring.tar.xz
https://system-image.ubuntu.com/gpg/image-master.tar.xz.asc -> /android/cache/recovery/keyring.tar.xz.asc

[systemimage] Aug 25 12:31:41 2016 (5245) Allow GSM? No
[systemimage] Aug 25 12:31:41 2016 (5245) [/com/canonical/applications/download/com_2eubuntu_2eterminal_5fterminal_5f0_2e7_2e198/fcef27f761f34d45a7cd71a17c0089dc] Running group download reactor
[systemimage] Aug 25 12:31:41 2016 (5245) self: <UDMDownloadManager at 0xf60d0850>, self._iface: <Interface <ProxyObject wrapping <dbus._dbus.SystemBus (system) at 0xf649d930> :1.141 /com/canonical/applications/download/com_2eubuntu_2eterminal_5fterminal_5f0_2e7_2e198/fcef27f761f34d45a7cd71a17c0089dc at 0xf60d0930> implementing 'com.canonical.applications.GroupDownload' at 0xf60d0890>
[systemimage] Aug 25 12:32:21 2016 (5245) https://system-image.ubuntu.com/gpg/image-master.tar.xz:
[systemimage] Aug 25 12:32:21 2016 (5245) [/com/canonical/applications/download/com_2eubuntu_2eterminal_5fterminal_5f0_2e7_2e198/fcef27f761f34d45a7cd71a17c0089dc] Group download reactor done
[systemimage] Aug 25 12:32:21 2016 (5245) Reactor error: https://system-image.ubuntu.com/gpg/image-master.tar.xz:
Exception occurred during dry-run; see log file for details
[systemimage] Aug 25 12:32:21 2016 (5245) system-image-cli exception
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/systemimage/main.py", line 365, in main
state.run_until('download_files')
  File "/usr/lib/python3/dist-packages/systemimage/state.py", line 179, in run_until
step()
  File "/usr/lib/python3/dist-packages/systemimage/state.py", line 210, in _get_blacklist_1
    'image-master', 'gpg/image-master.tar.xz', 'archive-master')
  File "/usr/lib/python3/dist-packages/systemimage/keyring.py", line 107, in get_keyring
    (ascxz_src, ascxz_dst),
  File "/usr/lib/python3/dist-packages/systemimage/download.py", line 209, in get_files
    self._get_files(records, pausable, signal_started)
  File "/usr/lib/python3/dist-packages/systemimage/udm.py", line 175, in _get_files
    raise FileNotFoundError(reactor.error)
FileNotFoundError: https://system-image.ubuntu.com/gpg/image-master.tar.xz:
phablet@ubuntu-phablet:~$

Tags: touch
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Thank you for reporting this, I'm not sure whether or not that traceback is benign. We'll have to hear from Barry/a S-I maintainer to know for sure.

Changed in ubuntu-system-settings (Ubuntu):
status: New → Incomplete
Revision history for this message
Simplehuman (simplehuman) wrote :

Well, I pasted this output and selected ubuntu-system-settings according to advice of Lukasz Zemczak in Ubuntu Phone Mail List

Revision history for this message
Simplehuman (simplehuman) wrote :

Problem is found and fixed. It was in ~./local/share/ubuntu-system-settings folder. Somehow normal structure of this folder messed up.

Normally, there must be 1 file "updatestore.db" but when it broke there were no such file, only an empty folder "Pictures". (???)

How can it be possible? Manual intervention is excluded. I didn't even open hidden folders for weeks, I didn't make my system folder RW, etc.

Revision history for this message
Simplehuman (simplehuman) wrote :

For some reason permissions were wrong. I can't reproduce permissions state when the problem came up because I renamed this folder from root. Now I changed permissions of old folder to correct ones and everything is working.

But it is still a bug, because I didn't open Terminal, didn't connect to device from PC or even open a File Browser for >2 weeks. Just using phablet as a regular user. Permissions changed by something else and it is interesting...what could cause that?

Revision history for this message
Simplehuman (simplehuman) wrote :

btw, I want to add. Something strange is going on with this folder. Folder owner of many folder is root, but not for all. Some apps root owner just can't launch?field.comment=btw, I want to add. Something strange is going on with this folder. Folder owner of many folder is root, but not for all. Some apps root owner just can't launch

Changed in ubuntu-system-settings (Ubuntu):
status: Incomplete → Invalid
summary: - OS and apps can't update
+ System Image fails with “FileNotFoundError”
Jeremy Bícha (jbicha)
tags: removed: upgrade-software-version
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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