As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Good day
I would like to ask for your help, to know how I can enable the FTP service in alfresco, it is implemented in Docker and the version is the one discussed in the subject.
Community - 6.1.2 (r589dc49b-b205)
Thank you so much
Typically, adding these properties in alfresco-global.properties should allow you to use ftp.
ftp.enabled=trueftp.port=21
You need to make sure the configured port is open for access. Configure docker-compose file to allow port access
ports:- "21:21"
Apart from the above properties there are few more settings if you have advance requirements. You can refer this documentation for details: https://docs.alfresco.com/6.1/concepts/fileserv-ftp-intro.html
Hi abhinavmishra14
Thanks for answering.
I am reviewing the documentation, but they talk about the admin console, but is this only for the enterprise version?
additionally I see a configuration for the docker-compose.yml file but I have not been able to make it work.
I attach my file to see if I am doing it wrong
docker-compose.yml
version: "2"
services:alfresco:image: alfresco/alfresco-content-repository-community:6.1.2-gamem_limit: 1500menvironment:JAVA_OPTS : "-Ddb.driver=org.postgresql.Driver-Ddb.username=alfresco-Ddb.password=alfresco-Ddb.url=jdbcostgresql://postgres:5432/alfresco-Dsolr.host=solr6-Dsolr.port=8983-Dsolr.secureComms=none-Dsolr.base.url=/solr-Dindex.subsystem.name=solr6-Dshare.host=localhost-Dalfresco.port=8082-Daos.baseUrlOverwrite=http://localhost:8082/alfresco/aos-Dmessaging.broker.url=\"failovernio://activemq:61616)?timeout=3000&jms.useCompression=true\"-Ddeployment.method=DOCKER_COMPOSE-Dcsrf.filter.enabled=false-Xms1g -Xmx1g"ports:- 8082:8080 #Browser port- 21:21 #FTP port
share:image: alfresco/alfresco-share:6.1.0-RC3mem_limit: 1genvironment:- REPO_HOST=alfresco- REPO_PORT=8080- "CATALINA_OPTS= -Xms500m -Xmx500m"ports:- 8080:8080
postgres:image: postgres:10.1mem_limit: 1500menvironment:- POSTGRES_PASSWORD=alfresco- POSTGRES_USER=alfresco- POSTGRES_DB=alfrescocommand: postgres -c max_connections=300 -c log_min_messages=LOGports:- 5432:5432
solr6:image: alfresco/alfresco-search-services:1.3.0-RC2mem_limit: 2500menvironment:#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- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"ports:- 8083:8983 #Browser port
activemq:image: alfresco/alfresco-activemq:5.15.6mem_limit: 2048mports:- 8161:8161 # Web Console- 5672:5672 # AMQP- 61616:61616 # OpenWire- 61613:61613 # STOMP
In JAVA_OPTS add the properties i mentioned earlier and see if that works. See highlighted. I don't see anything related to admin console here: https://docs.alfresco.com/6.1/concepts/fileserv-ftp-props.html
However, when you go to admin console, it will just show whether ftp is enabled or disabled.
------------------------------------------------------------------------------------------
JAVA_OPTS : " -Ddb.driver=org.postgresql.Driver -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.url=jdbcostgresql://postgres:5432/alfresco -Dsolr.host=solr6 -Dsolr.port=8983 -Dsolr.secureComms=none -Dsolr.base.url=/solr -Dindex.subsystem.name=solr6 -Dshare.host=localhost -Dalfresco.port=8082 -Dftp.enabled=true -Dftp.port=21 -Daos.baseUrlOverwrite=http://localhost:8082/alfresco/aos -Dmessaging.broker.url=\"failovernio://activemq:61616)?timeout=3000&jms.useCompression=true\" -Ddeployment.method=DOCKER_COMPOSE -Dcsrf.filter.enabled=false -Xms1g -Xmx1g "
yes, and give it a try:
FTP just works like a charm, I just added this in JAVA_OPTS of docker-compose.yml:-Dftp.enabled=true-Dftp.port=2121
added port to alfresco service:
edited alfresco/Dockerfile and added this line at the bottom:EXPOSE 2121
Use ACTIVE communication mode in the client in order to connect to Alfresco (port 21)
I recently started with docker and alfresco 6.x community. So far i was using 5.x community version.
I was also wondering about setup and all and i came across this tool on Alfresco github repository.
https://github.com/Alfresco/alfresco-docker-installer
I followed the instructions and i was able to setup the alfresco successfully. I haven't go to advance like enabling ftp etc. but i think this tool provides a lot of flexibility in configuration.
You may give it a try.
You are right, I just installed this yesterday and it just works. You can save some time.
Enabling ftp took me few minutes 🙂
I have one 5.x dockerized instance in production and I am testing the 6.x installed by this tool.
Best regards.