qwc-services / qwc-docker

Docker containers for qwc-services
MIT License
46 stars 36 forks source link

Internal Server Error #43

Closed demtotal closed 2 years ago

demtotal commented 2 years ago

Hello,

Does anyone know what could be the cause of this problem (see image below) issue111

Thanks in advance

manisandro commented 2 years ago

have a look at the docker-compose logs

demtotal commented 2 years ago

I checked them and it all seems normal to me except the api-gateway: there's a "cannot modify /etc/nginx/conf.d/default.conf" issue222

pka commented 2 years ago

The "Internal Server Error" is coming from QGIS Server. If you don't get a meaningful error message from QGIS server you have to narrow down the problem by removing layers from your project.

demtotal commented 2 years ago

Qgis server container shows no errors in the logs and the project is really simple with one layer well configured. Could it be a problem of version between the different containers ? Another (random) question: do i need to have postgresql installed locally on my host machine or the postgis docker container is sufficient? (because i can't execute these two commands psql "service=qwc_configdb" # Config DB psql "service=qwc_geodb" # Demo data DB ) issue333

Thank you.

demtotal commented 2 years ago

I haven't yet found a solution to this weird problem but when i tested on my personnal windows laptop it worked well, maybe it's a problem in the docker installation on centos... Anyway thanks for your help i'm closing this issue.

demtotal commented 2 years ago

Greetings, @pka am i the only one who is facing this issue when repulling the images or is there some kind of error on the image? and when i try to build from qgis-server/Dockerfile i get an error in the middle of the installation (qgis-providers, python3-qgis, qgis-server), what cani do to solve this ? (i tried the two tags v1.0.0 and v2021.12.20) Sorry for disturbing you, Thanks in advance issue444 n

manisandro commented 2 years ago

Can you post the full logs? Looks like a problem with the qgis package in the repos.

demtotal commented 2 years ago

So, right now i'm on the tag v2021.12.20, on the docker-compose.yml file i changed qwc-qgis-server to do the build using the file qgis-server/Dockerfile (because i'm having an Internal Server Error 500 when using the image 'sourcepole/qwc-qgis-server:3.16-plugins', here's the service definition:

  qwc-qgis-server:
    #image: sourcepole/qwc-qgis-server:3.16-plugins
    build: 
      context: ./
      dockerfile: qgis-server/Dockerfile
    ports:
      - "127.0.0.1:8001:80"
    volumes:
      - ./volumes/qgs-resources:/data:ro
      - ./volumes/geodata:/geodata:ro
      - ./pg_service.conf:/etc/postgresql-common/pg_service.conf:ro

On the qgis-server/Dockerfile i added the prefix 'qgis-server/' near every ADD to point to the context files So all executes well until the command RUN apt-get update && apt-get install -y qgis-server on line 33 here i get errors Here's a sample of the error that i could see on the logs: issue_logs_1 issue_logs_2

pka commented 2 years ago

Instead of building your own QGIS Server image, you could try an other version. See https://hub.docker.com/r/sourcepole/qwc-qgis-server/tags for the available images.

demtotal commented 2 years ago

Yes indeed the image sourcepole/qwc-qgis-server:3.16.13 works well for me! Thanks for your assistance! Have a good day.