Google

puppet upgrade problem 0.25 “could not convert from pson”

After upgrading to 0.25, the following error occurs:
Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target ”
This turned out to be because of recipes using exec without naming the exec. Example

exec { "cat /that/file":
          unless => "something",
          path => "/bin",
          refreshonly => false
        }
should be rewritten as

exec { "cat that file":
          command => "cat /that/file",
          unless => "something",
          path => "/bin",
          refreshonly => false
        }
The error goes away after making the change and all is well.

4 Responses to “puppet upgrade problem 0.25 “could not convert from pson””

  1. Paul Matthews Says:

    Superb! That fixed the problem that had me stumped for a while. Thanks

  2. James Turnbull Says:

    Have you tried a latter 0.25.x release?

    Can you update this ticket – http://projects.reductivelabs.com/issues/3083

    Thanks

  3. Markus Says:

    We’ve opened a ticket based on this report (http://projects.reductivelabs.com/issues/3084), but I’m unable to duplicate the problem. Could anyone who is experiencing or has experienced the issue please update the ticket with any suggestions as to how to replicate it?

    Thanks,
    Markus Roberts,
    Reductive Labs.

  4. uphill Says:

    I considered this more of sloppiness on my part than a bug…I really should be naming everything. I’ll update the ticket with my tests to determine this as the cause, I basically wiped my manifest and started adding back in things until it broke.

Leave a Reply