Skip to content
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

QGIS Server 3.4 on Windows: Error tranferring #28290

Closed
qgib opened this issue Nov 12, 2018 · 13 comments
Closed

QGIS Server 3.4 on Windows: Error tranferring #28290

qgib opened this issue Nov 12, 2018 · 13 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented Nov 12, 2018

Author Name: Louis Leguan (@hmoenk)
Original Redmine Issue: 20470
Affected QGIS version: 3.4.0
Redmine category:qgis_server


Hey,
I have just installed OsGeoaW version 3.4 and I am not able to publish WMS.
The Layer itself in QGIS show the error: 'Capabilities request failed' (CapabilitiesError.png) and shows the error 'transferring http://...' (ErrorTransferring.png).

Within the properties of the QGIS Server, the initial test does not show any errors (QGISStart.png).

Also the url https://localhost/cgi-bin/qgis_mapserv? show 'object not found' (mapserv.fcgi.png).

Is this a problem of the new version?


@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2018

Author Name: Giovanni Manghi (@gioman)


On Windows the URL is like

https://localhost/cgi-bin/qgis_mapserv.exe

but for 2.18 installations with osgeo4w also "cgi-bin" was not used, instead was something like

https://localhost/qgis-ltr/qgis_mapserv.exe

also probably you don't want to use "https" but "http".


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2018

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from Web Services clients/WMS to QGIS Server

@qgib
Copy link
Contributor Author

qgib commented Nov 19, 2018

Author Name: Uroš Preložnik (@uprel)


First you need to check your URL how you call QGIS Server and try with capabilities request. Like Giovanni wrote, on Windows URL is different.
On normal installation this should give you XML response (assuming you are running Apache on port 80):

http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

If you receive Page not Found (404), something is wrong with your Apache configuration. Repeat setup:

https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation-on-windows

@qgib
Copy link
Contributor Author

qgib commented Feb 1, 2019

Author Name: Louis Leguan (@hmoenk)


I am now able to request the capabilities of the Service in the Browser.
URL: http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

However. When trying to add the WMS to QGIS (http://localhost/cgi-bin/qgis_mapserv.fcgi.exe), the connection is loaded showing the correct name of the instance. The Problem of the layers still occur. This means that the name of the layer is empty and when adding it to the map the very same error is shown:
'[Fehler: Error transferring
http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0
&REQUEST=GetMap&BBOX=2686652.655435386114,1241070,2694050,1249254.345484995749&CRS=EPSG:2056&WIDTH=639
&HEIGHT=707&LAYERS=WMS_Test&STYLES=&FORMAT=image/png&DPI=192&MAP_RESOLUTION=192&FORMAT_OPTIONS=dpi:192
&TRANSPARENT=TRUE - server replied: Not Found; URL: http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?
SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=2686652.655435386114,1241070,2694050,1249254.345484995749&
CRS=EPSG:2056&WIDTH=639&HEIGHT=707&LAYERS=WMS_Test&STYLES=&FORMAT=image/png&DPI=192&MAP_RESOLUT'

For the connection of the DB I have saved the password and user within the project.

@qgib
Copy link
Contributor Author

qgib commented Feb 1, 2019

Author Name: Giovanni Manghi (@gioman)


Louis Leguan wrote:

I am now able to request the capabilities of the Service in the Browser.
URL: http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

However. When trying to add the WMS to QGIS (http://localhost/cgi-bin/qgis_mapserv.fcgi.exe), the connection is loaded showing the correct name of the instance. The Problem of the layers still occur. This means that the name of the layer is empty and when adding it to the map the very same error is shown:
'[Fehler: Error transferring
http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0
&REQUEST=GetMap&BBOX=2686652.655435386114,1241070,2694050,1249254.345484995749&CRS=EPSG:2056&WIDTH=639
&HEIGHT=707&LAYERS=WMS_Test&STYLES=&FORMAT=image/png&DPI=192&MAP_RESOLUTION=192&FORMAT_OPTIONS=dpi:192
&TRANSPARENT=TRUE - server replied: Not Found; URL: http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?
SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=2686652.655435386114,1241070,2694050,1249254.345484995749&
CRS=EPSG:2056&WIDTH=639&HEIGHT=707&LAYERS=WMS_Test&STYLES=&FORMAT=image/png&DPI=192&MAP_RESOLUT'

aren't you missing the "map" parameter?

@qgib
Copy link
Contributor Author

qgib commented Feb 1, 2019

Author Name: Louis Leguan (@hmoenk)


I have tried different URL's like: http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?request=getcapabilities&service=WMS&version=1.1.1. The layer is still not shown and the same error occurs..
http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?VERSION=1.3.0&map=C:/OSGeo4W/apps/qgis/bin/WMS_Test.qgs isn't working at all.
The map parameter is usually not included when adding a Geoservice I thought.

@qgib
Copy link
Contributor Author

qgib commented Feb 1, 2019

Author Name: Alessandro Pasotti (@elpaso)


  • operating_system was changed from to Windows

@qgib
Copy link
Contributor Author

qgib commented Feb 1, 2019

Author Name: Giovanni Manghi (@gioman)


The map parameter is usually not included when adding a Geoservice I thought.

not that is not completely true: unless your project file is exactly in the same folder where the qgis_mapserv.fcgi executable is then you must specify the map parameter map=/path/to/project.qgs

@qgib
Copy link
Contributor Author

qgib commented Feb 1, 2019

Author Name: Giovanni Manghi (@gioman)


Giovanni Manghi wrote:

The map parameter is usually not included when adding a Geoservice I thought.

not that is not completely true: unless your project file is exactly in the same folder where the qgis_mapserv.fcgi executable is then you must specify the map parameter map=/path/to/project.qgs

anyway there is another ticket about qgis server 3.4.4 on Windows that states that the program is broken, so this ticket may just be duplicate of it.

@qgib
Copy link
Contributor Author

qgib commented Feb 4, 2019

Author Name: Louis Leguan (@hmoenk)


I am not sure if the Bug #28692 corresponds to my problem as I am able to call the capabilities.
Also the error.log shows different entries.

Are these 'known' warnings in the log-file?


  • 14233 was configured as error.log

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


Louis Leguan wrote:

I am not sure if the Bug #28692 corresponds to my problem as I am able to call the capabilities.
Also the error.log shows different entries.

Are these 'known' warnings in the log-file?

We tested QGIS Server on Windows a couple of days ago and is ok, see: https://issues.qgis.org/issues/20873#note-7


  • subject was changed from QGIS 3.4 WMS: Error tranferring to QGIS Server 3.4 on Windows: Error tranferring

@qgib qgib added Feedback Waiting on the submitter for answers Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels May 25, 2019
@jonnyforestGIS
Copy link
Contributor

This can be close based on last comment Louis Leguan ?

We tested QGIS Server on Windows a couple of days ago and is ok, see: https://issues.qgis.org/issues/20873#note-7

@gioman
Copy link
Contributor

gioman commented Dec 23, 2019

This can be close based on last comment Louis Leguan ?

it is also my observation that at the moment it works ok.

@gioman gioman closed this as completed Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

3 participants