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

Export PDF timeout #2948

Open
marie-laure-cen opened this issue Mar 8, 2024 · 10 comments
Open

Export PDF timeout #2948

marie-laure-cen opened this issue Mar 8, 2024 · 10 comments
Assignees
Labels

Comments

@marie-laure-cen
Copy link
Contributor

marie-laure-cen commented Mar 8, 2024

GeoNature 2.13.3 sur serveur debian (11)

J'ai encore un problème 😅 (et je n'ai pas trouvé de rapport de bug équivalent donc je suppose que c'est propre à notre installation).

La totalité des exports pdf est impossible sur notre instance GeoNature (dans métadonnées, suivis, ...) => les chemins pour accéder aux fichiers de configuration des exports ne sont pas accessibles. Pourtant les fichiers sont bien placés dans les bons dossiers...

J'ai testé sur Firefox et sur edge au cas où ce serait un problème de navigateur => même comportement.

pdf_1

Comment reproduire : en cliquant sur n'importe quel bouton "export pdf" (=> propre à notre installation ?). D'une manière générale, j'ai l'impression qu'on a beaucoup de problème de "timeout" sur notre instance...

Les lignes correspondantes dans geonature.log :

[a17282af-5503-4c55-adf2-8d3cb0532927] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/static/css/metadata_pdf.css : URLError: <urlopen error timed out>
[2024-03-08 09:42:00 +0100] [7121] [ERROR] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/static/css/metadata_pdf.css : URLError: <urlopen error timed out>
[2024-03-08 09:42:01 +0100] [1110] [CRITICAL] WORKER TIMEOUT (pid:7121)
[2024-03-08 09:42:01 +0100] [7121] [INFO] Worker exiting (pid: 7121)
[2024-03-08 09:42:02 +0100] [1110] [ERROR] Worker (pid:7121) was sent SIGKILL! Perhaps out of memory?
[2024-03-08 09:42:02 +0100] [8593] [INFO] Booting worker with pid: 8593

Autre exemple d'extrait du log :

