the-teacher / rails7-startkit

Launch Rails with 1 shell command!
https://github.com/the-teacher/rails7-startkit
MIT License
577 stars 80 forks source link

bin/setup results in this error on WSL | `PSQL FOLDER PERMISSIONS` #35

Closed mnyon-grandkru closed 1 year ago

mnyon-grandkru commented 1 year ago

Here's the screenshot of the bin/setup call and the results.

The specific error message is:

/usr/share/rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0/fileutils.rb:2028:in `utime': Permission denied @ apply2files - db/PGSQL/.keep (Errno::EACCES)

image

the-teacher commented 1 year ago

@mnyon-grandkru hello sir!

Please from the root of the project do the following commands:

ls -al db/
ls -al db/PGSQL

And please share results here

mvpxtech commented 1 year ago

I am also encountering this error

ERROR PGSQL

the-teacher commented 1 year ago

@mvpxtech Hi! Thank you for the report! I will try to find a person who uses Win to debug the case I do not have an answer and can not to reproduce and debug it somehow. Sorry

If you find a solution, please share

the-teacher commented 1 year ago

Ah, I see. It is because of permissions for the PGSQL folder Mac is managing it out of the box. for the windows it is not so. Not sure about Linux.

At least I have a direction. Your information is very helpful. Thank you!

the-teacher commented 1 year ago

@mnyon-grandkru @mvpxtech I'm requesting a check of the most recent version https://github.com/the-teacher/rails7-startkit/commit/11a5c05e49e442e458b24945982941a12fbb4f56

the-teacher commented 1 year ago

@mnyon-grandkru @mvpxtech After recent updates this issue has to be fixed.

Tested on MacOs and Linux (Debian) I'm waiting for any feedback to close this issue. Anyone is welcome to test and provide a feedback.

the-teacher commented 1 year ago

Testing on Linux and Windows showed good results.

Screenshot 2023-09-08 at 22 20 38 Screenshot 2023-09-08 at 22 19 14