[arch-general] nut UPS driver (upsdrvctl) fails to start for usbhid devices due to node perms - howto fix?

David C. Rankin drankinatty at suddenlinkmail.com
Tue Dec 17 08:45:24 EST 2013


On 12/17/2013 01:35 AM, Gaetan Bisson wrote:
>>   Is this a glibc issue or a nut issue?
> How about asking a network-ups-tools support list? Or its developers?
> This mailing list is for Arch-related discussions. This isn't one.

I already did, and a review of the getaddrinfo code seemed to follow all of the
recommendations on how to use that function. They were also caught by the fact
that this was a 2.18-10 to 2.18-11 updated and not a 2.17-x to 2.18-x update.

There recommendation was to check and confirm that Arch wasn't mixing 32bit and
64bit libraries somewhere.

Bottom line, something in the update yesterday broke upsd causing it to throw
the error:

  upsd[369]: getaddrinfo: Servname not supported for ai_socktype

I tried downgrading glibc 2.18-11 => 2.18-10, but didn't reboot the remote box.
After downgrade, the same error was generated on upsd start. Looking at the
upgrades, I'm not sure what other package could have broken upsd. I even rebuilt
network-ups-tools and reinstalled. Same error.

      $ ldd /usr/bin/upsd
        linux-vdso.so.1 (0x00007fff77374000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007f292b13d000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f292ad35000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f292ab18000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f292a76e000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f292a56a000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f292a354000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f292b3aa000)

I can't see what else could have impacted this except maybe the
linux-api-headers, but I've rebuilt/reinstalled since and have the same issue.
Does anybody else have any suggestions as to what changed?

The list of packages updated were:

