Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 569012 - app-crypt/letsencrypt should depend on >=dev-python/psutil-3.0.1
Summary: app-crypt/letsencrypt should depend on >=dev-python/psutil-3.0.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Manuel Rüger (RETIRED)
URL: https://github.com/letsencrypt/letsen...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-21 15:23 UTC by Till Schäfer
Modified: 2016-02-02 17:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2015-12-21 15:23:48 UTC
when using app-crypt/letsencrypt with dev-python/psutil-2.1.3 (current stable version) in standalone mode, I always get the error:

ValueError: ambiguos inode with multiple PIDs references

This error can be fixed, by upgrading to >=dev-python/psutil-3.0.1. I have tested Version 3.0.1 and 3.3.0 here. Both versions work as expected. 


Full stack trace:
 # letsencrypt certonly --debug --standalone -d my.domain
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/letsencrypt", line 9, in <module>
    load_entry_point('letsencrypt==0.2.0.dev0', 'console_scripts', 'letsencrypt')()
  File "/usr/lib64/python2.7/site-packages/letsencrypt/cli.py", line 1398, in main
    return args.func(args, config, plugins)
  File "/usr/lib64/python2.7/site-packages/letsencrypt/cli.py", line 600, in obtain_cert
    _auth_from_domains(le_client, config, domains)
  File "/usr/lib64/python2.7/site-packages/letsencrypt/cli.py", line 404, in _auth_from_domains
    lineage = le_client.obtain_and_enroll_certificate(domains)
  File "/usr/lib64/python2.7/site-packages/letsencrypt/client.py", line 283, in obtain_and_enroll_certificate
    certr, chain, key, _ = self.obtain_certificate(domains)
  File "/usr/lib64/python2.7/site-packages/letsencrypt/client.py", line 266, in obtain_certificate
    return self._obtain_certificate(domains, csr) + (key, csr)
  File "/usr/lib64/python2.7/site-packages/letsencrypt/client.py", line 224, in _obtain_certificate
    authzr = self.auth_handler.get_authorizations(domains)
  File "/usr/lib64/python2.7/site-packages/letsencrypt/auth_handler.py", line 80, in get_authorizations
    cont_resp, dv_resp = self._solve_challenges()
  File "/usr/lib64/python2.7/site-packages/letsencrypt/auth_handler.py", line 115, in _solve_challenges
    dv_resp = self.dv_auth.perform(self.dv_c)
  File "/usr/lib64/python2.7/site-packages/letsencrypt/plugins/standalone.py", line 203, in perform
    if any(util.already_listening(port) for port in self._necessary_ports):
  File "/usr/lib64/python2.7/site-packages/letsencrypt/plugins/standalone.py", line 203, in <genexpr>
    if any(util.already_listening(port) for port in self._necessary_ports):
  File "/usr/lib64/python2.7/site-packages/letsencrypt/plugins/util.py", line 28, in already_listening
    net_connections = psutil.net_connections()
  File "/usr/lib64/python2.7/site-packages/psutil/__init__.py", line 1793, in net_connections
    return _psplatform.net_connections(kind)
  File "/usr/lib64/python2.7/site-packages/psutil/_pslinux.py", line 569, in net_connections
    return _connections.retrieve(kind)
  File "/usr/lib64/python2.7/site-packages/psutil/_pslinux.py", line 553, in retrieve
    for fd, family, type_, laddr, raddr, status, bound_pid in ls:
  File "/usr/lib64/python2.7/site-packages/psutil/_pslinux.py", line 490, in process_inet
    raise ValueError("ambiguos inode with multiple "
ValueError: ambiguos inode with multiple PIDs references


Reproducible: Always




# emerge --info dev-python/psutil
Portage 2.2.24 (python 2.7.10-final-0, hardened/linux/amd64/no-multilib, gcc-4.9.3, glibc-2.21-r1, 4.1.7-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.7-hardened-r1-x86_64-Intel-R-_Core-TM-_i5-4570S_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16365696 total,   1329464 free
KiB Swap:    4891788 total,   3299912 free
Timestamp of repository gentoo: Thu, 17 Dec 2015 14:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write --jobs=4 --load-average=5.0"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl aes amd64 avx avx2 bash-completion berkdb bzip2 cli cracklib crypt cups cxx dri fma3 gdbm glib glibc hardened iconv ieee1394 ipv4 ipv6 justify mmx mmxext modules ncurses nfsv4 nls nptl openmp opensslcrypt pam pax_kernel pcre pie popcnt readline samba seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 syslog tcpd threads unicode urandom vim-syntax xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-python/psutil-3.0.1::gentoo was built with the following:
USE="-test" PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_3"
Comment 1 Till Schäfer 2015-12-21 15:24:10 UTC
added upstream bug reference
Comment 2 Miroslav Šulc gentoo-dev 2016-01-23 16:48:41 UTC
i can confirm this issue. i upgraded psutil to 3.4.2 and the issue is gone so from previous post it seems it needs at least version 3.0.1 to work correctly.
Comment 3 Manuel Rüger (RETIRED) gentoo-dev 2016-02-02 17:49:37 UTC
commit f026eb34eea45a195bbff85aaea5b363090b681a
Author: Manuel Rüger <mrueg@gentoo.org>
Date:   Tue Feb 2 18:47:47 2016 +0100

    app-crypt/letsencrypt: Require more recent version of dev-python/psutil
    
    Gentoo-Bug: 569012
    
    Package-Manager: portage-2.2.27