question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dagit failed to start with mysql (clustered with 3 nodes)

See original GitHub issue

Dagster version

0.15.7

What’s the issue?

The following error happens when we use mysql cluster as storage:

[SQL: INSERT INTO instance_info (run_storage_id) VALUES (%(run_storage_id)s)]
 sqlalchemy.exc.DatabaseError: (mysql.connector.errors.DatabaseError) 3098 (HY000): The table does not comply with the requirements by an external plugin.

Because the instance_info table does not have primary key, simply adding a primary will fix the issue:

ALTER TABLE instance_info ADD PRIMARY KEY (run_storage_id(255));

What did you expect to happen?

Dagit should start successfully.

How to reproduce?

Just run dagit with mysql cluster (more than 1 node)

Deployment type

No response

Deployment details

No response

Additional information

No response

Message from the maintainers

Impacted by this issue? Give it a 👍! We factor engagement into prioritization.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
phuongdinh1411commented, Aug 23, 2022

I 'm using 8.0.28

0reactions
dpeng817commented, Oct 13, 2022

As @phuongdinh1411 mentioned - solution here is to add a primary key column to the instance info. This entails an alembic schema migration, but it would never be a forced migration (as we never read that primary key field)

Read more comments on GitHub >

github_iconTop Results From Across the Web

dagster/CHANGES.md at master - GitHub
Fixed an issue where Dagster failed to load a dagster.yaml file that specified the ... [dagit] The run timeline view now shows jobs...
Read more >
MySQL Cluster - mysql api nodes are failing to start
I am trying to start mysqld(API) nodes as a part of my mysql cluster setup and now it is always failing to start...
Read more >
SYS_LOAD_ERROR_DETAIL - Amazon Redshift
Column name Data type Description user_id integer The identifier of the user who submitted the copy. query_id bigint The query identifier of the copy. transaction_id bigint...
Read more >
MySQL Server monitor_20000 on node1 'not running' - HA ...
Everything comes online. pcs cluster standby node1. Fails over to node2. But I get this error again... mysql_service01_monitor_20000 on node1 ' ...
Read more >
Introduction to Apache Airflow - Hacker News
I don't know too much about dask, how would you build a node in a Dask DAG to execute a java app and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found