{"action":"created","issue":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1980","repository_url":"https://api.github.com/repos/Graylog2/graylog2-server","labels_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1980/labels{/name}","comments_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1980/comments","events_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1980/events","html_url":"https://github.com/Graylog2/graylog2-server/issues/1980","id":143509207,"number":1980,"title":"Unable to access file data/elasticsearch/modules","user":{"login":"lasdem","id":1667761,"avatar_url":"https://avatars.githubusercontent.com/u/1667761?v=3","gravatar_id":"","url":"https://api.github.com/users/lasdem","html_url":"https://github.com/lasdem","followers_url":"https://api.github.com/users/lasdem/followers","following_url":"https://api.github.com/users/lasdem/following{/other_user}","gists_url":"https://api.github.com/users/lasdem/gists{/gist_id}","starred_url":"https://api.github.com/users/lasdem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasdem/subscriptions","organizations_url":"https://api.github.com/users/lasdem/orgs","repos_url":"https://api.github.com/users/lasdem/repos","events_url":"https://api.github.com/users/lasdem/events{/privacy}","received_events_url":"https://api.github.com/users/lasdem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/P2","name":"P2","color":"eb6420"},{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/S1","name":"S1","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-25T14:19:20Z","updated_at":"2016-04-11T22:22:57Z","closed_at":null,"body":"### Problem description\r\ngraylog-server does not start after install \r\n\r\n### Steps to reproduce the problem\r\n\r\n1. Installed all components from repositories with yum (RPMs)\r\n2. graylog server.conf\r\n```\r\nis_master = true\r\nnode_id_file = /etc/graylog/server/node-id\r\nplugin_dir = /usr/share/graylog-server/plugin\r\nrest_listen_uri = http://127.0.0.1:12900/\r\nweb_enable = true\r\nweb_listen_uri = http://127.0.0.1:9000/\r\nrotation_strategy = size\r\nelasticsearch_max_size_per_index = 1073741824\r\nelasticsearch_max_number_of_indices = 400\r\nretention_strategy = delete\r\nelasticsearch_shards = 4\r\nelasticsearch_replicas = 0\r\nelasticsearch_index_prefix = graylog2\r\nallow_leading_wildcard_searches = false\r\nallow_highlighting = false\r\nelasticsearch_cluster_name = graylog\r\nelasticsearch_node_master = false\r\nelasticsearch_node_data = false\r\nelasticsearch_discovery_zen_ping_multicast_enabled = false\r\nelasticsearch_discovery_zen_ping_unicast_hosts = 127.0.0.1:9300\r\nelasticsearch_analyzer = standard\r\noutput_batch_size = 500\r\noutput_flush_interval = 1\r\noutput_fault_count_threshold = 5\r\noutput_fault_penalty_seconds = 30\r\nprocessbuffer_processors = 5\r\noutputbuffer_processors = 3\r\nprocessor_wait_strategy = blocking\r\nring_size = 65536\r\ninputbuffer_ring_size = 65536\r\ninputbuffer_processors = 2\r\ninputbuffer_wait_strategy = blocking\r\nmessage_journal_enabled = true\r\nmessage_journal_dir = /var/lib/graylog-server/journal\r\nlb_recognition_period_seconds = 3\r\nmongodb_uri = mongodb://localhost/graylog2\r\nmongodb_max_connections = 100\r\nmongodb_threads_allowed_to_block_multiplier = 5\r\ncontent_packs_dir = /usr/share/graylog-server/contentpacks\r\ncontent_packs_auto_load = grok-patterns.json\r\n```\r\n3. elasticsearch.yml\r\n```\r\ncluster.name: graylog\r\npath.data: /data_elk/elasticsearch/data\r\npath.work: /data_elk/elasticsearch/work\r\npath.logs: /data_elk/elasticsearch/logs\r\npath.plugins: /data_elk/elasticsearch/plugins\r\nnetwork.host: localhost\r\ndiscovery.zen.minimum_master_nodes: 1\r\ndiscovery.zen.ping.multicast.enabled: false\r\ndiscovery.zen.ping.unicast.hosts: [\"localhost:9300\"]\r\n```\r\n\r\n### Environment\r\n* openjdk version: \"1.8.0_71\"\r\n* Graylog Version: v2.0 Beta.1\r\n* Elasticsearch Version: 2.2.1\r\n* MongoDB Version: 3.2.4\r\n* Operating System: Red Hat Enterprise Linux Server release 6.7 (Santiago)\r\n* Browser version: N/A\r\n\r\n### Log Output\r\n\r\n/var/log/graylog-server/server.log\r\n```\r\n2016-03-25T15:01:18.928+01:00 INFO  [CmdLineTool] Loaded plugins: [Anonymous Usage Statistics 2.0.0-beta.1 [org.graylog.plugins.usagestatistics.UsageStatsPlugin], Pipeline Processor Plugin 1.0.0-alpha.6 [org.graylog.plugins.pipelineprocessor.ProcessorPlugin], Collector 1.0.0-beta.1 [org.graylog.plugins.collector.CollectorPlugin], MapWidgetPlugin 1.0.0-beta.1 [org.graylog.plugins.map.MapWidgetPlugin], ArchivePlugin 1.0.0-beta.1 [com.graylog.plugins.archive.ArchivePlugin]]\r\n2016-03-25T15:01:19.034+01:00 INFO  [CmdLineTool] Running with JVM arguments: -Xms1g -Xmx1g -XX:NewRatio=1 -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow -Djava.library.path=/usr/share/graylog-server/lib/sigar -Dlog4j.configurationFile=file:///etc/graylog/server/log4j2.xml -Dgraylog2.installation_source=rpm\r\n2016-03-25T15:01:21.310+01:00 INFO  [InputBufferImpl] Message journal is enabled.\r\n2016-03-25T15:01:21.608+01:00 INFO  [LogManager] Loading logs.\r\n2016-03-25T15:01:21.615+01:00 INFO  [LogManager] Logs loading complete.\r\n2016-03-25T15:01:21.690+01:00 INFO  [LogManager] Created log for partition [messagejournal,0] in /var/lib/graylog-server/journal with properties {segment.index.bytes -> 1048576, file.delete.delay.ms -> 60000, segment.bytes -> 104857600, flush.ms -> 60000, delete.retention.ms -> 86400000, index.interval.bytes -> 4096, retention.bytes -> 5368709120, min.insync.replicas -> 0, cleanup.policy -> delete, unclean.leader.election.enable -> true, segment.ms -> 3600000, max.message.bytes -> 2147483647, flush.messages -> 1000000, min.cleanable.dirty.ratio -> 0.5, retention.ms -> 43200000, segment.jitter.ms -> 0}.\r\n2016-03-25T15:01:21.691+01:00 INFO  [KafkaJournal] Initialized Kafka based journal at /var/lib/graylog-server/journal\r\n2016-03-25T15:01:21.710+01:00 INFO  [InputBufferImpl] Initialized InputBufferImpl with ring size <65536> and wait strategy <BlockingWaitStrategy>, running 2 parallel message handlers.\r\n2016-03-25T15:01:21.747+01:00 INFO  [cluster] Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}\r\n2016-03-25T15:01:21.780+01:00 INFO  [cluster] No server chosen by ReadPreferenceServerSelector{readPreference=primary} from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, all=[ServerDescription{address=localhost:27017, type=UNKNOWN, state=CONNECTING}]}. Waiting for 30000 ms before timing out\r\n2016-03-25T15:01:21.823+01:00 INFO  [connection] Opened connection [connectionId{localValue:1, serverValue:16}] to localhost:27017\r\n2016-03-25T15:01:21.824+01:00 INFO  [cluster] Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 2, 4]}, minWireVersion=0, maxWireVersion=4, maxDocumentSize=16777216, roundTripTimeNanos=585965}\r\n2016-03-25T15:01:21.830+01:00 INFO  [connection] Opened connection [connectionId{localValue:2, serverValue:17}] to localhost:27017\r\n2016-03-25T15:01:22.072+01:00 INFO  [NodeId] Node ID: 6a3c182b-f24a-48a9-8442-d0be1db7cbf0\r\n2016-03-25T15:01:22.167+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:22.168+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:22.183+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:22.183+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:22.192+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:22.192+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:22.200+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:22.201+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:22.293+01:00 INFO  [Version] HV000001: Hibernate Validator 5.2.4.Final\r\n2016-03-25T15:01:22.446+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:22.447+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:22.460+01:00 INFO  [ProcessBuffer] Initialized ProcessBuffer with ring size <65536> and wait strategy <BlockingWaitStrategy>.\r\n2016-03-25T15:01:24.572+01:00 INFO  [RulesEngineProvider] No static rules file loaded.\r\n2016-03-25T15:01:24.589+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:24.589+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:24.592+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:24.593+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:24.596+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:24.596+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:24.599+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:24.599+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:24.620+01:00 INFO  [OutputBuffer] Initialized OutputBuffer with ring size <65536> and wait strategy <BlockingWaitStrategy>.\r\n2016-03-25T15:01:24.622+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:24.622+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n......\r\n2016-03-25T15:01:27.503+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:27.503+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:27.504+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] version[2.2.1], pid[7744], build[d045fc2/2016-03-09T09:38:54Z]\r\n2016-03-25T15:01:27.504+01:00 INFO  [node] [graylog-6a3c182b-f24a-48a9-8442-d0be1db7cbf0] initializing ...\r\n2016-03-25T15:01:27.582+01:00 ERROR [CmdLineTool]\r\n\r\n################################################################################\r\n\r\nERROR: Unable to access file data/elasticsearch/modules\r\n\r\nNeed help?\r\n\r\n* Official documentation: http://docs.graylog.org/\r\n* Community support: https://www.graylog.org/community-support/\r\n* Commercial support: https://www.graylog.com/support/\r\n\r\nTerminating. :(\r\n\r\n################################################################################\r\n```"},"comment":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/comments/208591538","html_url":"https://github.com/Graylog2/graylog2-server/issues/1980#issuecomment-208591538","issue_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1980","id":208591538,"user":{"login":"schwing","id":1611712,"avatar_url":"https://avatars.githubusercontent.com/u/1611712?v=3","gravatar_id":"","url":"https://api.github.com/users/schwing","html_url":"https://github.com/schwing","followers_url":"https://api.github.com/users/schwing/followers","following_url":"https://api.github.com/users/schwing/following{/other_user}","gists_url":"https://api.github.com/users/schwing/gists{/gist_id}","starred_url":"https://api.github.com/users/schwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schwing/subscriptions","organizations_url":"https://api.github.com/users/schwing/orgs","repos_url":"https://api.github.com/users/schwing/repos","events_url":"https://api.github.com/users/schwing/events{/privacy}","received_events_url":"https://api.github.com/users/schwing/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T22:22:57Z","updated_at":"2016-04-11T22:22:57Z","body":"I ran into this moments ago, and I found that permissions were too strict for the `/data` directory on the server. Graylog was trying to access `/data` and failing because the graylog user didn't have read access to that directory. Allowing the `graylog` user read access to `/data` resolved it in my case. I haven't tested if the behavior is the same when the directory doesn't exist.\r\n\r\nIf you're running SELinux in enforcing mode (noticed you're running RHEL), that might complicate things further, but perhaps this is the same cause."}}