[QGIS-it-user] qgis server + lizmap con HTTPS

Buongiorno,
ho installato un server Ubuntu (18.04) e Lizmap client.
Configurato per l'accesso tramite HTTP (porta 80), funziona, mentre che se
lo imposto come HTTPS (porta 443), riesco sempre ad accedere al pannello
principale, ma come chiedo di caricare una mappa, questa non si carica.
Messaggio: Device non disponibile.
Il log di Lizmap indica:

2019-10-25 14:37:48 192.168.1.10 warning 2019-10-25 14:37:48 [2]
SQLite3::query(): Unable to prepare statement: 1, no such table:
lizmap_search
/var/www/map/lib/jelix/plugins/db/sqlite3/sqlite3.dbconnection.php 112

2019-10-25 14:37:48 192.168.1.10 warning 2019-10-25 14:37:48 [2]
file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate
verify failed
/var/www/map/lizmap/modules/lizmap/classes/lizmapProxy.class.php 236

qualche idea come risolvere questo problema ?
Grazie
F.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Risolto!
Il problema era dato dal fatto che il traffico HTTP veniva reindirizzato
tutto su HTTPS, anche quello "locale", per cui Lizmap doveva accedere al
QGIS server (sulla stessa macchina) attraverso HTTPS.
Modificato la configurazione Apache, permettendo http per il traffico
interno, ora funziona .

Buona giornata a tutti
F.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Ciao,
ho il tuo stesso problema con
qgis server + lizmap
certificato generato con Let's Encrypt

Quando il sito è configurato con HTTP, tutto ok
Se abilito l'SSL, da Lizmap non mi vengono visualizzati i layer sulla mappa.
Potresti dare maggiori dettagli sulla tua soluzione?
In che modo hai configurato http per il traffico interno?

Grazie!
N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Ciao,
volentieri provo a darti il mio aiuto.

Come indicato nel Thread sul forum, Il problema era dato dal fatto che il traffico HTTP veniva reindirizzato tutto su HTTPS, anche quello "locale", per cui Lizmap doveva accedere al
QGIS server (sulla stessa macchina) attraverso HTTPS. Quindi ho modificato la configurazione Apache, permettendo http per il traffico interno.

