[chef] Remote file Copy from Windows Share


Chronological Thread 
  • From: " " < >
  • To: " " < >
  • Subject: [chef] Remote file Copy from Windows Share
  • Date: Wed, 6 Aug 2014 14:28:10 +0000
  • Accept-language: en-GB, en-US

Hi Chefs

I’m having trouble again J

 

I’m trying to copy a file from a share on a windows server from a target node via chef. The purpose for it to copy dll drop files from a share and dumped into d:\installs so it can later be unzipped. At the moment I am having issues trying to connect to the share.

I’ve tried running the chef run as a local admin on the target node (which used to work), using AD creds and also a different local account to no avail.

The linux server was recently added to our domain, but this was failing before that happened.

I’ve tried a batch file mapping a drive then copy, a powershell script doing the same, native ruby and now this remote file resource. Same error everytime, it looks like a permissions error on Windows, but the file share is currently set full permission to everyone on both Share permissions and filesystem permissions.

I’m seeing NULL_SID event log entries where the auth fails, but this is on the target node, not the one that hosts the share.

 

Can any offer anything to look at?

 

Chef server is Ubuntu 14.04 using PBIS to auth via AD  (might I need Samba installing now AD is in use for Auth?)

Windows nodes are running Server 2008R2 patched up-to-date.  All are VM’s. All one the same AD and DNS domain.

 

“myserver

DEBUG: :relay_output_from_backend => ["ATLQ-CHEF04.airwatch.qa", "================================================================================\r\nError executing action `create` on resource 'remote_file[d:\\installs\\7.1_HF05_Overlay_SAML_fix.zip]'\r\n================================================================================\r\n\r\nErrno::EACCES\r\n-------------\r\nPermission denied - //targetserver//server.installs//dll.drops//7.1_HF05_Overlay_SAML_fix.zip\r\n\r\nResource Declaration:\r\n---------------------\r\n# In c:/chef/cache/cookbooks/AW_DLLDrop/recipes/default.rb\r\n\r\n 27: remote_file \"d:\\\\installs\\\\\#{fname}\" do \r\n 28:   source \"file:////\#{managementServer}//server.installs//dll.drops//\#{fname}\"\r\n 29: end\r\n 30: \r\n\r\nCompiled Resource:\r\n------------------\r\n# Declared in c:/chef/cache/cookbooks/AW_DLLDrop/recipes/default.rb:27:in `from_file'\r\n\r\nremote_file(\"d:\\installs\\7.1_HF05_Overlay_SAML_fix.zip\") do\r\n  provider Chef::Provider::RemoteFile\r\n  action \"create\"\r\n  retries 0\r\n  retry_delay 2\r\n  guard_interpreter :default\r\n  path \"d:\\\\installs\\\\7.1_HF05_Overlay_SAML_fix.zip\"\r\n  backup 5\r\n  atomic_update true\r\n  source [\"file:////targetserver//server.installs//dll.drops//7.1_HF05_Overlay_SAML_fix.zip\"]\r\n  use_etag true\r\n  use_last_modified true\r\n  cookbook_name \"AW_DLLDrop\"\r\n  recipe_name \"default\"\r\nend\r\n\r\n"]”

 

 

Thanks

Chris




Archive powered by MHonArc 2.6.16.

§