cancel
Showing results for 
Search instead for 
Did you mean: 

Finding the correct global properties file to update settings

ChrisAlker
Confirmed Champ
Confirmed Champ

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?

13 REPLIES 13

kintu_barot
Star Collaborator
Star Collaborator

Correct path is 

<ALF_HOME>/tomcat/shared/classes/alfresco-global.properties

Regards,
Kintu

I cannot find the alfresco folder though, perhaps because it has been installed via a docker container?

Yes due to docker there will not be an alfresco folder. You have to find it inside the container only.

Regards,
Kintu

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

The proper way to do it in docker is to extend the docker image.

Please, find the following thread.

https://hub.alfresco.com/t5/alfresco-content-services-forum/where-is-the-alfresco-global-properties-...

Regards,
Kintu

mire323
Confirmed Champ
Confirmed Champ

Try the following:

1. execute 'docker ps'

It returns something like this:image

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.

image

Hope this helps Smiley Happy

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.

I'm glad it's solved! Smiley Very Happy

Hey Chris,

I am facing the same issue, where is the actual file located finally