cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Alfresco to use a proxy server

rbowman
Champ in-the-making
Champ in-the-making
Hello!

Is there any way to configure Alfresco to use a proxy server?  Here's the problem I am facing.

When using Web Studio, when I go to create a new website, I get the following error:

14:00:22,567  DEBUG [web.scripts.AbstractRuntime] Caught exception: org.alfresco.web.scripts.WebScriptException: Failed to load script '/web-studio/api/prebuilt/list.get.js (in classpath store file:/home/rbowman/Applications/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts)': TypeError: Cannot read property "results" from null (file:/home/rbowman/Applications/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js#47)

I have read in http://forums.alfresco.com/en/viewtopic.php?f=36&t=16543&start=0&st=0&sk=t&sd=a that Web Studio is attempting to connect to https://network.alfresco.com/extranet in order to get a list of templates.

The problem is that in order for Web Studio to make this connection, it must go through a proxy server.  This is set in stone and directly connecting to https://network.alfresco.com/extranet is not an option.

I have tried adding -Dhttp(s).proxyHost and -Dhttp(s).proxyPort options to alfresco.sh, but that did not work.  I have also tried adding http(s).proxyHost/Port to custom-repository.properties.  Using wireshark, I have verified that Web Studio is attempting to make a direct connection to network.alfresco.com.  I have searched the forums/wiki over and cannot seem to find anything on this issue.

Can anyone help?  I am stuck….

Thanks in advance,
-Roger Bowman
5 REPLIES 5

rbowman
Champ in-the-making
Champ in-the-making
Is there seriously no one that can help?  I know that I can't be the only person trying to install alfresco behind a corporate proxy server…

I'll take any kind of answer at this point.  Knowing something is better than knowing nothing, so if this is not possible, please let me know!

Thanks,
-Roger

nhienmai
Champ in-the-making
Champ in-the-making
It is likely that this is a current limit of Alfresco. See more details at https://issues.alfresco.com/jira/browse/ALF-1518

Good news is it was fixed. Bad news is the fix has not been merged to the public repos, in case you want to roll out the fix by yourself.

mikeh
Star Contributor
Star Contributor
It is likely that this is a current limit of Alfresco. See more details at https://issues.alfresco.com/jira/browse/ALF-1518

Good news is it was fixed. Bad news is the fix has not been merged to the public repos, in case you want to roll out the fix by yourself.
I'll see if I can get it merged across sooner rather than later.

Thanks,
Mike

nhienmai
Champ in-the-making
Champ in-the-making
It's great! We will apply the fix to our system right after is it available. Currently, beside Google docs, a few other features in Share (like RSS) do not work due to this limit.

Thank you, Mike, for your invaluable support.

Regards,
Nhien

nhienmai
Champ in-the-making
Champ in-the-making
As per described in http://issues.alfresco.com/jira/browse/ALF-1518, it is likeley that Alfresco Community 3.4b now support proxy server. So we tried to configure Alfresco Share again for Google Docs checkout.

After following the guidelines in http://forums.alfresco.com/en/viewtopic.php?f=9&t=35227, we got the Google Docs menu displayed as in 3.3g. Great!

Next, tried to create a Google Docs Document using the drop-down menu - Document was created successfully. So far so good …

Then tried to check it out to Google Docs - Bump! Fail to make connection to Google!

Hmmmm, It is likely that we need to make some additional configurations in Share for our corporate proxy server.
Refer to the comment from Afresco QA Team in http://issues.alfresco.com/jira/browse/ALF-1518, we tried to make some modifications in file /opt/Alfresco/tomcat/scripts/ctl.sh as follows:

From:

export JAVA_OPTS="-XX:MaxPermSize=512m -Xms128m -Xmx768m -Dalfresco.home=/opt/Alfresco -Dcom.sun.management.jmxremote"
To:

export JAVA_OPTS=" -Dhttp.proxyHost=xxx.25.254.9 -Dhttp.proxyPort=8000 -XX:MaxPermSize=512m -Xms128m -Xmx768m -Dalfresco.home=/opt/Alfresco -Dcom.sun.management.jmxremote"

Restart Alfresco. No errors happened. Login to Alfresco Explorer was OK.
However, when login to Share, an error message displayed as:

The remote server may be unavailable or your authentication details have not been recognized.

We are getting stuck now and can't find any other clues to go further. Could any people in Alfresco QA Team please give us some hints which you did in proxy configuration to get Alfresco Share working with Google Docs. Thanks a lot.