Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[service] Not enough permissions to delete artifact #1020

Closed
danimtb opened this issue Mar 2, 2020 · 2 comments
Closed

[service] Not enough permissions to delete artifact #1020

danimtb opened this issue Mar 2, 2020 · 2 comments
Labels
bug Something isn't working priority: high

Comments

@danimtb
Copy link
Member

danimtb commented Mar 2, 2020

Coming from #1008 (comment)

There was an error uploading the log files

Errors ocurred processing the pipeline, relaunching the process...org.apache.http.client.HttpResponseException: {
  "errors" : [ {
    "status" : 403,
    "message" : "Not enough permissions to delete/overwrite artifact 'misc:logs/pr/1008/5/libcurl/7.66.0/5bf21f754405cd5cdae4509e0ed60c17fc8ca929/profile.txt' (user 'conan-creator' needs DELETE permission)."
  } ]
}

Could be a side-effect of retrying the build and findind the log files already uploaded to that same path

@danimtb danimtb added bug Something isn't working priority: high labels Mar 2, 2020
@a4z a4z mentioned this issue Mar 3, 2020
4 tasks
@danimtb
Copy link
Member Author

danimtb commented Mar 12, 2020

Seems this is a side effect of the retries after this error happens:

[Pipeline] { (RetryIze: Attempt 1/3 failed)
[Pipeline] }
[Pipeline] echo
Errors ocurred processing the pipeline, relaunching the process...org.apache.http.conn.ConnectTimeoutException: Connect to c3i.jfrog.io:443 [c3i.jfrog.io/104.196.54.40] failed: connect timed out

And then it is failing due to not having permissions to delete files for security restrictions

@danimtb
Copy link
Member Author

danimtb commented Mar 12, 2020

In this case https://ci-conan-prod.jfrog.team/job/conan-center-pull-request/job/PR-1093/9/consoleText

One of the failing package IDs is 68ac2f1fb07af0e81507faa4e96a8fd233a45ac9 and we can see curl commands for uploading:

  • 68ac2f1fb07af0e81507faa4e96a8fd233a45ac9/create_stdout.txt
  • 68ac2f1fb07af0e81507faa4e96a8fd233a45ac9/create_stderr.txt

But there are no:

  • 68ac2f1fb07af0e81507faa4e96a8fd233a45ac9/profile.txt
  • 68ac2f1fb07af0e81507faa4e96a8fd233a45ac9/profile_id.txt
  • 68ac2f1fb07af0e81507faa4e96a8fd233a45ac9/profile_title.txt

So the upload of any of the profile files could be the cause of the timeout

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working priority: high
Projects
None yet
Development

No branches or pull requests

1 participant