05-22-2020 06:11 AM
Hi, I am running Alfresco community 6 in a docker container on Centos 7, I am trying to locate the global properties file to update it, of I search for the file I get multiple entries:
[root@localhost classes]# locate -br 'alfresco-global.properties'
/var/lib/docker/overlay2/868f002e6c845435de331c70b9db6a3988d8a3d34b207bf434bc53fdb532ae5a/merged/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/868f002e6c845435de331c70b9db6a3988d8a3d34b207bf434bc53fdb532ae5a/merged/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/8bad2bdb812c5cc9da89ee82fea3c7c02fed73f8c479935f2e2dbb34fb064281/diff/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/a676c366f5218131b1f12a657da703738568c48c10b40844eaf70e21ba25e984/diff/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/a676c366f5218131b1f12a657da703738568c48c10b40844eaf70e21ba25e984/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/bf6bbdb7a20ab4cf1c53bcdd2ed70624f5a3ab13d57ca1d69d503e44cb581610/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/c3dcb1a9b640ace9ed53cac0a7e1b9f1aa0662a2e90b988fb7b3a9b27273d169/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
Can anyone point me to the location of the properties file I want to be editing/updating?
05-22-2020 06:22 AM
Correct path is
<ALF_HOME>/tomcat/shared/classes/alfresco-global.properties
05-22-2020 07:11 AM
I cannot find the alfresco folder though, perhaps because it has been installed via a docker container?
05-22-2020 07:17 AM
Yes due to docker there will not be an alfresco folder. You have to find it inside the container only.
05-22-2020 07:22 AM
That is where I find an issue, as you see in my original post, there are multiple global property locations, so for instance looking at:
[root@localhost classes]# vi /var/lib/docker/overlay2/868f002e6c845435de331c70b9db6a3988d8a3d34b207bf434bc53fdb532ae5a/merged/usr/local/tomcat/shared/classes/alfresco-global.properties
This file does not contain any configuration whatsoever, it is just blank
05-22-2020 07:34 AM
The proper way to do it in docker is to extend the docker image.
Please, find the following thread.
05-22-2020 11:54 AM
Try the following:
1. execute 'docker ps'
It returns something like this:
Then copy CONTAINER ID of alfresco-content-services (the one in red rectangle) and execute:
2. 'docker exec -it <CONTAINER ID> bash'
That will put you in <ALF_HOME>/tomcat folder, and from there you just need to navigate to 'shared/classes', to do so execute:
3. 'cd shared/classes'
and there you will find alfresco-global.properties file.
Hope this helps
05-22-2020 12:11 PM
Thanks for the help, I had actually got this far and accessed the global.properties file, but it was empty which I wasn't expecting. I expected the file to contain some default properties that I could amend or add to. I added a certain setting to resolve a known problem I have had with a previous version (5.2) and it resolved the problem, just threw me with the file being empty.
05-23-2020 06:32 AM
I'm glad it's solved!
09-29-2020 04:02 PM
Hey Chris,
I am facing the same issue, where is the actual file located finally
Explore our Alfresco products with the links below. Use labels to filter content by product module.