Finding the correct global properties file to update settings

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

Finding the correct global properties file to update settings

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
Highlighted
Senior Member

Re: Finding the correct global properties file to update settings

Correct path is 

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

 

Regards,
Kintu | ContCentric
Highlighted
Active Member II

Re: Finding the correct global properties file to update settings

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

Highlighted
Senior Member

Re: Finding the correct global properties file to update settings

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

Regards,
Kintu | ContCentric
Highlighted
Active Member II

Re: Finding the correct global properties file to update settings

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

Highlighted
Senior Member

Re: Finding the correct global properties file to update settings

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 | ContCentric
Highlighted
Active Member II

Re: Finding the correct global properties file to update settings

Try the following:

1. execute 'docker ps'

It returns something like this:docker-alf-glo.png

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.

FullImage.png

Hope this helps Smiley Happy

Highlighted
Active Member II

Re: Finding the correct global properties file to update settings

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.

Highlighted
Active Member II

Re: Finding the correct global properties file to update settings

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

Highlighted
Member II

Re: Finding the correct global properties file to update settings

Hey Chris,

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