# Graylog not able to take lock on journal .lock

**URL:** <https://community.graylog.org/t/graylog-not-able-to-take-lock-on-journal-lock/14950>\
**Category:** Graylog Central (peer support)\
**Created:** [April 13, 2020, 11:24am UTC](https://community.graylog.org/t/graylog-not-able-to-take-lock-on-journal-lock/14950 "2020-04-13T11:24:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuhasMUFC](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@SuhasMUFC](https://community.graylog.org/u/SuhasMUFC)\
**Post date:** [April 13, 2020, 11:24am UTC](https://community.graylog.org/t/graylog-not-able-to-take-lock-on-journal-lock/14950/1 "2020-04-13T11:24:47Z")

</div>

Hi All,  
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

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [April 22, 2020, 8:40am UTC](https://community.graylog.org/t/graylog-not-able-to-take-lock-on-journal-lock/14950/2 "2020-04-22T08:40:32Z")

</div>

he @SuhasMUFC

what is the content of `/data/journal_data/journal` ? What is the output of the command `namei -lo /data/journal_data/journal` ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [May 6, 2020, 8:40am UTC](https://community.graylog.org/t/graylog-not-able-to-take-lock-on-journal-lock/14950/3 "2020-05-06T08:40:37Z")

</div>

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