Nello specifico, ho editato il file di configurazione apache (nel mio caso: ./etc/apache2/sites-available/000-default.conf

Duplicando le impostazioni necessarie per QGIS server/Lizmap, per una virtualhost che risponde alla porta 80 (http).

Di seguito trascrivo copia del mio file 000-default.conf.
Prova, sei hai problemi libera di ricontattarmi

F.

<VirtualHost *:80>
  # PARTE DI CONFIGURAZIONE APACHE PER QGIS+LIZMAP, CHE RISPONDE ALLA PORTA 80 (HTTP)
  # RAGGIUNGIBILE SOLO DA INTERNO

  ServerName xxx.site.ch

  DocumentRoot /var/www/html

  FcgidIOTimeout 120

  # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  # error, crit, alert, emerg.
  # It is also possible to configure the loglevel for particular
  # modules, e.g.
  #LogLevel info ssl:warn

  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined

  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  <Directory "/usr/lib/cgi-bin/">
    AllowOverride All
    Options +ExecCGI -MultiViews +FollowSymLinks
    AddHandler fcgid-script .fcgi
    Require all granted
  </Directory>

  Alias /map/ /var/www/map/
  
  <Directory "/var/www/map/">
      Options -Indexes +FollowSymLinks +ExecCGI
      AllowOverride All
      Require all granted
  </Directory>
</VirtualHost>

<VirtualHost *:443>
  # PARTE DI CONFIGURAZIONE APACHE PER QGIS+LIZMAP, CHE RISPONDE ALLA PORTA 443 (HTTPS)
  # RAGGIUNGIBILE ANCHE DA ESTERNO TRAMITE REGOLE FIREWALL
  
  ServerAdmin webmaster@localhost
  ServerName xxx.site.ch

  DocumentRoot /var/www/html

  FcgidIOTimeout 120

  # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  # error, crit, alert, emerg.
  # It is also possible to configure the loglevel for particular
  # modules, e.g.
  #LogLevel info ssl:warn

  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined

  # For most configuration files from conf-available/, which are
  # enabled or disabled at a global level, it is possible to
  # include a line for only one particular virtual host. For example the
  # following line enables the CGI configuration for this host only
  # after it has been globally disabled with "a2disconf".
  #Include conf-available/serve-cgi-bin.conf

  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  <Directory "/usr/lib/cgi-bin/">
    AllowOverride All
    Options +ExecCGI -MultiViews +FollowSymLinks
    AddHandler fcgid-script .fcgi
    Require all granted
  </Directory>

  Alias /map/ /var/www/map/
  <Directory "/var/www/map/">
      Options -Indexes +FollowSymLinks +ExecCGI
      AllowOverride All
      Require all granted
  </Directory>

  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/certificate.crt
  SSLCertificateKeyFile /etc/apache2/ssl/private.key
  ##SSLCACertificateFile /etc/apache2/ca-bundle.crt

</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

-----Messaggio originale-----
Da: QGIS-it-user <qgis-it-user-bounces@lists.osgeo.org> Per conto di nadiaspit
Inviato: martedì, 7 gennaio 2020 12:03
A: qgis-it-user@lists.osgeo.org
Oggetto: Re: [QGIS-it-user] qgis server + lizmap con HTTPS

Ciao,
ho il tuo stesso problema con
qgis server + lizmap
certificato generato con Let's Encrypt

Quando il sito è configurato con HTTP, tutto ok Se abilito l'SSL, da Lizmap non mi vengono visualizzati i layer sulla mappa.
Potresti dare maggiori dettagli sulla tua soluzione?
In che modo hai configurato http per il traffico interno?

Grazie!
N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

Grazie! Funziona!
Confermi che nella configurazione di Lizmap:
"Indirizzo (URL) del server WMS"
deve essere impostato a
"http://localhost/cgi-bin/qgis_mapserv.fcgi&quot;

cioè all'indirizzo locale?
Con questa configurazione, è tutto OK anche con SSL abilitato per il VHOST
che serve Lizmap.
Grazie ancora.
N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Si esatto, io ho messo
"http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi&quot;
Che corrisponde al tuo di fatto.

Per curiosità, che versione di QGIS server e di Lizmap usi?

Io attualmente ho QGIS server 3.8.3 e Lizmap 3.4pre.190808

Grazie
F.

-----Messaggio originale-----
Da: QGIS-it-user <qgis-it-user-bounces@lists.osgeo.org> Per conto di nadiaspit
Inviato: martedì, 7 gennaio 2020 14:47
A: qgis-it-user@lists.osgeo.org
Oggetto: Re: [QGIS-it-user] R: qgis server + lizmap con HTTPS

Grazie! Funziona!
Confermi che nella configurazione di Lizmap:
"Indirizzo (URL) del server WMS"
deve essere impostato a
"http://localhost/cgi-bin/qgis_mapserv.fcgi&quot;

cioè all'indirizzo locale?
Con questa configurazione, è tutto OK anche con SSL abilitato per il VHOST che serve Lizmap.
Grazie ancora.
N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

Grazie della risposta!

Al momento ho installato la versione 2.18 di qgis server con lizmap 3.2.3.

Avevo iniziato con qgis server 3.10 e Lizmap 3.3.3 ma a causa di questo
problema e di alcuni altri messaggi del log che non mi erano chiari, ho
preferito tornare indietro.
A breve proverò ad installare Qgis server 3.4 che al momento è la stable
release.

N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Il 07/01/20 15:25, nadiaspit ha scritto:

Grazie della risposta!

Al momento ho installato la versione 2.18 di qgis server con lizmap 3.2.3.

Avevo iniziato con qgis server 3.10 e Lizmap 3.3.3 ma a causa di questo
problema e di alcuni altri messaggi del log che non mi erano chiari, ho
preferito tornare indietro.

non conviene mei tornare indietro; la 2.18 à EOL
saluti

--
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/

Chiedevo appunto perché non vorrei fare l'update alla 3.10.1 e poi avere problemi.
L'ideale sarebbe avere un ambiente di test, tempo permettendo eventualmente potrei provare, lavorando con macchine virtuali, un eventuale ripristino è più semplice.
Per il momento comunque attendo.

Saluti
F.

-----Messaggio originale-----
Da: QGIS-it-user <qgis-it-user-bounces@lists.osgeo.org> Per conto di nadiaspit
Inviato: martedì, 7 gennaio 2020 15:26
A: qgis-it-user@lists.osgeo.org
Oggetto: Re: [QGIS-it-user] R: R: qgis server + lizmap con HTTPS

Grazie della risposta!

Al momento ho installato la versione 2.18 di qgis server con lizmap 3.2.3.

Avevo iniziato con qgis server 3.10 e Lizmap 3.3.3 ma a causa di questo problema e di alcuni altri messaggi del log che non mi erano chiari, ho preferito tornare indietro.
A breve proverò ad installare Qgis server 3.4 che al momento è la stable release.

N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

conviene mantenersi sulla LTR, quindi per ora la 3.4
puoi lavorare con i dockers, se preferisci

Il 07/01/20 15:39, Fabio Pifferini ha scritto:

Chiedevo appunto perché non vorrei fare l'update alla 3.10.1 e poi avere problemi.
L'ideale sarebbe avere un ambiente di test, tempo permettendo eventualmente potrei provare, lavorando con macchine virtuali, un eventuale ripristino è più semplice.
Per il momento comunque attendo.

Saluti
F.

-----Messaggio originale-----
Da: QGIS-it-user <qgis-it-user-bounces@lists.osgeo.org> Per conto di nadiaspit
Inviato: martedì, 7 gennaio 2020 15:26
A: qgis-it-user@lists.osgeo.org
Oggetto: Re: [QGIS-it-user] R: R: qgis server + lizmap con HTTPS

Grazie della risposta!

Al momento ho installato la versione 2.18 di qgis server con lizmap 3.2.3.

Avevo iniziato con qgis server 3.10 e Lizmap 3.3.3 ma a causa di questo problema e di alcuni altri messaggi del log che non mi erano chiari, ho preferito tornare indietro.
A breve proverò ad installare Qgis server 3.4 che al momento è la stable release.

N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

--
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/

Grazie, attualmente ho già la 3.8 e sembra funzionare.
Con i dockers non ho molta familiarità, ho fatto qualche prova in generale, ma non mi ci trovavo.
Attualmente ho tutto il sistema virtualizzato su ESX.
F.

-----Messaggio originale-----
Da: QGIS-it-user <qgis-it-user-bounces@lists.osgeo.org> Per conto di Paolo Cavallini
Inviato: martedì, 7 gennaio 2020 15:42
A: qgis-it-user@lists.osgeo.org
Oggetto: Re: [QGIS-it-user] R: R: R: qgis server + lizmap con HTTPS

conviene mantenersi sulla LTR, quindi per ora la 3.4 puoi lavorare con i dockers, se preferisci

Il 07/01/20 15:39, Fabio Pifferini ha scritto:

Chiedevo appunto perché non vorrei fare l'update alla 3.10.1 e poi avere problemi.
L'ideale sarebbe avere un ambiente di test, tempo permettendo eventualmente potrei provare, lavorando con macchine virtuali, un eventuale ripristino è più semplice.
Per il momento comunque attendo.

Saluti
F.

-----Messaggio originale-----
Da: QGIS-it-user <qgis-it-user-bounces@lists.osgeo.org> Per conto di
nadiaspit
Inviato: martedì, 7 gennaio 2020 15:26
A: qgis-it-user@lists.osgeo.org
Oggetto: Re: [QGIS-it-user] R: R: qgis server + lizmap con HTTPS

Grazie della risposta!

Al momento ho installato la versione 2.18 di qgis server con lizmap 3.2.3.

Avevo iniziato con qgis server 3.10 e Lizmap 3.3.3 ma a causa di questo problema e di alcuni altri messaggi del log che non mi erano chiari, ho preferito tornare indietro.
A breve proverò ad installare Qgis server 3.4 che al momento è la stable release.

N.

--
Sent from:
http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

--
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

3.8 è sconsigliata: meglio usare la LTR corrente, o al limite quella
prossima ventura (3.10)

Il 07/01/20 15:46, Fabio Pifferini ha scritto:

Grazie, attualmente ho già la 3.8 e sembra funzionare.
Con i dockers non ho molta familiarità, ho fatto qualche prova in generale, ma non mi ci trovavo.
Attualmente ho tutto il sistema virtualizzato su ESX.

--
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/

Salve Paolo,

a proposito del tuo messaggio, sono ripartita subito con l'installazione su
una nuova macchina Ubuntu 18.04.
Installato apache2 e relative dipendenze, installato php, tutto come da
precedente server.
Aggiorno quindi repository per avere a disposizione la versione bionic,
passo quindi all'installazione di qgis server come riportato qui:
https://docs.qgis.org/3.4/it/docs/training_manual/qgis_server/install.html

Come primo test lancio:
/usr/lib/cgi-bin/qgis_mapserv.fcgi
ed ottengo:

Application path not initialized
Application path not initialized
Application path not initialized
QFSFileEngine::open: No file name specified
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.
ERROR: Auth db directory path could not be created
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/libwfs3.so"
"Loading native module /usr/lib/qgis/server/libwms.so"
"Loading native module /usr/lib/qgis/server/libwmts.so"
QFileInfo::absolutePath: Constructed with empty filename
QFSFileEngine::open: No file name specified
Content-Length: 54
Content-Type: text/xml; charset=utf-8
Server: Qgis FCGI server - QGis version 3.10.1-A Coruña
Status: 500

<ServerException>Project file error</ServerException>
ERROR: Opening of authentication db FAILED

Non è l'output atteso!
Dove posso trovare informazioni per risolvere questi primi problemi?
Grazie
N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Hai provato una richiesta GetCapablities?

Il 07/01/20 17:34, nadiaspit ha scritto:

Salve Paolo,

a proposito del tuo messaggio, sono ripartita subito con l'installazione su
una nuova macchina Ubuntu 18.04.
Installato apache2 e relative dipendenze, installato php, tutto come da
precedente server.
Aggiorno quindi repository per avere a disposizione la versione bionic,
passo quindi all'installazione di qgis server come riportato qui:
https://docs.qgis.org/3.4/it/docs/training_manual/qgis_server/install.html

Come primo test lancio:
/usr/lib/cgi-bin/qgis_mapserv.fcgi
ed ottengo:

Application path not initialized
Application path not initialized
Application path not initialized
QFSFileEngine::open: No file name specified
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.
ERROR: Auth db directory path could not be created
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/libwfs3.so"
"Loading native module /usr/lib/qgis/server/libwms.so"
"Loading native module /usr/lib/qgis/server/libwmts.so"
QFileInfo::absolutePath: Constructed with empty filename
QFSFileEngine::open: No file name specified
Content-Length: 54
Content-Type: text/xml; charset=utf-8
Server: Qgis FCGI server - QGis version 3.10.1-A Coruña
Status: 500

<ServerException>Project file error</ServerException>
ERROR: Opening of authentication db FAILED

Non è l'output atteso!
Dove posso trovare informazioni per risolvere questi primi problemi?
Grazie
N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

--
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/

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

[1] 26487
[2] 26488
ubuntu@ip-10-0-0-231:~$ <!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML
2.0//EN&quot;>
<html><head>
<title>500 Internal Server Error</title>
</head><body>
Internal Server Error

<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
webmaster@localhost to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at localhost Port 80</address>
</body></html>

[1]- Done curl
http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS
[2]+ Done VERSION=1.3.0

Anche qui errore 500

N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

quindi qgis-server non è installato correttamente.
hai abilitato cgi?

Il 07/01/20 18:00, nadiaspit ha scritto:

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

[1] 26487
[2] 26488
ubuntu@ip-10-0-0-231:~$ <!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML
2.0//EN&quot;>
<html><head>
<title>500 Internal Server Error</title>
</head><body>
Internal Server Error

<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
webmaster@localhost to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at localhost Port 80</address>
</body></html>

[1]- Done curl
http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS
[2]+ Done VERSION=1.3.0

Anche qui errore 500

N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
_______________________________________________
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user

--
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/

Si, avevo abilitato fcgi.

Nonostante gli errori, andando avanti con l'installazione, ottengo risposta
alla GetCapabilities

<http://osgeo-org.1560.x6.nabble.com/file/t385858/Annotation_2020-01-07_183343.jpg&gt;

Questo è il log di qgis:

18:32:44 INFO Server[10529]: Qgis Server Settings:
18:32:44 INFO Server[10529]: - QGIS_OPTIONS_PATH / '' (Override the
default path for user configuration): '' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_PARALLEL_RENDERING /
'/qgis/parallel_rendering' (Activate/Deactivate parallel rendering for WMS
getMap request): 'false' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_MAX_THREADS /
'/qgis/max_threads' (Number of threads to use when parallel rendering is
activated): '-1' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_LOG_LEVEL / '' (Log level): '0'
(read from ENVIRONMENT_VARIABLE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_LOG_FILE / '' (Log file):
'/var/log/qgis/qgisserver.log' (read from ENVIRONMENT_VARIABLE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_LOG_STDERR / ''
(Activate/Deactivate logging to stderr): 'false' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_PROJECT_FILE / '' (QGIS project file):
'' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - MAX_CACHE_LAYERS / '' (Specify the maximum
number of cached layers): '100' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_CACHE_DIRECTORY /
'/cache/directory' (Specify the cache directory):
'//.local/share/QGIS/QGIS3/profiles/default/cache' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_CACHE_SIZE / '/cache/size'
(Specify the cache size): '52428800' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_SHOW_GROUP_SEPARATOR /
'/locale/showGroupSeparator' (Show group (thousands) separator): 'false'
(read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE /
'/locale/userLocale' (Override system locale): '' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_WMS_MAX_HEIGHT /
'/qgis/max_wms_height' (Maximum height for a WMS request. The lower one of
this and the project configuration is used.): '-1' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_WMS_MAX_WIDTH /
'/qgis/max_wms_width' (Maximum width for a WMS request. The most
conservative between this and the project one is used): '-1' (read from
DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_API_RESOURCES_DIRECTORY /
'/qgis/server_api_resources_directory' (Base directory where HTML templates
and static assets (e.g. images, js and css files) are searched for):
'/usr/share/qgis/resources/server/api' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: - QGIS_SERVER_API_WFS3_MAX_LIMIT /
'/qgis/server_api_wfs3_max_limit' (Maximum value for "limit" in a features
request, defaults to 10000): '10000' (read from DEFAULT_VALUE)
18:32:44 INFO Server[10529]: Ini file used to initialize settings:
/.local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini
18:32:44 INFO Server[10529]: cacheDirectory:
/.local/share/QGIS/QGIS3/profiles/default/cache/
18:32:44 INFO Server[10529]: maximumCacheSize: 52428800
18:32:44 INFO Server[10529]: Prefix PATH: /usr
18:32:44 INFO Server[10529]: Plugin PATH: /usr/lib/qgis/plugins
18:32:44 INFO Server[10529]: PkgData PATH: /usr/share/qgis
18:32:44 INFO Server[10529]: User DB PATH:
//.local/share/QGIS/QGIS3/profiles/default/qgis.db
18:32:44 INFO Server[10529]: Auth DB PATH:
/home/qgis/qgisserverdb/qgis-auth.db
18:32:44 INFO Server[10529]: SVG PATHS:
/usr/share/qgis/svg/://.local/share/QGIS/QGIS3/profiles/default/svg/

Nonostante gli errori iniziali si può concludere che qgis-server funziona
correttamente?

Grazie
N.

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Il 07/01/20 18:38, nadiaspit ha scritto:

Nonostante gli errori iniziali si può concludere che qgis-server funziona
correttamente?

se non risponde alle GetCapabilities, no

--
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/

Mi sono spiegata male.
Concludendo l'installazione, cioè andando avanti a configurare il VHOST,
etc. ottengo una risposta al GetCapabilities, come da immagine allegata al
precedente post.
Tuttavia lanciando a riga di comando
/usr/lib/cgi-bin/qgis_mapserv.fcgi

ottengo questo:

/usr/lib/cgi-bin/qgis_mapserv.fcgi
Application path not initialized
Application path not initialized
Application path not initialized
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.
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/libwfs3.so"
"Loading native module /usr/lib/qgis/server/libwms.so"
"Loading native module /usr/lib/qgis/server/libwmts.so"
QFileInfo::absolutePath: Constructed with empty filename
QFSFileEngine::open: No file name specified
Content-Length: 54
Content-Type: text/xml; charset=utf-8
Server: Qgis FCGI server - QGis version 3.10.1-A Coruña
Status: 500

<ServerException>Project file error</ServerException>

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Il 07/01/20 18:53, nadiaspit ha scritto:

Mi sono spiegata male.
Concludendo l'installazione, cioè andando avanti a configurare il VHOST,
etc. ottengo una risposta al GetCapabilities, come da immagine allegata al
precedente post.

non avevo visto l'immagine.
allora tutto bene, qual è il problema?
--
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/