galaxyproject / galaxy

Data intensive science for everyone.
https://galaxyproject.org
Other
1.4k stars 1.01k forks source link

shed_update false error "... you cannot administer it", err_code 403005 #10202

Open peterjc opened 8 years ago

peterjc commented 8 years ago

Getting this (spurious) message despite successful repository updates:

You are not the owner of this repository, so you cannot administer it.", "err_code": 403005

I am not the owner (IUC is), but I should be able to administer it (as peterjc).


Using planemo dev version from yesterday and the Test Tool Shed

This was running on Mac OS X, with my (peterjc) API token details in ~/.planemo.yml

$ planemo --version
planemo, version 0.28.0.dev0
$ planemo shed_update -t testtoolshed -m "Record SHA256 checksums for NCBI binaries" package_blast_plus_2_*
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_26' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_26' && git diff --quiet
Repository package_blast_plus_2_2_26 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_26.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_27' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_27' && git diff --quiet
Repository package_blast_plus_2_2_27 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_27.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_28' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_28' && git diff --quiet
Repository package_blast_plus_2_2_28 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_28.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_29' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_29' && git diff --quiet
Repository package_blast_plus_2_2_29 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_29.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_30' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_30' && git diff --quiet
Repository package_blast_plus_2_2_30 updated successfully.
Repository metadata updated successfully for repository package_blast_plus_2_2_30.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_31' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_31' && git diff --quiet
Repository package_blast_plus_2_2_31 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_31.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_3_0' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_3_0' && git diff --quiet
Could not update package_blast_plus_2_3_0
Unexpected HTTP status code: 400: {"content_alert": "", "err_msg": "No changes to repository."}
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_3_0.
Failed to update a repository.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_4_0' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_4_0' && git diff --quiet
Could not update package_blast_plus_2_4_0
Unexpected HTTP status code: 400: {"content_alert": "", "err_msg": "No changes to repository."}
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_4_0.
Failed to update a repository.

Confirmed updates:

https://testtoolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_26/a3d7aa8d5e2c https://testtoolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_27/eb07c1c0e988 https://testtoolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_28/629137b8979c https://testtoolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_29/9cd5cbdf8ff7 https://testtoolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_30/6b84c917eb9e https://testtoolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_31/6e4a0aaa3357

Confirmed no changes (previously updated):

https://testtoolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_3_0/3986b5d787b5

Confirmed no changes (first version had checksums):

https://testtoolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_4_0/86bfd94cdfad


Using planemo dev version from today (after 0.28.0 was released) and the main Tool Shed, again running on Mac OS X, with my (peterjc) API token details in ~/.planemo.yml

$ planemo --version
planemo, version 0.29.0.dev0
$ planemo shed_update -t toolshed -m "Record SHA256 checksums for NCBI binaries" package_blast_plus_2_*
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_26' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_26' && git diff --quiet
Repository package_blast_plus_2_2_26 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_26.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_27' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_27' && git diff --quiet
Repository package_blast_plus_2_2_27 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_27.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_28' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_28' && git diff --quiet
Repository package_blast_plus_2_2_28 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_28.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_29' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_29' && git diff --quiet
Repository package_blast_plus_2_2_29 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_29.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_30' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_30' && git diff --quiet
Repository package_blast_plus_2_2_30 updated successfully.
Repository metadata updated successfully for repository package_blast_plus_2_2_30.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_31' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_2_31' && git diff --quiet
Repository package_blast_plus_2_2_31 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_2_31.
Repo updated but metadata was not.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_3_0' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_3_0' && git diff --quiet
Could not update package_blast_plus_2_3_0
Unexpected HTTP status code: 400: {"content_alert": "", "err_msg": "No changes to repository."}
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_3_0.
Failed to update a repository.
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_4_0' && git rev-parse HEAD
cd '/Volumes/Hitachi-3TB-mirrored/repositories/galaxy_blast/packages/package_blast_plus_2_4_0' && git diff --quiet
Could not update package_blast_plus_2_4_0
Unexpected HTTP status code: 400: {"content_alert": "", "err_msg": "No changes to repository."}
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_4_0.
Failed to update a repository.

Confirmed updates:

https://toolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_26/869ee5651b61 https://toolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_27/ec181920469a https://toolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_28/222036f7cab6 https://toolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_29/18496de7706f https://toolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_30/548a170d189f https://toolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_2_31/921d2963a177

Confirmed no changes (previously updated):

https://toolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_3_0/625c83e59aa1

Confirmed no changes (first version had checksums):

https://toolshed.g2.bx.psu.edu/view/iuc/package_blast_plus_2_4_0/7d1b2564a344

peterjc commented 7 years ago

The error code is now just 403, but this seems related:

$ planemo --version
planemo, version 0.36.0.dev0
$ planemo shed_update -t testtoolshed packages/package_blast_plus_2_5_0/
cd '/mnt/shared/users/pc40583/repositories/galaxy_blast/packages/package_blast_plus_2_5_0' && git rev-parse HEAD
cd '/mnt/shared/users/pc40583/repositories/galaxy_blast/packages/package_blast_plus_2_5_0' && git diff --quiet
Repository package_blast_plus_2_5_0 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_5_0.
Repo updated but metadata was not.

and on the main tool shed, the same:

$ planemo shed_update -t toolshed packages/package_blast_plus_2_5_0/
cd '/mnt/shared/users/pc40583/repositories/galaxy_blast/packages/package_blast_plus_2_5_0' && git rev-parse HEAD
cd '/mnt/shared/users/pc40583/repositories/galaxy_blast/packages/package_blast_plus_2_5_0' && git diff --quiet
Repository package_blast_plus_2_5_0 updated successfully.
Unexpected HTTP status code: 403: {"err_msg": "You are not the owner of this repository, so you cannot administer it.", "err_code": 403005}
Repository metadata updated successfully for repository package_blast_plus_2_5_0.
Repo updated but metadata was not.

Note the conflicting messages claiming the metadata was updated, and then claiming it was not.

Note here I am using Tool Shed credentials for peterjc which have been granted write access to the iuc owned repositories being updated.

peterjc commented 7 years ago

Same thing still happening with devteam/ncbi_blast_plus as peterjc.

peterjc commented 7 years ago

I'd like to switch the repository to using TravisCI stages, which means the "failure" from planemo shed_update is now visible and (unless masked) treats the build as a failure, e.g. https://travis-ci.org/peterjc/galaxy_blast/builds/233620475

Is this something which can be fixed on the (Test) Tool Shed side? i.e. Do I need to have admin permissions as peterjc on https://testtoolshed.g2.bx.psu.edu/view/devteam/ncbi_blast_plus and https://testtoolshed.g2.bx.psu.edu/view/devteam/blast_datatypes

mvdbeek commented 4 years ago

We should rework that on the TS side, if you have permissions to make code changes there's no point that you can't update metadata.