[2013-12-16 14:02] [PACMAN] Running 'pacman -Syu'
[2013-12-16 14:02] [PACMAN] synchronizing package lists
[2013-12-16 14:03] [PACMAN] starting full system upgrade
[2013-12-16 14:03] [PACMAN] removed foomatic-filters (1:4.0.17_20130518-1)
[2013-12-16 14:03] [PACMAN] removed sysvinit-tools (2.88-12)
[2013-12-16 14:03] [PACMAN] upgraded linux-api-headers (3.10.6-1 -> 3.12.4-1)
[2013-12-16 14:03] [PACMAN] upgraded glibc (2.18-10 -> 2.18-11)
[2013-12-16 14:03] [PACMAN] upgraded util-linux (2.24-1 -> 2.24-2)
[2013-12-16 14:03] [PACMAN] upgraded apr (1.4.8-2 -> 1.5.0-1)
[2013-12-16 14:03] [PACMAN] upgraded libldap (2.4.37-1 -> 2.4.38-1)
[2013-12-16 14:03] [PACMAN] upgraded apr-util (1.5.2-3 -> 1.5.3-1)
[2013-12-16 14:03] [PACMAN] upgraded binutils (2.23.2-3 -> 2.24-1)
[2013-12-16 14:03] [PACMAN] upgraded bison (3.0.1-1 -> 3.0.2-1)
[2013-12-16 14:04] [PACMAN] upgraded cmake (2.8.12.1-1 -> 2.8.12.1-3)
[2013-12-16 14:04] [PACMAN] upgraded cronie (1.4.9-5 -> 1.4.11-1)
[2013-12-16 14:04] [PACMAN] upgraded libjpeg-turbo (1.3.0-3 -> 1.3.0-4)
[2013-12-16 14:04] [PACMAN] upgraded gcc-libs (4.8.2-4 -> 4.8.2-6)
[2013-12-16 14:04] [PACMAN] upgraded poppler (0.24.3-1 -> 0.24.4-1)
[2013-12-16 14:04] [PACMAN] upgraded cups-filters (1.0.41-1 -> 1.0.42-2)
[2013-12-16 14:04] [PACMAN] upgraded libvpx (1.2.0-2 -> 1.3.0-1)
[2013-12-16 14:04] [PACMAN] upgraded opus (1.0.3-2 -> 1.1-1)
[2013-12-16 14:04] [PACMAN] upgraded x264 (20131030-1 -> 20131030-2)
[2013-12-16 14:04] [PACMAN] upgraded ffmpeg (1:2.1.1-1 -> 1:2.1.1-2)
[2013-12-16 14:04] [PACMAN] upgraded file (5.15-1 -> 5.16-1)
[2013-12-16 14:04] [PACMAN] upgraded foomatic-db (1:4.0.17_20130518-1 ->
2:4.0.9_20131201-1)
[2013-12-16 14:04] [PACMAN] upgraded foomatic-db-engine (1:4.0.17_20130518-1 ->
2:4.0.9_20131201-1)
[2013-12-16 14:04] [PACMAN] upgraded foomatic-db-nonfree (1:4.0.17_20130518-1 ->
2:4.0.9_20131201-1)
[2013-12-16 14:04] [PACMAN] upgraded freetype2 (2.5.0.1-2 -> 2.5.2-1)
[2013-12-16 14:04] [PACMAN] upgraded gcc (4.8.2-4 -> 4.8.2-6)
[2013-12-16 14:04] [PACMAN] upgraded gdb (7.6.1-1 -> 7.6.2-1)
[2013-12-16 14:04] [PACMAN] upgraded git (1.8.4.2-1 -> 1.8.5.1-1)
[2013-12-16 14:04] [PACMAN] upgraded grub (2.00.5086-1 -> 1:2.00.1282.g5ae5c54-1)
[2013-12-16 14:04] [PACMAN] upgraded gstreamer0.10 (0.10.36-2 -> 0.10.36-3)
[2013-12-16 14:04] [PACMAN] upgraded gstreamer0.10-base (0.10.36-1 -> 0.10.36-2)
[2013-12-16 14:04] [PACMAN] upgraded harfbuzz (0.9.23-1 -> 0.9.24-1)
[2013-12-16 14:04] [PACMAN] upgraded imagemagick (6.8.7.8-1 -> 6.8.7.9-1)
[2013-12-16 14:04] [PACMAN] upgraded inetutils (1.9.1.341-1 -> 1.9.1.341-2)
[2013-12-16 14:04] [PACMAN] upgraded jasper (1.900.1-9 -> 1.900.1-10)
[2013-12-16 14:04] [PACMAN] upgraded libdrm (2.4.49-1 -> 2.4.50-1)
[2013-12-16 14:04] [PACMAN] upgraded libmariadbclient (5.5.34-1 -> 5.5.34-3)
[2013-12-16 14:04] [PACMAN] upgraded libnl (3.2.22-1 -> 3.2.23-1)
[2013-12-16 14:04] [PACMAN] upgraded libpipeline (1.2.4-1 -> 1.2.5-1)
[2013-12-16 14:04] [PACMAN] upgraded libwbclient (4.1.2-1 -> 4.1.3-1)
[2013-12-16 14:04] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please
wait ...
[2013-12-16 14:04] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using
mkinitcpio.  Please wait...
<snip>
[2013-12-16 14:04] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image:
/boot/initramfs-linux-fallback.img
[2013-12-16 14:04] [ALPM-SCRIPTLET] ==> Image generation successful
[2013-12-16 14:04] [PACMAN] upgraded linux (3.12.1-3 -> 3.12.5-1)
[2013-12-16 14:04] [PACMAN] upgraded lua (5.2.2-1 -> 5.2.3-1)
[2013-12-16 14:04] [PACMAN] upgraded make (4.0-1 -> 4.0-2)
[2013-12-16 14:04] [PACMAN] upgraded man-pages (3.54-1 -> 3.55-1)
[2013-12-16 14:04] [PACMAN] upgraded mariadb-clients (5.5.34-1 -> 5.5.34-3)
[2013-12-16 14:04] [PACMAN] upgraded mariadb (5.5.34-1 -> 5.5.34-3)
[2013-12-16 14:04] [PACMAN] upgraded mc (4.8.10-2 -> 4.8.11-1)
[2013-12-16 14:04] [PACMAN] upgraded mesa (9.2.4-1 -> 9.2.5-1)
[2013-12-16 14:04] [PACMAN] upgraded minicom (2.6.2-1 -> 2.6.2-2)
[2013-12-16 14:04] [PACMAN] upgraded mpfr (3.1.2.p4-1 -> 3.1.2.p5-1)
[2013-12-16 14:04] [PACMAN] upgraded perl-io-socket-ssl (1.960-1 -> 1.962-1)
[2013-12-16 14:04] [PACMAN] upgraded perl-net-dns (0.72-2 -> 0.73-1)
[2013-12-16 14:04] [PACMAN] upgraded php (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-apache (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-cgi (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-enchant (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-gd (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-intl (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-ldap (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-mcrypt (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-odbc (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-pear (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded postgresql-libs (9.3.1-4 -> 9.3.2-4)
[2013-12-16 14:04] [PACMAN] upgraded php-pgsql (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-pspell (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-snmp (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded sqlite (3.8.1-2 -> 3.8.2-1)
[2013-12-16 14:04] [PACMAN] upgraded php-sqlite (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-tidy (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded php-xsl (5.5.6-1 -> 5.5.7-1)
[2013-12-16 14:04] [PACMAN] upgraded procps-ng (3.3.8-3 -> 3.3.9-1)
[2013-12-16 14:04] [PACMAN] installed libmng (2.0.2-3)
[2013-12-16 14:04] [PACMAN] upgraded qt4 (4.8.5-6 -> 4.8.5-7)
[2013-12-16 14:04] [PACMAN] upgraded smbclient (4.1.2-1 -> 4.1.3-1)
[2013-12-16 14:04] [PACMAN] upgraded samba (4.1.2-1 -> 4.1.3-1)
[2013-12-16 14:04] [PACMAN] upgraded sqlite-doc (3.8.1-2 -> 3.8.2-1)
[2013-12-16 14:04] [PACMAN] upgraded sqlite-tcl (3.8.1-2 -> 3.8.2-1)
[2013-12-16 14:04] [PACMAN] upgraded unrar (1:5.0.13-1 -> 1:5.0.14-1)
[2013-12-16 14:04] [PACMAN] upgraded xorg-server-common (1.14.4-1 -> 1.14.5-1)
[2013-12-16 14:04] [PACMAN] upgraded xorg-server (1.14.4-1 -> 1.14.5-1)
[2013-12-16 14:04] [PACMAN] Running 'pacman -Sy --needed linux-lts'
[2013-12-16 14:04] [PACMAN] synchronizing package lists
[2013-12-16 14:05] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please
wait ...
<snip>
[2013-12-16 14:05] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image:
/boot/initramfs-linux-lts-fallback.img
[2013-12-16 14:05] [ALPM-SCRIPTLET] ==> Image generation successful
[2013-12-16 14:05] [PACMAN] installed linux-lts (3.10.24-1)
[2013-12-16 17:52] [PACMAN] Running 'pacman -U
network-ups-tools-git-v2.7.1.signed.r10.g6fb35b3-1-x86_64.pkg.tar.xz'
[2013-12-16 17:52] [PACMAN] upgraded network-ups-tools-git
(v2.7.1.signed.r9.g6fb35b3-1 -> v2.7.1.signed.r10.g6fb35b3-1)
[2013-12-16 21:34] [PACMAN] Running 'pacman -U glibc-2.18-10-x86_64.pkg.tar.xz'
[2013-12-16 21:35] [PACMAN] downgraded glibc (2.18-11 -> 2.18-10)
[2013-12-16 21:49] [PACMAN] Running 'pacman -U glibc-2.18-11-x86_64.pkg.tar.xz'
[2013-12-16 21:49] [PACMAN] upgraded glibc (2.18-10 -> 2.18-11)




-- 
David C. Rankin, J.D.,P.E.


More information about the arch-general mailing list