0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Redis-Clusterで「Can't open nodes.conf in order to acquire a lock: Permission denied」が発生

Posted at

はじめに

redis-clusterを有効にした状態で、下記のエラーが発生した場合の対象方法について記載。

Can't open nodes.conf in order to acquire a lock: Permission denied

原因

nodes.confの所有者が、redis → rootに変更されていたので、パーミッションエラーが発生。

nodes.confはデフォルトの場合は、/var/lib/redis配下に作成される

ls -ltir /var/lib/redis/nodes.conf
9218 -rw-r--r-- 1 root root Aug 1 04:05 /var/lib/redis/nodes.conf

対策

所有権を元に戻す。

chown "redis:redis" /var/lib/redis/nodes.conf

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?