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

docker container not starting #123

Closed
ragnar76 opened this issue Jul 11, 2024 · 2 comments
Closed

docker container not starting #123

ragnar76 opened this issue Jul 11, 2024 · 2 comments
Labels
component: core Activity management, explorer tiles type: bug Something isn't working

Comments

@ragnar76
Copy link

ragnar76 commented Jul 11, 2024

Just tried to update and docker container failes to start. I did the usual thing:

  • cd geo-activity-playground
  • git pull
  • rm -rf /var/www/tracks/gpx-tracks/Cache/*
  • docker build -t geo-activity-playground .
  • docker run -p 5000:5000 -v /var/www/tracks/gpx-tracks:/data -it geo-activity-playground

Which gives me this error:

root@dev:~/geo-activity-playground # docker run -p 5000:5000 -v /var/www/tracks/gpx-tracks:/data -it geo-activity-playground
2024-07-11 20:35:51 geo_activity_playground.core.cache_migrations INFO Apply cache migration if needed …
2024-07-11 20:35:51 geo_activity_playground.core.cache_migrations INFO Applying cache migration add_consider_for_achievements …
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/app/geo_activity_playground/__main__.py", line 118, in <module>
    main()
  File "/app/geo_activity_playground/__main__.py", line 93, in main
    options.func(options)
  File "/app/geo_activity_playground/__main__.py", line 67, in <lambda>
    *make_activity_repository(options.basedir, options.skip_strava),
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/geo_activity_playground/__main__.py", line 100, in make_activity_repository
    apply_cache_migrations()
  File "/app/geo_activity_playground/core/cache_migrations.py", line 119, in apply_cache_migrations
    migration()
  File "/app/geo_activity_playground/core/cache_migrations.py", line 82, in add_consider_for_achievements
    df = pd.read_parquet("Cache/activities.parquet")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pandas/io/parquet.py", line 667, in read_parquet
    return impl.read(
           ^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pandas/io/parquet.py", line 267, in read
    path_or_handle, handles, filesystem = _get_path_or_handle(
                                          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pandas/io/parquet.py", line 140, in _get_path_or_handle
    handles = get_handle(
              ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pandas/io/common.py", line 882, in get_handle
    handle = open(handle, ioargs.mode)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'Cache/activities.parquet'
@ragnar76
Copy link
Author

I was able to get it back working by using an older version, create the cache files and switch back to the latest git commit.

@martin-ueding
Copy link
Owner

The problem is that the migration didn't anticipate that the file didn't exist yet. I've fixed that in 0.24.0

@martin-ueding martin-ueding added type: bug Something isn't working component: core Activity management, explorer tiles labels Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: core Activity management, explorer tiles type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants