Removing a preinstalled app creates user registry directory with wrong ownership

Bug #1323998 reported by Paweł Stołowski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

After installing latest image #52, applications fail to install properly (via click scope); download manager's log gives error like this one:

I0528 07:35:48.809278 4281 process.cpp:89] Fatal error: /home/phablet/.local/share/ubuntu-download-manager/Downloads/com.ubuntu.developer.arnaudober.lightoff_0.1.2_all.click failed to install.
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 57, in run
    package_path, user=options.user, all_users=options.all_users)
  File "/usr/lib/python3/dist-packages/click/install.py", line 391, in install
    registry.set_version(package_name, package_version)
gi._glib.GError: symlink /opt/click.ubuntu.com/.click/users/phablet/.com.ubuntu.developer.arnaudober.lightoff.new -> /opt/click.ubuntu.com/com.ubuntu.developer.arnaudober.lightoff/0.1.2 failed: Permission denied

The image was installed with 'ubuntu-device-flash --channel=devel-proposed'

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in click (Ubuntu):
status: New → Confirmed
summary: - Apps fail to install with utopic image #54
+ Apps fail to install with utopic image #52
description: updated
Revision history for this message
Colin Watson (cjwatson) wrote : Re: Apps fail to install with utopic image #52

/opt/click.ubuntu.com/.click/users/phablet is owned by the user clickpkg, which is wrong. I wonder how it ended up this way ...

Revision history for this message
Colin Watson (cjwatson) wrote :

We're not seeing this any more after wiping the contents of /opt/click.ubuntu.com/ (including the hidden .click subdirectory) and installing apps again, so this must have been a problem with some prior image; I have no idea what as click didn't change at all in the relevant time period. If this reoccurs with clean userdata then feel free to reopen.

Changed in click (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Colin Watson (cjwatson) wrote :

We've tracked this down. It happens if the first thing you do to apps with clean userdata is to remove a preinstalled app.

Changed in click (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → High
status: Invalid → Triaged
summary: - Apps fail to install with utopic image #52
+ Removing a preinstalled app creates user registry directory with wrong
+ ownership
Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: Triaged → In Progress
Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click - 0.4.24

---------------
click (0.4.24) utopic; urgency=medium

  [ Loïc Minier ]
  * Add 14.10 framework in places where all frameworks are listed.

  [ Colin Watson ]
  * Copy the pw_uid and pw_gid members from getpwnam's return value and
    cache those separately, since getpwnam returns a pointer to a static
    buffer so just caching its return value is not useful (LP: #1323998).
  * Handle the renaming of upstart-app-launch to ubuntu-app-launch: we now
    cope with both old and new names.
 -- Ubuntu daily release <email address hidden> Wed, 04 Jun 2014 08:37:18 +0000

Changed in click (Ubuntu):
status: Fix Committed → Fix Released
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.