Bug 1372925 - warning: Unable to get systemd shutdown inhibition lock
Summary: warning: Unable to get systemd shutdown inhibition lock
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-03 21:33 UTC by Randy Barlow
Modified: 2016-10-13 05:29 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-13 04:11:57 UTC
Type: Bug


Attachments (Terms of Use)

Description Randy Barlow 2016-09-03 21:33:23 UTC
Every time I install a package with dnf on Rawhide, it will hang for several seconds (perhaps 10-30), and then print out "warning: Unable to get systemd shutdown inhibition lock". Here's an example (look right after the first package is installed):


# rpm -q dnf
dnf-1.1.10-1.fc26.noarch
# dnf install /usr/bin/composer
Last metadata expiration check: 0:20:58 ago on Sat Sep  3 17:07:37 2016.
Dependencies resolved.
=============================================================================================================================================================================================================================================
 Package                                                                   Arch                                            Version                                                    Repository                                        Size
=============================================================================================================================================================================================================================================
Installing:
 composer                                                                  noarch                                          1.2.0-1.fc25                                               rawhide                                          353 k
 libxslt                                                                   x86_64                                          1.1.28-13.fc25                                             rawhide                                          246 k
 libzip                                                                    x86_64                                          1.1.3-1.fc25                                               rawhide                                           48 k
 php-PsrLog                                                                noarch                                          1.0.0-10.fc24                                              rawhide                                           15 k
 php-composer-ca-bundle                                                    noarch                                          1.0.3-1.fc25                                               rawhide                                           15 k
 php-composer-semver                                                       noarch                                          1.4.2-1.fc26                                               rawhide                                           20 k
 php-composer-spdx-licenses                                                noarch                                          1.1.4-1.fc25                                               rawhide                                           18 k
 php-gd                                                                    x86_64                                          7.0.10-1.fc26                                              rawhide                                           81 k
 php-intl                                                                  x86_64                                          7.0.10-1.fc26                                              rawhide                                          219 k
 php-jsonlint                                                              noarch                                          1.4.0-2.fc24                                               rawhide                                           20 k
 php-justinrainbow-json-schema                                             noarch                                          2.0.5-2.fc25                                               rawhide                                           33 k
 php-mbstring                                                              x86_64                                          7.0.10-1.fc26                                              rawhide                                          582 k
 php-paragonie-random-compat                                               noarch                                          1.4.1-1.fc25                                               rawhide                                           26 k
 php-password-compat                                                       noarch                                          1.0.4-3.fc24                                               rawhide                                           15 k
 php-pdo                                                                   x86_64                                          7.0.10-1.fc26                                              rawhide                                          131 k
 php-pecl-zip                                                              x86_64                                          1.13.4-1.fc25                                              rawhide                                           54 k
 php-process                                                               x86_64                                          7.0.10-1.fc26                                              rawhide                                           86 k
 php-seld-cli-prompt                                                       noarch                                          1.0.2-1.fc25                                               rawhide                                           12 k
 php-seld-phar-utils                                                       noarch                                          1.0.1-2.fc24                                               rawhide                                           12 k
 php-symfony-browser-kit                                                   noarch                                          2.8.9-2.fc26                                               rawhide                                           25 k
 php-symfony-class-loader                                                  noarch                                          2.8.9-2.fc26                                               rawhide                                           28 k
 php-symfony-common                                                        noarch                                          2.8.9-2.fc26                                               rawhide                                          125 k
 php-symfony-config                                                        noarch                                          2.8.9-2.fc26                                               rawhide                                           53 k
 php-symfony-console                                                       noarch                                          2.8.9-2.fc26                                               rawhide                                           89 k
 php-symfony-css-selector                                                  noarch                                          2.8.9-2.fc26                                               rawhide                                           38 k
 php-symfony-debug                                                         noarch                                          2.8.9-2.fc26                                               rawhide                                           38 k
 php-symfony-dependency-injection                                          noarch                                          2.8.9-2.fc26                                               rawhide                                           85 k
 php-symfony-dom-crawler                                                   noarch                                          2.8.9-2.fc26                                               rawhide                                           32 k
 php-symfony-event-dispatcher                                              noarch                                          2.8.9-2.fc26                                               rawhide                                           26 k
 php-symfony-expression-language                                           noarch                                          2.8.9-2.fc26                                               rawhide                                           29 k
 php-symfony-filesystem                                                    noarch                                          2.8.9-2.fc26                                               rawhide                                           24 k
 php-symfony-finder                                                        noarch                                          2.8.9-2.fc26                                               rawhide                                           40 k
 php-symfony-http-foundation                                               noarch                                          2.8.9-2.fc26                                               rawhide                                           95 k
 php-symfony-http-kernel                                                   noarch                                          2.8.9-2.fc26                                               rawhide                                           99 k
 php-symfony-polyfill                                                      noarch                                          1.2.0-1.fc25                                               rawhide                                           24 k
 php-symfony-process                                                       noarch                                          2.8.9-2.fc26                                               rawhide                                           34 k
 php-symfony-var-dumper                                                    noarch                                          2.8.9-2.fc26                                               rawhide                                           49 k
 php-symfony-yaml                                                          noarch                                          2.8.9-2.fc26                                               rawhide                                           31 k
 php-xml                                                                   x86_64                                          7.0.10-1.fc26                                              rawhide                                          215 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install  39 Packages