[0b4be62b-3531-49c6-ae24-1d076bb8f335] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//fiche_travaux.css : URLError: <urlopen error timed out>
[2024-03-07 15:45:50 +0100] [8725] [ERROR] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//fiche_travaux.css : URLError: <urlopen error timed out>
[4b92f95b-d729-4b67-a464-88cce3049e02] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//fiche_travaux.css : URLError: <urlopen error timed out>
[2024-03-07 15:45:50 +0100] [8724] [ERROR] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//fiche_travaux.css : URLError: <urlopen error timed out>
[0b4be62b-3531-49c6-ae24-1d076bb8f335] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/logo_cen.png" (URLError: <urlopen error timed out>)
[2024-03-07 15:46:00 +0100] [8725] [ERROR] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/logo_cen.png" (URLError: <urlopen error timed out>)
[4b92f95b-d729-4b67-a464-88cce3049e02] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/logo_cen.png" (URLError: <urlopen error timed out>)
[2024-03-07 15:46:00 +0100] [8724] [ERROR] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/logo_cen.png" (URLError: <urlopen error timed out>)
[0b4be62b-3531-49c6-ae24-1d076bb8f335] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/site.png" (URLError: <urlopen error timed out>)
[2024-03-07 15:46:10 +0100] [8725] [ERROR] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/site.png" (URLError: <urlopen error timed out>)
[2024-03-07 15:46:10 +0100] [7541] [CRITICAL] WORKER TIMEOUT (pid:8724)
[2024-03-07 15:46:10 +0100] [7541] [CRITICAL] WORKER TIMEOUT (pid:8725)
[2024-03-07 15:46:10 +0100] [8724] [INFO] Worker exiting (pid: 8724)
[2024-03-07 15:46:10 +0100] [8725] [INFO] Worker exiting (pid: 8725)
[2024-03-07 15:46:11 +0100] [7541] [ERROR] Worker (pid:8724) was sent SIGKILL! Perhaps out of memory?
[2024-03-07 15:46:11 +0100] [9720] [INFO] Booting worker with pid: 9720
[2024-03-07 15:46:11 +0100] [9721] [INFO] Booting worker with pid: 9721
[25ad772b-d5e1-47da-9d3e-cf284e790ffe] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//fiche_travaux.css : URLError: <urlopen error timed out>
[2024-03-07 15:46:21 +0100] [8877] [ERROR] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//fiche_travaux.css : URLError: <urlopen error timed out>
[704645b7-722a-4842-99cd-fa2c79cec9f8] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//fiche_travaux.css : URLError: <urlopen error timed out>
[2024-03-07 15:46:21 +0100] [8823] [ERROR] Failed to load stylesheet at https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//fiche_travaux.css : URLError: <urlopen error timed out>
[25ad772b-d5e1-47da-9d3e-cf284e790ffe] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/logo_cen.png" (URLError: <urlopen error timed out>)
[2024-03-07 15:46:31 +0100] [8877] [ERROR] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/logo_cen.png" (URLError: <urlopen error timed out>)
[704645b7-722a-4842-99cd-fa2c79cec9f8] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/logo_cen.png" (URLError: <urlopen error timed out>)
[2024-03-07 15:46:31 +0100] [8823] [ERROR] Failed to load image at "https://geonature.cenwms.xyz/geonature/api/media/monitorings/travaux/exports/pdf//images/logo_cen.png" (URLError: <urlopen error timed out>)
[2024-03-07 15:46:40 +0100] [7541] [CRITICAL] WORKER TIMEOUT (pid:8823)
[2024-03-07 15:46:40 +0100] [7541] [CRITICAL] WORKER TIMEOUT (pid:8877)
[2024-03-07 15:46:40 +0100] [8877] [INFO] Worker exiting (pid: 8877)
[2024-03-07 15:46:40 +0100] [8823] [INFO] Worker exiting (pid: 8823)
[2024-03-07 15:46:41 +0100] [7541] [ERROR] Worker (pid:8823) was sent SIGKILL! Perhaps out of memory?
[2024-03-07 15:46:41 +0100] [9812] [INFO] Booting worker with pid: 9812
[2024-03-07 15:46:41 +0100] [7541] [ERROR] Worker (pid:8877) was sent SIGKILL! Perhaps out of memory?
[2024-03-07 15:46:41 +0100] [9813] [INFO] Booting worker with pid: 9813
@jacquesfize
Copy link
Contributor

Bonjour @marie-laure-cen,

Il semble que des fichiers soient inaccessibles, ici : https://geonature.cenwms.xyz/geonature/api/static/css/metadata_pdf.css). Il faudrait vérifier quand dans le dossier static/css le fichier metadata_pdf.css.

@jacquesfize jacquesfize self-assigned this Mar 8, 2024
@marie-laure-cen
Copy link
Contributor Author

marie-laure-cen commented Mar 8, 2024

Les fichiers générés à l'installation sont bien dans le dossier (d'ailleurs le lien de votre message pointe bien vers le fichier css).

static

Le fichier css n'a pas été modifié et est tel que ci-dessous (pas de fichier customisé dans le dossier custom/css qui pourrait faire boguer par mauvais surcouchage)... Est-ce que ce pourrait être un bug au niveau des droits d'accès au dossier ? Mais ça ne le ferait que pour les pdf...

@page { 
  size: A4;
  margin: 0px;
}

body {
  font-family: Verdana, sans-serif;
}

p {
  margin: 0;
}

.main-color{
  background-color: #f8af51;
}

a {
  color: black;
}

.bandeau {
  width: 95%;
  float: right;
}

.logo {
  width: 200px;
  position: absolute;
  top: 105px;
  left: 15px;
  transform: translateY(-50%);
}

.label-closing-date {
  font-size: 15px;
}

