<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Cron Error and old Software under /opt/www]]></title>
	<link rel="self" href="https://forum.iredmail.org/feed-atom-topic21133.xml" />
	<updated>2026-04-29T07:06:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.iredmail.org/topic21133-cron-error-and-old-software-under-optwww.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Cron Error and old Software under /opt/www]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post91917.html#p91917" />
			<content type="html"><![CDATA[<p>- Remove old duplicate cron jobs after migrated to iRedMail Enterprise Edition (&quot;EE&quot; for short). This is also mentioned in migration tutorial: <a href="https://docs.iredmail.org/iredmail.to.ee.html#post-migration-tasks">https://docs.iredmail.org/iredmail.to.e … tion-tasks</a><br />- EE removes iRedAdmin(-Pro), so /opt/www/iredadmin/ is gone (it was a symbol link to /opt/www/iRedAdmin-*), please remove relevant cron job.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>https://forum.iredmail.org/user2.html</uri>
			</author>
			<updated>2026-04-29T07:06:01Z</updated>
			<id>https://forum.iredmail.org/post91917.html#p91917</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Cron Error and old Software under /opt/www]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post91916.html#p91916" />
			<content type="html"><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): <br />Last manual update was 1.7.3 and then machine was converted to iRedMail Enterprise.<br />iRedMail Enterprise reports version 1.7.2, and OpenLDAP Backend 2026041001</p><p>- Deployed with iRedMail Easy or the downloadable installer?<br />iRedMail Enterprise</p><p>- Linux/BSD distribution name and version: <br />Ubuntu 24.x</p><p>- Store mail accounts in which backend (LDAP/MySQL/PGSQL): <br />LDAP</p><p>- Web server (Apache or Nginx):<br />Nginx</p><p>- Manage mail accounts with iRedAdmin-Pro?<br />iRedMail Enterprise</p><p>- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>After the most recent deployment of iRedMail Enterprise I started getting emails indicating a crontab path problem.</p><p>Specifically, I&#039;m seeing:<br /></p><div class="codebox"><pre><code>python3: can&#039;t open file &#039;/opt/www/iredadmin/tools/cleanup_amavisd_db.py&#039;: [Errno 2] No such file or directory</code></pre></div><p>I find this execution string in root&#039;s crontab, and the directory it points to (/opt/www/iredadmin) does not exist. There are a couple of old directories that contain tools/cleanup_amavisd_db.py - iRedAdmin-Pro-LDAP-5.7 and iRedAdmin-Pro-LDAP-5.8.</p><p>/opt/www also appears to be where previous versions of Roundcube live - I have four versions in there, and the most recent one is symbolic linked to /opt/www/roundcubemail</p><div class="codebox"><pre><code>ls -lat /opt/www/*

dr-xr-xr-x  13 iredadmin iredadmin 4096 Dec 30  2024 iRedAdmin-2.6
dr-xr-xr-x  13 iredadmin iredadmin 4096 Dec 31  2024 iRedAdmin-Pro-LDAP-5.7
drwxrwxr-x+  2 root      root      4096 Apr 11  2025 well_known
drwxrwxr-x  13 root      root      4096 Apr 11  2025 roundcubemail-1.6.8
dr-xr-xr-x  13 iredadmin iredadmin 4096 Apr 11  2025 iRedAdmin-Pro-LDAP-5.8
drwxr-xr-x  13 root      root      4096 Jul  2  2025 roundcubemail-1.6.10
drwxr-xr-x  13 root      root      4096 Aug 12  2025 roundcubemail-1.6.11
lrwxrwxrwx   1 root      root        29 Apr 19 22:52 roundcubemail -&gt; /opt/www/roundcubemail-1.6.15
drwxr-xr-x  13 root      root      4096 Apr 19 22:52 roundcubemail-1.6.15</code></pre></div><div class="codebox"><pre><code>crontab -l

0   3   *   *   *   /bin/bash /var/vmail/backup/backup_openldap.sh

# iRedMail: Backup MySQL databases at 03:30 AM.
30   3   *   *   *   /bin/bash /var/vmail/backup/backup_mysql.sh

# iRedAPD: Clean up expired tracking records hourly.
1   *   *   *   *   python3 /opt/iredapd/tools/cleanup_db.py &gt;/dev/null

# iRedAPD: Convert SPF DNS record of specified domain names to IP
#          addresses/networks hourly.
2   *   *   *   *   python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py &gt;/dev/null

# iRedMail: Cleanup Amavisd database
1   2   *   *   *   python3 /opt/www/iredadmin/tools/cleanup_amavisd_db.py &gt;/dev/null

# iRedAdmin: Clean up sql database.
1   *   *   *   *   python3 /opt/www/iredadmin/tools/cleanup_db.py &gt;/dev/null 2&gt;&amp;1

# iRedMail: Cleanup Roundcube SQL database
2   2   *   *   *   /usr/bin/php /opt/www/roundcubemail/bin/cleandb.sh &gt;/dev/null

# iRedMail: Cleanup Roundcube temporary files under &#039;temp/&#039; directory
2   2   *   *   *   /usr/bin/php /opt/www/roundcubemail/bin/gc.sh &gt;/dev/null
# iRedMail: Backup SOGo data databases on 04:01AM
1   4   *   *   *   /bin/bash /var/vmail/backup/backup_sogo.sh

# Fail2ban: Unban IP addresses pending for removal (stored in SQL db).
* * * * * /bin/bash /usr/local/bin/fail2ban_banned_db unban_db
# iRedAPD: Clean up expired tracking records hourly.
1 * * * * /usr/bin/python3 /opt/iredapd/tools/cleanup_db.py &gt;/dev/null
# Scan spam/ham reported by end users.
*/10 * * * * /bin/bash /opt/iredmail/bin/dovecot/scan_reported_mails &gt;/dev/null
# mlmmj: maintenance for mailing lists.
0 */2 * * * find /var/vmail/mlmmj -mindepth 1 -maxdepth 1 -type d -exec /usr/bin/mlmmj-maintd -F -d {} \;
# Roundcube: cleanup Roundcube SQL database
2 2 * * * /usr/bin/php /opt/www/roundcubemail/bin/cleandb.sh &gt;/dev/null
# Roundcube: cleanup Roundcube temporary files.
3 2 * * * /usr/bin/php /opt/www/roundcubemail/bin/gc.sh &gt;/dev/null
# iRedMail: Apply all custom settings after system reboot.
@reboot /bin/bash /opt/iredmail/bin/apply_all_custom_settings
# SOGo: Backup data.
1 4 * * * /bin/bash /var/vmail/backup/backup_sogo.sh</code></pre></div><p>My questions:</p><p>- Are all of the entries in root&#039;s crontab relevant still? Should any of them need be removed or edited? If they are supposed to be there and running, where do I point the ones that will fail due to /opt/www/iredadmin not existing?</p><p>- What can I safely delete within /opt/www to clean up the old versions?</p>]]></content>
			<author>
				<name><![CDATA[tomierna]]></name>
				<uri>https://forum.iredmail.org/user48025.html</uri>
			</author>
			<updated>2026-04-28T17:35:55Z</updated>
			<id>https://forum.iredmail.org/post91916.html#p91916</id>
		</entry>
</feed>
