ruby-on-railsrubylinuxmanjaroruby-on-rails-8

Why does my rails 8 app create these mysterious annoying files?


After I start my laptop, some mysterious files and folders appear at the Rails root folder of my application.

$ sudo ls -lR backend/
backend/:
total 4
drwxr-xr-x 3 root root 4096 Mar 11 10:05 tmp

backend/tmp:
total 4
drwxr-xr-x 3 999 root 4096 Mar 11 10:05 redisdata1

backend/tmp/redisdata1:
total 4
drwx------ 2 999 username 4096 Mar 11 10:05 appendonlydir

backend/tmp/redisdata1/appendonlydir:
total 8
-rw------- 1 999 username 88 Mar 11 10:05 appendonly.aof.1.base.rdb
-rw------- 1 999 username  0 Mar 11 10:05 appendonly.aof.1.incr.aof
-rw------- 1 999 username 88 Mar 11 10:05 appendonly.aof.manifest

They are not ignored by git as temporary files. They are not readable as they don't seem to be text files. Should I add them as changes to my repository? If I try to do an action with them as a regular user, I get Permission denied, which is quite annoying.

ls: cannot open directory 'backend/tmp/redisdata1/appendonlydir': Permission denied

One of the created folders is redisdata1, but I don't use redis on my project, I have not installed it! I use Solid + Sqlite, what is going on?! 😦


Solution

  • Despite the fact I was not using Docker (not even Docker's daemon was on) I had tried Docker in the past on my laptop without successful results. Apparently, due to Docker's bugs, these Redis files were automatically created by Docker on my laptop's start, as I had used in the past Redis containers, containers I had already cleaned up.

    The only solution I found to this problem was to completely uninstall Docker, Docker Compose, and Docker Desktop.