Strange issue with...serialize catalog

600 views
Skip to first unread message

Albert Shih

unread,
Sep 29, 2023, 5:09:40 PM9/29/23
to puppet...@googlegroups.com
Hi everyone,

I'm trying since many hour to find out why when I run my puppet agent I got
this message :

Info: Unable to serialize catalog to json, retrying with pson. PSON is deprecated and will be removed in a future release

I think this message are here since long time but I never really think that
would be a problem.


I try to find out why, and I'm unable to find where are the problem, when I
run the puppet agent with debug I got this message :

Info: Unable to serialize catalog to json, retrying with pson. PSON is deprecated and will be removed in a future release
Debug: Could not render to rich_data_json: source sequence is illegal/malformed utf-8


So I try to run

puppet facts --verbose --debug --render-as json

and no error, I got my json.

Same with facter -p

So how I find where the problem are.

Regards

--
Albert SHIH
Heure locale/Local time:
ven. 29 sept. 2023 23:04:42 CEST

Matthew Dennison

unread,
Sep 30, 2023, 3:36:40 AM9/30/23
to puppet...@googlegroups.com
I had this and ignored it for a long time. In the end I narrowed it down to two of my modules. Both had file(s) in the templates/files folder that were non utf8. Ended up moving to the files folder and charging my code on how they got delivered.

Sent from my iPad

> On 29 Sep 2023, at 22:09, Albert Shih <Alber...@obspm.fr> wrote:
>
> Hi everyone,
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ZRc9B3e9wIRC5TdE%40io.chezmoi.fr.

Albert Shih

unread,
Oct 2, 2023, 11:22:21 AM10/2/23
to puppet...@googlegroups.com
Le 30/09/2023 à 08:36:16+0100, Matthew Dennison a écrit
> I had this and ignored it for a long time. In the end I narrowed it down to two of my modules. Both had file(s) in the templates/files folder that were non utf8. Ended up moving to the files folder and charging my code on how they got delivered.
>

Indeed. It's exactly that, someone use template for a PNG.

Thanks a lot.

--
Albert SHIH 🦫 🐸
France
Heure locale/Local time:
lun. 02 oct. 2023 17:21:33 CEST
Reply all
Reply to author
Forward
0 new messages