CAUGHT EXCEPTION:
Traceback (most recent call last):
File "/home/openemm/bin/scripts/smenable.py", line 105, in ?
main (sys.argv[0], sys.argv[1:])
File "/home/openemm/bin/scripts/smenable.py", line 87, in main
ctrl = SMCtrl ()
File "/home/openemm/bin/scripts/smenable.py", line 35, in __init__
self.db = agn.DBase ()
AttributeError: 'module' object has no attribute 'DBase'
The Python interface to MySQL seems to be missing. Are you sure that you installed the python-mysql package (SuSe name: python-mysql, Red Hat name: MySQL-python)?
I'm trying to migrate from a sendmail v5.4.0 linux to v5.5.0 linux with sendmail disabled (it's a mail server using postfix).
I'm installing without sendmail which originally pooped out at the openemm rpm install saying sendmail-cf dependency couldn't be found. I --nodeps installed that, copied & upgraded the database successfully (apart from my new db has a password, old one didn't). Installed v5.5.0 apparently successfully, starting gives several errors:
mysql> select count(*) from customer_1_tbl;
+----------+
| count(*) |
+----------+
| 664 |
+----------+
1 row in set (0.01 sec)
Maybe it's because this instance has a password? On the old system, I'd type mysql openemm and I'm in, on the new system I need to type mysql -p openemm and enter the password. Where is that set?
I was facing the same issue after migrating OpenEMM to a new server. This time while creating the DB user 'agnitas' I chose a password other than openemm (default).
File: /home/openemm/bin/scripts/agn.py has variables where you can update the value of the DB Host, User and Password. Changed this and triedsendmail-enable.sh and it worked.
If this still does not work, make sure that there is DB connectivity using the default values Host: localhost, User : agnitas and pwd : openemm.
Though it is too late since the last response on this post to help him, however posting it for new users like me.
I've similar problem after autoupgrading from 5.5.1 .
./smenable displays message:
"Failed to setup database interface"
In files cms/properties and emm.properties connection to DB are set.
I have no idea how to debug the problem.