CONTENTS


Lastmodified 2022-05-28 (土) 11:57:53


Portupgrade -ar --batch && reboot したあと、munin からエラーメッセージが来るようになったった。

panic: XSUB Socket6::getaddrinfo (Socket6.c) failed to extend arg stack

/var/log/munin/munin-node.log

Process Backgrounded
2022/05/19-08:20:08 Munin::Node::Server (type Net::Server::Fork) starting! pid(3962)
2022/05/19-08:20:08 panic: XSUB Socket6::getaddrinfo (Socket6.c) failed to extend arg stack: base=801a12518, sp=801a12570, hwm=801a12558

 at line 78 in file /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm
2022/05/19-08:20:08 Server closing!

5分毎にメールで

[FATAL] There is nothing to do here, since there are no nodes with any plugins.  Please refer to http://munin-monitoring.org/wiki/FAQ_no_graphs at /usr/local/share/munin/munin-html line 38.

を頂く。

SOLVED

Muninがエラーするようになったのは、4月10日から。

なので、4月10日前後にupgrade した ports の make config に、コンフリクトする原因があるかも知れない。

cd /var/db/ports
ls -lt

して、4月10日にupgrade したports のリストを作成。

librsvg2 libgsf gdk-pixbuf2 protobuf-c openexr t1lib libtasn1 libXpm libva dbus xmlto libxcb libxslt dejavu apache24 zziplb clamav libxml2 trousers Imath arj fontconfig x265 freetype2 tiff jpeg-turbo apr1 rust cmake pcre2 brotli bash-completion automak libx264 bash bison m4 nettle libidn libgcrypt nss fftw3 gsed binutils liblz4 mpfr dav1d fribidi gmp docbook-xsl texinfo gdbm xvid boost-libs help2man getopt giflib libudev-devd libdrm w3m boehm-gc db5 lame libatomicops texi2html nspr nasm fstrm mpdecimal xorgroto libgpg-error gmake rhash p5-Locale-libintl readline gettext-tools teckit libunistring gettext-runtime libtextstyle libevent pgconf swig libiconv html2text sqlite3 libvorbis jbig2dec jbigkit perl5.32 pcre png tcl86 xmlcatmgr arc gsfonts libpotrace libogg bnd916

つづいて、該当するports のconfig フォルダを /var/db/ports から削除。(例:「security_clamav」)

portupgrade -f protobuf-c openexr t1lib libtasn1 libXpm libva dbus xmlto libxcb libxslt dejavu apache24 zziplb clamav libxml2 trousers Imath arj fontconfig x265 freetype2 tiff jpeg-turbo apr1 rust cmake pcre2 brotli bash-completion automak libx264 bash bison m4 nettle libidn libgcrypt nss fftw3 gsed binutils liblz4 mpfr dav1d fribidi gmp docbook-xsl texinfo gdbm xvid boost-libs help2man getopt giflib libudev-devd libdrm w3m boehm-gc db5 lame libatomicops texi2html nspr nasm fstrm mpdecimal xorgroto libgpg-error gmake rhash p5-Locale-libintl readline gettext-tools teckit libunistring gettext-runtime libtextstyle libevent pgconf swig libiconv html2text sqlite3 libvorbis jbig2dec jbigkit perl5.32 pcre png tcl86 xmlcatmgr arc gsfonts libpotrace libogg bnd916

を実行。

これで、ports のmake config が総てデフォルト設定に変更された。

panic が消えて、munin が復活した。ヽ(^。^)丿

 make config の項目が異なっていたports

は、以下の三つ

devel_pcre2  
lang_rust
textproc_libxml2

Not Yet SOLVED

【参考URL】https://pawafuru.com/0412

/var/log/munin/munin-node.log には、

2022/05/19-08:20:08 Munin::Node::Server (type Net::Server::Fork) starting! pid(3962)
2022/05/19-08:20:08 panic: XSUB Socket6::getaddrinfo (Socket6.c) failed to extend arg stack: base=801a12518, sp=801a12570, hwm=801a12558

とあって、IPV6を使用しようとしてエラーしているような。

参考URLを見ると、p5-IO-Socket-INET6 をアンインストールせよ、とあるので、

# pkg delete p5-IO-Socket-INET6-2.72_1

