-
Notifications
You must be signed in to change notification settings - Fork 213
deployment user unable to rsync after sudo/root has downloaded files into /tmp/chef-solo #86
Comments
I'm a little surprised that the cookbook would make modifications to stuff in the file_cache_path. Is that expected @reset? |
I'm also hoping to make some progress on #1 (uploading to secure location) next week which would probably also avoid this issue. |
@matschaffer why is that surprising? It's an idiom taken from 'source' recipes from Opscode Cookbooks where you need to cache your downloaded source. We can fix this if this is a problem. What is wrong with writing to the file cache? |
In this case it's due to my rsync-ing. But I think I may have a better fix On Aug 10, 2012, at 3:22 PM, Jamie Winsor [email protected] wrote: @matschaffer https://github.com/matschaffer why is that surprising? It's We can fix this if this is a problem. What is wrong with writing to the — |
From http://wiki.opscode.com/display/chef/Chef+Configuration+Settings: file_cache_pathThe location in which cookbooks (and other transient data) files are stored when they are synchronized with Chef. (This value can also be used in recipes to download files with the When using Chef Solo, the location in which cookbooks (and other transient data) files are stored after they have been downloaded from a remote URL. (This value can also be used in recipes to download files with the |
Thanks for the heads up. My plan for this is to prime sudo so we can run rsync via sudo as well. This should also help avoid security issues such as having a databag key living in /tmp. |
That's tracked in #1 btw. |
Did you have time to work on this issue? |
Sadly no. I keep hoping. The plan is to see if I can 'prime' the sudo command to allow rsync over sudo (as noted in #1 (comment)), but it's been a crazy month or so. |
Hi, I have the same issue. I'm just interesting, how enybody else solve this problem? As you can see, commands in this method don't have any I've already seen a lot of cookbooks which are doing the same, so (probably) this is not cookbook's issue. Can you help me please with this? Where is my problem? Thanks |
This my issue is described there: #128 |
Yep. Guess this is becoming a bigger priority now that more cookbooks make use of the file cache path. |
I'm hitting this now too... do you have a plan for this? |
My plan for this is on #1, but in the mean time it occurred to me a few days ago that we could move the upload location to knife configuration param and let file cache path be the default and used as it was supposed to. The early misstep here was using the cache path as a transfer location which was something spatula used to do. |
@ognevsky I added this workaround to my main recipe. Seems to fix the permission denied error w/ Vagrant:
|
Should be fixed with #145 |
Everything works fine cooking https://github.com/RiotGames/rbenv-cookbook with a non-root-user.
But a 2nd "cook"-cmd brings up the following errors:
rsync: delete_file: unlink(ruby-build/share/ruby-build/ree-1.8.7-2012.02) failed: Permission denied (13)
[...]
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
ERROR: RuntimeError: Failed to launch command rsync -rl --rsh="ssh user@ip" --delete --exclude revision-deploys --exclude tmp --exclude '.*' ./ :/tmp/chef-solo
s
Should there be a "chown user /tmp/solo" at the end of cooking? Can I do this myself?
Thx
The text was updated successfully, but these errors were encountered: