开发者

EC2 with Rubber gem - Redis/Resque FileUtils permission problem

开发者 https://www.devze.com 2023-03-14 22:54 出处:网络
I set up an EC2 instance using the Rubber gem. I\'m trying to use Redis/Resque to create a zip file.The command works fine when I run it from a Rails console, but when Redis/Resque tries it gets a per

I set up an EC2 instance using the Rubber gem. I'm trying to use Redis/Resque to create a zip file. The command works fine when I run it from a Rails console, but when Redis/Resque tries it gets a permis开发者_JS百科sion denied error. I'm assuming that Redis/Resque is running as another user, not sure how to easily solve this – if the Rubber config could be modified to bump up the permissions or etc.... Any advice appreciated....


If you're running it on the remote console, you're likely doing it with root. Rubber starts resque workers up with the app user so it's a restricted account. You need to modify the permissions for wherever you're trying to create your zip file such that the app user has write permissions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号