LINUX.ORG.RU

Gentoo и apcupsd, обновился.


0

1

После обновления не стартует apcupsd. Откат назад не помогает. Вот что он выдаёт если запустить в режиме отладки.

/sbin/apcupsd start -d10000 

0.000 apcupsd: apcupsd.c:219 Options parsed.
0.000 apcupsd: apcconfig.c:799 After config scriptdir: "/etc/apcupsd"
0.000 apcupsd: apcconfig.c:800 After config pwrfailpath: "/etc/apcupsd"
0.000 apcupsd: apcconfig.c:801 After config nologinpath: "/etc"
0.000 apcupsd: apcupsd.c:242 Config file /etc/apcupsd/apcupsd.conf processed.
0.000 apcupsd: newups.c:102 write_lock at drivers.c:208
0.000 apcupsd: drivers.c:210 Looking for driver: usb
0.000 apcupsd: drivers.c:214 Driver dumb is configured.
0.000 apcupsd: drivers.c:214 Driver apcsmart is configured.
0.000 apcupsd: drivers.c:214 Driver net is configured.
0.000 apcupsd: drivers.c:214 Driver usb is configured.
0.000 apcupsd: drivers.c:217 Driver usb found and attached.
0.000 apcupsd: newups.c:108 write_unlock at drivers.c:234
0.000 apcupsd: drivers.c:236 Driver ptr=0x43d800
0.000 apcupsd: apcupsd.c:261 Attached to driver: usb
0.001 apcupsd: apclog.c:62 Lock file data error: apcupsd FATAL ERROR in apcupsd.c at line 285
Failed to acquire device lock file
0.001 apcupsd: apclog.c:62 apcupsd FATAL ERROR in apcupsd.c at line 285
Failed to acquire device lock file

0.001 apcupsd: newups.c:102 write_lock at linux-usb.c:631
0.001 apcupsd: newups.c:108 write_unlock at linux-usb.c:638
0.001 apcupsd: apclog.c:62 Lock file data error: 

0.001 apcupsd: apclog.c:62 apcupsd error shutdown completed

Искал в инете с этим кодом «FATAL ERROR in apcupsd.c at line 285» но ничего путного нет. :(

система:

Portage 2.1.10.54 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.15, 3.2.11-gentoo x86_64)
=================================================================
System uname: Linux-3.2.11-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Mon, 02 Apr 2012 13:05:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15
Repositories: gentoo qutim local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.3 dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse -msse2 -msse3 -mssse3 -mmmx -mcx16 -msahf -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -msse -msse2 -msse3 -mssse3 -mmmx -mcx16 -msahf -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans xattr"
FFLAGS="" 
GENTOO_MIRRORS="ftp://93.158.155.193/gentoo-distfiles http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/qutim /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X a52 aac acl acpi alsa amd64 amr amrnb amrwb ao apache2 apng asf audiofile avi bash-completion battery berkdb bineditor bl bluetooth bluez bookmarks branding browserplugin bzip2 cairo capi cgi chdir chm cjk cli cmake color-console consolekit context cracklib crypt css ctype cups cupsddk curl cxx cyrillic d daap dbus debugger declarative designer detex device-mapper divx divx4linux djvu dmx dpmod dri dtmf dts dvd dvdr dvdread ebook elf embedded emovix enca encode eselect exif extra extras fakevim fbcon ffmpeg filter firefox flac fontconfig fpx freetype ftp fts3 g gcj gd gdbm ggi gif git glut gmedia gmp gmplayer gnutls gphoto2 gpm graphics graphviz gs gstreamer gudev h224 h281 h323 hash hddtemp hdri humanities i18n iconv icq icu id3tag imagemagick imap imlib int64 introspection jabber jadetex java jbig jpeg jpeg2k kde kpathsea lame latex lcms ldap libcaca libcmath libnotify libwww lights live lm_sensors logitech-mouse lzo mad maps matroska md5sum melt mikmod minizip mmx mmxext mng modules moonlight mozdom mp2 mp3 mp4 mpeg mpi mpi-threads mplayer mrim mtr mudflap multitarget musepack musicbrainz mysql mysqli natspec ncurses nemesi nls nptl nptlonly nsplugin ntfs nvidia objc ogg oggvorbis omega openal opencore-amr openexr opengl openmp openrc openssl optimized-qmake pam pcntl pcre pdf php pic pnat png pnm policykit posix postgres ppds pppd private-headers ps pstricks publishers python python3 qmax qt qt3support qt4 qtscript quicktime radio rar readline realmedia rfc4175 romio rtc ruby19 sbc science sdl semantic-desktop sensord session sharedext simplexml sip sipim skype slang smp sndfile snmp sockets sound speex spell sql sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 stars svg symlink sysfs tcpd templates tex4ht textures theora thounderbird threads tiff timidity tivo toolbar truetype udev udev-acl unicode usb userlocales utf8 utils utp v4l2 vcd vhosts videos vim vim-pager vim-syntax vim-with-x visualization vorbis wav wavpack wddx webkit wma wmf wmp wxwidgets x264 xanim xattr xcomposite xetex xindy xine xinerama xml xmlreader xmlrpc xmlwriter xorg xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel usb-audio mpu401" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_use autoindex cache 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 sertrack vhost_alias authz_user usertrack" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

★★★★

Последнее исправление: keeper_b (всего исправлений: 1)

В исходниках посмотри. Файл apcupsd.c, строка 285

r2d2
()

keeper_b

Failed to acquire device lock file


lock-файлик случаем не присутствует в системе, когда apcupsd остановлен?

blackst0ne ★★★★★
()
Ответ на: комментарий от blackst0ne

Точно! Спасибо. Я за лок файл принял apcups.pid, а там оказывается есть ещё один.

keeper_b ★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.