简体   繁体   中英

Errno::EACCES (Permission denied @ dir_s_mkdir

I deployed my ruby(using rbenv) on rails app in Ubuntu 14.04 server with nginx/passenger/WebRick/, when i ran the server in production environment, the site was rendered perfectly without any problem,but when i logged out of the ssh connection, the site was rendered blank, no errors, just a blank white page.

when i re-establish the ssh connection, that is log-in to the server, i get the page completely !

the logs, gave me this error,

Errno::EACCES (Permission denied @ dir_s_mkdir - /home/username/appname)

Screenshot of error log :
http://postimg.org/image/iolw2rwdr/
http://postimg.org/image/phsel5skd/

EACCESS error means that process cannot write to that location.

You can try changing the ownershop to your current user ( whoami ) like this:

sudo chown -R $(whoami) ~/.appname

Note: This requires that the user has permission to change the directory permission. If the user does not, you may have to sign in with a user with more privileges.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM