Skip to content

Troubleshooting

Anthony Fok edited this page Mar 26, 2024 · 2 revisions

General troubleshooting tips

  • docker compose logs

Specific problems

python-opendrr-1 fails at read_github_token

docker compose logs python-opendrr shows the following:

python-opendrr-1  | [add_data.sh:960:main] RUN: read_github_token
python-opendrr-1  |
python-opendrr-1  | [add_data.sh:433:read_github_token] ## Read GitHub token from config.ini
python-opendrr-1  | sed: can't read config.ini: No such file or directory
python-opendrr-1  | [add_data.sh:437:read_github_token] INFO: GITHUB_TOKEN is 0 characters in length
python-opendrr-1  | [add_data.sh:440:read_github_token] WARNING: Your GITHUB_TOKEN has a length of 0 characters, but 40 or above is expected.
python-opendrr-1  | [add_data.sh:452:read_github_token] INFO: Access to test private repo OpenDRR/DSRA-processing returns HTTP status code 401
python-opendrr-1  | {
python-opendrr-1  |   "message": "Bad credentials",
python-opendrr-1  |   "documentation_url": "https://docs.github.com/rest"
python-opendrr-1  | }
python-opendrr-1  | [add_data.sh:107:ERROR] ERROR: Your GitHub token is invalid or has expired. Aborting...

Solution:

  1. Check to see if python/config.ini exists. If not, run cp -aiv python/sample_config.ini python/config.ini
  2. TODO

pygeoapi-opendrr-1 repeatedly reports "Cannot connect to Elasticsearch" error

pygeoapi-opendrr-1       | Cannot connect to Elasticsearch
pygeoapi-opendrr-1       | Traceback (most recent call last):
pygeoapi-opendrr-1       |   File "/usr/local/bin/pygeoapi", line 11, in <module>
pygeoapi-opendrr-1       |     load_entry_point('pygeoapi', 'console_scripts', 'pygeoapi')()
pygeoapi-opendrr-1       |   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1134, in __call__
pygeoapi-opendrr-1       |     return self.main(*args, **kwargs)
pygeoapi-opendrr-1       |   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1059, in main
pygeoapi-opendrr-1       |     rv = self.invoke(ctx)
pygeoapi-opendrr-1       |   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1665, in invoke
pygeoapi-opendrr-1       |     return _process_result(sub_ctx.command.invoke(sub_ctx))
pygeoapi-opendrr-1       |   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1665, in invoke
pygeoapi-opendrr-1       |     return _process_result(sub_ctx.command.invoke(sub_ctx))
pygeoapi-opendrr-1       |   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1401, in invoke
pygeoapi-opendrr-1       |     return ctx.invoke(self.callback, **ctx.params)
pygeoapi-opendrr-1       |   File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 767, in invoke
pygeoapi-opendrr-1       |     return __callback(*args, **kwargs)
pygeoapi-opendrr-1       |   File "/usr/local/lib/python3.8/dist-packages/click/decorators.py", line 26, in new_func
pygeoapi-opendrr-1       |     return f(get_current_context(), *args, **kwargs)
pygeoapi-opendrr-1       |   File "/pygeoapi/pygeoapi/openapi.py", line 1088, in generate
pygeoapi-opendrr-1       |     click.echo(yaml.safe_dump(get_oas(s), default_flow_style=False))
pygeoapi-opendrr-1       |   File "/pygeoapi/pygeoapi/openapi.py", line 1044, in get_oas
pygeoapi-opendrr-1       |     return get_oas_30(cfg)
pygeoapi-opendrr-1       |   File "/pygeoapi/pygeoapi/openapi.py", line 474, in get_oas_30
pygeoapi-opendrr-1       |     p = load_plugin('provider', get_provider_by_type(
pygeoapi-opendrr-1       |   File "/pygeoapi/pygeoapi/plugin.py", line 106, in load_plugin
pygeoapi-opendrr-1       |     plugin = class_(plugin_def)
pygeoapi-opendrr-1       |   File "/pygeoapi/pygeoapi/provider/elasticsearch_.py", line 103, in __init__
pygeoapi-opendrr-1       |     raise ProviderConnectionError(msg)
pygeoapi-opendrr-1       | pygeoapi.provider.base.ProviderConnectionError: Cannot connect to Elasticsearch
pygeoapi-opendrr-1       | ERROR: openapi.yml could not be generated ERROR
  1. Check to see if python/config.ini exists. If not, run copy python/sample_config.ini to python/config.ini
  2. TODO

get_model_factory_scripts fails with "gzip: stdin: unexpected end of file"

python-opendrr-1  | [add_data.sh:961:main] RUN: get_model_factory_scripts
python-opendrr-1  |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
python-opendrr-1  |                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  371k    0  371k    0     0   1272      0 --:--:--  0:04:59 --:--:--  7735
python-opendrr-1  |
python-opendrr-1  | gzip: stdin: unexpected end of file
python-opendrr-1  | tar: Unexpected EOF in archive
python-opendrr-1  | tar: Unexpected EOF in archive
python-opendrr-1  | tar: Error is not recoverable: exiting now

Cause: TODO