In image rtm 69 infographics stopped functioning

Bug #1374553 reported by Dave Morley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libusermetrics (Ubuntu)
Invalid
Critical
Unassigned
livecd-rootfs (Ubuntu)
Fix Released
Critical
Stéphane Graber
livecd-rootfs (Ubuntu RTM)
Fix Released
Critical
Oliver Grawert

Bug Description

STEPS:
1. Fresh flash (bootstrap or wipe) image 69 on krillin
2. Make a call for a minute
3. Send yourself an sms
4. Play a game of sudoku
5. play a song
6. hit the power button
7. hit the power button again
8. Tap on the infographics

EXPECTED:
I expect the infographics to cycle through the the various metrics

ACTUAL:
You are just shown no data notice.

Oliver Grawert (ogra)
Changed in libusermetrics (Ubuntu):
status: New → Confirmed
tags: added: lt-age-20140926 lt-blocker lt-category-visible lt-prio-high
Revision history for this message
Oliver Grawert (ogra) wrote :

the issue here is that the /var/lib/usermetrics directory does not exist anymore.
with the switch to using a hardcoded /etc/passwd|group|shadow on the image in livecd-rootfs we have the users existing in the password db ...

usermetricsservice uses the following postinst script:
...
if ! getent passwd usermetrics >/dev/null; then
        adduser --system --ingroup usermetrics --home /var/lib/usermetrics usermetrics
        usermod -c "User Metrics" usermetrics
        usermod -d "/var/lib/usermetrics" usermetrics
        usermod -g "usermetrics" usermetrics
        usermod -s "/bin/false" usermetrics
fi
...
here the adduser line creates the /var/lib/usermetrics directory, but since the user exists already in the database the "if" will never be executed ... i assume this needs to be fixed in livecd-rootfs since this is teh place where we broke it :)

Changed in livecd-rootfs (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Oliver Grawert (ogra) wrote :

the following makes the infographics work again:

phablet@ubuntu-phablet:~$ sudo mount -o remount,rw /
phablet@ubuntu-phablet:~$ sudo mkdir -p /var/lib/usermetrics
phablet@ubuntu-phablet:~$ sudo chown -R usermetrics:usermetrics /var/lib/usermetrics
phablet@ubuntu-phablet:~$ sudo chmod 0750 /var/lib/usermetrics
phablet@ubuntu-phablet:~$ sudo mount -o remount,ro /
phablet@ubuntu-phablet:~$ sudo reboot

Oliver Grawert (ogra)
Changed in libusermetrics (Ubuntu):
status: Confirmed → Invalid
Changed in livecd-rootfs (Ubuntu):
status: New → Confirmed
Changed in livecd-rootfs (Ubuntu RTM):
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

That is disappointing-- seems I lost my existing /var/lib/usermetrics db. :\

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Ok, less disappointing. Oliver corrected me-- the data is not gone. I confirmed that if you follow his steps, the data is still intact. *phew* :)

Oliver Grawert (ogra)
Changed in livecd-rootfs (Ubuntu):
assignee: nobody → Stéphane Graber (stgraber)
Changed in livecd-rootfs (Ubuntu RTM):
assignee: nobody → Oliver Grawert (ogra)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.247

---------------
livecd-rootfs (2.247) utopic; urgency=medium

  * live-build/ubuntu-touch/hooks/00-uid-gid-fix.chroot_early:
    Create some directories which would otherwise go missing due to our
    pre-created users. (LP: #1374553)
 -- Stephane Graber <email address hidden> Fri, 26 Sep 2014 14:41:19 -0400

Changed in livecd-rootfs (Ubuntu):
status: Confirmed → Fix Released
Changed in livecd-rootfs (Ubuntu RTM):
status: Confirmed → Fix Released
Revision history for this message
dobey (dobey) wrote :

This does not seem to be fixed in devel-proposed r271 for me. The /var/lib/usermetrics does still exist. The directory however was owned by messagebus:systemd-journal and not by usermetrics. Running chown usermetrics /var/lib/usermetrics and rebooting does work around the issue, but the permissions issue still exists. Nothing seems to be in place to ensure the permissions are the correct ones.

Revision history for this message
Adnane Belmadiaf (daker) wrote :

The bug isn't fixed in devel-proposed r293 and @dobey fix makes the infographics works again.

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.