Total download size: 3.1 M
Installed size: 11 M
Is this ok [y/N]: y
Downloading Packages:
(1/39): php-PsrLog-1.0.0-10.fc24.noarch.rpm                                                                                                                                                                  106 kB/s |  15 kB     00:00    
(2/39): php-composer-ca-bundle-1.0.3-1.fc25.noarch.rpm                                                                                                                                                       100 kB/s |  15 kB     00:00    
(3/39): php-composer-spdx-licenses-1.1.4-1.fc25.noarch.rpm                                                                                                                                                   276 kB/s |  18 kB     00:00    
(4/39): php-composer-semver-1.4.2-1.fc26.noarch.rpm                                                                                                                                                          272 kB/s |  20 kB     00:00    
(5/39): php-jsonlint-1.4.0-2.fc24.noarch.rpm                                                                                                                                                                 441 kB/s |  20 kB     00:00    
(6/39): php-justinrainbow-json-schema-2.0.5-2.fc25.noarch.rpm                                                                                                                                                756 kB/s |  33 kB     00:00    
(7/39): php-intl-7.0.10-1.fc26.x86_64.rpm                                                                                                                                                                    1.7 MB/s | 219 kB     00:00    
(8/39): composer-1.2.0-1.fc25.noarch.rpm                                                                                                                                                                     908 kB/s | 353 kB     00:00    
(9/39): php-pecl-zip-1.13.4-1.fc25.x86_64.rpm                                                                                                                                                                1.1 MB/s |  54 kB     00:00    
(10/39): php-seld-phar-utils-1.0.1-2.fc24.noarch.rpm                                                                                                                                                         191 kB/s |  12 kB     00:00    
(11/39): php-seld-cli-prompt-1.0.2-1.fc25.noarch.rpm                                                                                                                                                         168 kB/s |  12 kB     00:00    
(12/39): php-symfony-class-loader-2.8.9-2.fc26.noarch.rpm                                                                                                                                                    647 kB/s |  28 kB     00:00    
(13/39): php-symfony-console-2.8.9-2.fc26.noarch.rpm                                                                                                                                                         1.5 MB/s |  89 kB     00:00    
(14/39): php-symfony-filesystem-2.8.9-2.fc26.noarch.rpm                                                                                                                                                      496 kB/s |  24 kB     00:00    
(15/39): php-symfony-finder-2.8.9-2.fc26.noarch.rpm                                                                                                                                                          905 kB/s |  40 kB     00:00    
(16/39): php-symfony-process-2.8.9-2.fc26.noarch.rpm                                                                                                                                                         474 kB/s |  34 kB     00:00    
(17/39): php-xml-7.0.10-1.fc26.x86_64.rpm                                                                                                                                                                    2.2 MB/s | 215 kB     00:00    
(18/39): libzip-1.1.3-1.fc25.x86_64.rpm                                                                                                                                                                      1.1 MB/s |  48 kB     00:00    
(19/39): php-symfony-common-2.8.9-2.fc26.noarch.rpm                                                                                                                                                          1.8 MB/s | 125 kB     00:00    
(20/39): php-mbstring-7.0.10-1.fc26.x86_64.rpm                                                                                                                                                               1.3 MB/s | 582 kB     00:00    
(21/39): php-process-7.0.10-1.fc26.x86_64.rpm                                                                                                                                                                1.1 MB/s |  86 kB     00:00    
(22/39): php-symfony-event-dispatcher-2.8.9-2.fc26.noarch.rpm                                                                                                                                                485 kB/s |  26 kB     00:00    
(23/39): php-symfony-dependency-injection-2.8.9-2.fc26.noarch.rpm                                                                                                                                            1.6 MB/s |  85 kB     00:00    
(24/39): php-symfony-config-2.8.9-2.fc26.noarch.rpm                                                                                                                                                          1.0 MB/s |  53 kB     00:00    
(25/39): php-symfony-http-kernel-2.8.9-2.fc26.noarch.rpm                                                                                                                                                     1.2 MB/s |  99 kB     00:00    
(26/39): libxslt-1.1.28-13.fc25.x86_64.rpm                                                                                                                                                                   1.7 MB/s | 246 kB     00:00    
(27/39): php-symfony-expression-language-2.8.9-2.fc26.noarch.rpm                                                                                                                                             815 kB/s |  29 kB     00:00    
(28/39): php-symfony-yaml-2.8.9-2.fc26.noarch.rpm                                                                                                                                                            541 kB/s |  31 kB     00:00    
(29/39): php-symfony-browser-kit-2.8.9-2.fc26.noarch.rpm                                                                                                                                                     587 kB/s |  25 kB     00:00    
(30/39): php-pdo-7.0.10-1.fc26.x86_64.rpm                                                                                                                                                                    1.5 MB/s | 131 kB     00:00    
(31/39): php-symfony-debug-2.8.9-2.fc26.noarch.rpm                                                                                                                                                           871 kB/s |  38 kB     00:00    
(32/39): php-symfony-http-foundation-2.8.9-2.fc26.noarch.rpm                                                                                                                                                 1.2 MB/s |  95 kB     00:00    
(33/39): php-symfony-var-dumper-2.8.9-2.fc26.noarch.rpm                                                                                                                                                      1.1 MB/s |  49 kB     00:00    
(34/39): php-symfony-dom-crawler-2.8.9-2.fc26.noarch.rpm                                                                                                                                                     723 kB/s |  32 kB     00:00    
(35/39): php-symfony-polyfill-1.2.0-1.fc25.noarch.rpm                                                                                                                                                        537 kB/s |  24 kB     00:00    
(36/39): php-gd-7.0.10-1.fc26.x86_64.rpm                                                                                                                                                                     1.5 MB/s |  81 kB     00:00    
(37/39): php-symfony-css-selector-2.8.9-2.fc26.noarch.rpm                                                                                                                                                    554 kB/s |  38 kB     00:00    
(38/39): php-paragonie-random-compat-1.4.1-1.fc25.noarch.rpm                                                                                                                                                 550 kB/s |  26 kB     00:00    
(39/39): php-password-compat-1.0.4-3.fc24.noarch.rpm                                                                                                                                                         391 kB/s |  15 kB     00:00    
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                        1.7 MB/s | 3.1 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : php-symfony-common-2.8.9-2.fc26.noarch                                                                                                                                                                                  1/39 
warning: Unable to get systemd shutdown inhibition lock
  Installing  : php-symfony-class-loader-2.8.9-2.fc26.noarch                                                                                                                                                                            2/39 
  Installing  : php-mbstring-7.0.10-1.fc26.x86_64                                                                                                                                                                                       3/39 
  Installing  : php-process-7.0.10-1.fc26.x86_64                                                                                                                                                                                        4/39 
  Installing  : php-PsrLog-1.0.0-10.fc24.noarch                                                                                                                                                                                         5/39 
  Installing  : php-symfony-process-2.8.9-2.fc26.noarch                                                                                                                                                                                 6/39 
  Installing  : php-symfony-filesystem-2.8.9-2.fc26.noarch                                                                                                                                                                              7/39 
  Installing  : php-symfony-yaml-2.8.9-2.fc26.noarch                                                                                                                                                                                    8/39 
  Installing  : php-symfony-finder-2.8.9-2.fc26.noarch                                                                                                                                                                                  9/39 
  Installing  : php-pdo-7.0.10-1.fc26.x86_64                                                                                                                                                                                           10/39 
  Installing  : php-intl-7.0.10-1.fc26.x86_64                                                                                                                                                                                          11/39 
  Installing  : php-symfony-debug-2.8.9-2.fc26.noarch                                                                                                                                                                                  12/39 
  Installing  : php-justinrainbow-json-schema-2.0.5-2.fc25.noarch                                                                                                                                                                      13/39 
  Installing  : php-password-compat-1.0.4-3.fc24.noarch                                                                                                                                                                                14/39 
  Installing  : php-composer-ca-bundle-1.0.3-1.fc25.noarch                                                                                                                                                                             15/39 
  Installing  : php-composer-semver-1.4.2-1.fc26.noarch                                                                                                                                                                                16/39 
  Installing  : php-composer-spdx-licenses-1.1.4-1.fc25.noarch                                                                                                                                                                         17/39 
  Installing  : php-jsonlint-1.4.0-2.fc24.noarch                                                                                                                                                                                       18/39 
  Installing  : php-seld-cli-prompt-1.0.2-1.fc25.noarch                                                                                                                                                                                19/39 
  Installing  : php-seld-phar-utils-1.0.1-2.fc24.noarch                                                                                                                                                                                20/39 
  Installing  : php-symfony-expression-language-2.8.9-2.fc26.noarch                                                                                                                                                                    21/39 
  Installing  : php-symfony-css-selector-2.8.9-2.fc26.noarch                                                                                                                                                                           22/39 
  Installing  : php-paragonie-random-compat-1.4.1-1.fc25.noarch                                                                                                                                                                        23/39 
  Installing  : php-symfony-polyfill-1.2.0-1.fc25.noarch                                                                                                                                                                               24/39 
  Installing  : php-symfony-http-foundation-2.8.9-2.fc26.noarch                                                                                                                                                                        25/39 
  Installing  : php-gd-7.0.10-1.fc26.x86_64                                                                                                                                                                                            26/39 
  Installing  : libxslt-1.1.28-13.fc25.x86_64                                                                                                                                                                                          27/39 
  Installing  : php-xml-7.0.10-1.fc26.x86_64                                                                                                                                                                                           28/39 
  Installing  : php-symfony-config-2.8.9-2.fc26.noarch                                                                                                                                                                                 29/39 
  Installing  : php-symfony-dependency-injection-2.8.9-2.fc26.noarch                                                                                                                                                                   30/39 
  Installing  : php-symfony-var-dumper-2.8.9-2.fc26.noarch                                                                                                                                                                             31/39 
  Installing  : php-symfony-dom-crawler-2.8.9-2.fc26.noarch                                                                                                                                                                            32/39 
  Installing  : php-symfony-browser-kit-2.8.9-2.fc26.noarch                                                                                                                                                                            33/39 
  Installing  : php-symfony-console-2.8.9-2.fc26.noarch                                                                                                                                                                                34/39 
  Installing  : php-symfony-event-dispatcher-2.8.9-2.fc26.noarch                                                                                                                                                                       35/39 
  Installing  : php-symfony-http-kernel-2.8.9-2.fc26.noarch                                                                                                                                                                            36/39 
  Installing  : libzip-1.1.3-1.fc25.x86_64                                                                                                                                                                                             37/39 
  Installing  : php-pecl-zip-1.13.4-1.fc25.x86_64                                                                                                                                                                                      38/39 
  Installing  : composer-1.2.0-1.fc25.noarch                                                                                                                                                                                           39/39 
  Verifying   : composer-1.2.0-1.fc25.noarch                                                                                                                                                                                            1/39 
  Verifying   : php-PsrLog-1.0.0-10.fc24.noarch                                                                                                                                                                                         2/39 
  Verifying   : php-composer-ca-bundle-1.0.3-1.fc25.noarch                                                                                                                                                                              3/39 
  Verifying   : php-composer-semver-1.4.2-1.fc26.noarch                                                                                                                                                                                 4/39 
  Verifying   : php-composer-spdx-licenses-1.1.4-1.fc25.noarch                                                                                                                                                                          5/39 
  Verifying   : php-intl-7.0.10-1.fc26.x86_64                                                                                                                                                                                           6/39 
  Verifying   : php-jsonlint-1.4.0-2.fc24.noarch                                                                                                                                                                                        7/39 
  Verifying   : php-justinrainbow-json-schema-2.0.5-2.fc25.noarch                                                                                                                                                                       8/39 
  Verifying   : php-mbstring-7.0.10-1.fc26.x86_64                                                                                                                                                                                       9/39 
  Verifying   : php-pecl-zip-1.13.4-1.fc25.x86_64                                                                                                                                                                                      10/39 
  Verifying   : php-seld-cli-prompt-1.0.2-1.fc25.noarch                                                                                                                                                                                11/39 
  Verifying   : php-seld-phar-utils-1.0.1-2.fc24.noarch                                                                                                                                                                                12/39 
  Verifying   : php-symfony-class-loader-2.8.9-2.fc26.noarch                                                                                                                                                                           13/39 
  Verifying   : php-symfony-console-2.8.9-2.fc26.noarch                                                                                                                                                                                14/39 
  Verifying   : php-symfony-filesystem-2.8.9-2.fc26.noarch                                                                                                                                                                             15/39 
  Verifying   : php-symfony-finder-2.8.9-2.fc26.noarch                                                                                                                                                                                 16/39 
  Verifying   : php-symfony-process-2.8.9-2.fc26.noarch                                                                                                                                                                                17/39 
  Verifying   : php-xml-7.0.10-1.fc26.x86_64                                                                                                                                                                                           18/39 
  Verifying   : libzip-1.1.3-1.fc25.x86_64                                                                                                                                                                                             19/39 
  Verifying   : php-symfony-common-2.8.9-2.fc26.noarch                                                                                                                                                                                 20/39 
  Verifying   : php-process-7.0.10-1.fc26.x86_64                                                                                                                                                                                       21/39 
  Verifying   : php-symfony-event-dispatcher-2.8.9-2.fc26.noarch                                                                                                                                                                       22/39 
  Verifying   : libxslt-1.1.28-13.fc25.x86_64                                                                                                                                                                                          23/39 
  Verifying   : php-symfony-dependency-injection-2.8.9-2.fc26.noarch                                                                                                                                                                   24/39 
  Verifying   : php-symfony-http-kernel-2.8.9-2.fc26.noarch                                                                                                                                                                            25/39 
  Verifying   : php-symfony-config-2.8.9-2.fc26.noarch                                                                                                                                                                                 26/39 
  Verifying   : php-symfony-expression-language-2.8.9-2.fc26.noarch                                                                                                                                                                    27/39 
  Verifying   : php-symfony-yaml-2.8.9-2.fc26.noarch                                                                                                                                                                                   28/39 
  Verifying   : php-pdo-7.0.10-1.fc26.x86_64                                                                                                                                                                                           29/39 
  Verifying   : php-symfony-browser-kit-2.8.9-2.fc26.noarch                                                                                                                                                                            30/39 
  Verifying   : php-symfony-debug-2.8.9-2.fc26.noarch                                                                                                                                                                                  31/39 
  Verifying   : php-symfony-http-foundation-2.8.9-2.fc26.noarch                                                                                                                                                                        32/39 
  Verifying   : php-symfony-var-dumper-2.8.9-2.fc26.noarch                                                                                                                                                                             33/39 
  Verifying   : php-symfony-dom-crawler-2.8.9-2.fc26.noarch                                                                                                                                                                            34/39 
  Verifying   : php-symfony-polyfill-1.2.0-1.fc25.noarch                                                                                                                                                                               35/39 
  Verifying   : php-gd-7.0.10-1.fc26.x86_64                                                                                                                                                                                            36/39 
  Verifying   : php-symfony-css-selector-2.8.9-2.fc26.noarch                                                                                                                                                                           37/39 
  Verifying   : php-paragonie-random-compat-1.4.1-1.fc25.noarch                                                                                                                                                                        38/39 
  Verifying   : php-password-compat-1.0.4-3.fc24.noarch                                                                                                                                                                                39/39 

