Error with docker-compose installation at solr6 download

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

Error with docker-compose installation at solr6 download

Trying to deploy a trial environment with docker-compose on Ubuntu 20.04 server.

The deployment does not finish downloading images. It gets stuck on an "unauthorized access" error when it comes to the solr6 download (please see image).

The error is thrown when it comes to pull solr6 with "access to the requested resource is not authorized"

Up to this point it pulls in other resources fine.

I have not made any modifications to the docker-compose.yml file.access erroraccess error

8 Replies
abhinavmishra14
Advanced

Re: Error with docker-compose installation at solr6 download

Based on your tag, it seems you are trying to use community edition 7, but why would you use images from quay.io. Images from this repo are meant for enterprise edition, and hence the error is likely. You should be using images from hub.docker.com if you meant to use community edition.

What you see here must be a typo/issuehttps://github.com/Alfresco/acs-deployment/blob/master/docker-compose/community-docker-compose.yml#L... , alfresco is in the process of fixing it: https://github.com/Alfresco/acs-deployment/pull/655

You can use the below example docker-compose.yml to launch the stack:

version: "2"

services:
  alfresco:
    image: alfresco/alfresco-content-repository-community:7.1.1.2
    mem_limit: 1600m
    environment:
      JAVA_TOOL_OPTIONS: "
        -Dencryption.keystore.type=JCEKS
        -Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding
        -Dencryption.keyAlgorithm=DESede
        -Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore
        -Dmetadata-keystore.password=mp6yc0UD9e
        -Dmetadata-keystore.aliases=metadata
        -Dmetadata-keystore.metadata.password=oKIWzVdEdA
        -Dmetadata-keystore.metadata.algorithm=DESede
        "
      JAVA_OPTS: "
        -Ddb.driver=org.postgresql.Driver
        -Ddb.username=alfresco
        -Ddb.password=alfresco
        -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
        -Dsolr.host=solr6
        -Dsolr.port=8983
        -Dsolr.http.connection.timeout=1000
        -Dsolr.secureComms=secret
        -Dsolr.sharedSecret=secret
        -Dsolr.base.url=/solr
        -Dindex.subsystem.name=solr6
        -Dshare.host=127.0.0.1
        -Dshare.port=8080
        -Dalfresco.host=localhost
        -Dalfresco.port=8080
        -Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
        -Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
        -Ddeployment.method=DOCKER_COMPOSE
        -DlocalTransform.core-aio.url=http://transform-core-aio:8090/
        -Dcsrf.filter.enabled=false
        -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
        "

  transform-core-aio:
    image: alfresco/alfresco-transform-core-aio:2.5.7-A6
    mem_limit: 1536m
    environment:
      JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
    ports:
      - "8090:8090"

  share:
    image: alfresco/alfresco-share:7.1.1
    mem_limit: 1g
    environment:
      REPO_HOST: "alfresco"
      REPO_PORT: "8080"
      JAVA_OPTS: "
        -XX:MinRAMPercentage=50
        -XX:MaxRAMPercentage=80
        -Dalfresco.host=localhost
        -Dalfresco.port=8080
        -Dalfresco.context=alfresco
        -Dalfresco.protocol=http
        "

  postgres:
    image: postgres:13.3
    mem_limit: 512m
    environment:
      - POSTGRES_PASSWORD=alfresco
      - POSTGRES_USER=alfresco
      - POSTGRES_DB=alfresco
    command: postgres -c max_connections=300 -c log_min_messages=LOG
    ports:
      - "5432:5432"

  solr6:
    image: alfresco/alfresco-search-services:2.0.2.2
    mem_limit: 2g
    environment:
      # Solr needs to know how to register itself with Alfresco
      SOLR_ALFRESCO_HOST: "alfresco"
      SOLR_ALFRESCO_PORT: "8080"
      # Alfresco needs to know how to call solr
      SOLR_SOLR_HOST: "solr6"
      SOLR_SOLR_PORT: "8983"
      # Create the default alfresco and archive cores
      SOLR_CREATE_ALFRESCO_DEFAULTS: "alfresco,archive"
      # HTTPS or SECRET
      ALFRESCO_SECURE_COMMS: "secret"
      # SHARED SECRET VALUE
      JAVA_TOOL_OPTIONS: "
          -Dalfresco.secureComms.secret=secret
      "
    ports:
      - "8083:8983" # Browser port

  activemq:
    image: alfresco/alfresco-activemq:5.16.1
    mem_limit: 1g
    ports:
      - "8161:8161" # Web Console
      - "5672:5672" # AMQP
      - "61616:61616" # OpenWire
      - "61613:61613" # STOMP

  proxy:
    image: alfresco/alfresco-acs-nginx:3.2.0
    mem_limit: 128m
    environment:
      DISABLE_PROMETHEUS: "true"
      DISABLE_SYNCSERVICE: "true"
      DISABLE_ADW: "true"
    depends_on:
      - alfresco
    ports:
      - "8080:8080"
    links:
      - alfresco
      - share

 

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

