Open link in a new tab

Content

Expand project menu

All-in-one container failed when using file_store as rails cache store

Hi, I am trying to use file_store as rail cache instead of memcache using

ENV OPENPROJECT_RAILS__CACHE__STORE="file_store"

However, it cause a permission error during the seeding database process

This is the error log

rake aborted!
       Errno::EACCES: Permission denied @ rb_file_s_rename - (/app/tmp/cache/.fa99cb5a2e1fb8cb2d51cc4e34ec05b588f0b140b73c73e1a363c5c0c3311f8f2Fdatabase_migrations20230712-52-w11rbx, /app/tmp/cache/A99/F91/fa99cb5a2e1fb8cb2d51cc4e34ec05b588f0b140b73c73e1a363c5c0c3311f8f%2Fdatabase_migrations)

The command i used

docker run -it --rm -p 8080:80 \
-e OPENPROJECT_SECRET_KEY_BASE=secret \
-e OPENPROJECT_HOST__NAME=localhost:8080 \
-e OPENPROJECT_HTTPS=false \
-e OPENPROJECT_RAILS__CACHE__STORE=file_store \
openproject/community:12