Skip to content
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

Can no longer upload to Zenodo; due to recent Zenodo update? #345

Open
kltm opened this issue Nov 18, 2023 · 6 comments
Open

Can no longer upload to Zenodo; due to recent Zenodo update? #345

kltm opened this issue Nov 18, 2023 · 6 comments

Comments

@kltm
Copy link
Member

kltm commented Nov 18, 2023

Zenodo has apparently changed the behind-the-scenes AWS bucket API with their more recent update. (This is the one they showed us back when we were having trouble uploding large files.)

Get bucket info using script? [Y/n]
Traceback (most recent call last):
  File "./scripts/zenodo-version-update.py", line 512, in <module>
    main()
  File "./scripts/zenodo-version-update.py", line 320, in main
    for filedoc in response.json()['contents']:
KeyError: 'contents'

With this, our upload script no longer works. https://help.zenodo.org/docs/about/whats-changed/ gives no indication of this change, but it was possibly a not-for-public "hack". Hopefully this is now integrated. We shall see.

The fix here is, in order of ease and likelihood:

  • Hope this is temporary
  • repair script to fit available API (i.e. "old" API)
  • figure out how to manually complete upload
  • find non-Zenodo location for data (likely Data Dryad)
@kltm
Copy link
Member Author

kltm commented Nov 18, 2023

I'm actually a little confused--the API docs (https://developers.zenodo.org/?shell#quickstart-upload) seem so far to indicate that things have not changed. Walking through the commands curl by curl, I'm not seeing where things have gone wrong or changed (yet).

Similar to my issue is zenodo/zenodo#2493; I'm actually thinking it may make sense to give this a moment as it may actually be an upstream issue.

@kltm kltm changed the title Can no longer upload to Zenodo, likely due to recent Zenodo update Can no longer upload to Zenodo; due to recent Zenodo update? Nov 19, 2023
@kltm
Copy link
Member Author

kltm commented Nov 19, 2023

Grossly, the steps we need to execute are:

  1. create new version
  2. examine new version to get files in it
  3. remove files found in new version
  4. add files to new version
  5. publish

We seem to be getting stuck now on "2". This stopped working for us between 2023-10-09 and 2023-11-16.

Using the sandbox server, when we try and probe, using the new file API, for the deposition contents of the recently created version, we get:

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer <TOKEN>" https://sandbox.zenodo.org/api/files/XXX-YYY-ZZZ-AAA-BBB
{
    "error_id": "381670a8ddd247ceaef6a05dbfc1fac4",
    "message": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.",
    "status": 500
}

@kltm
Copy link
Member Author

kltm commented Nov 19, 2023

Opened issue at Zenodo: zenodo/zenodo#2506

@kltm
Copy link
Member Author

kltm commented Nov 21, 2023

Okay, I have managed to get a 47GB upload to work locally in default FF after many many partials.
I'm now looking at making a draft release through the web interface.
Tagging @pgaudet on progress.

@kltm
Copy link
Member Author

kltm commented Jan 20, 2024

@pgaudet Bumping this over to stabilization project for now, as it essentially blocks #353 ; if I can't fix, we should move off Zenodo

@kltm
Copy link
Member Author

kltm commented Apr 6, 2024

Can confirm now this is ongoing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant