Reverted because: EACCES: permission denied, scandir

upd it didn’t work. after starting the container it reverts the ownership. the issue is still here =(
upd. adding folder to user group solves the error but it’s kinda a hack? I mean, rw should run normally, maybe ignoring folders it can’t read?

Hi. I’m running postgres in docker for development and test databases. I store the databases in the RW project folder.
When I generate a new page, or a new anything, I’m getting this error: “Reverted because: EACCES: permission denied, scandir”.

The new page is not created as a result. I don’t understand why it’s giving this error, rw shouldn’t care about user made folders in the root directory, but judging from error it tries to scan the folder and fails.

How can I tell rw to not scan this folder? Or is preventing this error done in some other way?

Perhaps it is a collision of the postgres and your RW

What happens if you put your db files elsewhere?

I created an issue for this I call it “bug”: [Bug?]: rw can't generate anything - Reverted because: EACCES: permission denied, scandir · Issue #7690 · redwoodjs/redwood · GitHub
a temporary workaround is to set permissions with acl:

sudo setfacl -m u:USERGROUP:rwX /path/to/folder

this way it won’t mess up database permissions and everything is working