Sorry to jump in but I have a problem with my QGIS SERVER 3 installation and I think this might be the right place to post it.
First of all, let me tell you that i already post my problem on gis.stackexchange <https://gis.stackexchange.com/questions/301305/qgis-server-3-service-service-unknown-or-unsupported> , QGIS BUG REPORT 18230 <https://issues.qgis.org/issues/18230#note-13> (closed but related), and finally github QGIS PR 6502 <https://github.com/qgis/QGIS/pull/6502#issuecomment-434884447> (closed but related) The problem I am having> I installed QGIS SERVER 3.4 on a virtual machine with Ubuntu Server 18.04 bionic. I followed along the official training docs <https://docs.qgis.org/testing/en/docs/training_manual/qgis_server/install.html> (also for version 2.18 <https://docs.qgis.org/2.18/en/docs/training_manual/qgis_server/install.html> ) and at the end all seemed to be working - doing curl http://qgis.demo/cgi-bin/qgis_mapserv.fcgi I receive: <ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc"> <ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException> </ServiceExceptionReport> However, when I move on to lesson Serving WMS <https://docs.qgis.org/2.18/en/docs/training_manual/qgis_server/wms.html> , download the demo data from here <https://github.com/qgis/QGIS-Training-Data/tree/QGIS-Training-Data-v2.0/training_manual_data> , unpack the qgis-server-tutorial-data in my /home/ubuntu/qgis/projects/ folder and do curl http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS%26VERSION=1.3.0%26REQUEST=GetCapabilities%26map=/home/ubuntu/qgis/projects/qgis-server-tutorial-data/world3.qgs, I still receive the same Service unknown or unsupported exception. I also tried to create a personal project using the same version (3.4) of QGIS DESKTOP and copy the needed files (only a SHP and the .qgs) to the same projects folder, but with the same result. Eventually, I paste both the apache and qgis-server logs in order to give a possible answerer a possibility to dig in this issue. Any help would be very much appreciated as I am really interested in trying QGIS SERVER. Otherwose, do you suggest to move to an older version (like 2.18)? */var/log/apache2/error.log* [Sat Nov 03 06:25:01.926915 2018] [mpm_event:notice] [pid 25821:tid 139991983651776] AH00489: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 configured -- resuming normal operations [Sat Nov 03 06:25:01.926933 2018] [core:notice] [pid 25821:tid 139991983651776] AH00094: Command line: '/usr/sbin/apache2' [Sat Nov 03 15:41:23.482084 2018] [mpm_event:notice] [pid 25821:tid 139991983651776] AH00491: caught SIGTERM, shutting down [Sat Nov 03 15:41:23.597896 2018] [mpm_event:notice] [pid 18621:tid 140352144899008] AH00489: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 configured -- resuming normal operations [Sat Nov 03 15:41:23.597984 2018] [core:notice] [pid 18621:tid 140352144899008] AH00094: Command line: '/usr/sbin/apache2' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-www-data' Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Initializing server modules from "/usr/lib/qgis/server" "Checking /usr/lib/qgis/server for native services modules" "Loading native module /usr/lib/qgis/server/libdummy.so" "Loading native module /usr/lib/qgis/server/libwcs.so" "Loading native module /usr/lib/qgis/server/libwfs.so" "Loading native module /usr/lib/qgis/server/libwms.so" "Loading native module /usr/lib/qgis/server/libwmts.so" Loading a file that was saved with an older version of qgis (saved in 0.0.0, loaded in 3.4.0-Madeira). Problems may occur. */var/log/qgis/qgisserver.log* 22:19:45 INFO Server[4118]: Qgis Server Settings: 22:19:45 INFO Server[4118]: - QGIS_OPTIONS_PATH / '' (Override the default path for user configuration): '' (read from DEFAULT_VALUE) 22:19:45 INFO Server[4118]: - QGIS_SERVER_PARALLEL_RENDERING / '/qgis/parallel_rendering' (Activate/Deactivate parallel rendering for WMS getMap request): 'false' (read from DEFAULT_VALUE) 22:19:45 INFO Server[4118]: - QGIS_SERVER_MAX_THREADS / '/qgis/max_threads' (Number of threads to use when parallel rendering is activated): '-1' (read from DEFAULT_VALUE) 22:19:45 INFO Server[4118]: - QGIS_SERVER_LOG_LEVEL / '' (Log level): '0' (read from ENVIRONMENT_VARIABLE) 22:19:45 INFO Server[4118]: - QGIS_SERVER_LOG_FILE / '' (Log file): '/var/log/qgis/qgisserver.log' (read from ENVIRONMENT_VARIABLE) 22:19:45 INFO Server[4118]: - QGIS_SERVER_LOG_STDERR / '' (Activate/Deactivate logging to stderr): 'false' (read from DEFAULT_VALUE) 22:19:45 INFO Server[4118]: - QGIS_PROJECT_FILE / '' (QGIS project file): '' (read from DEFAULT_VALUE) 22:19:45 INFO Server[4118]: - MAX_CACHE_LAYERS / '' (Specify the maximum number of cached layers): '100' (read from DEFAULT_VALUE) 22:19:45 INFO Server[4118]: - QGIS_SERVER_CACHE_DIRECTORY / '/cache/directory' (Specify the cache directory): '//.local/share/QGIS/QGIS3/profiles/default/cache' (read from DEFAULT_VALUE) 22:19:45 INFO Server[4118]: - QGIS_SERVER_CACHE_SIZE / '/cache/size' (Specify the cache size): '52428800' (read from DEFAULT_VALUE) 22:19:45 INFO Server[4118]: Ini file used to initialize settings: /.local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini 22:19:45 INFO Server[4118]: cacheDirectory: /.local/share/QGIS/QGIS3/profiles/default/cache/ 22:19:45 INFO Server[4118]: maximumCacheSize: 52428800 22:19:45 INFO Server[4118]: Prefix PATH: /usr 22:19:45 INFO Server[4118]: Plugin PATH: /usr/lib/qgis/plugins 22:19:45 INFO Server[4118]: PkgData PATH: /usr/share/qgis 22:19:45 INFO Server[4118]: User DB PATH: //.local/share/QGIS/QGIS3/profiles/default/qgis.db 22:19:45 INFO Server[4118]: Auth DB PATH: /home/ubuntu/qgis/qgisserverdb/qgis-auth.db 22:19:45 INFO Server[4118]: SVG PATHS: /usr/share/qgis/svg////.local/share/QGIS/QGIS3/profiles/default/svg/ 22:19:45 WARNING [4118]: Adding service SampleService 1.0 22:19:45 WARNING [4118]: Adding service WCS 1.0.0 22:19:45 WARNING [4118]: Adding service WFS 1.1.0 22:19:45 WARNING [4118]: Adding service WMS 1.3.0 22:19:45 WARNING [4118]: Adding service WMTS 1.0.0 22:19:45 INFO Server[4118]: Server initialized 22:19:45 INFO ../../src/server/qgsserverplugins.cpp[4118]: load library /usr/lib/qgispython (3.4.0) 22:19:45 INFO ../../src/server/qgsserverplugins.cpp[4118]: Python support library loaded successfully. 22:19:45 INFO Server[4118]: No server python plugins are available 22:19:45 INFO Server[4118]: ******************** New request *************** 22:19:45 INFO Server[4118]: REMOTE_ADDR: 35.180.100.12 22:19:45 INFO Server[4118]: HTTP_USER_AGENT: curl/7.58.0 22:19:45 INFO Server[4118]: Using default configuration file path: /usr/lib/cgi-bin/admin.sld 22:19:45 WARNING [4118]: Service is not registered 22:19:45 INFO Server[4118]: Request finished in 10 ms 15:51:06 INFO Server[19726]: ******************** New request *************** 15:51:06 INFO Server[19726]: REMOTE_ADDR: 127.0.0.1 15:51:06 INFO Server[19726]: HTTP_USER_AGENT: curl/7.58.0 15:51:06 INFO Server[19726]: SERVICE:WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/ubuntu/qgis/projects/test_qgis/milano_test.qgs 15:51:06 INFO Server[19726]: Using default configuration file path: /usr/lib/cgi-bin/admin.sld 15:51:06 WARNING [19726]: Service WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/ubuntu/qgis/projects/test_qgis/milano_test.qgs is not registered 15:51:06 INFO Server[19726]: Request finished in 0 ms 16:10:01 INFO Server[19726]: ******************** New request *************** 16:10:01 INFO Server[19726]: REMOTE_ADDR: 127.0.0.1 16:10:01 INFO Server[19726]: HTTP_USER_AGENT: curl/7.58.0 16:10:01 INFO Server[19726]: SERVICE:WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/ubuntu/qgis/projects/qgis-server-tutorial-data/world3.qgs 16:10:01 INFO Server[19726]: Using default configuration file path: /usr/lib/cgi-bin/admin.sld 16:10:01 WARNING [19726]: Service WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/ubuntu/qgis/projects/qgis-server-tutorial-data/world3.qgs is not registered 16:10:01 INFO Server[19726]: Request finished in 0 ms 16:10:04 INFO Server[19726]: ******************** New request *************** 16:10:04 INFO Server[19726]: REMOTE_ADDR: 127.0.0.1 16:10:04 INFO Server[19726]: HTTP_USER_AGENT: curl/7.58.0 16:10:04 INFO Server[19726]: SERVICE:WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/ubuntu/qgis/projects/qgis-server-tutorial-data/world.qgs 16:10:04 INFO Server[19726]: Using default configuration file path: /usr/lib/cgi-bin/admin.sld 16:10:04 WARNING [19726]: Service WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/ubuntu/qgis/projects/qgis-server-tutorial-data/world.qgs is not registered 16:10:04 INFO Server[19726]: Request finished in 0 ms 16:14:28 INFO Server[19726]: ******************** New request *************** 16:14:28 INFO Server[19726]: REMOTE_ADDR: 127.0.0.1 16:14:28 INFO Server[19726]: HTTP_USER_AGENT: curl/7.58.0 16:14:28 INFO Server[19726]: SERVICE:WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/ubuntu/qgis/projects/qgis-server-tutorial-data/world3.qgs 16:14:28 INFO Server[19726]: Using default configuration file path: /usr/lib/cgi-bin/admin.sld 16:14:28 WARNING [19726]: Service WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/ubuntu/qgis/projects/qgis-server-tutorial-data/world3.qgs is not registered 16:14:28 INFO Server[19726]: Request finished in 1 ms 16:15:47 INFO Server[19726]: ******************** New request *************** 16:15:47 INFO Server[19726]: REMOTE_ADDR: 127.0.0.1 16:15:47 INFO Server[19726]: HTTP_USER_AGENT: curl/7.58.0 16:15:47 INFO Server[19726]: Using default configuration file path: /usr/lib/cgi-bin/admin.sld 16:15:47 WARNING [19726]: Service is not registered 16:15:47 INFO Server[19726]: Request finished in 1 ms -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
