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

cylc.get_suite_jobs_auths: database locked failures for rose-prune #2558

Closed
oliver-sanders opened this issue Mar 16, 2022 · 5 comments · Fixed by cylc/cylc-rose#155
Closed
Labels
Milestone

Comments

@oliver-sanders
Copy link
Member

We are hitting fairly regular database locked issues on Mac OS:

The relevant job logs can be found in the artefacts for those actions runs, here's a snippet:

20220315T104700Z/09-app-prune-work/3ymMFP', 'response': [True, 'Messages queued: 1']}]}}, 'user': 'runner'}
[FAIL] 2022-03-15T10:49:42+0000 database is locked
Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/metomi/rose/task_run.py", line 176, in main
    sys.exit(runner(opts, args))
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/metomi/rose/run.py", line 201, in run
    return self.run_impl(opts, args, uuid, work_files)
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/metomi/rose/task_run.py", line 130, in run_impl
    return self.app_runner(opts, args)
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/metomi/rose/run.py", line 201, in run
    return self.run_impl(opts, args, uuid, work_files)
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/metomi/rose/app_run.py", line 400, in run_impl
    self, conf_tree, opts, args, uuid, work_files
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/metomi/rose/apps/rose_prune.py", line 101, in run
    suite_name, [(cycle, None) for cycle in cycle_set]
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/metomi/rose/suite_engine_procs/cylc.py", line 85, in get_suite_jobs_auths
    new_platforms = get_platforms_from_task_jobs(suite_name, cycle)
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/cylc/rose/platform_utils.py", line 77, in get_platforms_from_task_jobs
    dao = CylcWorkflowDAO(dbfilepath)
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/cylc/flow/rundb.py", line 331, in __init__
    self.create_tables()
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/cylc/flow/rundb.py", line 385, in create_tables
    ["table"]):
sqlite3.OperationalError: database is locked
@oliver-sanders
Copy link
Member Author

Mac OS tests run on real (rather than virtual) hardware so it's not unsurprising that Mac OS would catch this issue and the Linux runners not.

@wxtim
Copy link
Contributor

wxtim commented May 4, 2022

Will this replicate locally? Would I have to use my private laptop?

@oliver-sanders
Copy link
Member Author

Haven't tried to replicate, seems odd that it only hits Mac OS.

@oliver-sanders oliver-sanders modified the milestones: 2.0rc3, 2.0rc4 May 17, 2022
@wxtim wxtim modified the milestones: 2.0rc4, 2.0.0 Jul 21, 2022
@oliver-sanders
Copy link
Member Author

Possible cause - cylc/cylc-rose#155

@oliver-sanders
Copy link
Member Author

The traceback above was from a prune test

20220315T104700Z/09-app-prune-work/3ymMFP

Cylc-Rose was reading from the private DB which could cause DB locking. cylc/cylc-rose#155 changes this to use the public DB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants