DEV Community

noratsaraswatror
noratsaraswatror

Posted on

I am Rails Developer, Ask Me Anything!

Top comments (1)

Collapse
 
mcdostone profile image
Yann Prono

I started a RoR project. I use docker to easily install what I need (database, external tools...). In the root of my project, I've got a data folder containing all the docker volumes. The issue is when I run rails generate controller X, I don't know why but rails wants to access to the data folder (which is completely useless) and so, I have a permission denied for the data folder;

ruby-2.5.1/gems/rb-inotify-0.9.10/lib/rb-inotify/notifier.rb:192:in `initialize': Permission denied @ dir_initialize - /home/mcdostone/X/Y/data/pgadmin/storage/root (Errno::EACCES)
from ruby-2.5.1/gems/rb-inotify-0.9.10/lib/rb-inotify/notifier.rb:192:in `new'
ll -ah  /home/mcdostone/X/Y/data/
total 16K

drwxr-xr-x     4   root              root    4.0K Aug 21 10:52   ./
drwxr-xr-x    17   mcdostone   mcdostone     4.0K Aug 21 12:59   ../
drwxr-xr-x     4   root              root    4.0K Aug 21 10:54   pgadmin/
drwx------    19   999               root    4.0K Aug 21 10:52   postgres/

Any idea to avoid that unless changing the folder's permissions ? I don't want to break my containers.