FAQ
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


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ZO64ygOK5kkJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

  • Jcbollinger at Jan 16, 2013 at 4:23 pm

    On Wednesday, January 16, 2013 5:06:17 AM UTC-6, liondgr8 wrote:
    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.
    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

    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/uz1B9PG5FQ8J.
    To post to this group, send email to puppet-users@googlegroups.com.
    To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJan 16, '13 at 11:12a
activeJan 16, '13 at 4:23p
posts2
users2
websitepuppetlabs.com

2 users in discussion

Liondgr8: 1 post Jcbollinger: 1 post

People

Translate

site design / logo © 2022 Grokbase