OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Not able to run ACL Save on Redis

  • Thread starter Thread starter Ayush
  • Start date Start date
A

Ayush

Guest
I have setup my Redis with an ACL File as below:

Code:
# redis.conf
aclfile /var/lib/redis/users.acl

Code:
# users.acl
user default on >password ~* &* +@all

I then start redis using the docker-compose file:

Code:
version: "3.8"
services:
  redis_local:
    container_name: redis_local
    image: redis:6.2.2
    restart: always
    command: 
      -  /var/lib/redis/redis.conf
    ports:
      - 6379:6379
    volumes:
      - ./redis.conf:/var/lib/redis/redis.conf
      - ./users.acl:/var/lib/redis/users.acl
      - ./redis_data:/data

All good so far.

All my ACL SETUSER commands work well and is creating users that can be authenticated.

However, I encounter an issue when running the ACL SAVE command.

Initially, I get this error:

Code:
Opening temp ACL file for ACL SAVE: Permission denied

Naturally, I tried to provide it permissions manually by running this command:

Code:
chmod 777 /var/lib/redis

But after I provide permissions to the folder using the above command and run ACL SAVE again, I get the following error:

Code:
Renaming ACL file for ACL SAVE: Device or resource busy

Does anyone have an idea on what can be done to fix this in a proper way? Any help in the matter would be greatly appreciated.

Thanks!

<p>I have setup my Redis with an ACL File as below:</p>
<pre><code># redis.conf
aclfile /var/lib/redis/users.acl
</code></pre>
<pre><code># users.acl
user default on >password ~* &* +@all
</code></pre>
<p>I then start redis using the docker-compose file:</p>
<pre><code>version: "3.8"
services:
redis_local:
container_name: redis_local
image: redis:6.2.2
restart: always
command:
- /var/lib/redis/redis.conf
ports:
- 6379:6379
volumes:
- ./redis.conf:/var/lib/redis/redis.conf
- ./users.acl:/var/lib/redis/users.acl
- ./redis_data:/data
</code></pre>
<p>All good so far.</p>
<p>All my ACL <code>SETUSER</code> commands work well and is creating users that can be authenticated.</p>
<p>However, I encounter an issue when running the <code>ACL SAVE</code> command.</p>
<p>Initially, I get this error:</p>
<pre><code>Opening temp ACL file for ACL SAVE: Permission denied
</code></pre>
<p>Naturally, I tried to provide it permissions manually by running this command:</p>
<pre><code>chmod 777 /var/lib/redis
</code></pre>
<p>But after I provide permissions to the folder using the above command and run <code>ACL SAVE</code> again, I get the following error:</p>
<pre><code>Renaming ACL file for ACL SAVE: Device or resource busy
</code></pre>
<p>Does anyone have an idea on what can be done to fix this in a proper way? Any help in the matter would be greatly appreciated.</p>
<p>Thanks!</p>
 

Latest posts

Top