Re: Error with docker-compose installation at solr6 download

Thank you for the reply Abinavmishra. The answer to your question why I would use quay.io is that I simply do not know. I have to say that for newcomers to Alfresco the installation process for testing or initial set up is very confusing. It is very very difficult to find the installation files for the different types of installation available. I went for the docker install in the end because I could not find the wget file that I would have used to install directly on Ubuntu from the command line. The only wget file that I can find is version 5.2 from 2017. Any help on where to locate these would also be appreciated.

I don't really know what I am doing with docker so please clarify. I understand that if I substitute the docker-compose.yml file that I was using for the one you have provided it should run OK. Is that correct? I am really working blind here and it is really not easy for a newcomer to Alfresco to just get an initial install of the community edition to run a trial version for evaluation. It is important for me to have the most recent version.

Many thanks for the .yml. If you can also provide the reference for the wget file for the manual install on Ubuntu (or if anyone else can) I would be very grateful, as I also want to evaluate the different deployment methods. The only wget I can find is "wget https://download.alfresco.com/release/community/201707-build-00028/alfresco-community-installer-2017..." but this is version 5.2.

abhinavmishra14
Advanced

Re: Error with docker-compose installation at solr6 download

I know installing manually could be difficult for someone who is new to the alfresco world, but most of the info is also available in documentation here: 

https://docs.alfresco.com/content-services/community/install/ 

https://docs.alfresco.com/content-services/community/install/zip/

You may have missed the initial documentation and release notes, alfresco no longer provides installers from 6.x onwards. And encourgaed to use docker based installation or anisble or manual setup via distribution. 

To understand docker based insallation, you need to first understand what's docker, docker-compose, docker-compose.yml, DockerFile etc. 

Docker compose at a high level: https://www.simplilearn.com/tutorials/docker-tutorial/docker-compose

You can also check this video: https://www.youtube.com/watch?v=UqQPQWthab0

A good read as well: https://hub.alfresco.com/t5/alfresco-content-services-blog/deploying-and-running-alfresco-content-se... 

I would suggest you go through this doc: https://docs.alfresco.com/content-services/community/install/containers/

If you wish to install usinh ansible: https://docs.alfresco.com/content-services/community/install/ansible/

If you want to setup manually you can use this post: https://javaworld-abhinav.blogspot.com/2021/06/setup-acs70-ass201-and-transformation-service.html

 

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

Re: Error with docker-compose installation at solr6 download


@abhinavmishra14 wrote:

I know installing manually could be difficult for someone who is new to the alfresco world, but most of the info is also available in documentation here: 

https://docs.alfresco.com/content-services/community/install/ 

https://docs.alfresco.com/content-services/community/install/zip/

You may have missed the initial documentation and release notes, alfresco no longer provides installers from 6.x onwards. And encourgaed to use docker based installation or anisble or manual setup via distribution. 

To understand docker based insallation, you need to first understand what's docker, docker-compose, docker-compose.yml, DockerFile etc. 

Docker compose at a high level: https://www.simplilearn.com/tutorials/docker-tutorial/docker-compose

You can also check this video: https://www.youtube.com/watch?v=UqQPQWthab0

A good read as well: https://hub.alfresco.com/t5/alfresco-content-services-blog/deploying-and-running-alfresco-content-se... 

I would suggest you go through this doc: https://docs.alfresco.com/content-services/community/install/containers/

If you wish to install usinh ansible: https://docs.alfresco.com/content-services/community/install/ansible/

If you want to setup manually you can use this post: https://javaworld-abhinav.blogspot.com/2021/06/setup-acs70-ass201-and-transformation-service.html

 



All very useful information, but most a little above my level with Alfresco.

Your post on the manual install of version 7 is very detailed and clear. Unfortunately my platform is not CentOS but Linux Ubuntu. Is that post also appropriate for Ubuntu? No sure that I have the knowledge to adapt the commands there to the Ubuntu syntax.

abhinavmishra14
Advanced

Re: Error with docker-compose installation at solr6 download

Unfortunately there is no specific steps documented for ubuntu. Its hard to write those steps for all type of OSs. Redhat/CentOS is standard when it comes to production deployment and Alfresco's docker containers are also based out of CentOS so i wrote the steps for CentOS. 

But i believe all the steps should remain identical except the package manager steps. So instead of "yum" you would be able to use "apt-get".

If you are stuck during the process, i can try to help if you post the error here.

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
Remmuel1
Partner

Re: Error with docker-compose installation at solr6 download

docker.PNG

wesiviw263
Member II

Re: Error with docker-compose installation at solr6 download

Download and install Docker Compose on Linux with this step-by-step handbook. This plugin can be installed manually or by using a repository. Click Here: WEBSITE

wesiviw263
Member II

Re: Error with docker-compose installation at solr6 download