07-19-2020 03:02 PM
i downloaded alfresco community edition from this link:
https://www.alfresco.com/thank-you/thank-you-downloading-alfresco-community-edition
I have made changes in the docker-compose.yml file as following one of the post
1) -Dshare.port=19180,
2) In the share i added
ports:
-19180:9090
3) in postgres db
ports:
- 19132:8080,
I get 404 error is their any specific settings still needs to be done.
HTTP Status 404 – Not Found
Type Status Report
Message Not found
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
08-25-2020 12:16 PM
Correct, proxy service did not launch correctly. The error you saw is related to google docs, but i see alfresco service is running in your case already as per your log.
Proxy service failure could likely be due to memory limit but not exatly sure unless below given info can be verified.
Can you share what's there in your DockerFile and what is the nginx config?
Also try increasing the memory limit on proxy service and retry.
proxy:
build:
dockerfile: ./Dockerfile
context: ./configs-to-override/proxy
mem_limit: 256m
08-26-2020 10:18 AM
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
08-27-2020 11:09 AM
@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.
08-30-2020 10:38 AM
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
08-31-2020 10:23 AM
@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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.