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
python3 on el7: 'ERROR! Unexpected Exception, this is probably a bug: SQLite 3.8.3 or later is required (found 3.7.17).' #99
Comments
It doesn't look like we can expect the base sqlite included in EL7 to be updated beyond 3.7.17 based on the package history: https://git.centos.org/rpms/sqlite/commits/c7 |
Hi, |
ARA doesn't directly depend on a newer version of SQLite, the version requirement is imposed by Django. If you install django<2.2 instead of the latest then ARA (currently) works fine. |
Thanks, just in case someone needs it, this is how to make the last version of ARA 1.x work in CentOS/RHEL 7.x
|
@juliojsb, many thanks for that suggestion! However, it just leads me into a situation where the ara callback is skipped due to
|
and @jstarek, I can't recommend or support doing this because of documented django CVEs like these: Generally speaking, you want to keep django as up to date as possible to get those security fixes. What I would recommend for running the API server on CentOS 7 would be to use podman (docker) containers. It's three commands, built into CentOS distribution and no daemon or service to run:
Then, on your host:
I'm happy to put this in the documentation -- you can read more about how you can build your own images and how to run them: https://ara.readthedocs.io/en/latest/container-images.html The images on DockerHub ( https://hub.docker.com/r/recordsansible/ara-api ) are currently based on Fedora but there is a pull request for one based on CentOS 8: #133 I feel it would be a good alternative that would be less hacky, more secure and easier to support. What do you think ? |
Re: django version, we're currently targetting 2.2 which is a LTS release and this makes it much easier to support from a packaging perspective. There is no incentive to upgrade to 3.x yet. |
@dmsimard +1 to the solution you provided, a much better approach! |
I've sent a patch to refresh the installation docs and it'll contain a note about this issue with a recommendation to use container images for running the API server on CenOS 7: I believe we'll be good to close this issue once the patch lands and the docs are updated. |
What component is this about ?
django's sqlite database backend
What is your ARA installation like ?
python3 virtualenv on el7 with default settings: offline api client and sqlite database backend
What is happening ?
Before attempting sqlite migrations, django fails with the following error:
What should be happening ?
It would be nice for the default use case to work on el7.
I haven't yet investigated this issue.
The text was updated successfully, but these errors were encountered: