Trip page never auto-refreshes for short trips
Author: binnichtaktivCreated Sep 25, 2026Updated Sep 25, 2026
In version 1.15.0 this was fixed:
"A trip page switches from "Trip path is being calculated" to the map as soon as the path is ready, and a trip with no recorded locations says so instead of calculating forever."
On short trips, the trip show page gets stuck on "Trip path is being calculated..." forever, even though the background job finished successfully. A manual reload fixes it instantly. On long trips (I tested a 3 month long trip) it reloads after successfully calculating. Looks like a timing issue or something and might be related to #3174 ?
here are sidekiq logs for the small trip I used to test:
I, [2026-09-25T06:16:18.030993 #1] INFO -- : start
Performing Trips::CalculateAllJob (Job ID: 18203679-8923-42d4-89cd-47c052a96693) from Sidekiq(trips) enqueued at 2026-09-25T06:16:17.871376248Z with arguments: 19, "km"
Enqueued Trips::CalculatePathJob (Job ID: b58efaad-8506-41a9-a974-a01f683811d7) to Sidekiq(trips) with arguments: 19, "c004ecd5-f0bc-42ea-b1e1-92ad87599883"
Enqueued Trips::CalculateDistanceJob (Job ID: 21552b0a-4928-47bc-940b-cae39a822a48) to Sidekiq(trips) with arguments: 19, "km", "c004ecd5-f0bc-42ea-b1e1-92ad87599883"
Enqueued Trips::CalculateCountriesJob (Job ID: 1667840d-256b-4f59-af96-e0a1f17c8d9d) to Sidekiq(trips) with arguments: 19, "km", "c004ecd5-f0bc-42ea-b1e1-92ad87599883"
Performed Trips::CalculateAllJob (Job ID: 18203679-8923-42d4-89cd-47c052a96693) from Sidekiq(trips) in 8.08ms
I, [2026-09-25T06:16:18.040875 #1] INFO -- : done
I, [2026-09-25T06:16:18.046420 #1] INFO -- : start
Performing Trips::CalculateAllJob (Job ID: b7159fd1-b89a-4a55-841e-a59fe13a168e) from Sidekiq(trips) enqueued at 2026-09-25T06:16:17.986822698Z with arguments: 19, "km"
Enqueued Trips::CalculatePathJob (Job ID: e6df72e2-4082-4036-a6d6-566e72da4a1d) to Sidekiq(trips) with arguments: 19, "a1d04a4b-8fdf-4b2e-a354-04fd1bf7b39d"
Enqueued Trips::CalculateDistanceJob (Job ID: 0603c75f-7e69-4b34-89bb-3dd280d5cbe5) to Sidekiq(trips) with arguments: 19, "km", "a1d04a4b-8fdf-4b2e-a354-04fd1bf7b39d"
Enqueued Trips::CalculateCountriesJob (Job ID: e4760dc7-316a-4a9a-bdb1-18a7c951f0dc) to Sidekiq(trips) with arguments: 19, "km", "a1d04a4b-8fdf-4b2e-a354-04fd1bf7b39d"
Performed Trips::CalculateAllJob (Job ID: b7159fd1-b89a-4a55-841e-a59fe13a168e) from Sidekiq(trips) in 7.04ms
I, [2026-09-25T06:16:18.055322 #1] INFO -- : done
I, [2026-09-25T06:16:18.062100 #1] INFO -- : start
Performing Trips::CalculatePathJob (Job ID: b58efaad-8506-41a9-a974-a01f683811d7) from Sidekiq(trips) enqueued at 2026-09-25T06:16:18.034186740Z with arguments: 19, "c004ecd5-f0bc-42ea-b1e1-92ad87599883"
Performed Trips::CalculatePathJob (Job ID: b58efaad-8506-41a9-a974-a01f683811d7) from Sidekiq(trips) in 115.89ms
I, [2026-09-25T06:16:18.179778 #1] INFO -- : done
I, [2026-09-25T06:16:18.181014 #1] INFO -- : start
Performing Trips::CalculateDistanceJob (Job ID: 21552b0a-4928-47bc-940b-cae39a822a48) from Sidekiq(trips) enqueued at 2026-09-25T06:16:18.035818604Z with arguments: 19, "km", "c004ecd5-f0bc-42ea-b1e1-92ad87599883"
I, [2026-09-25T06:16:18.190889 #1] INFO -- : start
Performing Trips::CalculateCountriesJob (Job ID: 1667840d-256b-4f59-af96-e0a1f17c8d9d) from Sidekiq(trips) enqueued at 2026-09-25T06:16:18.037696553Z with arguments: 19, "km", "c004ecd5-f0bc-42ea-b1e1-92ad87599883"
Performed Trips::CalculateCountriesJob (Job ID: 1667840d-256b-4f59-af96-e0a1f17c8d9d) from Sidekiq(trips) in 43.85ms
I, [2026-09-25T06:16:18.237969 #1] INFO -- : done
Performed Trips::CalculateDistanceJob (Job ID: 21552b0a-4928-47bc-940b-cae39a822a48) from Sidekiq(trips) in 67.25ms
I, [2026-09-25T06:16:18.253069 #1] INFO -- : done
I, [2026-09-25T06:16:18.257532 #1] INFO -- : start
Performing Trips::CalculatePathJob (Job ID: e6df72e2-4082-4036-a6d6-566e72da4a1d) from Sidekiq(trips) enqueued at 2026-09-25T06:16:18.049232326Z with arguments: 19, "a1d04a4b-8fdf-4b2e-a354-04fd1bf7b39d"
I, [2026-09-25T06:16:18.264079 #1] INFO -- : start
Performing Trips::CalculateDistanceJob (Job ID: 0603c75f-7e69-4b34-89bb-3dd280d5cbe5) from Sidekiq(trips) enqueued at 2026-09-25T06:16:18.050908210Z with arguments: 19, "km", "a1d04a4b-8fdf-4b2e-a354-04fd1bf7b39d"
Performed Trips::CalculateDistanceJob (Job ID: 0603c75f-7e69-4b34-89bb-3dd280d5cbe5) from Sidekiq(trips) in 143.41ms
I, [2026-09-25T06:16:18.409651 #1] INFO -- : done
Performed Trips::CalculatePathJob (Job ID: e6df72e2-4082-4036-a6d6-566e72da4a1d) from Sidekiq(trips) in 156.06ms
I, [2026-09-25T06:16:18.417122 #1] INFO -- : done
I, [2026-09-25T06:16:18.417548 #1] INFO -- : start
Performing Trips::CalculateCountriesJob (Job ID: e4760dc7-316a-4a9a-bdb1-18a7c951f0dc) from Sidekiq(trips) enqueued at 2026-09-25T06:16:18.053310855Z with arguments: 19, "km", "a1d04a4b-8fdf-4b2e-a354-04fd1bf7b39d"
Performed Trips::CalculateCountriesJob (Job ID: e4760dc7-316a-4a9a-bdb1-18a7c951f0dc) from Sidekiq(trips) in 41.14ms
I, [2026-09-25T06:16:18.461240 #1] INFO -- : done
D, [2026-09-25T06:16:23.137733 #1] DEBUG -- : Flushed 16 metrics
Enqueued Stats::ToponymsRefreshJob (Job ID: 1deb5a83-d38b-4ea6-a8e9-0d423aefb22d) to Sidekiq(stats)
D, [2026-09-25T06:20:15.759699 #1] DEBUG -- : enqueued stats_toponyms_refresh_job: {"queue":"stats","class":"Stats::ToponymsRefreshJob","args":[]}
I, [2026-09-25T06:20:16.885419 #1] INFO -- : start
Performing Stats::ToponymsRefreshJob (Job ID: 1deb5a83-d38b-4ea6-a8e9-0d423aefb22d) from Sidekiq(stats) enqueued at 2026-09-25T06:20:15.756569007Z
Performed Stats::ToponymsRefreshJob (Job ID: 1deb5a83-d38b-4ea6-a8e9-0d423aefb22d) from Sidekiq(stats) in 634.31ms
I, [2026-09-25T06:20:17.522268 #1] INFO -- : done
D, [2026-09-25T06:20:23.248388 #1] DEBUG -- : Flushed 4 metricsSource: Freika/dawarich