Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Geoff Nichols updated an issue Puppet / PUP-6927 Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename Change By: Geoff Nichols Sprint: AP Triage Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Geoff Nichols commented on PUP-6927 Re: Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename Hi Colin Conway - I'll go ahead and close this for now. If this still seems to be an issue after your test, please feel free to re-open and we'll be happy to take another look. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Moses Mendoza commented on PUP-6927 Re: Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename Hi Colin Conway - just checking in to see if you'd figured this o Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Adrien Thebo updated an issue Puppet / PUP-6927 Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename Change By: Adrien Thebo Team: Agent & Platform Sprint: AP Triage Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Adrien Thebo updated an issue Puppet / PUP-6927 Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename Change By: Adrien Thebo I'm trying to copy the installation files for some HP scanner software to some Windows nodes. However it is failing on two of the files, both of which have tilde (~) characters in the filenames.Here's the relevant output from puppet agent -t to show what's happening:{ { noformat} [mError: ReplaceFile(c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/_8270H~1.cab, c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/_8270H~1.cab20161114-3620-ysybqc): The process cannot access the file because it is being used by another process. [mError: /Stage[main]/Printer::Scanner::Hp_scanjet_8270/File[c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/_8270H~1.cab]/ensure: change from absent to file failed: ReplaceFile(c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/_8270H~1.cab, c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/_8270H~1.cab20161114-3620-ysybqc): The process cannot access the file because it is being used by another process. {noformat } } { { noformat} [Error: ReplaceFile(c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/MergeM~1.cab, c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/MergeM~1.cab20161114-3620-1c59412): The process cannot access the file because it is being used by another process.[mError: /Stage[main]/Printer::Scanner::Hp_scanjet_8270/File[c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/MergeM~1.cab]/ensure: change from absent to file failed: ReplaceFile(c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/MergeM~1.cab, c:/PuppetFiles/apps/HPScanjet8270/setup/hpg8270/MergeM~1.cab20161114-3620-1c59412): The process cannot access the file because it is being used by another process. {noformat } } Here is the Puppet "command" that I'm using to do this:{ { noformat} file { $localTargetDir: ensure => directory, source => 'puppet:///fs1-install/DRIVERS-SCANNERS/HPScanjet8270/', recurse=> true, source_permissions => ignore, require=> File[ $localAppsDir ],} {noformat } } _NOTE: I don't see why it would make a difference, but the fs1-install part of the path is a cifs mount from our linux file server._*All the other files work correctly*, it's just these two with tilde in the name that have issues, hence my assumption that the tilde is the issue.I tried using the _ignore_ attribute in the existing File definition to exclude the tilde files (which worked). Then used separate File definitions for each tilde file, but I had the same issue. I tried putting the file name/path in the _path_ attribute instead of the definition name, but that didn't help either. I tried backslashes, double quotes, single quotes, nothing worked.I tried the forum first, here: https://ask.puppet.com/question/28745/recursively-copying-directory-to-windows-7-nodes-fails-on-files-with-tilde-in-name/...but no response yet.
Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Colin Conway commented on PUP-6927 Re: Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename Thanks Moses Mendoza, I can't believe I didn't think of that. I'll try moving the files to the puppet server itself, and see if that fixes it. I'll let you know the outcome. bear with me though, I won't be able to test it until Monday. Thanks =) Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Moses Mendoza commented on PUP-6927 Re: Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename Colin Conway it's not the most faithful reproduction but I didn't have any trouble on windows server 2012 r2 just doing a basic copy of a file with a tilde in the name: C:\Users\moses\development\puppet(pr/5354)> be puppet apply -e " file { 'C:\Users\moses\dest\filewith~tilde' : ensure => present, source => 'C:\Users\moses\foo\filewith~tilde' } " Notice: Compiled catalog for win-ghb4gdkiluo.localdomain in environment production in 0.07 seconds Notice: /Stage[main]/Main/File[C:\Users\moses\dest\filewith~tilde]/ensure: defined content as '{md5}1d4ff57be8c328e117a34fa72fcd7c8d' Notice: Applied catalog in 0.09 seconds That error it mentions: " The process cannot access the file because it is being used by another process. " makes me wonder if it does have something to do with the file system / cifs mount Add Comment
Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Moses Mendoza commented on PUP-6927 Re: Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename I wonder if this is related to PUP-6914 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6927) Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename
Title: Message Title Colin Conway created an issue Puppet / PUP-6927 Recursively copying a directory to Windows 7 nodes fails on files with tilde in the filename Issue Type: Bug Affects Versions: PUP 3.8.7 Assignee: Unassigned Components: Puppet Server, Windows Created: 2016/11/16 12:38 PM Environment: Server = Ubuntu Server 14.04.5 Nodes = Windows 7 Pro SP1 Labels: windows puppet-agent Priority: Normal Reporter: Colin Conway I'm trying to copy the installation files for some HP scanner software to some Windows nodes. However it is failing on two of the files, both of which have tilde (~) characters in the filenames. Here's the relevant output