-
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
Upload to bintray in ci fails with AttributeError: 'NoneType' object has no attribute 'file_sums'
#4698
Comments
Hi @madebr I have tracked the issue to a broken package in your repository: https://bintray.com/madebr/maarten/tcl%3Amadebr/8.6.9%3Atesting#files/madebr%2Ftcl%2F8.6.9%2Ftesting%2Fexport There is no You need to remove the package first before uploading, or use @danimtb had already started a couple of days ago this PR #4662 to improve the robustness of Conan against this kind of transfer errors, hopefully it can be improved. |
Thanks for tracking it down and fixing it in the future. |
Same issue over here, thanks for the quick solution |
Ok, update to my previous statement... After removing the remote packages from the server we still encounter the message. Here's what we know so far:
We added a sleep of 0, 30, 60 and 90 seconds to the CI builds, so that they do not finish at the same time but slightly delayed. Then the uploads happen after each other instead of in parallel. With this hack we encounter no issues anymore. We are still using Conan Server 1.3.3 though. So this could also be an issue that has been resolved. Our Conan client is at 1.13.0 right now. We will update the Conan server soon. We also have an Artifactory EE set up that we will start using with Conan in the near future. I still need to reproduce this in an isolated setup. But right now this is our situation. I will take some time later this week to check how to repro this. When I have a repro setup I'll also test with different server versions. |
@monsdar yes, the scenario you are describing is totally possible. This could happen in concurrent uploads as the packages might still be incomplete when another job tries to make the same package upload. This error is something we have seen when packages are corrupted or have missing files in the server, so we have improved the upload workflow in #4662 to force the upload in the case the package is incomplete. This should mitigate your issue. However, I strongly recommend you to set up an Artifactory for enterprise use as the conan_server is not prepared to scale and has limitations with concurrency. |
Yes, Artifactory will be the long-term solution. It's already set up, it's just not in productive use by now. We'll probably switch over sooner rather than later. I was trying to reproduce this issue by running 4 docker containers that build the same component with different options (same package, different packageIds). When I trigger the upload on all 4 instances at the same time it works flawless everytime. Perhaps my repro environment is not set up quite right to cause the error. |
The collision happens when uploading the same package (same package ID) at the same time. |
Is it possible to have a lock in place for this? |
I have the same problem with Conan 1.14.1. In my configuration, I have 2 CI jobs building for 2 different architectures from the same recipe. I got the following error in one of them during upload.
|
We can continue at #4953 the discussion. Thanks |
Uploading packages to bintray on travis-ci fails with an
AttributeError
.https://travis-ci.org/madebr/conan-tcl/jobs/503306695#L2017
The package is a standard conan recipe: https://github.com/madebr/conan-tcl/tree/testing/8.6.9
The text was updated successfully, but these errors were encountered: