ERROR StatusLogger File not found in file system or classpath: /usr/share/graylog/data/config/log4j2.xml


(Syed Saifuddin) #1

Trying to setup Graylog in a docker container. Mongo seems fine but Graylog is terminated because log4j2.xml file is not found.
Tried creating the directory and used the persist mentioned in the installation instructions as well.
gave recursive chmod 777 to /usr/share/graylog/data/config/log4j2.xml.
all the logs are given below.

[root@g6549-2 ~]#  docker-compose up
Starting default_elasticsearch_1 ...
Starting default_mongo_1 ...
Starting default_elasticsearch_1
Starting default_elasticsearch_1 ... done
Starting default_graylog_1 ...
Starting default_graylog_1 ... done
Attaching to default_mongo_1, default_elasticsearch_1, default_graylog_1
mongo_1          | 2017-06-28T20:40:40.589+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=d2691290f238
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten] db version v3.4.5
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten] git version: 520b8f3092c48d934f0cd78ab5f40fe594f96863
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten] allocator: tcmalloc
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten] modules: none
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten] build environment:
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten]     distmod: debian81
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten]     distarch: x86_64
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten]     target_arch: x86_64
mongo_1          | 2017-06-28T20:40:40.590+0000 I CONTROL  [initandlisten] options: {}
mongo_1          | 2017-06-28T20:40:40.590+0000 W -        [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
mongo_1          | 2017-06-28T20:40:40.615+0000 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
mongo_1          | 2017-06-28T20:40:40.615+0000 W STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
mongo_1          | 2017-06-28T20:40:40.615+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1254M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten]
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten]
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten]
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten]
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
mongo_1          | 2017-06-28T20:40:40.875+0000 I CONTROL  [initandlisten]
mongo_1          | 2017-06-28T20:40:40.877+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
mongo_1          | 2017-06-28T20:40:40.878+0000 I NETWORK  [thread1] waiting for connections on port 27017
mongo_1          | 2017-06-28T20:40:41.016+0000 I FTDC     [ftdc] Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK
elasticsearch_1  | [2017-06-28 20:40:41,595][WARN ][bootstrap                ] unable to install syscall filter: seccomp unavailable: your kernel is buggy and you should upgrade
elasticsearch_1  | [2017-06-28 20:40:41,820][INFO ][node                     ] [Ringmaster] version[2.4.5], pid[1], build[c849dd1/2017-04-24T16:18:17Z]
elasticsearch_1  | [2017-06-28 20:40:41,821][INFO ][node                     ] [Ringmaster] initializing ...
graylog_1        | ERROR StatusLogger File not found in file system or classpath: /usr/share/graylog/data/config/log4j2.xml
graylog_1        | ERROR StatusLogger Reconfiguration failed: No configuration found for '74a14482' at 'null' in 'null'
graylog_1        | 20:40:42.143 [main] ERROR org.graylog2.bootstrap.CmdLineTool - Couldn't load configuration: Properties file /usr/share/graylog/data/config/graylog.conf doesn't exist!
elasticsearch_1  | [2017-06-28 20:40:42,472][INFO ][plugins                  ] [Ringmaster] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
elasticsearch_1  | [2017-06-28 20:40:42,565][INFO ][env                      ] [Ringmaster] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/xvda1)]], net usable_space [4.5gb], net total_space [9.9gb], spins? [possibly], types [xfs]
elasticsearch_1  | [2017-06-28 20:40:42,565][INFO ][env                      ] [Ringmaster] heap size [1007.3mb], compressed ordinary object pointers [true]
default_graylog_1 exited with code 1
elasticsearch_1  | [2017-06-28 20:40:44,227][INFO ][node                     ] [Ringmaster] initialized
elasticsearch_1  | [2017-06-28 20:40:44,227][INFO ][node                     ] [Ringmaster] starting ...
elasticsearch_1  | [2017-06-28 20:40:44,354][INFO ][transport                ] [Ringmaster] publish_address {172.19.0.3:9300}, bound_addresses {[::]:9300}
elasticsearch_1  | [2017-06-28 20:40:44,370][INFO ][discovery                ] [Ringmaster] graylog/lccrEsNuSBydukREENPO6g
elasticsearch_1  | [2017-06-28 20:40:47,445][INFO ][cluster.service          ] [Ringmaster] new_master {Ringmaster}{lccrEsNuSBydukREENPO6g}{172.19.0.3}{172.19.0.3:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
elasticsearch_1  | [2017-06-28 20:40:47,507][INFO ][http                     ] [Ringmaster] publish_address {172.19.0.3:9200}, bound_addresses {[::]:9200}
elasticsearch_1  | [2017-06-28 20:40:47,507][INFO ][node                     ] [Ringmaster] started
elasticsearch_1  | [2017-06-28 20:40:47,508][INFO ][gateway                  ] [Ringmaster] recovered [0] indices into cluster_state
^CGracefully stopping... (press Ctrl+C again to force)
Killing default_mongo_1 ... done
Killing default_elasticsearch_1 ... done

(Jochen) #2

Does /usr/share/graylog/data/config/log4j2.xml exist at all?
What’s in your docker-compose.yml file?


(system) #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.