11-21-2019 10:20 AM
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
11-21-2019 10:30 AM
Typically, adding these properties in alfresco-global.properties should allow you to use ftp.
ftp.enabled=true
ftp.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
11-21-2019 12:34 PM
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
Thank you so much
docker-compose.yml
version: "2"
services:
alfresco:
image: alfresco/alfresco-content-repository-community:6.1.2-ga
mem_limit: 1500m
environment:
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-RC3
mem_limit: 1g
environment:
- REPO_HOST=alfresco
- REPO_PORT=8080
- "CATALINA_OPTS= -Xms500m -Xmx500m"
ports:
- 8080:8080
postgres:
image: postgres:10.1
mem_limit: 1500m
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.3.0-RC2
mem_limit: 2500m
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
- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"
ports:
- 8083:8983 #Browser port
activemq:
image: alfresco/alfresco-activemq:5.15.6
mem_limit: 2048m
ports:
- 8161:8161 # Web Console
- 5672:5672 # AMQP
- 61616:61616 # OpenWire
- 61613:61613 # STOMP
11-21-2019 01:13 PM
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 "
11-21-2019 01:15 PM
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)
11-21-2019 02:20 PM
Thanks abhinavmishra14 and jpbuttet,
do the configuration in the docker-compose.yml file, but it still doesn't work for me to access by ftp, I even do a port scan and it doesn't show me the available ftp ports.
I have doubts with the last 2 notes
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)
Could you explain to me where I find the Alfresco/Dockerfile route, since it creates me too many.
*****attached image of my installation, which is in /var/ lib/docker
11-21-2019 02:34 PM
What's the OS of your host (the macine that runs docker) ?
Linux, Windows or other ?
11-21-2019 02:53 PM
Thanks Jpbuttet
It's a Linux Centos 7, but I just reboot the machine, and all the information was deleted, is it a docker problem?
I followed this how to How To
11-21-2019 06:10 PM
hello,
since you run linux, the ftp server within your container can not use port 21 unless you run the container under a privileged account and this is something you should no do.
Docker can do the mapping for you, Map port 21 of your host with port 2121 inside your container. Just read my previous message.
You just lost your data stored in your container, Docker has two options for containers to store files in the host machine, so that the files are persisted even after the container stops: volumes, and bind mounts:
https://docs.docker.com/storage/
hope it helps
best regards
08-30-2023 04:40 AM
Dear Sir,
Please explain me how to configure ftp service in docker installation.
Thanks in advance.
Explore our Alfresco products with the links below. Use labels to filter content by product module.