<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Carbonio Release 24.7.1 with CBpolicyd error on startup and undefined variable. - General Info				            </title>
            <link>https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 20 May 2026 00:48:42 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Carbonio Release 24.7.1 with CBpolicyd error on startup and undefined variable.</title>
                        <link>https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/#post-8739</link>
                        <pubDate>Sun, 01 Sep 2024 09:49:10 +0000</pubDate>
                        <description><![CDATA[@jpsilva 
Hey
cbpolicyd does not initialize correctly in version 24.7.0 CE
Starting cbpolicyd...Failed.Starting policyd...failed.]]></description>
                        <content:encoded><![CDATA[<p>@jpsilva </p>
<p>Hey</p>
<p>cbpolicyd does not initialize correctly in version 24.7.0 CE</p>
<p>Starting cbpolicyd...Failed.<br />Starting policyd...failed.</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>usmt</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/#post-8739</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio Release 24.7.1 with CBpolicyd error on startup and undefined variable.</title>
                        <link>https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/#post-8426</link>
                        <pubDate>Thu, 01 Aug 2024 20:25:48 +0000</pubDate>
                        <description><![CDATA[I accessed the cbpolicyd.sqlite db file and checked the tables:

root@mail:/opt/zextras/data/cbpolicyd/db# sqlite3 cbpolicyd.sqlitedbSQLite version 3.37.2 2022-01-06 13:25:41Enter &quot;.help&quot; ...]]></description>
                        <content:encoded><![CDATA[<p>I accessed the cbpolicyd.sqlite db file and checked the tables:</p>
<blockquote>
<p>root@mail:/opt/zextras/data/cbpolicyd/db# sqlite3 cbpolicyd.sqlitedb<br />SQLite version 3.37.2 2022-01-06 13:25:41<br />Enter ".help" for usage hints.<br />sqlite&gt; <strong>.tables</strong><br />access_control                                   greylisting_autowhitelist<br />accounting                                        greylisting_tracking<br />accounting_tracking                           greylisting_whitelist<br />amavis_rules                                     policies<br />checkhelo                                          policy_group_members<br />checkhelo_blacklist                            policy_groups<br />checkhelo_tracking                            policy_members<br />checkhelo_whitelist                            quotas<br />checkspf                                           <strong>quotas_limits</strong><br />greylisting                                         quotas_tracking<br />greylisting_autoblacklist                     session_tracking<br />sqlite&gt;<strong>select * from quotas_limits;</strong><br />1|1|MessageCount|10||0<br />2|1|MessageCumulativeSize|8000||0<br />3|2|MessageCount|12||0 <br />sqlite&gt;</p>
</blockquote>
<p> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>Jefferson Pereira</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/#post-8426</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio Release 24.7.1 with CBpolicyd error on startup and undefined variable.</title>
                        <link>https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/#post-8425</link>
                        <pubDate>Thu, 01 Aug 2024 19:49:13 +0000</pubDate>
                        <description><![CDATA[I managed to resolve the Undefined variable $DB_TABLE_PREFIX warning message by changing the file:/opt/zextras/common/share/webui/includes/config.phpleaving it like this:
 

&lt;?php#$DB_...]]></description>
                        <content:encoded><![CDATA[<p>I managed to resolve the Undefined variable $DB_TABLE_PREFIX warning message by changing the file:<br /><br />/opt/zextras/common/share/webui/includes/config.php<br /><br />leaving it like this:</p>
<p> </p>
<blockquote>
<p>&lt;?php<br /><br />#$DB_DSN="mysql:host=localhost;dbname=cluebringer";<br />$DB_DSN="sqlite:/opt/zextras/data/cbpolicyd/db/cbpolicyd.sqlitedb";<br />$DB_USER="root"<br />$DB_TABLE_PREFIX="";</p>
<p>?&gt;</p>
</blockquote>
<p>But now another error has appeared apparently looking like the table does not exist.</p>
<p> </p>
<blockquote>
<p>   PHP Fatal error: Uncaught PDOException: SQLSTATE: General error: 1 <strong>no such table: quota_limits</strong> in /opt/zextras/common/share/webui/quotas-limits-main.php:40\nStack trace:\n#0</p>
</blockquote>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>Jefferson Pereira</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/#post-8425</guid>
                    </item>
				                    <item>
                        <title>Carbonio Release 24.7.1 with CBpolicyd error on startup and undefined variable.</title>
                        <link>https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/#post-8424</link>
                        <pubDate>Thu, 01 Aug 2024 18:51:50 +0000</pubDate>
                        <description><![CDATA[Hey guys!
I noticed that cbpolicyd does not initialize correctly in version 24.7.0 and 27.7.1 and after research I found a workaround to start the service.
This solution was developed by @...]]></description>
                        <content:encoded><![CDATA[<p>Hey guys!</p>
<p>I noticed that cbpolicyd does not initialize correctly in version 24.7.0 and 27.7.1 and after research I found a workaround to start the service.</p>
<p>This solution was developed by <a href="https://community.zextras.com/participant/anahuac/" target="_blank" rel="noopener">@anahuac</a> which serves to initialize cbpolicy correctly:</p>
<p>Edit the /opt/zextras/bin/zmcbpolicydctl file and replace the getpid set.</p>
<blockquote>
<p><span style="color: #000000">getpid() {</span></p>
<p><span style="color: #000000"># pid=$(pidof /opt/zextras/common/bin/cbpolicyd)</span></p>
<p><span style="color: #000000">    pid=$(ps aux | grep"/opt/zextras/common/bin/cbpolicyd" | grep -v grep | tr -s ' ' | cut -d" " -f2 | tr '\n' ' ')</span></p>
<p>}</p>
</blockquote>
<p>Once the correction was made to the file, cbpolicy loads without errors:</p>
<blockquote>
<p>zextras@mail:~$ zmcontrol status<br />Host mail.example.tec.br<br />            amavis Running<br />            antispam Running<br />            antivirus Running<br />            <strong>cbpolicyd Running</strong><br />            directory-server Running<br />            mailbox Running<br />            memcached Running<br />            mta Running<br />            opendkim Running<br />            proxy Running<br />            service webapp Running<br />            service-discover Running<br />            stats Running<br />            config service Running<br />zextras@mail:~$ </p>
</blockquote>
<p>But when I check the apache log /var/log/apache2/error.log this message appears for all actions:</p>
<blockquote>
<p>   PHP Warning: Undefined variable <strong>$DB_TABLE_PREFIX</strong> in /opt/zextras/common/...</p>
</blockquote>
<p>Does anyone have any idea how to fix this, or what the problem is?</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>Jefferson Pereira</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/carbonio-release-24-7-1-with-cbpolicyd-error-on-startup-and-undefined-variable/#post-8424</guid>
                    </item>
							        </channel>
        </rss>
		