OpenEMM Support Forum Index OpenEMM Support
Use this forum to get and provide free help regarding OpenEMM
 
 TOP   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disable Sendmail doesn't work

 
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Installation
View previous topic :: View next topic  
Author Message
philip



Joined: 24 Jun 2008
Posts: 11

PostPosted: Tue Jun 24, 2008 12:37 pm    Post subject: Disable Sendmail doesn't work Reply with quote

Hi,

I'm using OpenEMM 5.5.0 and trying to disable sendmail. I get following error:

Code:
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'


Similar error occurres when starting openEMM.
Back to top
View user's profile Send private message
ma
Site Admin


Joined: 03 Aug 2006
Posts: 512
Location: Munich, Germany

PostPosted: Wed Jun 25, 2008 9:37 am    Post subject: python-mysql module missing? Reply with quote

It seems that the python-mysql bridge is missing. please check with

#python -c 'import MySQLdb'

If no output is returned the module is present, but if you get something like

Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError: No module named MySQLdb

you did not install the module
_________________
The OpenEMM Team
Back to top
View user's profile Send private message Visit poster's website
philip



Joined: 24 Jun 2008
Posts: 11

PostPosted: Wed Jun 25, 2008 10:40 am    Post subject: Reply with quote

Thanks, that solved the problem in the first time..

but now I get the following message:

"Failed to setup database interface"

Everything else works fine, except of sending mails as sendmail is still enabled.

I'm using Debian 3.1 with exim MTA..
Back to top
View user's profile Send private message
ma
Site Admin


Joined: 03 Aug 2006
Posts: 512
Location: Munich, Germany

PostPosted: Wed Jun 25, 2008 1:04 pm    Post subject: Reply with quote

Is MySQL up and running and did you dump openemm.sql into database "openemm"?
_________________
The OpenEMM Team
Back to top
View user's profile Send private message Visit poster's website
philip



Joined: 24 Jun 2008
Posts: 11

PostPosted: Wed Jun 25, 2008 1:09 pm    Post subject: Reply with quote

Yes, mySQL is running and openemm.sql is imported.

I'm using MySQL version 5.0.51

openEMM is starting like this:

Code:
Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start /home/openemm/bin/scripts/update.py bounce account .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Failed to setup database interface
Unable to determinate status for sendmail usages, assuming sendmail is enabled
Stopping obsolete sendmail processes:   done.
Starting sendmails:   listener  admin queue exim abandoned: unknown, malformed, or incomplete option -NNEVER
 mail queue exim abandoned: unknown, malformed, or incomplete option -NNEVER
 done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Resin httpd start at Wed Jun 25 13:04:04 UTC 2008


Now I can login and work with openEMM but no mails are sent.

Thanks for Your support!
Back to top
View user's profile Send private message
bknaus



Joined: 31 Dec 2007
Posts: 3
Location: Wiesbaden

PostPosted: Mon Jun 30, 2008 2:56 pm    Post subject: I have the same problem Reply with quote

I have the same problem. OpenEMM 5.5.0 (Gentoo).

Code:
$ ./bin/OpenEMM.sh start
Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start /home/openemm/bin/scripts/update.py bounce account .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Failed to setup database interface
Unable to determinate status for sendmail usages, assuming sendmail is enabled
Stopping obsolete sendmail processes:   done.
Starting sendmails:   listener  admin queue  mail queue  done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
openemm@java-tools-mwonline ~ $ Resin httpd start at Mon Jun 30 16:47:00 CEST 2008


Backend works fine, admin and test mails will be send, but sending mails to newsletter recipient doesn't work.
Back to top
View user's profile Send private message Visit poster's website
ma
Site Admin


Joined: 03 Aug 2006
Posts: 512
Location: Munich, Germany

PostPosted: Tue Jul 01, 2008 7:45 am    Post subject: missing package? Reply with quote

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)?
_________________
The OpenEMM Team
Back to top
View user's profile Send private message Visit poster's website
kwadrat



Joined: 21 Jul 2008
Posts: 12

PostPosted: Mon Jul 21, 2008 11:12 am    Post subject: Reply with quote

@philip, @bknaus:
I've got the same, have you solved this problem?
_________________
running OpenEMM 5.5.0 on Fedora Core 5
Back to top
View user's profile Send private message
philip



Joined: 24 Jun 2008
Posts: 11

PostPosted: Mon Jul 21, 2008 11:20 am    Post subject: Reply with quote

No, sorry. I switched to Windows machines so I didn't investigate further on.

Have you tried different versions of Java?

Good luck an please report any success.
Back to top
View user's profile Send private message
Toot



Joined: 29 Jun 2007
Posts: 16
Location: UK

PostPosted: Thu Aug 07, 2008 5:28 pm    Post subject: me too, no solution yet? Reply with quote

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:

Code:
Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start /home/openemm/bin/scripts/update.py bounce account .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Failed to setup database interface
Unable to determinate status for sendmail usages, assuming sendmail is enabled
Stopping obsolete sendmail processes:   done.
Starting sendmails:   listener  admin queue  mail queue  done.
postfix/postfix-script: fatal: the Postfix mail system is already running
Start /home/openemm/bin/scripts/slrtscn.py .. done.
$ Resin httpd start at Thu Aug  7 18:15:14 BST 2008


and running ~/bin/sendmail-disable.sh says:
Code:
Failed to setup database interface


and in case it's relevant, as I didn't re-install mysql...
Code:
mysql  Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i686) using readline 4.3


what's wrong?!?!
Back to top
View user's profile Send private message
ud



Joined: 17 Aug 2006
Posts: 109
Location: Munich, Germany

PostPosted: Fri Aug 08, 2008 9:41 am    Post subject: Reply with quote

Looks like your mysql is not running (as you upgrade from a previous version, I assume that the database itself is available.)

-- ud
Back to top
View user's profile Send private message Visit poster's website
Toot



Joined: 29 Jun 2007
Posts: 16
Location: UK

PostPosted: Fri Aug 08, 2008 4:22 pm    Post subject: Reply with quote

ud wrote:
Looks like your mysql is not running (as you upgrade from a previous version, I assume that the database itself is available.)

-- ud


Thanks for the reply. As far as I can tell, mysql is running fine:
Code:
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?

Thanks again for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group