Disable Sendmail doesn't work
Moderator: moderator
Thanks for response, i hope i didn't stole thread.
Settings from emm.properties:
mailgun.ini.db_login=::jdbc.username
mailgun.ini.db_password=::jdbc.password
mailgun.ini.sql_connect=::jdbc.url
This error happens while i'm trying to start openemm:
I found that those message is generated from:
Settings from emm.properties:
mailgun.ini.db_login=::jdbc.username
mailgun.ini.db_password=::jdbc.password
mailgun.ini.sql_connect=::jdbc.url
This error happens while i'm trying to start openemm:
Code: Select all
openemm@mailer ~/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.
[b]Failed to setup database interface[/b]
Unable to determinate status for sendmail usages, assuming sendmail is enabled
Stopping obsolete sendmail processes: done.
Starting sendmails: listener client queue clientmqueue admin queue mail queue done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Code: Select all
~/bin $ scripts/smenable.py status
Failed to setup database interface
It looks like this:
jdbc.url=jdbc:mysql://server-mysql/openemm?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
jdbc.dialect=org.hibernate.dialect.MySQLDialect
jdbc.username=openemmuser
jdbc.password=xxxxxxxxxxx
Connection to database probably is correct, i can use panel, i can see campaign, recipients etc.
jdbc.url=jdbc:mysql://server-mysql/openemm?useUnicode=yes&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
jdbc.dialect=org.hibernate.dialect.MySQLDialect
jdbc.username=openemmuser
jdbc.password=xxxxxxxxxxx
Connection to database probably is correct, i can use panel, i can see campaign, recipients etc.
No, after auto-update was done, i checked files against tarball from your page.
from agn.py:
changelog = [
[snip]
<------>('2.2.0', '2009-05-06', 'Moved configuration to emm.properties', 'ud@agnitas.de'),
<------>('2.2.1', '2009-05-18', 'Added @deprecated decorator', 'ud@agnitas.de'),
<------>('2.2.3', '2009-07-28', 'validate: Added support for keyword reason', 'ud@agnitas.de'),
<------>('2.2.4', '2009-10-26', 'Read database paramter for CMS', 'ud@agnitas.de'),
It looks like file from newer version than e.g. 5.5.1 .
from agn.py:
changelog = [
[snip]
<------>('2.2.0', '2009-05-06', 'Moved configuration to emm.properties', 'ud@agnitas.de'),
<------>('2.2.1', '2009-05-18', 'Added @deprecated decorator', 'ud@agnitas.de'),
<------>('2.2.3', '2009-07-28', 'validate: Added support for keyword reason', 'ud@agnitas.de'),
<------>('2.2.4', '2009-10-26', 'Read database paramter for CMS', 'ud@agnitas.de'),
It looks like file from newer version than e.g. 5.5.1 .
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Patch
--- agn.py-6.0.1 2010-05-11 11:16:20.000000000 +0200
+++ agn.py 2010-05-11 11:16:39.000000000 +0200
@@ -251,7 +251,7 @@
url = self[keyUrl]
usr = self[keyUsername]
pwd = self[keyPassword]
- m = re.search (url, '[^/]+://([^/]+)/(.*)$')
+ m = re.search ('[^/]+://([^/]+)/(.*)$', url)
if not m is None:
(hst, dbn) = m.groups ()
else:
+++ agn.py 2010-05-11 11:16:39.000000000 +0200
@@ -251,7 +251,7 @@
url = self[keyUrl]
usr = self[keyUsername]
pwd = self[keyPassword]
- m = re.search (url, '[^/]+://([^/]+)/(.*)$')
+ m = re.search ('[^/]+://([^/]+)/(.*)$', url)
if not m is None:
(hst, dbn) = m.groups ()
else:
OpenEMM Maintainer
Same problem..
I have the same problem, was this bug already fixed??
Thank
Thank
Re: Disable Sendmail doesn't work
happening for me in 2011...
./smenable displays message:
"Failed to setup database interface"
./smenable displays message:
"Failed to setup database interface"
Re: Disable Sendmail doesn't work
So, I identified my problem here...
I was using xampp for my database stack. It conflicted with the default mysql configuration assumed by the system.
And, I got it working.
To debug this I linked /etc/my.cnf to the one in xampp
I also had to link /var/lib/mysql/mysql.sock to the specified by xampp.
Oddly, this only affected the scripts portion of OpenEMM, but the Java side worked fine.
More logging around exceptions in the scripts would be nice...
I was using xampp for my database stack. It conflicted with the default mysql configuration assumed by the system.
And, I got it working.
To debug this I linked /etc/my.cnf to the one in xampp
I also had to link /var/lib/mysql/mysql.sock to the specified by xampp.
Oddly, this only affected the scripts portion of OpenEMM, but the Java side worked fine.
More logging around exceptions in the scripts would be nice...

Re: Disable Sendmail doesn't work
I'm in the same situation here.
I can login and use the CMS but I get the
Failed to setup database interface.
I am using a separate instance for the DB though, it is running on Amazon RDS.
I can connect to the DB using the command line and agnitas user has the proper permissions...
I have also updated the agn.py to point to the RDS endpoint but no luck...
Any pointers from anyone who managed to solve this problem would be appreciated!...
Thanks
I can login and use the CMS but I get the
Failed to setup database interface.
I am using a separate instance for the DB though, it is running on Amazon RDS.
I can connect to the DB using the command line and agnitas user has the proper permissions...
I have also updated the agn.py to point to the RDS endpoint but no luck...
Any pointers from anyone who managed to solve this problem would be appreciated!...
Thanks