FTP download failing with forbidden error message

I’m trying to download a dataset (not a collection) from usegalaxy.eu using command line. I’m using WSL2 with Ubuntu. I get this error with wget.

Resolving usegalaxy.eu (usegalaxy.eu)...
Connecting to usegalaxy.eu (usegalaxy.eu)||:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2024-05-13 23:26:29 ERROR 403: Forbidden.

I get this with curl.

{"err_msg":"HistoryDatasetAssociation is not accessible by user","err_code":403002}

Just in case, I tried downloading with API key generated for my account, as described here, but it gave the same errors again.

Galaxy Server: European Galaxy Server

I checked the dataset, and I have access. I followed the commands given in the link, and they don’t work.

1 Like

Welcome, @lupolk

Try setting the history to a shared state first, then run the retrieval. You don’t need to post the link back here, and you don’t need to “publish”. Just setting the shared state for the history where the datasets are located is enough to grant permissions for access.

How to → FAQ: Sharing your History

Why is this needed?
The UseGalaxy.eu server is GDPR compliant, so requires this extra permission step for direct data download, or before attempting to use data URLs for certain other functions such as moving a dataset between your accounts at different servers.

Let us know if this helps! :slight_smile:

Hi, thank you so much! This fixed my problem :slight_smile:

1 Like

Great, thanks for letting us know! :rocket: