I have a File resource and it was default to use md5 checksum. Now, I want to change it to use md5lite (or mtime, same error), I got following error: Any suggestion on how to get rid of this error (switch the checksum method)? info: FileBucket got a duplicate file {md5}3dc95fb231fdabbe161d8773e2a10457 info: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]: Filebucketed /opt/jetty-distribution-7.4.2.v20110526.tar.gz to puppet with sum 3dc95fb231fdabbe161d8773e2a10457 err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/content: change from {md5lite}a3f7372d40abae273d2680b650ca4715 to {md5}3dc95fb231fdabbe161d8773e2a10457 failed: Could not rename temporary file /opt/jetty-distribution-7.4.2.v20110526.tar.gz.puppettmp_6384 to /opt/jetty-distribution-7.4.2.v20110526.tar.gz: File written to disk did not match checksum; discarding changes ({md5lite}3dc95fb231fdabbe161d8773e2a10457 vs {md5lite}a3f7372d40abae273d2680b650ca4715) at /etc/puppet/modules/emb/manifests/init.pp:38 at /etc/puppet/modules/emb/manifests/init.pp:38 Thanks a lot -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
On Jul 11, 2011, at 12:09 PM, Haitao Jiang wrote:> I have a File resource and it was default to use md5 checksum. Now, I > want to change it to use md5lite (or mtime, same error), I got > following error: > > > Any suggestion on how to get rid of this error (switch the checksum method)? > > info: FileBucket got a duplicate file {md5}3dc95fb231fdabbe161d8773e2a10457 > info: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]: > Filebucketed /opt/jetty-distribution-7.4.2.v20110526.tar.gz to puppet > with sum 3dc95fb231fdabbe161d8773e2a10457 > err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/content: > change from {md5lite}a3f7372d40abae273d2680b650ca4715 to > {md5}3dc95fb231fdabbe161d8773e2a10457 failed: Could not rename > temporary file /opt/jetty-distribution-7.4.2.v20110526.tar.gz.puppettmp_6384 > to /opt/jetty-distribution-7.4.2.v20110526.tar.gz: File written to > disk did not match checksum; discarding changes > ({md5lite}3dc95fb231fdabbe161d8773e2a10457 vs > {md5lite}a3f7372d40abae273d2680b650ca4715) at > /etc/puppet/modules/emb/manifests/init.pp:38 at > /etc/puppet/modules/emb/manifests/init.pp:38Looks like a Puppet bug to me. What''s the client version? What''s the server version? Since I''m already asking that, do you know if you using Passenger, Mongral, or Webrick? Finally, can you post the "File" entry from the pp file that''s not working? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
Patrick Thanks. Related information: Puppet 2.6.8 for both master and client, Webrick. file { "/opt/jetty-distribution-7.4.2.v20110526.tar.gz": ensure => present, checksum => md5, source => "puppet:///emb/jetty-distribution-7.4.2.v20110526.tar.gz", notify => Exec ["tar xzf jetty-distribution-7.4.2.v20110526.tar.gz"], } If I change above to md5lite or mtime etc, they all fail with same error. I tried other file resources, same thing. Changing back to md5, it will work again. Maybe I should upgrade to 2.7.1? Thanks Haitao On Mon, Jul 11, 2011 at 6:27 PM, Patrick <kc7zzv@gmail.com> wrote:> > On Jul 11, 2011, at 12:09 PM, Haitao Jiang wrote: > >> I have a File resource and it was default to use md5 checksum. Now, I >> want to change it to use md5lite (or mtime, same error), I got >> following error: >> >> >> Any suggestion on how to get rid of this error (switch the checksum method)? >> >> info: FileBucket got a duplicate file {md5}3dc95fb231fdabbe161d8773e2a10457 >> info: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]: >> Filebucketed /opt/jetty-distribution-7.4.2.v20110526.tar.gz to puppet >> with sum 3dc95fb231fdabbe161d8773e2a10457 >> err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/content: >> change from {md5lite}a3f7372d40abae273d2680b650ca4715 to >> {md5}3dc95fb231fdabbe161d8773e2a10457 failed: Could not rename >> temporary file /opt/jetty-distribution-7.4.2.v20110526.tar.gz.puppettmp_6384 >> to /opt/jetty-distribution-7.4.2.v20110526.tar.gz: File written to >> disk did not match checksum; discarding changes >> ({md5lite}3dc95fb231fdabbe161d8773e2a10457 vs >> {md5lite}a3f7372d40abae273d2680b650ca4715) at >> /etc/puppet/modules/emb/manifests/init.pp:38 at >> /etc/puppet/modules/emb/manifests/init.pp:38 > > Looks like a Puppet bug to me. What''s the client version? What''s the server version? Since I''m already asking that, do you know if you using Passenger, Mongral, or Webrick? > > Finally, can you post the "File" entry from the pp file that''s not working? > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > 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. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
I upgraded Puppet (master/client) to 2.7.1, the issue still there: Jul 11 21:59:50 vm1 puppet-agent[11641]: (/Stage[main]/Emb/File[/opt/jetty/contexts/emb-context.xml]/ensure) change from absent to file failed: Could not rename temporary file /opt/jetty/contexts/emb-context.xml.puppettmp_5668 to /opt/jetty/contexts/emb-context.xml: File written to disk did not match checksum; discarding changes ({mtime} vs {mtime}Mon Jul 11 21:59:50 -0700 2011) at /etc/puppet/modules/emb/manifests/init.pp:78 at /etc/puppet/modules/emb/manifests/init.pp:78 with file { "/opt/jetty/contexts/emb-context.xml": ensure => present, checksum => md5lite, source => "puppet:///emb/emb-context.xml", mode => 644, owner => root, group => root, } Any help is highly appreciated! Haitao On Mon, Jul 11, 2011 at 7:41 PM, Haitao Jiang <jianghaitao@gmail.com> wrote:> Patrick > > Thanks. Related information: > > Puppet 2.6.8 for both master and client, Webrick. > > > file { "/opt/jetty-distribution-7.4.2.v20110526.tar.gz": > ensure => present, > checksum => md5, > source => "puppet:///emb/jetty-distribution-7.4.2.v20110526.tar.gz", > notify => Exec ["tar xzf jetty-distribution-7.4.2.v20110526.tar.gz"], > } > > If I change above to md5lite or mtime etc, they all fail with same > error. I tried other file resources, same thing. Changing back to md5, > it will work again. > > Maybe I should upgrade to 2.7.1? > > Thanks > > Haitao > > On Mon, Jul 11, 2011 at 6:27 PM, Patrick <kc7zzv@gmail.com> wrote: >> >> On Jul 11, 2011, at 12:09 PM, Haitao Jiang wrote: >> >>> I have a File resource and it was default to use md5 checksum. Now, I >>> want to change it to use md5lite (or mtime, same error), I got >>> following error: >>> >>> >>> Any suggestion on how to get rid of this error (switch the checksum method)? >>> >>> info: FileBucket got a duplicate file {md5}3dc95fb231fdabbe161d8773e2a10457 >>> info: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]: >>> Filebucketed /opt/jetty-distribution-7.4.2.v20110526.tar.gz to puppet >>> with sum 3dc95fb231fdabbe161d8773e2a10457 >>> err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/content: >>> change from {md5lite}a3f7372d40abae273d2680b650ca4715 to >>> {md5}3dc95fb231fdabbe161d8773e2a10457 failed: Could not rename >>> temporary file /opt/jetty-distribution-7.4.2.v20110526.tar.gz.puppettmp_6384 >>> to /opt/jetty-distribution-7.4.2.v20110526.tar.gz: File written to >>> disk did not match checksum; discarding changes >>> ({md5lite}3dc95fb231fdabbe161d8773e2a10457 vs >>> {md5lite}a3f7372d40abae273d2680b650ca4715) at >>> /etc/puppet/modules/emb/manifests/init.pp:38 at >>> /etc/puppet/modules/emb/manifests/init.pp:38 >> >> Looks like a Puppet bug to me. What''s the client version? What''s the server version? Since I''m already asking that, do you know if you using Passenger, Mongral, or Webrick? >> >> Finally, can you post the "File" entry from the pp file that''s not working? >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> 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. >> >> >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
It talks about mtime in the log, but has md5lite in the manifest. Is that a typo? On Jul 11, 2011, at 10:03 PM, Haitao Jiang wrote:> I upgraded Puppet (master/client) to 2.7.1, the issue still there: > > Jul 11 21:59:50 vm1 puppet-agent[11641]: > (/Stage[main]/Emb/File[/opt/jetty/contexts/emb-context.xml]/ensure) > change from absent to file failed: Could not rename temporary file > /opt/jetty/contexts/emb-context.xml.puppettmp_5668 to > /opt/jetty/contexts/emb-context.xml: File written to disk did not > match checksum; discarding changes ({mtime} vs {mtime}Mon Jul 11 > 21:59:50 -0700 2011) at /etc/puppet/modules/emb/manifests/init.pp:78 > at /etc/puppet/modules/emb/manifests/init.pp:78 > > with > > file { "/opt/jetty/contexts/emb-context.xml": > ensure => present, > checksum => md5lite, > source => "puppet:///emb/emb-context.xml", > mode => 644, > owner => root, > group => root, > } > > > Any help is highly appreciated! > > Haitao > > On Mon, Jul 11, 2011 at 7:41 PM, Haitao Jiang <jianghaitao@gmail.com> wrote: >> Patrick >> >> Thanks. Related information: >> >> Puppet 2.6.8 for both master and client, Webrick. >> >> >> file { "/opt/jetty-distribution-7.4.2.v20110526.tar.gz": >> ensure => present, >> checksum => md5, >> source => "puppet:///emb/jetty-distribution-7.4.2.v20110526.tar.gz", >> notify => Exec ["tar xzf jetty-distribution-7.4.2.v20110526.tar.gz"], >> } >> >> If I change above to md5lite or mtime etc, they all fail with same >> error. I tried other file resources, same thing. Changing back to md5, >> it will work again. >> >> Maybe I should upgrade to 2.7.1? >> >> Thanks >> >> Haitao >> >> On Mon, Jul 11, 2011 at 6:27 PM, Patrick <kc7zzv@gmail.com> wrote: >>> >>> On Jul 11, 2011, at 12:09 PM, Haitao Jiang wrote: >>> >>>> I have a File resource and it was default to use md5 checksum. Now, I >>>> want to change it to use md5lite (or mtime, same error), I got >>>> following error: >>>> >>>> >>>> Any suggestion on how to get rid of this error (switch the checksum method)? >>>> >>>> info: FileBucket got a duplicate file {md5}3dc95fb231fdabbe161d8773e2a10457 >>>> info: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]: >>>> Filebucketed /opt/jetty-distribution-7.4.2.v20110526.tar.gz to puppet >>>> with sum 3dc95fb231fdabbe161d8773e2a10457 >>>> err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/content: >>>> change from {md5lite}a3f7372d40abae273d2680b650ca4715 to >>>> {md5}3dc95fb231fdabbe161d8773e2a10457 failed: Could not rename >>>> temporary file /opt/jetty-distribution-7.4.2.v20110526.tar.gz.puppettmp_6384 >>>> to /opt/jetty-distribution-7.4.2.v20110526.tar.gz: File written to >>>> disk did not match checksum; discarding changes >>>> ({md5lite}3dc95fb231fdabbe161d8773e2a10457 vs >>>> {md5lite}a3f7372d40abae273d2680b650ca4715) at >>>> /etc/puppet/modules/emb/manifests/init.pp:38 at >>>> /etc/puppet/modules/emb/manifests/init.pp:38 >>> >>> Looks like a Puppet bug to me. What''s the client version? What''s the server version? Since I''m already asking that, do you know if you using Passenger, Mongral, or Webrick? >>> >>> Finally, can you post the "File" entry from the pp file that''s not working? >>> >>> -- >>> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >>> 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. >>> >>> >> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > 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. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
I tried both md5lite and mtime, no difference, same issue: File written to disk did not match checksum; discard canges .... What I can do to fix or debug this? Thanks Haitao On Mon, Jul 11, 2011 at 10:07 PM, Patrick <kc7zzv@gmail.com> wrote:> It talks about mtime in the log, but has md5lite in the manifest. Is that a typo? > > > On Jul 11, 2011, at 10:03 PM, Haitao Jiang wrote: > >> I upgraded Puppet (master/client) to 2.7.1, the issue still there: >> >> Jul 11 21:59:50 vm1 puppet-agent[11641]: >> (/Stage[main]/Emb/File[/opt/jetty/contexts/emb-context.xml]/ensure) >> change from absent to file failed: Could not rename temporary file >> /opt/jetty/contexts/emb-context.xml.puppettmp_5668 to >> /opt/jetty/contexts/emb-context.xml: File written to disk did not >> match checksum; discarding changes ({mtime} vs {mtime}Mon Jul 11 >> 21:59:50 -0700 2011) at /etc/puppet/modules/emb/manifests/init.pp:78 >> at /etc/puppet/modules/emb/manifests/init.pp:78 >> >> with >> >> file { "/opt/jetty/contexts/emb-context.xml": >> ensure => present, >> checksum => md5lite, >> source => "puppet:///emb/emb-context.xml", >> mode => 644, >> owner => root, >> group => root, >> } >> >> >> Any help is highly appreciated! >> >> Haitao >> >> On Mon, Jul 11, 2011 at 7:41 PM, Haitao Jiang <jianghaitao@gmail.com> wrote: >>> Patrick >>> >>> Thanks. Related information: >>> >>> Puppet 2.6.8 for both master and client, Webrick. >>> >>> >>> file { "/opt/jetty-distribution-7.4.2.v20110526.tar.gz": >>> ensure => present, >>> checksum => md5, >>> source => "puppet:///emb/jetty-distribution-7.4.2.v20110526.tar.gz", >>> notify => Exec ["tar xzf jetty-distribution-7.4.2.v20110526.tar.gz"], >>> } >>> >>> If I change above to md5lite or mtime etc, they all fail with same >>> error. I tried other file resources, same thing. Changing back to md5, >>> it will work again. >>> >>> Maybe I should upgrade to 2.7.1? >>> >>> Thanks >>> >>> Haitao >>> >>> On Mon, Jul 11, 2011 at 6:27 PM, Patrick <kc7zzv@gmail.com> wrote: >>>> >>>> On Jul 11, 2011, at 12:09 PM, Haitao Jiang wrote: >>>> >>>>> I have a File resource and it was default to use md5 checksum. Now, I >>>>> want to change it to use md5lite (or mtime, same error), I got >>>>> following error: >>>>> >>>>> >>>>> Any suggestion on how to get rid of this error (switch the checksum method)? >>>>> >>>>> info: FileBucket got a duplicate file {md5}3dc95fb231fdabbe161d8773e2a10457 >>>>> info: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]: >>>>> Filebucketed /opt/jetty-distribution-7.4.2.v20110526.tar.gz to puppet >>>>> with sum 3dc95fb231fdabbe161d8773e2a10457 >>>>> err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/content: >>>>> change from {md5lite}a3f7372d40abae273d2680b650ca4715 to >>>>> {md5}3dc95fb231fdabbe161d8773e2a10457 failed: Could not rename >>>>> temporary file /opt/jetty-distribution-7.4.2.v20110526.tar.gz.puppettmp_6384 >>>>> to /opt/jetty-distribution-7.4.2.v20110526.tar.gz: File written to >>>>> disk did not match checksum; discarding changes >>>>> ({md5lite}3dc95fb231fdabbe161d8773e2a10457 vs >>>>> {md5lite}a3f7372d40abae273d2680b650ca4715) at >>>>> /etc/puppet/modules/emb/manifests/init.pp:38 at >>>>> /etc/puppet/modules/emb/manifests/init.pp:38 >>>> >>>> Looks like a Puppet bug to me. What''s the client version? What''s the server version? Since I''m already asking that, do you know if you using Passenger, Mongral, or Webrick? >>>> >>>> Finally, can you post the "File" entry from the pp file that''s not working? >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >>>> 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. >>>> >>>> >>> >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> 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. >> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > 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. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.