End of file reached, while copying large files from modules to client

214 views
Skip to first unread message

liondgr8

unread,
Jan 16, 2013, 11:06:17 AM1/16/13
to puppet...@googlegroups.com
Hi, 

I am trying to copy a file from puppet server's module to the Windows machine client
The following snippet is from init.pp of a module:

file {'copyingDB':
                ensure => file,
                path => 'C:/dump/dump1.zip',
                require => File['dump'],
                mode => 0777,
                source => "puppet://puppet.server.com/modules/dump/dump1.zip",
        }

I found that, when the file size is small, the file is copied and the snippet works properly. But in my case the file size is of 5gb.
The following error is encountered:
...
...

Error: /Stage[main]/dump/File[copyingDB]: Failed to generate addition
al resources using 'eval_generate: end of file reached

Error: /Stage[main]/dump1/File[copyingDB]: Could not evaluate: end of
file reached Could not retrieve file metadata for puppet://puppet.server.com/modules/dump/dump1.zip: end of file reached
.....

...

The network bandwidth b/w server and client is of 100mbps.

Kindly provide assistance if I forgot something.

Regards, 
Pranay Manwatkar


jcbollinger

unread,
Jan 16, 2013, 4:23:28 PM1/16/13
to puppet...@googlegroups.com

This is very likely an issue of the target architecture or compilation options of one or more of the pieces of the software stack on client or agent.

The largest number that can be represented by an (unsigned) 32-bit integer is just over 4 billion, which is not large enough for a file offset to the end of a 5G file.  If you were using all 64-bit components (on 64-bit hardware) then that shouldn't matter, but if you are using a 32-bit Ruby on agent, master, or both that is built without large file support (if that's even an option) then you might very well see an issue such as you describe.  I don't think that Puppet itself has any direct dependency on the host's native word size.


John

Reply all
Reply to author
Forward
0 new messages