Fórumok

Proxy no worky 6.0.6

thumbnail
Cameron McBride, módosítva 13 év-val korábban

Proxy no worky 6.0.6

Expert Bejegyzések: 269 Csatlakozás dátuma: 2011.02.08. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Liferay Legend Bejegyzések: 1399 Csatlakozás dátuma: 2010.09.17. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

New Member Bejegyzések: 6 Csatlakozás dátuma: 2011.02.21. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

New Member Bejegyzések: 6 Csatlakozás dátuma: 2011.02.21. Legújabb bejegyzések
No authentication needed. No errors in the console or in the tomcat\logs directory.
thumbnail
Hitoshi Ozawa, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Expert Bejegyzések: 269 Csatlakozás dátuma: 2011.02.08. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Expert Bejegyzések: 269 Csatlakozás dátuma: 2011.02.08. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Regular Member Bejegyzések: 180 Csatlakozás dátuma: 2010.09.15. Legújabb bejegyzések
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, módosítva 13 év-val korábban

RE: Proxy no worky 6.0.6

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Proxy no worky 6.0.6

Junior Member Bejegyzések: 51 Csatlakozás dátuma: 2011.05.05. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Proxy no worky 6.0.6

Regular Member Bejegyzések: 165 Csatlakozás dátuma: 2010.04.30. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Proxy no worky 6.0.6

Junior Member Bejegyzések: 51 Csatlakozás dátuma: 2011.05.05. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Proxy no worky 6.0.6

New Member Bejegyzések: 3 Csatlakozás dátuma: 2012.02.13. Legújabb bejegyzések
It works!