<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic can't login due to no database connection in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253884#M207014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;im a new user on this forum but i already browsed a lot of topics , none of the posters had the same problem as i have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fist of all my hardware setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hp proliant G6, 4 GB Ram, 1x ssd, 2x hdd 2 TB (software raid-1, mirror). (i ve read that alfresco and HP proliant servers are not compatible, i think this is non-sense)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;software setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ubuntu 12.10 installed in the ssd, Mysql server 5, pptpd server. i have copied the alf_data folder to my raidpartition, made the folder chown "user" and symbolic linked it to /opt/alfresco/alf_data&amp;nbsp; (this way i never lose content if one disk fails) . &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i install alfresco it works fine, i can login to the share, add users etc.., for some reason after a few hours or days (installed multiple times) i cannot login anymore. After hours of searching and almost throwing my server out of the window i figured, i shouldn't do this on my own and try to be a new community uses en maybe in the future a valued contributer. So i hope u guys can help me with my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mysql:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;netstat -an | grep -i mysql&lt;BR /&gt;tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 127.0.0.1:3306&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0:*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LISTEN&lt;BR /&gt;mysql&amp;gt; use alfresco;&lt;BR /&gt;Database changed&lt;BR /&gt;mysql&amp;gt; show tables&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; ;&lt;BR /&gt;Empty set (0.00 sec)&amp;nbsp; –&amp;gt; this is because i deleted the database (it was filled before, but for some reason i couldn't anymore) and tried to setup an empty one with db_setup.sql &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the database connector (mysql-connector-java-5.1.22-bin.jar) is stored in &amp;lt;alfrescodir&amp;gt;/tomcat/lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The config common properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;dir.root=/opt/alfresco/alf_data&lt;BR /&gt;web.application.context.url=&lt;A href="http://127.0.0.1:8080/alfresco" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/alfresco&lt;/A&gt;&lt;BR /&gt;db.username=alfresco&lt;BR /&gt;db.password=alfresco&lt;BR /&gt;db.driver=org.gjt.mm.mysql.Driver&lt;BR /&gt;db.url=jdbc:mysql://localhost:3306/alfresco?useUnicode=yes&amp;amp;characterEncoding=UTF-8&lt;BR /&gt;alfresco.rmi.services.host=0.0.0.0&lt;BR /&gt;the rest of the config is commented&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The logs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;alfresco.log:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;1:35:05,655 WARN&amp;nbsp; [org.hibernate.cfg.SettingsFactory] Could not obtain connection metadata&lt;BR /&gt;org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,&amp;nbsp; message from server: "Host 'serveracg.local' is not allowed to connect to this MySQL server")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and so on……&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;catalina log:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;UL&gt;Nov 29, 2012 11:34:26 AM org.apache.catalina.core.AprLifecycleListener init&lt;BR /&gt;INFO: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.catalina.core.AprLifecycleListener init&lt;BR /&gt;INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.catalina.core.AprLifecycleListener initializeSSL&lt;BR /&gt;INFO: OpenSSL successfully initialized (OpenSSL 0.9.8o 01 Jun 2010)&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.coyote.AbstractProtocol init&lt;BR /&gt;INFO: Initializing ProtocolHandler ["http-apr-8080"]&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.coyote.AbstractProtocol init&lt;BR /&gt;INFO: Initializing ProtocolHandler ["ajp-apr-8009"]&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.coyote.AbstractProtocol init&lt;BR /&gt;INFO: Initializing ProtocolHandler ["http-bio-8443"]&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.catalina.startup.Catalina load&lt;BR /&gt;INFO: Initialization processed in 1012 ms&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.catalina.core.StandardService startInternal&lt;BR /&gt;INFO: Starting service Catalina&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.catalina.core.StandardEngine startInternal&lt;BR /&gt;INFO: Starting Servlet Engine: Apache Tomcat/7.0.30&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.catalina.startup.HostConfig deployDescriptor&lt;BR /&gt;INFO: Deploying configuration descriptor /opt/alfresco/tomcat/conf/Catalina/localhost/solr.xml&lt;BR /&gt;Nov 29, 2012 11:34:26 AM org.apache.catalina.startup.SetContextPropertiesRule begin&lt;BR /&gt;WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.&lt;BR /&gt;Nov 29, 2012 11:34:32 AM org.apache.catalina.startup.HostConfig deployWAR&lt;BR /&gt;INFO: Deploying web application archive /opt/alfresco/tomcat/webapps/wcmqs.war&lt;BR /&gt;Nov 29, 2012 11:34:39 AM org.apache.catalina.startup.HostConfig deployWAR&lt;BR /&gt;INFO: Deploying web application archive /opt/alfresco/tomcat/webapps/share.war&lt;BR /&gt;Nov 29, 2012 11:34:50 AM org.apache.catalina.startup.HostConfig deployWAR&lt;BR /&gt;INFO: Deploying web application archive /opt/alfresco/tomcat/webapps/alfresco.war&lt;BR /&gt;Nov 29, 2012 11:34:56 AM org.apache.catalina.core.StandardContext addApplicationListener&lt;BR /&gt;INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.&lt;BR /&gt;Nov 29, 2012 11:35:10 AM org.apache.catalina.core.StandardContext startInternal&lt;BR /&gt;SEVERE: Error listenerStart&lt;BR /&gt;Nov 29, 2012 11:35:10 AM org.apache.catalina.core.StandardContext startInternal&lt;BR /&gt;SEVERE: Context [/alfresco] startup failed due to previous errors&lt;BR /&gt;Nov 29, 2012 11:35:10 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;BR /&gt;SEVERE: The web application [/alfresco] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.&lt;BR /&gt;Nov 29, 2012 11:35:10 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks&lt;BR /&gt;SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@75eef295]) and a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@1a7850b0]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.&lt;BR /&gt;Nov 29, 2012 11:35:10 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks&lt;BR /&gt;SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@75eef295]) and a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@1a7850b0]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.&lt;BR /&gt;Nov 29, 2012 11:35:10 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks&lt;BR /&gt;SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@50f96063]) and a value of type [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@74197215}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.&lt;BR /&gt;Nov 29, 2012 11:35:10 AM org.apache.catalina.startup.HostConfig deployWAR&lt;BR /&gt;INFO: Deploying web application archive /opt/alfresco/tomcat/webapps/awe.war&lt;BR /&gt;Nov 29, 2012 11:35:14 AM org.apache.catalina.startup.HostConfig deployDirectory&lt;BR /&gt;INFO: Deploying web application directory /opt/alfresco/tomcat/webapps/host-manager&lt;BR /&gt;Nov 29, 2012 11:35:15 AM org.apache.catalina.startup.HostConfig deployDirectory&lt;BR /&gt;INFO: Deploying web application directory /opt/alfresco/tomcat/webapps/manager&lt;BR /&gt;Nov 29, 2012 11:35:15 AM org.apache.catalina.startup.HostConfig deployDirectory&lt;BR /&gt;INFO: Deploying web application directory /opt/alfresco/tomcat/webapps/ROOT&lt;BR /&gt;Nov 29, 2012 11:35:15 AM org.apache.coyote.AbstractProtocol start&lt;BR /&gt;INFO: Starting ProtocolHandler ["http-apr-8080"]&lt;BR /&gt;Nov 29, 2012 11:35:15 AM org.apache.coyote.AbstractProtocol start&lt;BR /&gt;INFO: Starting ProtocolHandler ["ajp-apr-8009"]&lt;BR /&gt;Nov 29, 2012 11:35:15 AM org.apache.coyote.AbstractProtocol start&lt;BR /&gt;INFO: Starting ProtocolHandler ["http-bio-8443"]&lt;BR /&gt;Nov 29, 2012 11:35:15 AM org.apache.catalina.startup.Catalina start&lt;BR /&gt;INFO: Server startup in 48309 ms&lt;/UL&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 11:04:37 GMT</pubDate>
    <dc:creator>jackomohle</dc:creator>
    <dc:date>2012-11-29T11:04:37Z</dc:date>
    <item>
      <title>can't login due to no database connection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253884#M207014</link>
      <description>Hi guys, im a new user on this forum but i already browsed a lot of topics , none of the posters had the same problem as i have.Fist of all my hardware setup:hp proliant G6, 4 GB Ram, 1x ssd, 2x hdd 2 TB (software raid-1, mirror). (i ve read that alfresco and HP proliant servers are not compatible,</description>
      <pubDate>Thu, 29 Nov 2012 11:04:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253884#M207014</guid>
      <dc:creator>jackomohle</dc:creator>
      <dc:date>2012-11-29T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: can't login due to no database connection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253885#M207015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems you are missing some MySQL permissions in order for Alfresco to connect to your database after you've re-created it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;GRANT ALL ON alfresco.* to 'alfresco'@'serveracg.local' WITH GRANT OPTION;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If this does not work, make sure your my.cnf allows external hosts to connect (I am not sure at the moment if there is a specific option in the config apart from the socket / port options).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:11:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253885#M207015</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-11-29T11:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: can't login due to no database connection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253886#M207016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi alex &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thx for your reply!, i added the code in mysql alfresco database. i thought i already had that code but neverless i added it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;. unfortuanally i did't effect anything&amp;nbsp; &lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://connect.hyland.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i should have probably mentioned that serveracg is my localhost. mysql and alfresco are running on the same server, so external connections doesn't matter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetz,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jacko &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;it seems you are missing some MySQL permissions in order for Alfresco to connect to your database after you've re-created it.&lt;BR /&gt;Try&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;GRANT ALL ON alfresco.* to 'alfresco'@'serveracg.local' WITH GRANT OPTION;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;If this does not work, make sure your my.cnf allows external hosts to connect (I am not sure at the moment if there is a specific option in the config apart from the socket / port options).&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Axel&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:33:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253886#M207016</guid>
      <dc:creator>jackomohle</dc:creator>
      <dc:date>2012-11-29T11:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: can't login due to no database connection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253887#M207017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;well, alfresco is working. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems to be a problem with the ubuntu loopback adapter. it can't connect to its own mysql server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i thinks this is a hardware problem with the hp proliant g6 server. i solved it by storing the mysql on another server in the same network and just point everything that was 'localhost' to the IP of the other server. and the same with the mysql database user@'*alfrescoserver IP*'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 16:16:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-login-due-to-no-database-connection/m-p/253887#M207017</guid>
      <dc:creator>jackomohle</dc:creator>
      <dc:date>2012-11-30T16:16:05Z</dc:date>
    </item>
  </channel>
</rss>

