-
Notifications
You must be signed in to change notification settings - Fork 993
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
[bug] SQL error during conan download #14517
Comments
Hi @lhocmf Thanks for your report. This looks weird, not sure what could be happening. Can you please try adding the following in the Conan code and running it again? except sqlite3.IntegrityError as e:
raise ConanReferenceAlreadyExistsInDB(f"Reference '{repr(ref)}' already exists: {e}") |
Hi @memsharded Capturing the error message gives the following internal error: However, it seems I cannot reproduce the error using the steps given before; I was sure they produced the same error yesterday. I thought I reduced it to "
Not quite sure if step 5 matters. |
Thanks very much for the details! I have managed to reproduce with it. I am already working on a fix for next release. |
#14526 has fixed this (you can try now from the release/2.0 branch running from source if you want), it will be in next 2.0.10 release |
Environment details
Steps to reproduce
conancenter
). (No login necessary, the error happens before any request is sent to any remote.)conan download --remote conancenter cmake/3.27.1#7d5f14447c023feef9f59640be53619a
)This also happens when using a package list on the
conan download
command. It seems a SQL error is being misreported in the following snippet:conan/conan/internal/cache/db/recipes_table.py
Lines 40 to 46 in 67dbbfd
Logs
The text was updated successfully, but these errors were encountered: