Installing Community 5.0.d on Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2015 08:01 PM
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 'jdbcostgresql://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
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2015 01:20 PM
Make sure that the bin file is executable.
Change directory to where ever you have the bin file located or the file path you want the installation to reside.
Type:
./alfrescoinstall.bin
I used a bogus bin file name so use the actual bin file name respectively.
From here you can do the advanced and change ports if you need to.
Also make sure if you are using a firewall (iptables) that you create a rule for the port so its not blocked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2015 06:44 PM
Which version of the installer bin did you use on CentOS 6.5, ESWBitto?
Thanks for the reply!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2015 12:25 PM
I've stopped the fw and still nothing
is this something ridiculously foolish that I am missing here?
I'm new to the forum and I realize I'm just posting a question in the hops of a response. I want to make sure I let you know that I appreciate any help that anyone can give and that I understand its a lot of work to help others on here and really appreciate it
Last login: Wed Apr 29 09:11:54 2015
[root@alfresco ~]# cd /opt
[root@alfresco opt]# wget http://dl.alfresco.com/release/community/5.0.d-build-00002/alfresco-community-5.0.d-installer-linux-...
–2015-04-29 10:58:51– http://dl.alfresco.com/release/community/5.0.d-build-00002/alfresco-community-5.0.d-installer-linux-...
Resolving dl.alfresco.com (dl.alfresco.com)… 54.230.4.202, 54.230.4.176, 54.230.5.200, …
Connecting to dl.alfresco.com (dl.alfresco.com)|54.230.4.202|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 785460963 (749M) [application/octet-stream]
Saving to: ‘alfresco-community-5.0.d-installer-linux-x64.bin’
100%[==============================================================================================================>] 785,460,963 9.68MB/s in 1m 51s
2015-04-29 11:00:43 (6.76 MB/s) - ‘alfresco-community-5.0.d-installer-linux-x64.bin’ saved [785460963/785460963]
[root@alfresco opt]# chmod a+x alfresco-community-5.0.d-installer-linux-x64.bin
[root@alfresco opt]# ./alfresco-community-5.0.d-installer-linux-x64.bin
Language Selection
Please select the installation language
[1] English - English
[2] French - Français
[3] Spanish - Español
[4] Italian - Italiano
[5] German - Deutsch
[6] Japanese - 日本語
[7] Dutch - Nederlands
[8] Russian - Русский
[9] Simplified Chinese - 简体中文
[10] Norwegian - Norsk bokmål
[11] Brazilian Portuguese - Português Brasileiro
Please choose an option [1] : 1
—————————————————————————-
Welcome to the Alfresco Community Setup Wizard.
—————————————————————————-
Installation Type
[1] Easy - Installs servers with the default configuration
[2] Advanced - Configures server ports and service properties.: Also choose optional components to install.
Please choose an option [1] : 2
—————————————————————————-
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
Java [Y/n] :y
PostgreSQL [Y/n] :y
Alfresco : Y (Cannot be edited)
Solr1 [y/N] : y
Solr4 [Y/n] :y
SharePoint [Y/n] :y
Web Quick Start [y/N] : y
Google Docs Integration [Y/n] :y
LibreOffice [Y/n] :y
Is the selection above correct? [Y/n]: y
—————————————————————————-
Installation Folder
Please choose a folder to install Alfresco Community
Select a folder [/opt/alfresco-5.0.d]:
—————————————————————————-
Database Server Parameters
Please enter the port of your database.
Database Server port [5432]:
—————————————————————————-
Tomcat Port Configuration
Please enter the Tomcat configuration parameters you wish to use.
Web Server domain: [127.0.0.1]: 10.10.10.148
Tomcat Server Port: [8080]: 8181
Tomcat Shutdown Port: [8005]: 8105
Tomcat SSL Port [8443]: 8143
Tomcat AJP Port: [8009]: 8109
—————————————————————————-
Alfresco FTP Port
Please choose a port number to use for the integrated Alfresco FTP server.
Port: [21]: 21
—————————————————————————-
Admin Password
Please give a password to use for the Alfresco administrator account.
Admin Password: :
Repeat Password: :
—————————————————————————-
Alfresco SharePoint Port
Please choose a port number for the SharePoint protocol.
Port: [7070]: 7171
—————————————————————————-
Install as a service
You can optionally register Alfresco Community as a service. This way it will
automatically be started every time the machine is started.
Install Alfresco Community as a service? [Y/n]: y
—————————————————————————-
LibreOffice Server Port
Please enter the port that the Libreoffice Server will listen to by default.
LibreOffice Server Port [8100]: 8100
—————————————————————————-
Warning!
This environment is not configured optimally for Alfresco - please carefully
review this list before continuing.
While these issues will not prevent Alfresco from functioning, some product
features may be unavailable, or the system may not perform optimally.
SMTP TCP port in use: 25
Press [Enter] to continue:
—————————————————————————-
Setup is now ready to begin installing Alfresco Community on your computer.
Do you want to continue? [Y/n]: y
—————————————————————————-
Please wait while Setup installs Alfresco Community on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
—————————————————————————-
Setup has finished installing Alfresco Community on your computer.
View Readme File [Y/n]: Y
Launch Alfresco Community Share [Y/n]: Y
waiting for server to start….README
Alfresco Community 5.0.d
======================
For Enterprise subscribers, refer to http://support.alfresco.com for release
notes and detailed information on this release.
For Community members, refer to the Alfresco wiki for more information on this
release.
Press [Enter] to continue: done
server started
/opt/alfresco-5.0.d/postgresql/scripts/ctl.sh : postgresql started at port 5432
Using CATALINA_BASE: /opt/alfresco-5.0.d/tomcat
Using CATALINA_HOME: /opt/alfresco-5.0.d/tomcat
Using CATALINA_TMPDIR: /opt/alfresco-5.0.d/tomcat/temp
Using JRE_HOME: /opt/alfresco-5.0.d/java
Using CLASSPATH: /opt/alfresco-5.0.d/tomcat/bin/bootstrap.jar:/opt/alfresco-5.0.d/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/alfresco-5.0.d/tomcat/temp/catalina.pid
Tomcat started.
/opt/alfresco-5.0.d/tomcat/scripts/ctl.sh : tomcat started
[root@alfresco opt]#
[root@alfresco opt]#
[root@alfresco opt]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2015 12:51 PM
I am using 4.2.f in production. I've tested around with the 5.0.d installer on a virtual box, but haven't really done much with it.
I'm curious to ask…Are you running any other installation of alfresco on the same server? The only thing I can think of for the postgres user not being able to authenticate is if there is another instance of postgres running OR if you are not installing as root. There's a big debate about using root, but meh…I'm one of those guys.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2015 07:00 AM
for your reply. Were you able to login to you test install in a VM? What OS? CentOS? Which install option?
I did run the installation as root on a fresh install of CentOS 6.6 (minimal install). There were certainly no other postgres or alfresco instances running on the same machine. Also, if I install a trial of Alfresco Enterprise (alfresco-enterprise-5.0.1-installer-linux-x64.bin), all went well and I could login via /share as expeced.
I just realised that if, after installing and uninstalling a demo of the enterprise edition (installer 5.0.1), uninstalling like so:
rm -rf /opt/alfresco-5.0.1/
rm /etc/init.d/alfresco
and than installing the community edition (5.0.d) again, I am finally able to log in via /share 🙂
A dependancy issue apparently, maybe because I did the install on a minimal install of CentOS? The enterprise edition seems to install something in the system which is not installed (or configured) by the community edition installer.
Running the installer as root would not be a problem if executable files created would be owned and executed by an alfresco user. Quick inspection of the files written by the installer.. I do agree with you, there is a potential problem 😞
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2015 12:57 PM
Have you tried going to http//ip address/share?
The /alfresco extension no longer works in the version that you are using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2015 10:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2015 12:14 PM
Yes I was able to login the test environment. I was using a virtualbox VM running on my laptop with Centos 6.5 on the VM. (Laptop runs win 7 pro)
Used the alfresco 5.0.d and I always run the advanced option for the installation. Its really weird because I use the same download link you do for obtaining the bin file.
Maybe check the checksum and see if you got a complete download? I'm at a loss as to what it could be then, but I'm glad to see that you have made progress and are able to login at least.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2015 06:49 PM
I checked this and this is what I see:
netstat -lnp | grep 8181
tcp6 0 0 :::8181 :::* LISTEN 2441/java
So it would appear that It cannot connect because it has been setup to listen on TCPV6 not V4. and on the local host for V6 EVEN though I entered an IP 4 address for the listening port…….