{"id":471,"date":"2010-06-21T08:54:44","date_gmt":"2010-06-21T06:54:44","guid":{"rendered":"http:\/\/blog.fh-kaernten.at\/wehr\/?p=471"},"modified":"2010-06-23T08:47:15","modified_gmt":"2010-06-23T06:47:15","slug":"fun-with-openemm-installation","status":"publish","type":"post","link":"https:\/\/blog.fh-kaernten.at\/wehr\/2010\/06\/21\/fun-with-openemm-installation\/","title":{"rendered":"Fun with OpenEMM installation"},"content":{"rendered":"<p id=\"top\" \/>\n<p>A few days ago\u00a0 a colleague asked me if I could install a Newsletter System for him on one of our servers. He decided to use <a href=\"http:\/\/www.openemm.org\/\" target=\"_blank\">OpenEMM 6.1.<\/a><\/p>\n<p>OpenEMM is a feature-rich enterprise software for e-mail marketing, newsletters and service mails (transaction mails and event or time triggered mails). OpenEMM offers sophisticated bounce management, link tracking, lots of realtime statistics, a CMS module and a scripting feature to implement individual tasks&#8230;&#8230;.\u00a0 cool \ud83d\ude42<\/p>\n<p>Installation goes by hand, cause sadly there are no deps.<\/p>\n<p>However &#8211;\u00a0after a bit of googling\u00a0I found a <a href=\"http:\/\/www.openemm.org\/wiki\/OpenEMM_Wiki_Home\" target=\"_blank\">wiki <\/a>which descriptives the installation process for the common linux distros.<\/p>\n<p>As a brave installation instruction follower\u00a0I went through the installation step by step.<\/p>\n<p>In the end there was only one task left to start the application server <a href=\"http:\/\/www.caucho.com\/\" target=\"_blank\">resin <\/a>and login in for the first time.<\/p>\n<p>And the fun starts \ud83d\ude42<\/p>\n<p>Instead of a shiny login screen\u00a0I got&#8230;.<\/p>\n<h3>An error occurred<\/h3>\n<pre class=\"brush: java\">javax.servlet.ServletException:  org.springframework.jdbc.UncategorizedSQLException: Hibernate  operation: Cannot open connection; uncategorized SQLException for SQL  [???]; SQL state [null]; error code [0]; Cannot create  PoolableConnectionFactory (Communications link failure  The last packet sent successfully to the server was 0 milliseconds ago.  The driver has not received any packets from the server.); nested  exception is org.apache.commons.dbcp.SQLNestedException: Cannot create  PoolableConnectionFactory (Communications link failure  The last packet sent successfully to the server was 0 milliseconds ago.  The driver has not received any packets from the server.)<\/pre>\n<p>hmmm, so what is jdbc trying us to say?<\/p>\n<p>So\u00a0I checked the stack trace:<\/p>\n<pre class=\"brush: java\">Caused by: java.net.ConnectException: Connection refused\r\n at java.net.PlainSocketImpl.socketConnect(Native Method)\r\n at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)\r\n at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)\r\n at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)\r\n at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)\r\n at java.net.Socket.connect(Socket.java:529)\r\n at java.net.Socket.connect(Socket.java:478)\r\n at java.net.Socket.(Socket.java:375)\r\n at java.net.Socket.(Socket.java:218)\r\n at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)\r\n at com.mysql.jdbc.MysqlIO.(MysqlIO.java:293)\r\n ... 57 more<\/pre>\n<p>&#8220;Connection refused&#8221; what the hell&#8230;. ok, database credentials are ok, openemm and openemm_cms schema are created. The MySQL error log says nothing? I&#8217;m able to connect to the schemas via mysql client &#8230;&#8230;. oh mannn, it turned out that I&#8217;m not the only one with this problem, lol, but all forum posts\u00a0I could find so far offered no solution for my problem.<\/p>\n<p>Then after half a day more or less searching for a solution\u00a0I found a post where someone is talking about to check the MySQL &#8220;<strong>bind-address<\/strong>&#8221; parameter.\u00a0 Checking my.cnf\u00a0 turns out that the address binding was set to the external address of the server, lol what&#8230;, who changed that???<\/p>\n<p>Quickly changed the address-binding back to &#8220;localh0st&#8221; restarted OpenEMM and requested the logging screen. Unsurprisingly the HTML error stays the same but,&#8230;. the stack trace changed&#8230;yeahhhh.<\/p>\n<p>Now the trace shows:<\/p>\n<pre class=\"brush: java\">Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.\r\n at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2497)\r\n at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:599)\r\n ... 72 more\r\n<\/pre>\n<p>Humpf,&#8230;&#8230; firing on google. I interpreted this message that jdbc could successfully establish a connection to the database and than for some reason the connection was closed from the db side.<\/p>\n<p>A few hours later checking a lot posts concerning this problem\u00a0I found a small side node in a post that it make sense to check the host.allow entrys.<\/p>\n<p>Added &#8230;.<\/p>\n<p><strong>mysqld : localhost : allow<\/strong><\/p>\n<p>and &#8230;.. it works yeahhhhhh \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago\u00a0 a colleague asked me if I could install a Newsletter System for him on one of our servers. He decided to use OpenEMM 6.1. OpenEMM is a feature-rich enterprise software for e-mail marketing, newsletters and service mails (transaction mails and event or time triggered mails). OpenEMM offers sophisticated bounce management, link &hellip; <a href=\"https:\/\/blog.fh-kaernten.at\/wehr\/2010\/06\/21\/fun-with-openemm-installation\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fun with OpenEMM installation<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-471","post","type-post","status-publish","format-standard","hentry","category-linux-stuff"],"_links":{"self":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts\/471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/comments?post=471"}],"version-history":[{"count":0,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts\/471\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/media?parent=471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/categories?post=471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/tags?post=471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}