-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hello,
I've met a very similar problem to #141 multiple times also, and with webin-cli 8.1.1 as well as 8.2.0. However OP seems to think it comes from their institution firewall, so writing a new issue as this may be another problem with similar log (since it definitely does not come from my institution firewall).
The webin processes go silent for a while, then at some point the FTP connection gets lost, and the process crashes.
The log is the following:
2025-07-01T09:10:55 INFO : Submission has not been validated previously.
2025-07-01T09:11:39 INFO : Submission(s) validated successfully.
2025-07-01T09:11:40 INFO : Connecting to FTP server : webin2.ebi.ac.uk
2025-07-01T09:11:41 INFO : Uploading file: REDACTED
2025-07-01T11:25:08 WARN : Retrying file upload to FTP server.
2025-07-01T11:25:08 INFO : Connecting to FTP server : webin2.ebi.ac.uk
2025-07-01T11:25:42 WARN : Retrying file upload to FTP server.
2025-07-01T11:25:42 INFO : Connecting to FTP server : webin2.ebi.ac.uk
2025-07-01T11:26:00 WARN : Retrying file upload to FTP server.
2025-07-01T11:26:00 INFO : Connecting to FTP server : webin2.ebi.ac.uk
2025-07-01T15:00:07 WARN : Retrying file upload to FTP server.
2025-07-01T15:00:07 INFO : Connecting to FTP server : webin2.ebi.ac.uk
2025-07-01T15:00:23 WARN : Retrying file upload to FTP server.
2025-07-01T15:00:23 INFO : Connecting to FTP server : webin2.ebi.ac.uk
2025-07-01T15:00:38 WARN : Retrying file upload to FTP server.
2025-07-01T15:00:38 INFO : Connecting to FTP server : webin2.ebi.ac.uk
2025-07-01T15:01:09 ERROR: Failed to upload files to FTP server. Failed to upload files to server because of a system error.
uk.ac.ebi.ena.webin.cli.WebinCliException: Failed to upload files to FTP server. Failed to upload files to server because of a system error.
at uk.ac.ebi.ena.webin.cli.WebinCliException.error(WebinCliException.java:89)
at uk.ac.ebi.ena.webin.cli.WebinCli.submit(WebinCli.java:371)
at uk.ac.ebi.ena.webin.cli.WebinCli.execute(WebinCli.java:292)
at uk.ac.ebi.ena.webin.cli.WebinCli.__main(WebinCli.java:122)
at uk.ac.ebi.ena.webin.cli.WebinCli.main(WebinCli.java:90)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
Caused by: uk.ac.ebi.ena.webin.cli.WebinCliException: Failed to upload files to FTP server.
at uk.ac.ebi.ena.webin.cli.WebinCliException.systemError(WebinCliException.java:69)
at uk.ac.ebi.ena.webin.cli.upload.FtpService.storeFile(FtpService.java:266)
at uk.ac.ebi.ena.webin.cli.upload.FtpService.upload(FtpService.java:94)
at uk.ac.ebi.ena.webin.cli.WebinCli.submit(WebinCli.java:362)
... 11 common frames omitted
Caused by: java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:288)
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:314)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:355)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:808)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:484)
at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478)
at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1465)
at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1069)
at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:287)
at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:330)
at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:190)
at java.base/java.io.InputStreamReader.read(InputStreamReader.java:177)
at java.base/java.io.BufferedReader.fill(BufferedReader.java:162)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:329)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:396)
at org.apache.commons.net.ftp.FTP.getReply(FTP.java:565)
at org.apache.commons.net.ftp.FTP.getReply(FTP.java:556)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:1222)
at org.apache.commons.net.ftp.FTPSClient.sendCommand(FTPSClient.java:894)
at org.apache.commons.net.ftp.FTPSClient.openDataSecureConnection(FTPSClient.java:825)
at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:281)
at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:947)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:3275)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:3296)
at uk.ac.ebi.ena.webin.cli.upload.FtpService.lambda$storeFile$13(FtpService.java:253)
at uk.ac.ebi.ena.webin.cli.upload.FtpService.lambda$executeWithReconnect$15(FtpService.java:297)
at uk.ac.ebi.ena.webin.cli.utils.RetryUtils.lambda$executeWithRetry$0(RetryUtils.java:69)
at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:329)
at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:209)
at uk.ac.ebi.ena.webin.cli.utils.RetryUtils.executeWithRetry(RetryUtils.java:63)
at uk.ac.ebi.ena.webin.cli.upload.FtpService.executeWithReconnect(FtpService.java:289)
at uk.ac.ebi.ena.webin.cli.upload.FtpService.storeFile(FtpService.java:246)
... 13 common frames omitted
2025-07-01T15:01:09 ERROR: Some or all submissions failed. Please see application logs.
uk.ac.ebi.ena.webin.cli.WebinCliException: Some or all submissions failed. Please see application logs.
at uk.ac.ebi.ena.webin.cli.WebinCliException.systemError(WebinCliException.java:81)
at uk.ac.ebi.ena.webin.cli.WebinCli.submit(WebinCli.java:413)
at uk.ac.ebi.ena.webin.cli.WebinCli.execute(WebinCli.java:292)
at uk.ac.ebi.ena.webin.cli.WebinCli.__main(WebinCli.java:122)
at uk.ac.ebi.ena.webin.cli.WebinCli.main(WebinCli.java:90)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
There were 2 surprising things to me:
- The timestamps, this happens at 11:26, then somehow the next failure it at 15:00. I guess it got the connection back, but still did nothing?
- The processes status in the mean time were permanently silenced everytime I checked on them.
For this log specifically, the file I was uploading was 500Mo. Other files of the same size took barely a minute or two and worked perfectly. There is no problem of disk or network or anything like this in the meantime.
In my previous attempts, the FTP failures times were random. Crashes were random and impossible to replicate, sometimes a file would work first time, something it would need more tries. It seemed vaguely linked to file size as files of bigger size (8 Go needed 6 attempts) seem more prone to failure.
If you need anything else to track down the issue don't hesitate.
Have a nice day,
Adelme