Ruby on Rails: Permission Denied When Using "Rails Generate Controller Welcome"

Ruby on Rails: permission denied when using rails generate controller welcome

I solved that problem by running

sudo chmod -R 1777 /tmp

hope this helps other people like me who would prefer not having to deactivate the spring gem

Error when trying openning console rails in prod

fix by :
sudo chmod -R 1777 /tmp

and reboot spring.

ActiveRecord::StatementInvalid (PG::InsufficientPrivilege: ERROR: permission denied for relation

$ heroku pg:info
=== DATABASE_URL, HEROKU_POSTGRESQL_IVORY_URL
Plan: Hobby-dev
...
Data Size: 16.1 MB
Tables: 9
Rows: 11578/10000 (Write access revoked)
...

There is what is causing the PG::InsufficientPrivilege error. You are using a Hobby-dev plan, which limits you to 10,000 rows in your database. You currently have 11,578 rows and it has temporarily suspended your write privileges.

Per the Heroku docs:

If the number of rows still exceeds the plan capacity after 7 days,
INSERT privileges are revoked on the database. Data can still be read,
updated, or deleted from the database. This ensures that users can
bring their database into compliance and retain access to their data.

You should have actually gotten a warning email as you approached the limit. If you clean out some of the data in the DB it will automatically restore write privileges. The Hobby-basic plan (which is not free) raises your row limit to 10 million rows, so that's also an option.

rails generate error dont know how to build task 'rails

It's a known issue of 'Bash On Windows'.

While waiting for a fix from Microsoft, create your new app with "--skip-spring' after 'rails new your_app'

Nginx getting Permission denied when connecting to Unicorn

I found the problem. The path for unicorn.myapp.sock had to go to the /tmp directory on root rather than in myuser directory. Also, the root path in my nginx default.conf file needed to be at root/myApp/public rather than what I had. I have no idea what that last part means but it works and I'm happy. Thanks to everyone that helped me get here.



Related Topics



Leave a reply



Submit