I am facing a issue where .lock is not getting updated and it is 0 kb file. But after my graylog starts and messages start to process, I get below logs in /var/log/graylog-server.
2020-04-13T16:38:35.140+05:30 ERROR [KafkaJournal] Unable to start logmanager.
kafka.common.KafkaException: Failed to acquire lock on file .lock in /data/journal_data/journal. A Kafka instance in another process or thread is using this directory.
I have a seperate disk for journal data but i have created a sub directory for it.
/data/journal_data/journal is the directory for journal. Owner of disk in graylog and even graylog is started from graylog user.
Can anyone help as I am stuck. Have read all the posts related to .lock in community but nothing helps.
P.S - Disk is not full.
/etc/graylog/server – owner is root
Graylog process owner is graylog.
graylog 26539 26499 51 16:53 ? 00:00:11 /usr/bin/java -Xms15g -Xmx15g -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow -XX:+UseParNewGC -jar -Dlog4j.configurationFile=file:///etc/graylog/server/log4j2.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
Is there any permission issue or file owner issue. Pls let me know as I am stuck