bav.sock missing

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

simon.croak
Posts: 1
Joined: Tue Nov 14, 2006 8:51 am

bav.sock missing

Post by simon.croak » Tue Nov 14, 2006 9:09 am

Hi I am just trying to install openemm and i have followed the Debian installation instructions on the wiki.
However when I start openemm i get the following output:

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.
Stopping obsolete sendmail processes: done.
Starting sendmails: listener WARNING: Xbav'': local socket name /home/openemm/var/run/bav.sock' missing
client queue admin queue mail queue done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Resin httpd start at Tue Nov 14 08:02:00 UTC 2006
Resin httpd start at Tue Nov 14 08:02:00 UTC 2006

I have checked netstat -l and the socket is there and bav.sock is listed as "LISTENING":

Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 384626 /var/run/sendmail/mta/smcontrol
unix 2 [ ACC ] STREAM LISTENING 406216 /home/openemm/var/run/bav.sock
unix 2 [ ACC ] STREAM LISTENING 398895 /var/run/mysqld/mysqld.sock

And the file exists in /home/openemm/var/run/ :

/home/openemm/var/run/ -l
total 16
-rw-r--r-- 1 openemm openemm 10 Nov 14 08:02 bav-update.log
srwxr-xr-x 1 openemm openemm 0 Nov 14 08:02 bav.sock
-rw-r--r-- 1 openemm openemm 5 Nov 14 08:02 openemm.pid
-rw-r--r-- 1 openemm openemm 5 Nov 14 08:02 redirection.pid
-rw-r--r-- 1 openemm openemm 25 Nov 14 08:05 slrtscan.save

Needless to say when i go to the website i get the error:

Ein Fehler ist aufgetreten
Ursache: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Ruler' defined in ServletContext resource [/WEB-INF/cronContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.agnitas.backend.RulerImpl]; constructor threw exception; nested exception is org.agnitas.util.ConfigException: Database setup failed: java.lang.Exception: Error initializing database connection: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused STACKTRACE: java.net.SocketException: java.net.ConnectException: Connection refused at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:280) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1774) at com.mysql.jdbc.Connection.(Connection.java:437) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at org.agnitas.backend.DBase.(DBase.java:91) at org.agnitas.backend.Data.mkDBase(Data.java:295) at org.agnitas.backend.Data.setupDatabase(Data.java:305) at org.agnitas.backend.Data.(Data.java:1025) at org.agnitas.backend.RulerImpl.mkData(RulerImpl.java:95) at org.agnitas.backend.RulerImpl.(RulerImpl.java:106) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:486) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:362) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at com.caucho.server.webapp.Application.start(Application.java:1597) at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621) at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509) at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:158) at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:652) at com.caucho.server.host.Host.start(Host.java:385) at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621) at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509) at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:158) at com.caucho.server.host.HostContainer.start(HostContainer.java:501) at com.caucho.server.resin.ServletServer.start(ServletServer.java:977) at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621) at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56) at com.caucho.server.deploy.DeployController.start(DeployController.java:517) at com.caucho.server.resin.ResinServer.start(ResinServer.java:485) at com.caucho.server.resin.Resin.init(Resin.java) at com.caucho.server.resin.Resin.main(Resin.java:624) ** END NESTED EXCEPTION **

Im Running Debian (Vserver), mysql 5.0, and sendmail 8.13.4

Thanks in advance for any help.

ud
Posts: 141
Joined: Thu Aug 17, 2006 9:56 am
Location: Munich, Germany
Contact:

Post by ud » Wed Nov 15, 2006 12:40 pm

The reason for the first problem, bav.sock, is not known to me, perhaps you have some kind of security extension active (SELinux, AppArmour, etc.)? Then you may need to change your policy.

The second error indicates a not running mysql database or some firewall rules, which blocks such connections.

-- iud

Post Reply