-
Notifications
You must be signed in to change notification settings - Fork 15
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
The read operation timed out #75
Comments
hello @mthang, |
hello @bedroesb
My impression of using the FTP_TLS is to create a secure connection instead of using the regular FTP connection. My question is Does the ENA portal requires secure connection for connecting the ENA submission portal? Best, |
@mthang this is indeed for the FTPs connection. 1 year back ENA announced this: As part of our continuous efforts to improve ENA we are changing the security settings of the http://ftp.dcc-private.ebi.ac.uk/ file download service. FTP protocol replaced by FTPS But from my understanding the old one still works, but it is not secure. |
This is another ftp server, but I know they recommend using FTPs also for the other one |
Thank you for your feedback ! I think I did come across with the ENA's announcement about upgrading the FTP connection to secure connection. That makes so much sense for them to implement the secure connection. I have not followed up with the latest development of the implementation of the secure FTP connection. I thought they had already finished the implementation. However, it does not seem like they have done it. We are trying to do upload instead of the download of data from ENA via Galaxy and thought the failed submission job was due to our infrastructure settings. Then, we went ahead and looked at the ena_upload.py code. We have noticed that submitting the data to ENA worked after replacing the FTP_TLS (aka the MyFTP class ) with the insecure FTP. Therefore, I wonder if you would add a few lines in your code to allow ena_upload.py using FTP when FTP_TLS does not work for the current ENA submission portal setting? Best |
Hello, I understand your question (are you using the Galaxy wrapper for the tool too than?). I would be interested in trying out FTP as fallback if I know they will keep supporting it. |
hi @bedroesb Thanks, |
@mthang I contacted ENA, and they are not planning to take the normal FTP submission way down anytime soon. I will look into adding a parameter or using this as a fallback! |
@bedroesb |
@bedroesb |
@mthang it is great to hear you managed to make a successful submission without making changes to the script. With me ufw is disabled when I test the script. I am afraid that this feature ended up on my low priority list. I am wondering if there is still interest in this? Sorry for the radio silence. |
These days I putted some time in making spreadsheet templates for the tool that keep themselves updated: https://github.com/ELIXIR-Belgium/ENA-metadata-templates with GitHub Actions |
After an internal discussion again, we decided to not support the less secure ftp submission route, since the ports that need to be open are clearly stated in the error code and on the website of ENA. My apologies if this decision, we can revisit if more people are being limited by this. |
Hi there,
I am unable get this the following command to run on my ubuntu VM. The tool was installed using the pip command (pip install ena-upload-cli). My ubuntu VM already has the ftp port 21 open by default. Any thoughts?
ena-upload-cli --action add --center 'BioCommons Australia' --study ENA_template_studies.tsv --sample ENA_template_samples.tsv --experiment ENA_template_experiments.tsv --run ENA_template_runs.tsv --data *gz -d --secret .secret.yml
Check if all required columns are present in the study table.
Check if all required columns are present in the sample table.
Check if all required columns are present in the experiment table.
Check if all required columns are present in the run table.
No valid checksums found, generate now... done.
Connecting to ftp.webin2.ebi.ac.uk....
uploading /home/ubuntu/ena/ENA_TEST1.R1.fastq.gz
ERROR: The read operation timed out
ERROR: If your connection times out at this stage, it propably is because of a firewall that is in place. FTP is used in passive mode and connection will be opened to one of the ports: 40000 and 50000.
Traceback (most recent call last):
File "/home/ubuntu/.local/bin/ena-upload-cli", line 11, in
load_entry_point('ena-upload-cli==0.6.1', 'console_scripts', 'ena-upload-cli')()
File "/home/ubuntu/.local/lib/python3.8/site-packages/ena_upload/ena_upload.py", line 925, in main
submit_data(file_paths, password, webin_id)
File "/home/ubuntu/.local/lib/python3.8/site-packages/ena_upload/ena_upload.py", line 424, in submit_data
print(ftps.storbinary(f'STOR {filename}', open(path, 'rb')))
File "/usr/lib/python3.8/ftplib.py", line 504, in storbinary
conn.unwrap()
File "/usr/lib/python3.8/ssl.py", line 1285, in unwrap
s = self._sslobj.shutdown()
socket.timeout: The read operation timed out
Many thanks,
The text was updated successfully, but these errors were encountered: