Could not load PDF content - Alfresco Docker containers

cancel
Showing results for 
Search instead for 
Did you mean: 
nguessankme
Active Member

Could not load PDF content - Alfresco Docker containers

Jump to solution

this error occurs when I try to view a document other than pdf (doc, docx).

I have an Alfresco installation with dockers containers.

Also, the "alfresco-transform-core-aio" container logs indicates the error: "libreoffice returned a 500 status All in One Transformer - this OfficeManager is currently stopped http: // transform-core-aio: 8090 / transform"

my Docker-compose.yml file is as follows:

version: "2"

services:
    alfresco:
        # image: alfresco/alfresco-content-repository-community:7.1.0-M1
        # image: alfresco/alfresco-governance-repository-community:3.5.a
        image: alfresco/alfresco-governance-repository-community:V3.5.0.x-latest
        mem_limit: 1500m
        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=none
                -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.0
        mem_limit: 1536m
        environment:
            JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
        ports:
            - 8090:8090

    share:
        # image: alfresco/alfresco-share:7.1.0-M1
        image: alfresco/alfresco-governance-share-community:V3.5.0.x-latest
        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.1
        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.1
        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
            #HTTP by default
            - ALFRESCO_SECURE_COMMS=none
        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.1.1
        mem_limit: 128m
        environment:
            DISABLE_PROMETHEUS: "true"
            DISABLE_SYNCSERVICE: "true"
            DISABLE_ADW: "true"
        depends_on:
            - alfresco
        ports:
            - 8080:8080
        links:
            - alfresco
            - share

 

2 Solutions

Accepted Solutions
abhinavmishra14
Advanced

Re: Could not load PDF content - Alfresco Docker containers

Jump to solution

@nguessankme wrote:

Thank you for answering me

it is true.

When reinstalling on another computer, it works fine.

My problem is that the problem occurred on my production installation.

And no backup and restore is implemented; I don't know how to do the backup before I reinstall and restore it.

So, I have to debug my production installation.


It has something to do with your setup, try verifying all the setting and revisit the setup. 

For backup and restore checkout the docs: https://docs.alfresco.com/content-services/community/admin/backup-restore/

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View solution in original post

nguessankme
Active Member

Re: Could not load PDF content - Alfresco Docker containers

Jump to solution

Thanks,

it's probably in my config files.

I'll try to make a backup, reinstall and restore it.

View solution in original post

4 Replies
abhinavmishra14
Advanced

Re: Could not load PDF content - Alfresco Docker containers

Jump to solution

@nguessankme As the error indicates, it might be possible that services did not start properly. Please provide more details. Log file and out from following command as well:

docker ps -a

I tried exact copy of docker-compose.yml and i did not see any issues with images, doc, docx, pdf, xlsx etc. See the sample below. 

version: "2"

services:
    alfresco:
        image: alfresco/alfresco-governance-repository-community:V3.5.0.x-latest
        mem_limit: 1500m
        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=none
                -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.0
        mem_limit: 1536m
        environment:
            JAVA_OPTS: " -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
        ports:
            - 8090:8090

    share:
        image: alfresco/alfresco-governance-share-community:V3.5.0.x-latest
        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.1
        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.1
        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
            #HTTP by default
            - ALFRESCO_SECURE_COMMS=none
        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.1.1
        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)
nguessankme
Active Member

Re: Could not load PDF content - Alfresco Docker containers

Jump to solution

Thank you for answering me

it is true.

When reinstalling on another computer, it works fine.

My problem is that the problem occurred on my production installation.

And no backup and restore is implemented; I don't know how to do the backup before I reinstall and restore it.

So, I have to debug my production installation.

abhinavmishra14
Advanced

Re: Could not load PDF content - Alfresco Docker containers

Jump to solution

@nguessankme wrote:

Thank you for answering me

it is true.

When reinstalling on another computer, it works fine.

My problem is that the problem occurred on my production installation.

And no backup and restore is implemented; I don't know how to do the backup before I reinstall and restore it.

So, I have to debug my production installation.


It has something to do with your setup, try verifying all the setting and revisit the setup. 

For backup and restore checkout the docs: https://docs.alfresco.com/content-services/community/admin/backup-restore/

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
nguessankme
Active Member

Re: Could not load PDF content - Alfresco Docker containers

Jump to solution

Thanks,

it's probably in my config files.

I'll try to make a backup, reinstall and restore it.