Why can't I use Rails console?
If I switch to the predefined user ‘rails’ and try to run 'rails console’ it gives me this permission error:
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:252:in `mkdir’: Permission denied @ dirsmkdir - /run/user/0/spring-1000 (Errno::EACCES)
if I try to log in as root it tells me that it can’t authenticate with the database. I get that; the environment variable is only set for the Rails user.
Am I not missing something or does this seem like a flaw in the design?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×