-
Notifications
You must be signed in to change notification settings - Fork 21
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
Service non disponible! #41
Comments
found something in /var/log/apache2/qgis-server-access.log (qgis container)... but it is not an error.
idem in /var/log/apache2/access.log (lizmap container) :
|
I have the same issue. My conclusion is that you should rebuild your project with a qgis having the same version as the qgis-server your are using in your containers. On the other hand, i modified the yml file to expose the qgiserver ports on the host. Then tried to query a map from my web browser with a query like: http://my_ip:my_port/cgi-bin/qgis_mapserv.fcgi?REQUEST=GetMap&MAP=a_project.qgs. With the 2.14LTR qgisserver version, i got an answer. With the 2.18, i got an error message (service not available). Therefore, i'm not sure the solution you may follow. I guess there's a problem with the 2.18 qgiserver image ... Hope this help somewhere |
hi, |
Here is the docker-compose.yml file
version: '2'
services:
#---Lizmap & Qgis-server-------------
lizmap:
image: jancelin/docker-lizmap:latest
restart: always
ports:
- 81:80
- 443:443
volumes:
- /home/donnees/source_ar/0_InterfacesWeb/lizmap_data:/home
- /tmp/lizmap_config:/var/www/websig/lizmap/var
- /tmp/lizmap_tmp:/tmp
links:
- qgiserver:qgiserver
##Pensez à changer l'URL WMS dans le back-office de lizmap: http://qgiserver/cgi-bin/qgis_mapserv.fcgi
qgiserver:
image: jancelin/qgis-server:2.14LTR-wfsOutputExtension
restart: always
volumes:
- /home/donnees/source_ar/0_InterfacesWeb/lizmap_data:/home
ports:
- 82:80
expose:
- 80
In this configuration, both containers are fully functionnal
If i switch to the qgis-server :2.18-wfsOutputExtension, lizmap is ok, but qgisserver is not : « service non disponible », and none of the available project are loadable in the browser.
Thanks
|
How does it feel with this query by changing the "my_ip" and "myQgisProject" with the right values: https://my_ip:82/cgi-bin/qgis_mapserv.fcgi?map=/home/myQgisProject.qgs&service=WMS&request=GetCapabilities |
with 2.14LTR qgiserver, It returns a long xml files (layers list, bouding box, project title ...) |
this is a project made with qgis 2.18? |
no. It was made with the Qgis 2.14 |
you can test with a project in 2.18? |
I have exactly the same error message: |
By the way, the 2.18 project i just tested is loading fine in an old 2.14 lizmap+qgisserver container. |
do : docker ps -a |
The container is running
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4d6768091e1d jancelin/docker-lizmap:latest "/bin/sh -c /start.sh" About an hour ago Up About an hour 0.0.0.0:443->443/tcp, 0.0.0.0:81->80/tcp dockerlizmapmaster_lizmap_1
05f10c323d4b jancelin/qgis-server:2.18-wfsOutputExtension "/bin/sh -c /start.sh" About an hour ago Up About an hour 0.0.0.0:82->80/tcp dockerlizmapmaster_qgiserver_1
5
And the mounted volume shows the expected files
docker exec 05f10 sh -c "ls -l /home"
total 52
drwxrwxrwx 2 root root 4096 Sep 29 14:43 AGROCLIM
drwxrwxrwx 2 root root 4096 Nov 28 09:05 BIOSP
drwxr-xr-x 2 12133 root 4096 Sep 19 2014 CAPTE
drwxrwxrwx 2 root root 4096 Feb 2 2016 ECODEV
drwxrwxrwx 7 root root 12288 Jan 25 2017 EMMAH
drwxr-xr-x 2 13007 root 4096 Jan 28 2016 PSH
drwxr-xr-x 2 13008 root 4096 Oct 14 2016 UAPV
drwxrwxrwx 2 root root 12288 Feb 28 09:31 URBANSIMUL
drwxrwxrwx 3 3039 300 4096 Jan 9 08:53 URFM-UEFM
|
you added the subfolders to GetCapabilities? |
Yes.
Otherwise, the project file is not found and i get an error :
<ServerException>Project file error</ServerException>
|
try this image I have to clean up the depots with the new LTR ... |
YES !! The lizmap web client 3.2pre180202 works fine with qgiserver 2.18LTR container, even for older projects (built with a qgis 2.14 ) Thank you for this help Yes you should propose the same tag version for both docker images (lizmap & qgiserver) in order to help us to choose the right ones. |
for me it is worse... when i try http://ip/websig/lizmap/www/admin.php/config, the answer is now :
i removed all volumes and images before trying the new image jancelin/qgis-server:2.18LTR.
docker ps shows that everything should be ok :
but I encounter this error 500. |
a bug with php7.0 .... latest is the master of lizmap. |
thank you for this tip, but even with jancelin/docker-lizmap:3.1.8, i always obtain an error 500.
PHP is now in version 5.6 :
an other suggestion ? thank in advance. |
hey, it is ok now !!!!
but this one :
|
Ok, docker-compose.yml up-to-date |
jancelin/docker-lizmap:latest working, nowback to php5 and debian jessie, just for test of course!!! use the lizmap master plugin for new features: https://github.com/3liz/lizmap-plugin |
Julien
AS i was allready on the latest version of docker-lizmap, i deleted every thing (containers & docker-lizmap image) and simply ran the following command
docker-compose up –d
And my docker-compose.yml contains :
version: '2'
services:
#---Lizmap & Qgis-server-------------
lizmap:
image: jancelin/docker-lizmap:latest
restart: always
ports:
- 81:80
- 443:443
volumes:
- /home/donnees/source_ar/0_InterfacesWeb/lizmap_data:/home
- /tmp/lizmap_config:/var/www/websig/lizmap/var
- /tmp/lizmap_tmp:/tmp
links:
- qgiserver:qgiserver
##Pensez à changer l'URL WMS dans le back-office de lizmap: http://qgiserver/cgi-bin/qgis_mapserv.fcgi
qgiserver:
image: jancelin/qgis-server:2.18LTR
restart: always
volumes:
- /home/donnees/source_ar/0_InterfacesWeb/lizmap_data:/home
ports:
- 82:80
expose:
- 80
And lizmap is not working anymore !
With my web browser, i have this answer : Error 500. A technical error has occured. Sorry for this trouble.
Please, help
Btw, on github, i cannot see the issue #41 anymore.
|
be careful at the URL you use. my experience is that |
Actually, when i try to connect to the lizmap web client, i only enter the address http://<server_ip>:<port_number<http://%3cserver_ip%3e:%3cport_number>>
That’s enough, and apache does the job to complete the URL with : http://<server_ip>:<port_number>/websig/lizmap/www/<http://%3cserver_ip%3e:%3cport_number%3e/websig/lizmap/www/>
Thus i cannot make a mistake when connecting to the container.
My issue was just here to say to Julien that the changes made in the docker-lizmap:latest ( back to php5 and debian jessie ) drives me to a non functionning container …
|
Me too same issue. Nothing works |
I think the problem comes from old jauth.db (from 3.1... ) which defines directory rights. |
yes that's right, by restarting the master container with a new folder /var on docker-compose.yml no problem |
if i have a jauth.db with hundred users, how could i convert it to the new version? |
this issue is quite similar to the #39 : i can not load a map when i click on "voir la carte" (Montpellier).
my conf is :
the error message is "Service non disponible!", and i see nothing in the logs...
from the lizmap container, i can ping qgiserver, the qgis server container (after adding iputils-ping). i also test fcgi with a little test.fcgi script, it is also ok.
i had a similar problem with an other Lizmap instance, without Docker. The problem was solved with the ExecCGI option in the ScriptAlias directive of apache2.
any help would be appreciated.
The text was updated successfully, but these errors were encountered: