-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding new catalog doesn't work with IP number #147
Comments
IP addresses should work fine. For example, 127.0.0.1 (localhost). My guess, given the error, is that you cannot contact the host due to some network configuration or firewall. |
No, Geoserver is running on a virtual machine, I can access it fine through Chrome, etc. I would say that New Catalog dialog is acting peculiar, I cannot detect is it due to Python or is it in OpenGeo plugin code somewhere... For instance, this example: http://myhost.noip.me:8080/geoserver I get the same error, in the same milisecond I click on OK ("Could not connect to the catalog at that URL") - it doesn't even try to contact the host... But if you input some other addres, like: http://www.geokt.hr:8080/geoserver (Geoserver is not running there) It tries to contact the server, for a couple of seconds, and then you get "normal" error message, ending with: A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond And then, to add to already legthy post, it does work if you input 127.0.0.1, it does not work if you input local IP addres: 192.168.1.5 of that same server... I'll test it some more, get another Linux machine up and running, and run QGIS on that one, to try and replicate the error. EDIT: |
I've also noticed the 'too old' issue - I'll create a separate issue for that. The error message indicates the code is failing while attempting to determine the version of the geoserver or listing the workspaces. If you are comfortable editing Python, can you remove the entire |
When I remove lines 258-260 from gsexploreitems.py, I get the following HTTP Status 401 - No AuthenticationProvider found for type Status report Apache Tomcat/7.0.52 (Ubuntu) Zoran Janković, mag. ing. geod. et geoinf. M: 00 385 98 682 902 Hrv. branitelja 62 On Thu, Jul 24, 2014 at 5:01 PM, Ian Schneider [email protected]
|
I haven't seen this issue before but it seems related to your GeoServer security configuration. Have you done any customization of security? |
QGIS 2.4.0, Windows 8.1 64 bit
Geoserver 2.5.1
New catalog dialog doesn't even start looking for Geoserver if you input IP number, for instance:
http://192.168.1.15:8080/geoserver
Instantly generates error message:
Warning: Could not connect to the catalog at that URL
Entering any web address, like:
http://www.geokt.hr:8080/geoserver
makes OpenGeo plugin try to read info from URL, and, of course, return the following error mesage:
Could not connect to catalog: Traceback (most recent call last): File "C:/Users/Zoran/.qgis2/python/plugins\opengeo\gui\gsexploreritems.py", line 243, in addGeoServerCatalog v = cat.gsversion() File "build\bdist.win32\egg\geoserver\catalog.py", line 106, in gsversion response, content = self.http.request(about_url, "GET") File "C:\Users\Zoran.qgis2\python\plugins\opengeo\ext-libs\httplib2-0.8-py2.7.egg\httplib2__init__.py", line 1570, in request (response, content) = self.request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "C:\Users\Zoran.qgis2\python\plugins\opengeo\ext-libs\httplib2-0.8-py2.7.egg\httplib2__init_.py", line 1317, in request (response, content) = self.conn_request(conn, request_uri, method, body, headers) File "C:\Users\Zoran.qgis2\python\plugins\opengeo\ext-libs\httplib2-0.8-py2.7.egg\httplib2__init.py", line 1290, in conn_request conn.connect() File "C:\Users\Zoran.qgis2\python\plugins\opengeo\ext-libs\httplib2-0.8-py2.7.egg\httplib2__init_.py", line 913, in connect raise socket.error, msg error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond
If you use "localhost" in URL, everything works fine.
Are IP numbers automatically discarded as FalseReading?
The text was updated successfully, but these errors were encountered: