-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
error when visiting brand new course #2512
Comments
To be clear, I have restarted both |
I am unable to produce this. Can you give more precise details of how you are creating the course, or how you are entering the course? It may be that I am doing something slightly different that doesn't cause the issue. |
In the admin course,
|
I tried completely rebooting too, just to try it. And the issue persists. |
That still doesn't cause the error for me. Looking closer at your error, I see that it is failing to open the |
Yes, it's there,and the permissions all seem fine. Also it is odd that this error happens, but then upon refreshing the page it does not happen. And then I can repeat the experiment with a second course and it happens again. |
Would the file be locked for some reason? |
Clearly something odd seems to be occurring with the job queue for you since that is what that file is for. I am guessing that you have LTI and mass grade pass back enabled site wide. Thus when you enter the course for the first time it triggers the first mass grade pass back. That is expected, but then something goes wrong and the webwork2 app is unable to access the job queue database which triggers the error. The file isn't locked (well it probably is, but file locking generally doesn't work the way you insinuate to completely stop access). The whole point of the job queue using the database is that the webwork2 app and the job queue worker app can both access it. The webwork2 app adds jobs to the database, and then the worker queue sees them and performs them. Can you try moving the |
By the way, you will need to reload the webwork2 app and restart the webwork2 job queue in between times when you move the database file. |
I tried what you suggested and the behavior was the same. In |
I've run through the special note about downgrading SQLite in the installation guide, etc. And everything seems to be in order. But the issue still happens. Here is a more complete error report:
|
I recommend now that instead of downgrading Mojo::SQLite, you upgrade to the newest version which is 3.009. There was a problem with the version 3.008 that was in the Ubuntu 22.04 repositories. Ubuntu 24.04 has version 3.009, and the issue was fixed in that version. So instead try to upgrade to 3.009 (just run |
I just tested with Ubuntu 22.04 (which my production servers are still running), and version 3.009 still doesn't work. On Ubuntu 22.04 you still need to downgrade to 3.002. So the issue with newer versions of Mojo::SQLite probably has to do with other versions of related packages in the Ubuntu repositories. |
Another thing to try is to switch to the Minion::Backend::mysql. I gave you instructions on how to do this at one point. That probably won't have this issue. It doesn't use that file at least. |
I'm only seeing this on my development server. I'm thinking for now that I will leave it be, and as I have time I will probe to see what is really going on in the hopes of learning something. |
On
develop
, go into the admin course. Create a new course. Then go to that new course. For me, I see this error:After I reload the page, everything is fine. Or if I return to the admin course and follow the link again, everything is fine. This suggests that something is initialized the first time I see that error and then it's no longer a problem
I do not see this on my production server, which is on
main
but perhaps without the most recent hotfixes applied.Is anyone able to reproduce this?
The text was updated successfully, but these errors were encountered: