Error with the changing of the default ports from 8080 to 19180 and db port from 5432 to 19132--404

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

Re: Error with the changing of the default ports from 8080 to 19180 and db port from 5432 to 19132--

Jump to solution

Hi @EddieMay thank you for sharing the log, it was not coming yesterday.

 

@abhinavmishra14 i copied the DockerFile and docker-compose instructions exactly as given on the post


DockerFile

FROM alfresco/acs-community-ngnix:1.0.0

COPY nginx.conf /etc/nginx/nginx.conf

nginx config

worker_processes  1;

events {
    worker_connections  1024;
}

http {
    server {
        listen *:7080;

        client_max_body_size 0;

        set  $allowOriginSite *;
        proxy_pass_request_headers on;
        proxy_pass_header Set-Cookie;

        # External settings, do not remove
        #ENV_ACCESS_LOG

        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
        proxy_redirect off;
        proxy_buffering off;
        proxy_set_header Host            $host:$server_port;
        proxy_set_header X-Real-IP       $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass_header Set-Cookie;

        # Protect access to SOLR APIs
        location ~ ^(/.*/service/api/solr/.*)$ {return 403;}
        location ~ ^(/.*/s/api/solr/.*)$ {return 403;}
        location ~ ^(/.*/wcservice/api/solr/.*)$ {return 403;}
        location ~ ^(/.*/wcs/api/solr/.*)$ {return 403;}

        location ~ ^(/.*/proxy/alfresco/api/solr/.*)$ {return 403 ;}
        location ~ ^(/.*/-default-/proxy/alfresco/api/.*)$ {return 403;}
        
        # Protect access to Prometheus endpoint
        location ~ ^(/.*/s/prometheus)$ {return 403;}
        
        location / {
            proxy_pass http://alfresco:7080;
        }

      
        location /alfresco/ {
            proxy_pass http://alfresco:7080;

            # If using external proxy / load balancer (for initial redirect if no trailing slash)
            absolute_redirect off;
        }

        location /share/ {
            proxy_pass http://share:7080;

            # If using external proxy / load balancer (for initial redirect if no trailing slash)
            absolute_redirect off;
        }
      
    }
}

I am yet to try changing the memory limit, i noticed the same limit mentioned on the post which you suggested above. 
i will share the result

 

Moderator
Moderator

Re: Error with the changing of the default ports from 8080 to 19180 and db port from 5432 to 19132--

Jump to solution

@venur Thanks for sharing the info. I don't see any issues with dockerfile and config either. I think just try increasing the memory limit and see how it goes. 

 

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)
Active Member II

Re: Error with the changing of the default ports from 8080 to 19180 and db port from 5432 to 19132--

Jump to solution

I am able to access share and alfresco. As per your suggestions, i updated the memory on proxy and restarted and when i executed 'docker ps', i could see proxy also running there.

Thnx for help.

Sharing my compose file

services:
alfresco:
build:
dockerfile: ./Dockerfile
context: ./configs-to-override/alfresco
mem_limit: 1500m
environment:
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.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dshare.host=127.0.0.1
-Dshare.port=7080
-Dalfresco.host=localhost
-Dalfresco.port=7080
-Daos.baseUrlOverwrite=http://localhost:7080/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/

-Dalfresco-pdf-renderer.url=http://transform-core-aio:8090/
-Djodconverter.url=http://transform-core-aio:8090/
-Dimg.url=http://transform-core-aio:8090/
-Dtika.url=http://transform-core-aio:8090/
-Dtransform.misc.url=http://transform-core-aio:8090/

-Dcsrf.filter.enabled=false
-Xms1500m -Xmx1500m
"

transform-core-aio:
image: alfresco/alfresco-transform-core-aio:2.3.4
mem_limit: 1536m
environment:
JAVA_OPTS: " -Xms256m -Xmx1536m"
ports:
- 8090:8090

share:
build:
dockerfile: ./Dockerfile
context: ./configs-to-override/share
mem_limit: 1g
environment:
REPO_HOST: "alfresco"
REPO_PORT: "7080"
JAVA_OPTS: "
-Xms500m
-Xmx500m
-Dalfresco.host=localhost
-Dalfresco.port=7080
-Dalfresco.context=alfresco
-Dalfresco.protocol=http
"

postgres:
image: postgres:11.7
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:1.4.2.2
mem_limit: 2g
environment:
#Solr needs to know how to register itself with Alfresco
- SOLR_ALFRESCO_HOST=alfresco
- SOLR_ALFRESCO_PORT=7080
#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
- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
ports:
- 8083:8983 #Browser port

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

proxy:
build:
dockerfile: ./Dockerfile
context: ./configs-to-override/proxy
mem_limit: 256m
depends_on:
- alfresco
ports:
- 7080:7080
links:
- alfresco
- share

capture.png

Moderator
Moderator

Re: Error with the changing of the default ports from 8080 to 19180 and db port from 5432 to 19132--

Jump to solution

@venur glad you are able to resolve the issue and able to access the applications. 

I am marking this thread resolved for others to refer.

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)