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

Erreur au démarrage du service #561

Closed
dba-sig-sfepm opened this issue May 17, 2024 · 2 comments
Closed

Erreur au démarrage du service #561

dba-sig-sfepm opened this issue May 17, 2024 · 2 comments

Comments

@dba-sig-sfepm
Copy link

Bonjour, sur un serveur tout neuf VPS Debian 12, j'ai fait une installation complète de geonature qui est opérationnelle (après correction des droits du home user comme documenté). En suivant j'ai fait l'install de geonature-atlas et je tombe sur une page 503 Service Unavailable. Voici les erreurs qui apparaissent :

  • Dans le log geonature-atlas.log :
      AttributeError: 'Babel' object has no attribute 'localeselector' 
      [2024-05-17 13:09:27 +0000] [51846] [INFO] Worker exiting (pid: 51846) 
      [2024-05-17 13:09:27 +0000] [51847] [ERROR] Exception in worker process 
  • Dans systemctl status geonature-atlas :
        geonature-atlas.service - GeoNature Atlas 
           Loaded: loaded (/etc/systemd/system/geonature-atlas.service; enabled; preset: enabled) 
           Active: failed (Result: exit-code) since Fri 2024-05-17 13:09:27 UTC; 16min ago 
           Duration: 1.905s 
           Process: 51844 ExecStart=/home/geonatureadmin/atlas/venv/bin/gunicorn atlas.wsgi:app --name ${GUNICORN_PROC_NAME} --workers  ${GUNICORN_NUM_WORKERS}> 
           Main PID: 51844 (code=exited, status=3)

J'ai relancé le script install_app.sh et voici quelques lignes avec des erreurs lors de son exécution :

.....
  Building wheel for greenlet (setup.py) ... error
  error: subprocess-exited-with-error
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [273 lines of output]
.....
  /home/geonatureadmin/atlas/venv/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'greenlet.platform' as data is deprecated, please list it in `packages`.
.....
        ############################
          # Package would be ignored #
          ############################
          Python recognizes 'greenlet.platform' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
          'greenlet.platform' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
          Please make sure that 'greenlet.platform' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
.....
      src/greenlet/greenlet.c:1777:15: warning: assignment to ‘int *’ from incompatible pointer type ‘_PyCFrame *’ [-Wincompatible-pointer-types]
       1777 |     g->cframe = &PyThreadState_GET()->root_cframe;
            |               ^
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
  error: legacy-install-failure
× Encountered error while trying to install package.
╰─> greenlet

Un problème avec l'installation de greenlet ??
Merci pour votre aide.

@gildeluermoz
Copy link
Contributor

Bonjour,
Pb avec greenlet sur debian 12 identifié. Il faut mettre 1.1.3 dans le requirements.txt
voir : #501 (comment)

@dba-sig-sfepm
Copy link
Author

Merci pour ce retour, ce fil m'avait échappé. Je regarderai tout ça la semaine prochaine.

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

No branches or pull requests

3 participants