1 (edited by ralph 2016-08-20 01:13:08)

Topic: cleanup_db.py errors

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Debian Jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

I'm getting these errors when cleanup_db.py runs:

/opt/www/iredadmin/tools/cleanup_db.py: 25: /opt/www/iredadmin/tools/cleanup_db.py: import: not found
/opt/www/iredadmin/tools/cleanup_db.py: 26: /opt/www/iredadmin/tools/cleanup_db.py: import: not found
/opt/www/iredadmin/tools/cleanup_db.py: 27: /opt/www/iredadmin/tools/cleanup_db.py: import: not found
/opt/www/iredadmin/tools/cleanup_db.py: 29: /opt/www/iredadmin/tools/cleanup_db.py: os.environ[LC_ALL]: not found
/opt/www/iredadmin/tools/cleanup_db.py: 31: /opt/www/iredadmin/tools/cleanup_db.py: Syntax error: "(" unexpected

Any idea how to fix?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: cleanup_db.py errors

Run this script with 'python' program, not shell. Like this:

python /opt/www/iredadmin/tools/cleanup_db.py