<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.integrics.com/index.php?action=history&amp;feed=atom&amp;title=Fixing_problems_with_Cpanel%3A%3AJSON%3A%3AXS_module</id>
	<title>Fixing problems with Cpanel::JSON::XS module - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.integrics.com/index.php?action=history&amp;feed=atom&amp;title=Fixing_problems_with_Cpanel%3A%3AJSON%3A%3AXS_module"/>
	<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;action=history"/>
	<updated>2026-09-08T14:09:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;diff=373&amp;oldid=prev</id>
		<title>Rodolfojcj: Typo fix</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;diff=373&amp;oldid=prev"/>
		<updated>2024-08-23T23:22:37Z</updated>

		<summary type="html">&lt;p&gt;Typo fix&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:22, 23 August 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In some systems, there are some known issues related with Perl&#039;s [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] module, which is not required by Enswitch, but could have been installed either as an operating system package or from CPAN.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In some systems, there are some known issues related with Perl&#039;s [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] module, which is not required by Enswitch, but could have been installed either as an operating system package or from CPAN.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Those known issues and the ways to deal with them are detailed &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bellow&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Those known issues and the ways to deal with them are detailed &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;below&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Message &#039;&#039;Can&#039;t locate Cpanel/JSON/XS.pm in @INC&#039;&#039; appears in the system log files ===&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Message &#039;&#039;Can&#039;t locate Cpanel/JSON/XS.pm in @INC&#039;&#039; appears in the system log files ===&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rodolfojcj</name></author>
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;diff=372&amp;oldid=prev</id>
		<title>Rodolfojcj: Typo fix</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;diff=372&amp;oldid=prev"/>
		<updated>2024-08-23T23:21:29Z</updated>

		<summary type="html">&lt;p&gt;Typo fix&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:21, 23 August 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Remove the [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] module. Depending on the way used to install it, any of these commands could be used:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Remove the [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] module. Depending on the way used to install it, any of these commands could be used:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** For Debian or Ubuntu based systems: &#039;&#039;apt-get &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;purbe&lt;/del&gt; libcpanel-json-xs-perl&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** For Debian or Ubuntu based systems: &#039;&#039;apt-get &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;purge&lt;/ins&gt; libcpanel-json-xs-perl&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** For CentOS based systems: &#039;&#039;yum remove perl-Cpanel-JSON-XS&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** For CentOS based systems: &#039;&#039;yum remove perl-Cpanel-JSON-XS&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Directly from CPAN: &#039;&#039;cpanm --uninstall Cpanel::JSON::XS&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Directly from CPAN: &#039;&#039;cpanm --uninstall Cpanel::JSON::XS&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rodolfojcj</name></author>
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;diff=255&amp;oldid=prev</id>
		<title>Rodolfojcj: Added details for the case of a customer still needing Cpanel::JSON::XS</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;diff=255&amp;oldid=prev"/>
		<updated>2021-07-22T01:50:23Z</updated>

		<summary type="html">&lt;p&gt;Added details for the case of a customer still needing Cpanel::JSON::XS&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:50, 22 July 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Restart the Apache web server process.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Restart the Apache web server process.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== What if &#039;&#039;Cpanel/JSON/XS.pm&#039;&#039; is still needed? ===&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If for some reason a customer installation requires [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] for other purposes not related with [https://enswitch.com Enswitch], more tests will be needed to check the following:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* If the processes of the Apache web server are adversely affected, like detailed before, by merely having the &#039;&#039;XS.so&#039;&#039; file of [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] in the filesystem.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* If having [https://metacpan.org/pod/CryptX CryptX] &amp;gt; 0.072 is enough to avoid the mentioned segmentation faults, even if [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] is installed with its &#039;&#039;XS.so&#039;&#039; file.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rodolfojcj</name></author>
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;diff=254&amp;oldid=prev</id>
		<title>Rodolfojcj: Known issues with Cpanel::JSON::XS and ways to deal with them</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Fixing_problems_with_Cpanel::JSON::XS_module&amp;diff=254&amp;oldid=prev"/>
		<updated>2021-07-16T00:29:34Z</updated>

		<summary type="html">&lt;p&gt;Known issues with Cpanel::JSON::XS and ways to deal with them&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[https://integrics.com/enswitch/guides/ Enswitch 4.1 and newer versions] require [https://metacpan.org/pod/Crypt::JWT Crypt::JWT], which depends on [https://metacpan.org/pod/CryptX CryptX].&lt;br /&gt;
&lt;br /&gt;
In some systems, there are some known issues related with Perl&amp;#039;s [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] module, which is not required by Enswitch, but could have been installed either as an operating system package or from CPAN.&lt;br /&gt;
&lt;br /&gt;
Those known issues and the ways to deal with them are detailed bellow.&lt;br /&gt;
&lt;br /&gt;
=== Message &amp;#039;&amp;#039;Can&amp;#039;t locate Cpanel/JSON/XS.pm in @INC&amp;#039;&amp;#039; appears in the system log files ===&lt;br /&gt;
&lt;br /&gt;
==== Symptom ====&lt;br /&gt;
&lt;br /&gt;
The operating system log files like &amp;#039;&amp;#039;/var/log/syslog&amp;#039;&amp;#039; or &amp;#039;&amp;#039;/var/log/messages&amp;#039;&amp;#039; show lines saying something like this:&lt;br /&gt;
&lt;br /&gt;
  localhost systemd[1]: Started Kamailio server.&lt;br /&gt;
  localhost /sbin/kamailio[32260]: ERROR: app_perl [kamailioxs.xs:1041]: XS_Kamailio__Message_log(): perl error: Can&amp;#039;t locate Cpanel/JSON/XS.pm in @INC (you may need to install the Cpanel::JSON::XS module) (@INC contains: /opt/enswitch/current/perllib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl) at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/CryptX.pm line 14.&lt;br /&gt;
&lt;br /&gt;
==== Cause ====&lt;br /&gt;
&lt;br /&gt;
The installed module [https://metacpan.org/pod/CryptX CryptX] tries to load the [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] module but can not find it.&lt;br /&gt;
&lt;br /&gt;
This happens when a version &amp;lt;= 0.072 of [https://metacpan.org/pod/CryptX CryptX] is used.&lt;br /&gt;
&lt;br /&gt;
==== What to do? ====&lt;br /&gt;
&lt;br /&gt;
* Do nothing. This is because those log lines are harmless.&lt;br /&gt;
* Install [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] with the operating system package manager tools or directly from CPAN, for example with any of these commands:&lt;br /&gt;
** For Debian or Ubuntu based systems: &amp;#039;&amp;#039;apt-get install libcpanel-json-xs-perl&amp;#039;&amp;#039;.&lt;br /&gt;
** For CentOS based systems: &amp;#039;&amp;#039;yum install perl-Cpanel-JSON-XS&amp;#039;&amp;#039;.&lt;br /&gt;
** Directly from CPAN: &amp;#039;&amp;#039;cpanm Cpanel::JSON::XS&amp;#039;&amp;#039;.&lt;br /&gt;
* If [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] was installed, restart &amp;#039;&amp;#039;Kamailio&amp;#039;&amp;#039;. After this, the system log should not add lines with the mentioned messages.&lt;br /&gt;
&lt;br /&gt;
=== Segmentation faults for the Apache web server are reported in the system log files ===&lt;br /&gt;
&lt;br /&gt;
==== Symptoms ====&lt;br /&gt;
&lt;br /&gt;
* The operating system log files like &amp;#039;&amp;#039;/var/log/syslog&amp;#039;&amp;#039; or &amp;#039;&amp;#039;/var/log/messages&amp;#039;&amp;#039; show lines saying something like this:&lt;br /&gt;
&lt;br /&gt;
  localhost kernel: [10306754.605002] apache2[4013806]: segfault at 8 ip 00007fb92a1ebf47 sp 00007fff905b0cb8 error 4 in XS.so[7fb92a1eb000+f000]&lt;br /&gt;
  localhost kernel: [10306754.605011] Code: 1f 40 00 f3 0f 1e fa 48 63 15 dd 30 01 00 48 8b 87 78 0b 00 00 48 83 6f 78 04 48 8b 04 d0 48 8b 70 30 48 c7 40 30 00 00 00 00 &amp;lt;8b&amp;gt; 56 08 83 fa 01 76 11 83 ea 01 89 56 08 c3 66 2e 0f 1f 84 00 00&lt;br /&gt;
&lt;br /&gt;
* The Apache error log shows lines like this one:&lt;br /&gt;
&lt;br /&gt;
  [:error] [pid 4014780] Undefined subroutine &amp;amp;Enswitch::Utilities::file_delete called at /usr/local/lib/site_perl/Enswitch/Utilities.pm line 790.&lt;br /&gt;
&lt;br /&gt;
* The web browser or any other HTTP client sometimes receives the expected response, but other times receives an error message, like a 500 status code indicating a failure in the server side. This happens for the same input parameters and is not reproducible at will.&lt;br /&gt;
&lt;br /&gt;
* This has been observed in Ubuntu versions 20.04 and 21.04, but could also happen in other versions or with other distributions.&lt;br /&gt;
&lt;br /&gt;
==== Cause ====&lt;br /&gt;
&lt;br /&gt;
[https://metacpan.org/pod/CryptX CryptX] will use [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] if both of these happen:&lt;br /&gt;
&lt;br /&gt;
* [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] is installed.&lt;br /&gt;
* The installed version of [https://metacpan.org/pod/CryptX CryptX] is &amp;lt;= 0.072.&lt;br /&gt;
&lt;br /&gt;
If [https://metacpan.org/pod/CryptX CryptX] is using [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] as the preferred implementation of JSON::XS, a bug that seems to affect the &amp;#039;&amp;#039;XS.so&amp;#039;&amp;#039; file provided by [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] will cause the mentioned segmentation faults.&lt;br /&gt;
&lt;br /&gt;
That &amp;#039;&amp;#039;XS.so&amp;#039;&amp;#039; file is a shared library that comes from compiled C code.&lt;br /&gt;
&lt;br /&gt;
There is an issue report [https://github.com/rurban/Cpanel-JSON-XS/issues/179 in the official sources repository of the Cpanel::JSON::XS] that offers more details.&lt;br /&gt;
&lt;br /&gt;
==== What to do? ====&lt;br /&gt;
&lt;br /&gt;
Apply all of the following:&lt;br /&gt;
&lt;br /&gt;
* Remove the [https://metacpan.org/pod/Cpanel::JSON::XS Cpanel::JSON::XS] module. Depending on the way used to install it, any of these commands could be used:&lt;br /&gt;
** For Debian or Ubuntu based systems: &amp;#039;&amp;#039;apt-get purbe libcpanel-json-xs-perl&amp;#039;&amp;#039;.&lt;br /&gt;
** For CentOS based systems: &amp;#039;&amp;#039;yum remove perl-Cpanel-JSON-XS&amp;#039;&amp;#039;.&lt;br /&gt;
** Directly from CPAN: &amp;#039;&amp;#039;cpanm --uninstall Cpanel::JSON::XS&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* Restart the Apache web server process.&lt;/div&gt;</summary>
		<author><name>Rodolfojcj</name></author>
	</entry>
</feed>