とすると、

Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 10 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        amavisd-new: 2.12.2,1
        munin-master: 2.0.69
        munin-node: 2.0.69
        p5-IO-Socket-INET6: 2.72_1
        p5-IO-Socket-SSL: 2.074
        p5-LWP-Protocol-https: 6.10
        p5-Net-HTTP: 6.22
        p5-Net-Server: 2.010
        p5-libwww: 6.65
        spamassassin: 3.4.5

Number of packages to be removed: 10

The operation will free 11 MiB.

Proceed with deinstalling packages? [y/N]:

なんだか、諸々消えるようなので、


Total access 635:本日 1:昨日 0

Counter: 635, today: 1, yesterday: 0
# locate p5-IO-Socket-INET

して、

/usr/local/share/licenses/p5-IO-Socket-INET6-2.72_1 
/usr/local/share/licenses/p5-IO-Socket-INET6-2.72_1/ART10
/usr/local/share/licenses/p5-IO-Socket-INET6-2.72_1/GPLv1+
/usr/local/share/licenses/p5-IO-Socket-INET6-2.72_1/LICENSE
/usr/local/share/licenses/p5-IO-Socket-INET6-2.72_1/catalog.mk
/usr/ports/net/p5-IO-Socket-INET6
/usr/ports/net/p5-IO-Socket-INET6/Makefile
/usr/ports/net/p5-IO-Socket-INET6/distinfo
/usr/ports/net/p5-IO-Socket-INET6/pkg-descr
/usr/ports/net/p5-IO-Socket-INET6/pkg-plist

とあるので、

# cd /usr/ports/net/p5-IO-Socket-INET6
# make deinstall
===>  Deinstalling for p5-IO-Socket-INET6
===>   Deinstalling p5-IO-Socket-INET6-2.72_1
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        p5-IO-Socket-INET6: 2.72_1

Number of packages to be removed: 1
[1/1] Deinstalling p5-IO-Socket-INET6-2.72_1...
[1/1] Deleting files for p5-IO-Socket-INET6-2.72_1: 100%

して、

# /usr/local/etc/rc.d/munin-node restart
munin_node not running?
Starting munin_node.
# /usr/local/etc/rc.d/munin-node restart
Stopping munin_node.     ← おお!起動している!
Waiting for PIDS: 99001.
Starting munin_node.

ログ /var/log/munin/munin-node.log には、

2022/05/19-14:02:38 Munin::Node::Server (type Net::Server::Fork) starting! pid(99001)
Resolved [*]:4949 to [0.0.0.0]:4949, IPv4
Binding to TCP port 4949 on host 0.0.0.0 with IPv4
Setting gid to "0 0"
2022/05/19-14:02:41 Server closing!
Process Backgrounded
2022/05/19-14:02:41 Munin::Node::Server (type Net::Server::Fork) starting! pid(99069)
Resolved [*]:4949 to [0.0.0.0]:4949, IPv4
Binding to TCP port 4949 on host 0.0.0.0 with IPv4
Setting gid to "0 0"

/usr/local/etc/munin/munin-node.conf

# Which address to bind to;
#host *
 host 0.0.0.0

munin reinstall

munin-node munin-master munin-comon をそれぞれ、portupgrade -rfR するも、panick 回避できないので、根本的にmuninを入れ換えする。

まず、munin のファイルの有りかを、locate munin で取得。

つづいて、それぞれをmake deinstall する。この状態でのファイル名muninの所在のlocate_dbを作成

 /etc/periodic/weekly/310.locate

make deinstall で、残っているファイル群は、locate_munin_deinstall.txt となるので、これらを手動で削除。その後、munin-node master をインストールし、/usr/local/sbin/munin-node-configure --shell | sh -x する。

んがぁログ munin-node.log は、相変わらず

2022/05/24-09:52:41 Munin::Node::Server (type Net::Server::Fork) starting! pid(19512)
2022/05/24-09:52:41 panic: XSUB Socket6::getaddrinfo (Socket6.c) failed to extend arg stack: base=801a12518, sp=801a12570, hwm=801a12558

 at line 78 in file /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm
2022/05/24-09:52:41 Server closing!

とエラーする。(+o+)

portupgrade -rRf munin-*

https://www.kishiro.com/FreeBSD/make_config_recursive.html


添付ファイル: filelocate_munin_deinstall.txt 125件 [詳細]

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-05-28 (土) 11:57:53