cancel
Showing results for 
Search instead for 
Did you mean: 

Installing Community 5.0.d on Linux

opeeters
Champ in-the-making
Champ in-the-making
Hi,
I'm having issues installing on Linux (CentOS 6.6 - minimal). At the end of the installation of:
https://process.alfresco.com/ccdl/?file=release/community/5.0.d-build-00002/alfresco-community-5.0.d...
following these instructions:
http://docs.alfresco.com/community/tasks/simpleinstall-community-lin.html

I get the following warning:

Warning: Problem running post-install step. Installation may not complete
correctly
Error running /opt/alfresco-5.0.d/postgresql/bin/createuser -p 5432 -U postgres
–no-superuser –no-createdb –no-createrole alfresco: createuser.bin: could not
connect to database postgres: FATAL:  password authentication failed for user
"postgres"

I tried both Easy and Advance install. Same result. All looks well in /opt/alfresco-5.0.d/alf_data/postgresql/pg_hba.conf

I disabled selinux and iptables. Same result.
When I access:
my.alfresco.server:8080/share
I get the login page. When I enter "admin" as user and the password I entered during installation I get:

Your authentication details have not been recognized or Alfresco may not be available at this time.

my.alfresco.server:8080/alfresco
gives me a blank page (is this normal in version 5.0?)

In alfresco.log I see a couple of:
Cannot create PoolableConnectionFactory (FATAL: password authentication failed for user "alfresco")

and:
2015-04-27 01:24:32,274 INFO  [org.alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbcSmiley Tongueostgresql://localhost:5432/alfresco' with user 'alfresco'.
2015-04-27 01:24:32,323 ERROR [org.springframework.web.context.ContextLoader] [localhost-startStop-1] Context initialization failed

type of errors… (full alfresco.log attached)
Is this maybe a bug in the installation of postgres in version 5.0.d?

In catalina.out I see continously reoccuring (every 15 seconds):

2015-04-27 01:52:30,005  ERROR [solr.tracker.AbstractTracker] [SolrTrackerScheduler_Worker-2] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 03270337 api/solr/aclchangesets return status:404
   at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:159)
   at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:335)
   at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:313)
   at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:104)
   at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:153)
   at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2015-04-27 01:52:30,005  ERROR [solr.tracker.AbstractTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 03270336 api/solr/aclchangesets return status:404
   at org.alfresco.solr.client.SOLRAPIClient.getAclChangeSets(SOLRAPIClient.java:159)
   at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:335)
   at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:313)
   at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:104)
   at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:153)
   at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2015-04-27 01:52:30,011  ERROR [solr.tracker.AbstractTracker] [SolrTrackerScheduler_Worker-1] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 03270338 GetModelsDiff return status is 404
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1091)
   at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:249)
   at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:207)
   at org.alfresco.solr.tracker.ModelTracker.doTrack(ModelTracker.java:167)
   at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:153)
   at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)


Could this be related?

Grateful for any pointers!
Cheers,
Olav





10 REPLIES 10

razorfish
Champ in-the-making
Champ in-the-making
OOOOOOKKKKK

For all those wondering how to get this beast working!!!!!

Centos did us some real favours
1. Enabled firewall by default
2. Changed firewall name!!!
3. added network manager
4. Default bind for tomcat ipv6


STOP you alfresco
if you specified the "fast" install , then you need to go into

../tomcat/shared/classes/alfresco-global.properties
and setup the address you want to listen on,  default is 127.0.0.1

TURN OFF IPV6
go into  /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1

ADD THIS TO TRY TO BIND TO IPV4 first

…tomcat/bin/setenv.sh

ADD a MIDDLE LINE to the config
JAVA_OPTS="-XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC …….
—->JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true $JAVA_OPTS "
*JAVA_OPTS="-Xms512M -Xmx3835M $JAVA_OPTS " # java-memory-settings

restart server (yes the real one not tomcat)

test that you are listening on IPV4 for tomcat

netstat -lnp | grep 8181  OR netstat -atnp|grep LISTEN


tcp        0      0 0.0.0.0:8181            0.0.0.0:*               LISTEN      2130/java        


FINALLY

systemctl disable firewalld
systemctl stop firewalld

ALSO check iptables NOT running.

This will get you up and running… it is your responsibility to figure out if  the setup is secure and if you want to re-enable ipv6


On the centos 6.x, not all VM environments are the same some bring the  network up, others don't  also network manager sometimes has its sticky paws in the settings.