Closed tr31z closed 8 years ago
2016-01-11T10:17:49.720+01:00 ERROR [ServiceManager] Service RestApiService [FAILED] has failed in the STARTING state. org.jboss.netty.channel.ChannelException: Failed to bind to: graylog-server2/*.*.*.*:12900
This looks like either another (stale) instance of the Graylog server node is running on that machine or that the process isn't allowed to bind to this network interface (e. g. because of an SELinux, AppArmor, or grsecurity/RBAC policy).
The message from ContentPackLoaderPeriodical
is rather informational and can be fixed by either disabling the content pack loader (https://github.com/Graylog2/graylog2-server/blob/1.3.2/misc/graylog2.conf#L411-L412) or by creating that directory.
Selinux is disabled
sestatus
SELinux status: disabled
And only one instance is running
# ps aux |grep graylog
avahi 578 0.0 0.0 27944 1452 ? Ss 11:47 0:00 avahi-daemon: running [graylog-server1.local]
graylog 3334 0.0 0.0 115212 1452 ? Ss 11:50 0:00 /bin/sh /usr/share/graylog-server/bin/graylog-server
graylog 3335 144 19.4 3758704 756092 ? Sl 11:50 0:20 /usr/bin/java -Xms1g -Xmx1g -XX:NewRatio=1 -XX:PermSize=128m -XX:MaxPermSize=256m -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow -jar -Dlog4j.configuration=file:///etc/graylog/server/log4j.xml -Djava.library.path=/usr/share/graylog-server/lib/sigar -Dgraylog2.installation_source=rpm /usr/share/graylog-server/graylog.jar server -f /etc/graylog/server/server.conf -np
root 3487 0.0 0.0 112664 944 pts/0 S+ 11:50 0:00 grep --color=auto graylog
if I stop graylog-server and do a 'nc -l 12900', I am able to connect with 'telnet graylog-server1 12900' from another node
If you can connect to *:12900 if you've stopped the Graylog server, then there's definitely some other process running on that port. Stop the Graylog server and check with lsof -i :12900
.
Which type of installation of Graylog are you running and on which operating system?
I can connect because I ran 'nc -l 12900' :). If I stop graylog-server and the netcat listener, I cannot connect to the 12900 port from the outside and lsof -i :12900 doesn't return anything. I think that running 'nc -l 12900' (logged in with the graylog user) shows that the problem doesn't come from a misconfiguration of the system.
I installed graylog 1.3.2 from the repositories and I am running on centos 7
So does the error message persist if you start the Graylog server when lsof -i :12900
doesn't print anything?
yes :/
[root@graylog-server1 ~]# lsof -i :12900
[root@graylog-server1 ~]# /bin/sh /usr/share/graylog-server/bin/graylog-server
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Exception in thread "RestApiService STARTING" org.jboss.netty.channel.ChannelException: Failed to bind to: graylog-server2/*.*.*.*:12900
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
Is *.*.*.*:12900
the literal setting you've written into the configuration file? Please post the relevant parts of your Graylog server configuration file.
Well I finally got it working by reinstalling the 1.2.2 and then the 1.3.2 back again. I kept the same config files all along so I couldn't figure what was the source of the problem... Anyway, thanks for help and your patience :)
I have a setup with one master, one slave node and a 3 nodes ES cluster. After updating from graylog 1.2.2 to 1.3.2., the master node won't start while the slave is working fine. I tried to clone the slave machine and turned it into a master to replace the failing one but the problem was still the same. Here are the logs on the master:
On the other nodes of the cluster I see this in loop: