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

Y25-034 - [BUG] Exception (ActiveRecord::StatementInvalid) "Mysql2::Error: Table 'sequencescape_snapshot.labware' doesn't exist #4624

Open
3 tasks
BenTopping opened this issue Jan 20, 2025 · 1 comment
Labels
Bug Bug in code Size: S Small - low effort & risk Value: 3 Value to the insitute is average

Comments

@BenTopping
Copy link
Contributor

BenTopping commented Jan 20, 2025

Describe the bug

[Psd-exceptions] [Sequencescape Training]  (ActiveRecord::StatementInvalid) "Mysql2::Error: Table 'sequencescape_snapshot.labware' doesn't

An ActiveRecord::StatementInvalid occurred in background at 2025-01-18 12:00:10 +0000 :

  Mysql2::Error: Table 'sequencescape_snapshot.labware' doesn't exist
  /var/www/sequencescape/shared/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.6/lib/mysql2/client.rb:151:in `_query'

Acceptance Criteria

  • Review if the Fluidigm Data Cron is still current and necessary.
  • Finding and applying a solution
  • Document progress + summary in the issue comments

To Reproduce
Steps to reproduce the behaviour:

  1. Error occurs weekly during database reset

Expected behaviour
An error is not thrown

Additional context
Error message contains the below
data: {:message=>"Import Fluidigm Data Cron Failed"}

It is likely that the cron running every hour fails during the weekly training database dump as the tables may temporarily not exist.

@BenTopping BenTopping added Bug Bug in code Size: S Small - low effort & risk Value: 3 Value to the insitute is average labels Jan 20, 2025
@psd-issuer psd-issuer bot changed the title [BUG] Exception (ActiveRecord::StatementInvalid) "Mysql2::Error: Table 'sequencescape_snapshot.labware' doesn't exist Y25-034 - [BUG] Exception (ActiveRecord::StatementInvalid) "Mysql2::Error: Table 'sequencescape_snapshot.labware' doesn't exist Jan 20, 2025
@stevieing
Copy link
Contributor

This has been happening for 8 years. You are correct that it is caused by the training database being recreated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug in code Size: S Small - low effort & risk Value: 3 Value to the insitute is average
Projects
None yet
Development

No branches or pull requests

2 participants