Title: Migration failing due to too many range table entries · Issue #17075 · stackrox/stackrox · GitHub
Open Graph Title: Migration failing due to too many range table entries · Issue #17075 · stackrox/stackrox
X Title: Migration failing due to too many range table entries · Issue #17075 · stackrox/stackrox
Description: On the upgrade from version 4.7 to 4.8 the migration m_209_to_m_210_add_updated_at_to_network_flows_v2 fails with error {"level":"Info","time":"2025-09-30T09:01:41.356469287Z","name":"Migrator","caller":"log.go:18","msg":"unable to alter...
Open Graph Description: On the upgrade from version 4.7 to 4.8 the migration m_209_to_m_210_add_updated_at_to_network_flows_v2 fails with error {"level":"Info","time":"2025-09-30T09:01:41.356469287Z","name":"Migrator","ca...
X Description: On the upgrade from version 4.7 to 4.8 the migration m_209_to_m_210_add_updated_at_to_network_flows_v2 fails with error {"level":"Info","time":"2025-09-30T09:01:4...
Opengraph URL: https://github.com/stackrox/stackrox/issues/17075
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Migration failing due to too many range table entries","articleBody":"On the upgrade from version 4.7 to 4.8 the migration [m_209_to_m_210_add_updated_at_to_network_flows_v2](https://github.com/stackrox/stackrox/tree/master/migrator/migrations/m_209_to_m_210_add_updated_at_to_network_flows_v2) fails with error \n\n```\n{\"level\":\"Info\",\"time\":\"2025-09-30T09:01:41.356469287Z\",\"name\":\"Migrator\",\"caller\":\"log.go:18\",\"msg\":\"unable to alter table network_flows_v2: unable to update column updatedat: ERROR: too many range table entries (SQLSTATE 54000)\"}\n{\"level\":\"Info\",\"time\":\"2025-09-30T09:01:41.357212389Z\",\"name\":\"Migrator\",\"caller\":\"log.go:18\",\"msg\":\"Migrator failed: ERROR: too many range table entries (SQLSTATE 54000)\\nunable to update column updatedat\\ngithub.com/stackrox/rox/migrator/migrations/m_209_to_m_210_add_updated_at_to_network_flows_v2.addColumnToTable\\n\\tgithub.com/stackrox/rox/migrator/migrations/m_209_to_m_210_add_updated_at_to_network_flows_v2/migration_impl.go:52\\ngithub.com/stackrox/rox/migrator/migrations/m_209_to_m_210_add_updated_at_to_network_flows_v2.migrate\\n\\tgithub.com/stackrox/rox/migrator/migrations/m_209_to_m_210_add_updated_at_to_network_flows_v2/migration_impl.go:23\\ngithub.com/stackrox/rox/migrator/runner.runMigrations\\n\\tgithub.com/stackrox/rox/migrator/runner/runner.go:103\\ngithub.com/stackrox/rox/migrator/runner.Run\\n\\tgithub.com/stackrox/rox/migrator/runner/runner.go:62\\nmain.upgrade\\n\\tgithub.com/stackrox/rox/migrator/upgrade.go:50\\nmain.run\\n\\tgithub.com/stackrox/rox/migrator/main.go:88\\nmain.main\\n\\tgithub.com/stackrox/rox/migrator/main.go:24\\nruntime.main\\n\\truntime/proc.go:272\\nruntime.goexit\\n\\truntime/asm_amd64.s:1700\\nerror running migration starting at 209\\ngithub.com/stackrox/rox/migrator/runner.runMigrations\\n\\tgithub.com/stackrox/rox/migrator/runner/runner.go:105\\ngithub.com/stackrox/rox/migrator/runner.Run\\n\\tgithub.com/stackrox/rox/migrator/runner/runner.go:62\\nmain.upgrade\\n\\tgithub.com/stackrox/rox/migrator/upgrade.go:50\\nmain.run\\n\\tgithub.com/stackrox/rox/migrator/main.go:88\\nmain.main\\n\\tgithub.com/stackrox/rox/migrator/main.go:24\\nruntime.main\\n\\truntime/proc.go:272\\nruntime.goexit\\n\\truntime/asm_amd64.s:1700\\nmigrations failed\\nmain.upgrade\\n\\tgithub.com/stackrox/rox/migrator/upgrade.go:55\\nmain.run\\n\\tgithub.com/stackrox/rox/migrator/main.go:88\\nmain.main\\n\\tgithub.com/stackrox/rox/migrator/main.go:24\\nruntime.main\\n\\truntime/proc.go:272\\nruntime.goexit\\n\\truntime/asm_amd64.s:1700\"}\n```\n\nChecking the network_flows_v2 table, it has 488 partitions, which I believe is causing the issue. \n\nThis blocks the upgrade.\n\nIs there a way to circumvent this issue? \nShould there be a cleanup process for this information?\n\nThanks\n","author":{"url":"https://github.com/luciamota","@type":"Person","name":"luciamota"},"datePublished":"2025-09-30T15:02:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/17075/stackrox/issues/17075"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a236d453-dd9a-12e3-ac20-209df0206d61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C810:1DD5:4428A02:5C685DA:6980AF76 |
| html-safe-nonce | 8092d2332e550780c801c26d2df6ae1426359f6758a70bad5f57d883b959d442 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODEwOjFERDU6NDQyOEEwMjo1QzY4NURBOjY5ODBBRjc2IiwidmlzaXRvcl9pZCI6IjI2Njg5Mzg2MDU1ODk3MzczMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4773feeefce3122e5dbbb8bf07af2c47c710732c3bf429c48119b42167ed779b |
| hovercard-subject-tag | issue:3469927531 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackrox/stackrox/17075/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d97460d3c50b7a29cab1ab617fe2ca631480c5771d14a59a321a6ea70585bf1c/stackrox/stackrox/issues/17075 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d97460d3c50b7a29cab1ab617fe2ca631480c5771d14a59a321a6ea70585bf1c/stackrox/stackrox/issues/17075 |
| og:image:alt | On the upgrade from version 4.7 to 4.8 the migration m_209_to_m_210_add_updated_at_to_network_flows_v2 fails with error {"level":"Info","time":"2025-09-30T09:01:41.356469287Z","name":"Migrator","ca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luciamota |
| hostname | github.com |
| expected-hostname | github.com |
| None | d5070894b88d5cf03785c677c23c659b0431dfc2e6df2f35e35f2e0de9ceb94a |
| turbo-cache-control | no-preview |
| go-import | github.com/stackrox/stackrox git https://github.com/stackrox/stackrox.git |
| octolytics-dimension-user_id | 40638982 |
| octolytics-dimension-user_login | stackrox |
| octolytics-dimension-repository_id | 434017296 |
| octolytics-dimension-repository_nwo | stackrox/stackrox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 434017296 |
| octolytics-dimension-repository_network_root_nwo | stackrox/stackrox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 821a5a2664fd1c2441fb3caded98e0f525bf913f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width