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

Encontre-un-bug-en-georef-ar-api #230

Open
AcquaNet opened this issue Nov 5, 2024 · 1 comment
Open

Encontre-un-bug-en-georef-ar-api #230

AcquaNet opened this issue Nov 5, 2024 · 1 comment

Comments

@AcquaNet
Copy link

AcquaNet commented Nov 5, 2024

Siguiendo estas instrucciones:

https://datosgobar.github.io/georef-ar-api/etl-install/

Cuando ejecuto

docker-compose up -d

Veo el siguiente error:

`root@ubuntu-s-2vcpu-4gb-intel-fra1-01:/home/georef/georef-ar-api/docker# docker logs 7ec4360d5154

  • Serving Flask app 'service/init.py' (lazy loading)
  • Environment: development
  • Debug mode: on
    Traceback (most recent call last):
    File "/usr/local/bin/flask", line 8, in
    sys.exit(main())
    File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 990, in main
    cli.main(args=sys.argv[1:])
    File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 596, in main
    return super().main(*args, **kwargs)
    File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
    File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
    File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 92, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
    File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
    File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 845, in run_command
    app = DispatchingApp(info.load_app, use_eager_loading=eager_loading)
    File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 321, in init
    self._load_unlocked()
    File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 346, in _load_unlocked
    self._app = rv = self.loader()
    File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 402, in load_app
    app = locate_app(self, import_name, name)
    File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 256, in locate_app
    import(module_name)
    File "/opt/app-root/src/georef-ar-api/service/init.py", line 17, in
    import service.routes
    File "/opt/app-root/src/georef-ar-api/service/routes.py", line 77, in
    add_complete_downloads(bp_v1_0, current_app.config['COMPLETE_DOWNLOAD_URLS'])
    File "/opt/app-root/src/georef-ar-api/service/routes.py", line 51, in add_complete_downloads
    entity_urls = urls[entity]
    KeyError: 'cuadras'
    `
@pavloae
Copy link
Member

pavloae commented Nov 7, 2024

Hola @AcquaNet , gracias por escribir.
Primero quisiera indicar que el proyecto se divide en dos subproyectos: Georef-ETL y Georef-API. La documentación del link que compartiste refiere al primero, mientras que el error refiere al segundo. La documentación del segundo proyecto podés encontrarla en este link: https://datosgobar.github.io/georef-ar-api/georef-api-development/#d11-instalacion
Por otro lado, el proyecto de Georef-API hace uso de los archivos .ndjson generados con Georef-ETL. Si estás corriendo localmente o en un servidor de tu propiedad el proyecto Georef-ETL podés indicar en el archivo de configuración ./config/georef.cfg la URL a estos archivos. De otra forma podés dejar las URL's que hay en los nuevos archivos de ejemplo georef.example.cfg, que ahora apuntan a las .ndjson generados por el ETL productivo oficial.
Ahora deberías poder actualizar tu rama master y reconstruir la imagen de tus contenedores para correr la app sin problemas.

Saludos

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

2 participants