Installed:
  composer.noarch 1.2.0-1.fc25                              libxslt.x86_64 1.1.28-13.fc25                                libzip.x86_64 1.1.3-1.fc25                                    php-PsrLog.noarch 1.0.0-10.fc24                     
  php-composer-ca-bundle.noarch 1.0.3-1.fc25                php-composer-semver.noarch 1.4.2-1.fc26                      php-composer-spdx-licenses.noarch 1.1.4-1.fc25                php-gd.x86_64 7.0.10-1.fc26                         
  php-intl.x86_64 7.0.10-1.fc26                             php-jsonlint.noarch 1.4.0-2.fc24                             php-justinrainbow-json-schema.noarch 2.0.5-2.fc25             php-mbstring.x86_64 7.0.10-1.fc26                   
  php-paragonie-random-compat.noarch 1.4.1-1.fc25           php-password-compat.noarch 1.0.4-3.fc24                      php-pdo.x86_64 7.0.10-1.fc26                                  php-pecl-zip.x86_64 1.13.4-1.fc25                   
  php-process.x86_64 7.0.10-1.fc26                          php-seld-cli-prompt.noarch 1.0.2-1.fc25                      php-seld-phar-utils.noarch 1.0.1-2.fc24                       php-symfony-browser-kit.noarch 2.8.9-2.fc26         
  php-symfony-class-loader.noarch 2.8.9-2.fc26              php-symfony-common.noarch 2.8.9-2.fc26                       php-symfony-config.noarch 2.8.9-2.fc26                        php-symfony-console.noarch 2.8.9-2.fc26             
  php-symfony-css-selector.noarch 2.8.9-2.fc26              php-symfony-debug.noarch 2.8.9-2.fc26                        php-symfony-dependency-injection.noarch 2.8.9-2.fc26          php-symfony-dom-crawler.noarch 2.8.9-2.fc26         
  php-symfony-event-dispatcher.noarch 2.8.9-2.fc26          php-symfony-expression-language.noarch 2.8.9-2.fc26          php-symfony-filesystem.noarch 2.8.9-2.fc26                    php-symfony-finder.noarch 2.8.9-2.fc26              
  php-symfony-http-foundation.noarch 2.8.9-2.fc26           php-symfony-http-kernel.noarch 2.8.9-2.fc26                  php-symfony-polyfill.noarch 1.2.0-1.fc25                      php-symfony-process.noarch 2.8.9-2.fc26             
  php-symfony-var-dumper.noarch 2.8.9-2.fc26                php-symfony-yaml.noarch 2.8.9-2.fc26                         php-xml.x86_64 7.0.10-1.fc26                                 

Complete!


This is a fresh Rawhide Server install as of today, and I used the "minimal" installation target.

Comment 1 Florian Festi 2016-09-29 09:03:53 UTC
Can you please test if systemd-inhibit works on your system?

Comment 2 Panu Matilainen 2016-10-12 07:58:48 UTC
See comment #1 - please test systemd-inhibit on the system.

Except for making the error more informative, there's unlikely to be anything to fix on rpm side. Rpm is merely issuing a dbus call to systemd inhibit interface (https://www.freedesktop.org/wiki/Software/systemd/inhibit/). If its not responding then maybe systemd-logind is not running, or something like that.

Comment 3 Randy Barlow 2016-10-13 04:11:57 UTC
I just tried a dnf upgrade again on the same system that had exhibited this behavior in the past and the error message did not appear. I assume that it was fixed somewhere along the way. Thanks!

Comment 4 Panu Matilainen 2016-10-13 05:29:57 UTC
Ack, thanks for confirming. Rpm hasn't changed at all in the meanwhile so it indeed was some hitch in the systemd-logind/dbus/whatever.


Note You need to log in before you can comment on or make changes to this bug.