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

Operational Error #76

Open
as1403 opened this issue Jun 3, 2019 · 3 comments
Open

Operational Error #76

as1403 opened this issue Jun 3, 2019 · 3 comments

Comments

@as1403
Copy link

as1403 commented Jun 3, 2019

Hello,

I am having an issue where the cMonkey2 algorithm throws an Operational Error due to the database being locked. This always seems to happen when the program is around ~1400 runs. I have attached a picture for reference. Any assistance would be appreciated and I would be more than happy to provide additional information.

image001

@weiju
Copy link
Member

weiju commented Jun 7, 2019

Hi, thanks for reporting this. It looks like you are getting into situation where the sqlite database gets locked. Are you maybe running the cmviewer at the same time ? This is usually the most likely situation that this can happen.

@as1403
Copy link
Author

as1403 commented Jun 7, 2019

Yes, I was running cmviewer at the same time as the program. Is there a way to avoid the sqlite database locking while running the program and cmviewer simultaneously? In the meantime, I will try executing the program without opening cmviewer.

Thanks!
Aadit

@weiju
Copy link
Member

weiju commented Jun 7, 2019

I see, so the problem is that sqlite databases don't really like access from multiple applications at the same time. It works most of the time, when the calls don't interfere with each other at exactly the same time.
cmonkey2 actually supports different database backends, so it would be possible to use a regular database server such as e.g. MySQL for storing the run. To do so one needs to create an empty database (and probably login credentials, too) in MySQL and provide them to both cmonkey2 and cm2viewer with the --dburl parameter.

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

No branches or pull requests

2 participants