s3_file icon indicating copy to clipboard operation
s3_file copied to clipboard

Notifies is Always Run and Permissions Issues

Open stateisbad opened this issue 7 years ago • 5 comments

Hello,

I'm having an issue where, no matter what, any notifies specified in a s3_file block runs every time Chef is run, even if the s3_file resource is up-to-date.

Also, I'm noticing an issue in regards to permissions and modes. For some reason, s3_file is forcing the permissions on every Chef run, even if they're already correct. The only way to avoid this is to not set the owner and group, and to set the mode to 0600 (for some reason it always assumes the files are set to 0600).

Thanks for the resource!

Chef 12 Ubuntu 14.04

stateisbad avatar Aug 15 '17 14:08 stateisbad

This may partially have to do with our lack of hash checking prior to downloads. #99 and #67 might have helped. can you give it a try?

joekiller avatar Sep 04 '17 19:09 joekiller

Sorry for the delayed response. I've pulled the latest version (2.8.5), and I'm getting the following when knife tries to upload the cookbook:

Exception: NoMethodError: undefined method `responds_to' for #<Chef::Cookbook::Metadata:0x00000005597478>

stateisbad avatar Sep 14 '17 20:09 stateisbad

@joekiller I just got around to switching my cookbooks back to using the Supermarket version of this and noticed that v2.8.5 that's presently on the Supermarket has my README.md revisions but providers/default.rb doesn't so converge problem in this issue is still present. Not sure how the cookbook got uploaded in a half and half state but it's not reflective of any specific commit point that I can tell.

mattlqx avatar Nov 02 '17 07:11 mattlqx

@joekiller Any chance you can re-release to supermarket to fix the above?

mattlqx avatar Jan 15 '18 03:01 mattlqx

I'm seeing the same error with 2.8.5 from the supermarket:

Exception: NoMethodError: undefined method `responds_to' for #<Chef::Cookbook::Metadata:0x00000005597478>

jfgrissom avatar Jul 12 '18 21:07 jfgrissom