7.1 Zip Install - Cannot find Alfresco Repository

cancel
Showing results for 
Search instead for 
Did you mean: 
foetoid
Member II

7.1 Zip Install - Cannot find Alfresco Repository

Attempting a build to get familiar with the product. After build completion 8080 returns: Cannot find Alfresco Repository on this server. (Does this application have access to alfresco-global.properties? Does this application have cross-context permissions?) and can't login on 8080/share.

Any help on this would be appreciated. Would like to be able to test your product.

There are some inconsistencies in the documentation between the following articles.

Here's my full build process on Ubuntu 20.04 LTS:

sudo apt update && sudo apt upgrade -y
sudo apt install -y openjdk-11-jre tomcat9 postfresql activemq libreoffice imagemagick unzip libpostgresql-jdbc-java
cd ~
mkdir download
cd download
wget https://download.alfresco.com/cloudfront/release/community/7.0.0-build-2355/alfresco-content-services-community-distribution-7.0.0.zip
wget https://download.alfresco.com/cloudfront/release/community/SearchServices/2.0.2/alfresco-search-services-2.0.2.zip
mkdir /usr/share/acs
cp alfresco-content-services-community-distribution-7.0.0.zip /usr/share/acs/
cp alfresco-search-services-2.0.2.zip /usr/share/
cd /usr/share
unzip alfresco-search-services-2.0.2.zip
rm alfresco-search-services-2.0.2.zip
cd acs
unzip alfresco-content-services-community-distribution-7.0.0.zip
rm alfresco-content-services-community-distribution-7.0.0.zip
sudo -i -u postgres
psql
create database alfresco encoding 'utf8';
create role alfresco LOGIN password 'alfresco';
grant all on database alfresco to alfresco;
exit;
exit
cd /var/lib/tomcat9/
mkdir shared
mkdir shared/classes
mkdir shared/lib
nano conf/catalina.properties

Locate:

shared.loader=

Change to:

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
cp /usr/share/java/postgresql*.jar /var/lib/tomcat9/lib/
nano conf/server.xml

Locate:

    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

Change to:

<Connector port="8080" protocol="HTTP/1.1"
     URIEncoding="UTF-8"
     connectionTimeout="20000"
     maxHttpHeaderSize="32768"
     redirectPort="8443" />
mkdir modules
mkdir modules/platform
mkdir modules/share
cp /usr/share/acs/web-server/conf/Catalina/localhost/*.xml conf/Catalina/localhost/
cp /usr/share/acs/web-server/webapps/*.war webapps/
cp /usr/share/acs/web-server/lib/postgresql-42.2.19.jar lib/
cd webapps/
systemctl stop tomcat9.service
rm -r alfresco
rm -r ROOT
rm -r share
rm -r _vti_bin
cd ..
nano shared/classes/alfresco-global.properties

alfresco-global.properties

 #
 # Set this property unless you have explicitly chosen to expose some repository APIs without authentication
 index.subsystem.name=solr6
 solr.secureComms=none
 solr.port=8983

 #
 # Custom content and index data location
 #
 dir.root=/srv/alfresco/alf_data
 dir.keystore=${dir.root}/keystore

 #
 # Sample database connection properties
 #
 db.username=alfresco
 db.password=DBPWICREATED

 #
 # Choose DB connection properties for your database, e.g. for PostgreSQL
 #
 db.driver=org.postgresql.Driver
 db.url=jdbc:postgresql://localhost:5432/alfresco

 #
 # URL Generation Parameters (The ${localname} token is replaced by the local server name)
 #-------------
 alfresco.context=alfresco
 alfresco.host=${localname}
 alfresco.port=8080
 alfresco.protocol=http
 share.context=share
 share.host=${localname}
 share.port=8080
 share.protocol=http
nano conf/Catalina/localhost/alfresco.xml

Change:

<PostResources base="${catalina.base}/../modules/platform"

To:

<PostResources base="${catalina.base}/modules/platform"

 

nano conf/Catalina/localhost/share.xml

Change:

<PostResources base="${catalina.base}/../modules/share"

To:

<PostResources base="${catalina.base}/modules/share"
systemctl start tomcat9.service
2 Replies
abhinavmishra14
Advanced

Re: 7.1 Zip Install - Cannot find Alfresco Repository

The error usually refers to share.loader misconfigured or system may not be able to read the alfresco-global.properties. Please cross check the configs and permissions that's the only clue here.

Also you can review this guide that may be helpful : https://javaworld-abhinav.blogspot.com/2021/06/setup-acs70-ass201-and-transformation-service.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
psb24
Member II

Re: 7.1 Zip Install - Cannot find Alfresco Repository

Hi foetoid,

maybe helpfull:

sudo apt install -y openjdk-11-jre tomcat9 postfresql activemq libreoffice imagemagick unzip libpostgresql-jdbc-jav

postfresql should be postgresql - right?

Have now rebuilt everything exactly as you indicated - but at following command there is failure at my system

cp /usr/share/java/postgresql*.jar /var/lib/tomcat9/lib/

cp: unable to call stat for '/usr/share/java/postgresql*.jar': file or directory not found

Had been the same failure at your system? On my system there is no *.jar at all.