package repowerd 2016.06+15.04.20160706.1-0ubuntu1 [modified: lib/systemd/system/repowerd.service] [origin: LP-PPA-ci-train-ppa-service-stable-phone-overlay] failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1602604 reported by Michał Sawicz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
platform-api
Fix Released
High
Thomas Voß
repowerd (Ubuntu)
Fix Released
High
Alexandros Frantzis
unity8-desktop-session (Ubuntu)
Triaged
High
Unassigned

Bug Description

repowerd fails to start on non-android systems (see also bug #1602597).

Jul 13 09:49:22 foo systemd[1]: Starting monitor and control system power state...
Jul 13 09:49:22 foo repowerd[1416]: main: Starting repowerd 2016.06
Jul 13 09:49:22 foo repowerd[1416]: AndroidDeviceConfig: parse_file(/usr/share/powerd/device_configs/config-default.xml)
Jul 13 09:49:22 foo repowerd[1416]: AndroidDeviceConfig: Property: screenBrightnessDim=10
Jul 13 09:49:22 foo repowerd[1416]: AndroidDeviceConfig: Property: screenBrightnessSettingDefault=102
Jul 13 09:49:22 foo repowerd[1416]: AndroidDeviceConfig: Property: screenBrightnessSettingMaximum=255
Jul 13 09:49:22 foo repowerd[1416]: AndroidDeviceConfig: Property: screenBrightnessSettingMinimum=10
Jul 13 09:49:22 foo repowerd[1416]: AndroidDeviceConfig: Property: shutdownBatteryTemperature=680
Jul 13 09:49:22 foo repowerd[1416]: AndroidDeviceConfig: Property: criticalBatteryWarningLevel=4
Jul 13 09:49:22 foo repowerd[1416]: AndroidDeviceConfig: Property: automatic_brightness_available=false
Jul 13 09:49:22 foo repowerd[1416]: Unable to select module, using dummy.
Jul 13 09:49:22 foo repowerd[1416]: Loading module: 'libubuntu_application_api_test.so.3.0.0'
Jul 13 09:49:22 foo repowerd[1416]: TestSensor INFO: Setup for DYNAMIC event injection over named pipe /tmp/sensor-fifo-1416
Jul 13 09:49:22 foo repowerd[1416]: TestSensor WARNING: Requested sensor light not yet created, blocking thread until create event received
Jul 13 09:50:52 foo systemd[1]: repowerd.service start operation timed out. Terminating.
Jul 13 09:50:52 foo systemd[1]: Failed to start monitor and control system power state.
Jul 13 09:50:52 foo systemd[1]: Unit repowerd.service entered failed state.
Jul 13 09:50:52 foo systemd[1]: repowerd.service failed.

ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: repowerd 2016.06+15.04.20160706.1-0ubuntu1 [modified: lib/systemd/system/repowerd.service] [origin: LP-PPA-ci-train-ppa-service-stable-phone-overlay]
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.8
AptOrdering:
 repowerd: Configure
 powerd: Configure
 NULL: ConfigurePending
Architecture: amd64
Date: Wed Jul 13 09:50:52 2016
DuplicateSignature: package:repowerd:2016.06+15.04.20160706.1-0ubuntu1 [modified: lib/systemd/system/repowerd.service] [origin: LP-PPA-ci-train-ppa-service-stable-phone-overlay]:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
RelatedPackageVersions:
 dpkg 1.17.25ubuntu1.1
 apt 1.0.9.7ubuntu4.2
SourcePackage: repowerd
Title: package repowerd 2016.06+15.04.20160706.1-0ubuntu1 [modified: lib/systemd/system/repowerd.service] [origin: LP-PPA-ci-train-ppa-service-stable-phone-overlay] failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michał Sawicz (saviq) wrote :
description: updated
tags: removed: need-duplicate-check
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

> Jul 13 09:49:22 foo repowerd[1416]: Loading module: 'libubuntu_application_api_test.so.3.0.0'
> Jul 13 09:49:22 foo repowerd[1416]: TestSensor INFO: Setup for DYNAMIC event injection over named pipe /tmp/sensor-fifo-1416
> Jul 13 09:49:22 foo repowerd[1416]: TestSensor WARNING: Requested sensor light not yet created, blocking thread until create event received

ubuntu-application-api falls back to the test backend, which blocks. U-A-A should select the desktop_mirclient backend on the desktop by default.

The selection is performed by checking the contents of /etc/ubuntu-platform-api/application.conf, which doesn't exist on the desktop. The solution is to ship a proper /etc/ubuntu-platform-api/application.conf file for the desktop.

Changed in platform-api:
importance: Undecided → High
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

> The solution is to ship a proper /etc/ubuntu-platform-api/application.conf file for the desktop.

An alternative would be for platform-api to somehow autodetect the platform if no config option is provided, instead of falling back to the test platform.

Stephen M. Webb (bregma)
Changed in repowerd (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in unity8-desktop-session (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in platform-api:
assignee: nobody → Thomas Voß (thomas-voss)
Changed in platform-api:
status: New → Fix Committed
Changed in repowerd (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Alexandros Frantzis (afrantzis)
Changed in repowerd (Ubuntu):
status: Fix Committed → Fix Released
Changed in platform-api:
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.