.taxons {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

div.header {
  display: block;
}

div.titre {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.label-titre {
  font-size: 19px;
  font-weight: bold;
}

.ligne {
  border: none;
}

.ligne-titre {
  margin: 0 auto;
  width: 50%;
  height: 3px;
  margin-top:5px
}

.ligne-ca-initial {
  width: 90%;
  height: 5px;
  margin-left: 10px;
}

.etiquettes {
  display: flex;
  justify-content: space-between;
  margin: 18px 195px 0 195px;
}
.etiquettes-ca {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
}

.etiquette {
  width: 175px;
  height: 75px;
  border: 0.75px solid grey;
  border-radius: 17px;  
  margin-left: 5px;
}



.etiquette-haut {
  display: flex;
  justify-content: space-between;
  height: 52%;
  margin: 12px 12px 0;
}

.etiquette-bas {
  text-align: center;
  margin: 0 6px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
}

.logo-etiquette {
  width: 50px;
  height: 50px;
}

.titre-etiquette {
  font-weight: bold;
  font-size: 12px;
  text-align: right;
  margin: 0;
}

.stat-etiquette {
  font-weight: bold;
  font-size: 20px;
  margin: 0;
}

.description {
  display: flex;
  margin: 20px 15px 0 15px;
  vertical-align: middle;
}

.fiche-descriptive, 
.zone-geographique, 
.repartition-especes {
  text-align: center;
  margin: 5px auto 20px;
  font-size: 14px;
  font-weight: bold;
}

.fiche-descriptive table {
  font-size: 10px;
}

.ca-initial {
  text-align: center;
  margin: 3px auto 5px;
  font-size: 10px;
  font-weight: bold;
}

.right-block {
  width:52%;
  height:600px;
}

.zone {
  height: 40%;
}

.ca {
  height: 20%;
}

.left-block {
  padding-left: 15px;
  font-size: 11px;
  width: 48%;
  border: 0.75px solid grey;
  border-radius: 25px;
}

.information {
  margin-bottom: 20px;
}

.info-titre {
  font-weight: bold;
  margin: 0 0 2px;
}

.info-contenu {
  margin: 0 20px 0;
}

.ca-initial-details {
  display: flex;
  margin: 15px 0 0 25px;
}

.logo-ca-initial {
  height: 30px;
  width: 30px;
}

.ca-initial-info {
  font-size: 10px;
  margin: 2px 0 0 10px;
}

.information {
  margin-bottom: 20px;
}

.info-titre {
  font-weight: bold;
  margin: 0 0 2px;
}

.info-contenu {
  margin: 0 20px 0;
}

.jdd-details {
  display: flex;
  margin: 15px 0 0 25px;
}


.footer {
  width: 95%;
  display: flex;
  justify-content: space-between;
  position: fixed;
  left: 20px;
  bottom: 15px;
  font-size: 12px;
}

.logo-jdd {
  height: 30px;
  width: 30px;
}

.import-block {
  font-size:10px
}

.jdd-info {
  font-size: 10px;
  margin: 2px 0 0 10px;
}

@marie-laure-cen
Copy link
Contributor Author

J'ai fait une vérification entre le fichier présent dans notre dossier static et celui de la releases 2.13.3. Aucune différence entre les deux...

@marie-laure-cen
Copy link
Contributor Author

marie-laure-cen commented Mar 8, 2024

Il semblerait qu'il y ait un problème avec les polyfills. Erreur décrite dans edge comme cela :

polyfills

edge_1
edge_2

Est ce que ça a lien avec ce qui est écrit dans l'audit.md ? "Temps de chargement. Retirer les polyfills pour les ever greens browsers dans le production build"

@jacquesfize
Copy link
Contributor

Est-ce qu'il serait possible de récupérer le fichier de configuration (sans les infos sensibles -> mot de passes) ?

@gildeluermoz
Copy link
Contributor

En revenant à l'erreur initiale, l'url https://geonature.cenwms.xyz/geonature ne répond pas.
L'url a été modifié volontairement pour le ticket ou c'est bien celle qui est dans l'erreur.
C'est le xyz qui m'a fait tiqué

@marie-laure-cen
Copy link
Contributor Author

marie-laure-cen commented Mar 13, 2024

En revenant à l'erreur initiale, l'url https://geonature.cenwms.xyz/geonature ne répond pas. L'url a été modifié volontairement pour le ticket ou c'est bien celle qui est dans l'erreur.C'est le xyz qui m'a fait tiqué

L'url n'a pas été modifiée pour le ticket et l'adresse est bien accessible quand on la met dans la navigateur mais inaccessible pour l'export pdf.

Le fichier toml rabotté des informations sensibles :

############################################
# GeoNature backend global configuration file
#############################################

# Database
SQLALCHEMY_DATABASE_URI =
URL_APPLICATION = 'https://geonature.cenwms.xyz/geonature'
API_ENDPOINT = 'https://geonature.cenwms.xyz/geonature/api'
API_TAXHUB = 'https://geonature.cenwms.xyz/taxhub/api'

# Application

# Nom de l'application dans la page d'accueil.
appName = "GeoNature CEN Normandie"

# Remplacer par une clé alétoire complexe
SECRET_KEY =

# Langue principale par défaut
DEFAULT_LANGUAGE='fr'

#######################################################################################
###### Si vous souhaitez surcoucher certains paramètres,
###### compléter les sections ci-dessous à partir du modèle default_config.toml.example
#######################################################################################

# Configuration liée à la page d’accueil
[HOME]
TITLE = "Observations naturalistes du CEN Normandie"
INTRODUCTION = """
<p>Bienvenue sur l'application GeoNature de saisie de données du Conservatoire d'Espaces Naturels (CEN) de Normandie. Elle permet :
	<ul>
		<li>de saisir des observations (OccTax),</li>
		<li>de saisir des habitats (OccHab),</li>
		<li>d'importer des données (Imports),</li>
		<li>de rechercher, filtrer, agréger et exporter des données (Métadonnées, Synthèse, Tableau de bord et Exports),</li>
		<li>de vérifier et valider les observations (validation).</li>
	</ul>
</p>
<p>
	GeoNature est compatible avec le <b>standard de données du SINP</b></>. Son utilisation a pour objectif de faciliter le partage des données du CEN avec ses partenaires.
</p>
<p>
	Les données SICEN ont été intégrées jusqu'en décembre 2023 (données présentes en février 2024 dans SICEN).
</p>
<p>
	La documentation officielle est accessible via l'icône "feuillet" en haut à droite de la page ou via le <a href="https://docs.geonature.fr/user-manual.html">lien vers le manuel utilisateur</a>.
	Un tutoriel utilisateur est disponible sur le wiki du CEN.</li>
	En cas de bug, ouvrez un ticket sur GLPI.
</p>

"""

FOOTER = ""

# Configuration liée aux ID de BDD
[BDD]

# Configuration générale du frontend
[FRONTEND]

    #Affiche les emails des observateurs dans les modules Synthese et Validation
    DISPLAY_EMAIL_INFO_OBS = false

# Configuration de la Synthese
[SYNTHESE]

    AREA_FILTERS = [
        { label = "Sites catégorie 1", type_code = "SCEN" },
		{ label = "Sites catégorie 2", type_code = "SCEN2" },
		{ label = "Communes", type_code = "COM" },
        { label = "EPCI - C.Communes", type_code = "CC" },
        { label = "EPCI - C.Agglomération", type_code = "CA" },
		{ label = "EPCI - C.Urbaines", type_code = "CU" },
		{ label = "EPCI - Métropoles", type_code = "MET" },
		{ label = "Départements", type_code = "DEP" },
        { label = "RNR", type_code = "RNR" },
        { label = "RNN", type_code = "RNN" }
    ]
	
	# Formats d'export disponibles ["csv", "geojson", "shapefile", "gpkg"]
    EXPORT_FORMAT = ["csv", "geojson", "shapefile", "gpkg"]
	
# Module métadonnées
[METADATA]
    # Nombre de cadre d'acquisition affiché sur la liste
    NB_AF_DISPLAYED = 100

    # Liste des types de zonage filtrables dans les métadonnées
    METADATA_AREA_FILTERS = [
        { "label" = "Communes", "type_code"= "COM" },
        { label = "EPCI - C.Communes", type_code = "CC" },
        { label = "EPCI - C.Agglomération", type_code = "CA" },
		{ label = "EPCI - C.Urbaines", type_code = "CU" },
		{ label = "EPCI - Métropole", type_code = "MET" },
		{ "label" = "Sites de catégorie 1", "type_code"= "SCEN" },
		{ "label" = "Sites de catégorie 2", "type_code"= "SCEN2" },
		{ "label" = "Anciens sites du CEN Normandie", "type_code"= "ASCEN" },
        { "label" = "Départements", "type_code"= "DEP" }
    ]
	
# Configuration cartographique
[MAPCONFIG]

    # Coordonnées par défaut du centre de la carte à afficher
    # Attention : les coordonnées sont au format [Y, X]
    # Cf Leaflet configuration (https://leafletjs.com/reference-1.4.0.html#latlng-l-latlng)
	# Coordonnées centrées sur la Normandie
    CENTER = [49.12118016573089, 0.10697812360]

    # Zoom par défaut
	# Modifié pour zoomé sur la Normandie
    ZOOM_LEVEL = 7
	
	# Restreindre la recherche OpenStreetMap (sur la carte dans l'encart "Rechercher un lieu")
    # à certains pays. Les pays doivent être au format ISO_3166-1 :
    # https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 et séparés par une virgule.
    # Exemple : OSM_RESTRICT_COUNTRY_CODES = "fr,es,be,ch" (Restreint à France, Espagne, Belgique
    # et Suisse)
    # Laisser à null pour n'avoir aucune restriction
	OSM_RESTRICT_COUNTRY_CODES = "fr"

# Liste des fonds de carte proposés sur les cartes de GeoNature
# chaque section [[MAPCONFIG.BASEMAP]] définit un fond de carte
# l'option service est obligatoire uniquement pour les wms
# l'ensemble des paramètre WMS peuvent être passé dans cette section

[[MAPCONFIG.BASEMAP]]
    name = "IGN Plan v2"
    url = "https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&FORMAT=image/png"
    attribution = "&copy IGN"
[[MAPCONFIG.BASEMAP]]
    name = "OpenstreetMap"
    url = "//{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png"
    attribution = "OSM contributors"
[[MAPCONFIG.BASEMAP]]
    name = "IGN Ortho"
    url = "https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&LAYER=HR.ORTHOIMAGERY.ORTHOPHOTOS&FORMAT=image/jpeg"
    attribution = "&copy IGN"
[[MAPCONFIG.BASEMAP]]
    name = "IGN Cadastre"
    url = "https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&LAYER=CADASTRALPARCELS.PARCELS&FORMAT=image/png"
    attribution = "&copy IGN"
[[MAPCONFIG.BASEMAP]]
    name = "IGN RPG"
    url = "https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&LAYER=LANDUSE.AGRICULTURE.LATEST&FORMAT=image/png"
    attribution = "&copy IGN"

# Add base layers on maps (from ref_geo, WMS, WFS, GeoJSON...)
[[MAPCONFIG.REF_LAYERS]]
    code = 'SCEN'
    label = 'Site de catégorie 1 du CEN Normandie'
    type = 'area'
    activate = true
    style = {color = 'DarkRed', fill = true, fillOpacity = '0.5', weight = 2 }
	params = {limit = 5000}
[[MAPCONFIG.REF_LAYERS]]
    code = 'SCEN2'
    label = 'Site de catégorie 2 du CEN Normandie'
    type = 'area'
    activate = true
    style = {color = 'Orange', fill = true, fillOpacity = '0.5', weight = 2 }
	params = {limit = 5000}
[[MAPCONFIG.REF_LAYERS]]
    code = 'ASCEN'
    label = 'Ancien site du CEN Normandie'
    type = 'area'
    activate = false
    style = {color = 'Grey', fill = true, fillOpacity = '0.5', weight = 2 }
	params = {limit = 5000}
[[MAPCONFIG.REF_LAYERS]]
    code = 'COM'
    label = 'Limite de commune'
    type = 'area'
    activate = false
    style = { color = 'SlateGray', fill = false, fillOpacity = '0.0',  weight = 0.8 }
	params = {limit = 5000}
[[MAPCONFIG.REF_LAYERS]]
    code = 'DEP'
    label = 'Limite de département'
    type = 'area'
    activate = true
    style = { color = 'DarkSlateGray', fill = false, fillOpacity = '0.0', weight = 1 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'ZNIEFF1'
    label = 'ZNIEFF 1'
    type = 'area'
    activate = false
    style = { color = 'DarkGreen', fill = true, fillOpacity = '0.8', weight = 0.5 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'ZNIEFF2'
    label = 'ZNIEFF 2'
    type = 'area'
    activate = false
    style = { color = 'LimeGreen', fill = true, fillOpacity = '0.8', weight = 0.5 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'APB'
    label = 'Aire de protection de Biotope'
    type = 'area'
    activate = false
    style = { color = 'Orange', fill = true, fillOpacity = '0.8', weight = 0.5 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'RNN'
    label = 'Réserve naturelle nationale'
    type = 'area'
    activate = false
    style = { color = 'DarkRed', fill = true, fillOpacity = '0.8', weight = 0.5 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'RNR'
    label = 'Réserve naturelle régionale'
    type = 'area'
    activate = false
    style = { color = 'Red', fill = true, fillOpacity = '0.8', weight = 0.5 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'ZPS'
    label = 'NATURA 2000 ZPS'
    type = 'area'
    activate = false
    style = { color = 'SteelBlue', fill = true, fillOpacity = '0.8', weight = 0.5 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'SIC'
    label = 'NATURA 2000 SIC'
    type = 'area'
    activate = false
    style = { color = 'CornflowerBlue', fill = true, fillOpacity = '0.8', weight = 0.5 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'ZSC'
    label = 'NATURA 2000 ZSC'
    type = 'area'
    activate = false
    style = { color = 'MediumBlue', fill = true, fillOpacity = '0.8', weight = 0.5 }
[[MAPCONFIG.REF_LAYERS]]
    code = 'ZICO'
    label = 'NATURA 2000 ZICO'
    type = 'area'
    activate = false
    style = { color = 'DarkBlue', fill = true, fillOpacity = '0.8', weight = 0.5 }


# Configuration médias
[MEDIAS]
    # Taille maximale pour l'upload des médias
    MEDIAS_SIZE_MAX = 5000

[ALEMBIC]
VERSION_LOCATIONS = '/home/geoa/usershub/app/migrations/versions/'

@gildeluermoz
Copy link
Contributor

Je ne sais pas trop ce qui peut expliquer ça mais pour moi l'url https://geonature.cenwms.xyz/geonature me retourne

La connexion a échoué

Une erreur est survenue pendant une connexion à geonature.cenwms.xyz. 

Est-ce que qq'un d'autre peut tester ? Je suis sur une connexion internet classique. Pas de firewall ni dans un réseau protégé.
Est-ce qu'apache ou le serveur filtrerait les connexions entrantes ?
Est-ce que tu peux tester cette url depuis un tel portable par exemple ?

@camillemonchicourt
Copy link
Member

Je n'accède pas non plus à https://geonature.cenwms.xyz/geonature

@marie-laure-cen
Copy link
Contributor Author

En effet, en-dehors de notre réseau on ne peut pas accéder à l'url... j'avais oublié ce détail. Cependant, le timeout sur l'export pdf est également présent sur une instance test que nous avons mis en place pour un atelier étudiant et dont les ports ont été ouverts vers l'extérieur (l'api est hors ligne aujourd'hui). Je ne vous embête pas plus avec ce problème, je pense que ça vient d'un paramètre de notre serveur. Si je trouve la config qui ne fonctionne pas, je vous la mettrai ici.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants