You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "petkostas (via GitHub)" <gi...@apache.org> on 2025/10/22 16:49:14 UTC

[I] [Bug][pipeline] Devlake instance crashes when trying to run the pipeline [incubator-devlake]

petkostas opened a new issue, #8621:
URL: https://github.com/apache/incubator-devlake/issues/8621

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   After upgrading from `1.0.2-beta8` to `v1.0.3-beta7` the instance is failing to startup:
   
   ```
   │ [GIN-debug] Listening and serving HTTP on :8080                                                      │
   │ panic: sql: Scan error on column index 0, name "priority": converting NULL to int is unsupported (50 │
   │ Wraps: (2) sql: Scan error on column index 0, name "priority"                                        │
   │ Wraps: (3) converting NULL to int is unsupported                                                     │
   │ Error types: (1) *hintdetail.withDetail (2) *fmt.wrapError (3) *errors.errorString                   │
   │                                                                                                      │
   │ goroutine 116 [running]:                                                                             │
   │ github.com/apache/incubator-devlake/server/services.dequeuePipeline({0x2c8cb78, 0x0, 0x0})           │
   │     /app/server/services/pipeline.go:270 +0x10d3                                                     │
   │ github.com/apache/incubator-devlake/server/services.RunPipelineInQueue(0x1)                          │
   │     /app/server/services/pipeline.go:335 +0x42c                                                      │
   │ created by github.com/apache/incubator-devlake/server/services.pipelineServiceInit                   │
   │     /app/server/services/pipeline.go:112 +0x23d
   ```
   
   This is most likely related to the new priority feature that was added.
   
   cc: @klesh 
   
   ### What do you expect to happen
   
   New instance should load properly.
   
   ### How to reproduce
   
   Spin up an instance with version `v1.0.2-beta8` add some datasources (used GitHub and Jira) and upgrade to `v1.0.3-beta7`
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   v1.0.3-beta7
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][pipeline] Devlake instance crashes on pipelineServiceInit after image update [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh closed issue #8621: [Bug][pipeline] Devlake instance crashes on pipelineServiceInit after image update
URL: https://github.com/apache/incubator-devlake/issues/8621


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][pipeline] Devlake instance crashes when trying to run the pipeline [incubator-devlake]

Posted by "petkostas (via GitHub)" <gi...@apache.org>.
petkostas commented on issue #8621:
URL: https://github.com/apache/incubator-devlake/issues/8621#issuecomment-3433342433

   We will need a new migration addressing this for existing deployments.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][pipeline] Devlake instance crashes when trying to run the pipeline [incubator-devlake]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8621:
URL: https://github.com/apache/incubator-devlake/issues/8621#issuecomment-3433320650

   <!-- Answer -->
   The crash is happening because the new `priority` column added in v1.0.3-beta7 does not set a default value or enforce NOT NULL during migration, so existing pipelines and blueprints from earlier versions have `NULL` for `priority`. The Go code expects a non-null integer, which causes the SQL scan error and panic on startup when it encounters a `NULL` value in this column ([PR #8534](https://github.com/apache/incubator-devlake/pull/8534)).
   
   To resolve this, you can manually update your database to set a default value (such as `0`) for all existing rows where `priority` is `NULL`. For example, in PostgreSQL:
   
   ```sql
   UPDATE _devlake_pipelines SET priority = 0 WHERE priority IS NULL;
   UPDATE _devlake_blueprints SET priority = 0 WHERE priority IS NULL;
   ```
   
   This will allow DevLake to start up and run pipelines as expected. There is currently no official migration or documentation covering this scenario, so a manual SQL fix is the recommended workaround until a patch is released.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b0e2a633-6d43-4cd1-9127-2dc12fd7bc92?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b0e2a633-6d43-4cd1-9127-2dc12fd7bc92?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b0e2a633-6d43-4cd1-9127-2dc12fd7bc92?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b0e2a633-6d43-4cd1-9127-2dc12fd7bc92?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b0e2a633-6d43-4cd1-9127-2dc12fd7bc92?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b0e2a633-6d43-4cd1-9127-2dc12fd7bc92?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b0e2a633-6d43-4cd1-9127-2dc12fd7bc92?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8621)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org