Foren

Proxy no worky 6.0.6

thumbnail
Cameron McBride, geändert vor 13 Jahren.

Proxy no worky 6.0.6

Expert Beiträge: 269 Beitrittsdatum: 08.02.11 Neueste Beiträge
I have put my proxy server in portal-ext.properties:
http.proxyHost=proxy.nas.mexcity.net
https.proxyHost=proxy.nas.medcity.net
https.proxyPort=8080
http.proxyPort=8080
http.nonProxyHosts=localhost

I have put the same proxy server in system-ext.properties.

Neither seem to have any effect. This is the same proxy information I put in Firefox or other apps to gain external access. There is no username/password required.

How can I debug why it is not working?

I have also looked in the Liferay console for any place to put in the proxy and was unable to find one.

Thanks!
thumbnail
James Falkner, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Liferay Legend Beiträge: 1399 Beitrittsdatum: 17.09.10 Neueste Beiträge
Cameron McBride:
I have put my proxy server in portal-ext.properties:
http.proxyHost=proxy.nas.mexcity.net
https.proxyHost=proxy.nas.medcity.net
https.proxyPort=8080
http.proxyPort=8080
http.nonProxyHosts=localhost

I have put the same proxy server in system-ext.properties.

Neither seem to have any effect. This is the same proxy information I put in Firefox or other apps to gain external access. There is no username/password required.

How can I debug why it is not working?

I have also looked in the Liferay console for any place to put in the proxy and was unable to find one.

Thanks!


Where did you put your system-ext.properties file? Are you sure it is being loaded? At the beginning of your app server log file, you should see something like

Loading file:/Users/jhf/lr/liferay-portal-6.1.0/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/system-ext.properties


And, once running, you should be able to go to

Control Panel -> Server Administration -> Properties

and see the http(s).* settings defined under the "System Properties" tab.
Cameron McBride, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

New Member Beiträge: 6 Beitrittsdatum: 21.02.11 Neueste Beiträge
The file is being loaded:
Loading file:/C:/liferay/dev-liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/system-ext.properties

In the System->Properties page I see:
http.nonProxyHosts localhost
http.proxyHost proxy.nas.mexcity.net
http.proxyPort 8080
https.proxyHost proxy.nas.medcity.net
https.proxyPort 8080
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
I have also looked in the Liferay console for any place to put in the proxy and was unable to find one.


This is because the proxy setting is not being set in the program. Somebody should file an jira on this.
thumbnail
Juan Gonzalez P, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
Are there any error on logs? Does your proxy requires auth?

If so there was a bug in 6.0.5 that is resolved in 6.0.6.

Bug is here:

http://issues.liferay.com/browse/LPS-14259


Here:

http://www.liferay.com/es/community/forums/-/message_boards/message/5875776#_19_message_5875776

it's right configuration for it.
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Bug is here:

http://issues.liferay.com/browse/LPS-14259


This is also a problem in our plugin repository refresh algorithm (everywhere we use httpclient).


I don't think the above bug has been resolved in 6.0.6. I'm still getting a response code 407 when I try to reference a plugin repository. I also looked at the code and it didn't seem it was fixed - at least not the way I fixed it.
Cameron McBride, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

New Member Beiträge: 6 Beitrittsdatum: 21.02.11 Neueste Beiträge
No authentication needed. No errors in the console or in the tomcat\logs directory.
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Cameron McBride:
No authentication needed. No errors in the console or in the tomcat\logs directory.


When are you not getting through the proxy? There won't be any error during the startup - error message only appear in the console when you try to access some external site and the site can not be accessed.
thumbnail
Cameron McBride, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Expert Beiträge: 269 Beitrittsdatum: 08.02.11 Neueste Beiträge
RSS Feed portlet, or any portlet that uses the internet for that matter.

I can take the same RSS Feed and pop it into Firefox or IE (both using the same proxy) and it pops right up.

Maybe there is something that needs to be configured to see this extra logging?
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Maybe there is something that needs to be configured to see this extra logging?


I think it just there is a code missing to use the proxy configuration in the source code.
thumbnail
Cameron McBride, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Expert Beiträge: 269 Beitrittsdatum: 08.02.11 Neueste Beiträge
That seems like a horrible thing to be overlooked... (it didnt work in 6.0.5 either).

Is this something that could easily be fixed globally (not just rss) through an ext plugin or possibly passed in when the server starts (java command line)?

FIXED!!!!!
I edited the setenv.bat on the server and added "-Dhttp.proxyHost=proxy.nas.medcity.net -Dhttp.proxyPort=8080" into the environment. Proxy is working perfectly now!
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
FYI, Juan has been nice to offer us a patch with a fix that includes this problem.
https://www.liferay.com/community/forums/-/message_boards/message/7895693?_19_preview=false
thumbnail
William Fleming, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Regular Member Beiträge: 180 Beitrittsdatum: 15.09.10 Neueste Beiträge
http://www.liferay.com/community/forums/-/message_boards/message/1281576

I had issues but found that you need it entered in

catalina.properties and you portal-ext.properties

http.proxyHost=yourProxyURL
http.proxyPort=yourProxyPort
http.proxyUser=yourUserName
http.proxyPassword=yourPassword

Just drop the user and password if there is no auth.

That should do it.
thumbnail
Hitoshi Ozawa, geändert vor 13 Jahren.

RE: Proxy no worky 6.0.6

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
The issue below is still not included in the CE version.
LPS-13985. The user name and password is not sent to proxy in some cases (repository and rss)
thumbnail
Brunno Figueirôa Goldstein, geändert vor 12 Jahren.

RE: Proxy no worky 6.0.6

Junior Member Beiträge: 51 Beitrittsdatum: 05.05.11 Neueste Beiträge
Are there any solution for this problem?

I'm still can't connect to repository. emoticon

Getting code 407 all the time I try to connect to internet.
thumbnail
Henrique Simoes de Andrade, geändert vor 12 Jahren.

RE: Proxy no worky 6.0.6

Regular Member Beiträge: 165 Beitrittsdatum: 30.04.10 Neueste Beiträge
Brunno Figueirôa Goldstein:
Are there any solution for this problem?

I'm still can't connect to repository. emoticon

Getting code 407 all the time I try to connect to internet.



Brunno, try the change mentioned here: http://www.liferay.com/community/forums/-/message_boards/message/8797743, it isn't a good way, but works for me...
thumbnail
Brunno Figueirôa Goldstein, geändert vor 12 Jahren.

RE: Proxy no worky 6.0.6

Junior Member Beiträge: 51 Beitrittsdatum: 05.05.11 Neueste Beiträge
Henrique Simoes de Andrade:
Brunno Figueirôa Goldstein:
Are there any solution for this problem?

I'm still can't connect to repository. emoticon

Getting code 407 all the time I try to connect to internet.



Brunno, try the change mentioned here: http://www.liferay.com/community/forums/-/message_boards/message/8797743, it isn't a good way, but works for me...



Thank you Henrique, my LR is now working perfectly under proxy! The complete solution is in the post that Henrique posted.

Cya!
Victor Chirita, geändert vor 9 Jahren.

RE: Proxy no worky 6.0.6

New Member Beiträge: 3 Beitrittsdatum: 13.02.12 Neueste Beiträge
It works!