Created 04-24-2026 04:01 AM
Have enabled retry option in ListSMB and FetchSMB, since for some reason they are not able to list/fetch files in first attempt.
However, on retry the processor lists and fetches the file successfully.
But, the scheduler is skips fews runs.
Example:
Scheduler is set to run every 30 min and let's assume the job first runs at 00:00 AM.
On first run it fails to either list/fetch the file and the retry kicks in and the files is listed and fetched successfully.
But, the next scheduler run which is suppose to be at 00:30 AM and 01:00 AM are skipped.
Would like to know why retry is impacting scheduler.
Thanks.
Created 04-28-2026 01:24 AM
Have removed the Retry on ListSMB
On running ListSMB for first time, I get below error,
ListSmb[id=678b3091-1e8c-38c6-a274-0d2eb00c91cb] Failed to perform listing on remote host due to Could not perform listing: java.io.IOException: Could not perform listing
- Caused by: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.TimeoutException: Timeout expired
On running ListSMB second time, its able to list the files, but FetchSMB fails with below 2 type of errors, not all the files fails though.
FetchSmb[id=6b1f9f93-4d76-38fc-94ed-08918722a36b] Could not fetch file OTL-Prod-Reports/OTL_Manual_Override//Errors_and_Warnings/Events/Events_OTL_Override_Error_Warnings_2026_04_24.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.TimeoutException: Timeout expired
FetchSmb[id=6b1f9f93-4d76-38fc-94ed-08918722a36b] Could not fetch file OTL-Prod-Reports/OTL_Manual_Override//Errors_and_Warnings/New_Stores/NewStores_OTL_Override_Error_Warnings_2026_04_25.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: Cannot write SMB2_SESSION_SETUP with message id << 169 >> as transport is disconnected
- Caused by: com.hierynomus.protocol.transport.TransportException: Cannot write SMB2_SESSION_SETUP with message id << 169 >> as transport is disconnected
Created 04-28-2026 06:19 AM
Have removed the Retry on ListSMB
On running ListSMB for first time, I get below error,
ListSmb[id=678b3091-1e8c-38c6-a274-0d2eb00c91cb] Failed to perform listing on remote host due to Could not perform listing: java.io.IOException: Could not perform listing
- Caused by: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.TimeoutException: Timeout expired
On running ListSMB second time, its able to list the files, but FetchSMB fails with below 2 type of errors, not all the files fails though.
FetchSmb[id=6b1f9f93-4d76-38fc-94ed-08918722a36b] Could not fetch file OTL-Prod-Reports/OTL_Manual_Override//Errors_and_Warnings/Events/Events_OTL_Override_Error_Warnings_2026_04_24.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.TimeoutException: Timeout expired
FetchSmb[id=6b1f9f93-4d76-38fc-94ed-08918722a36b] Could not fetch file OTL-Prod-Reports/OTL_Manual_Override//Errors_and_Warnings/New_Stores/NewStores_OTL_Override_Error_Warnings_2026_04_25.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: Cannot write SMB2_SESSION_SETUP with message id << 169 >> as transport is disconnected
- Caused by: com.hierynomus.protocol.transport.TransportException: Cannot write SMB2_SESSION_SETUP with message id << 169 >> as transport is disconnected
Thanks
Created 04-28-2026 10:07 AM
Have removed the Retry on ListSMB
On running ListSMB for first time, I get below error,
ListSmb[id=678b3091-1e8c-38c6-a274-0d2eb00c91cb] Failed to perform listing on remote host due to Could not perform listing: java.io.IOException: Could not perform listing
- Caused by: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.TimeoutException: Timeout expired
On running ListSMB second time, its able to list the files, but FetchSMB fails with below 2 type of errors, not all the files fails though.
FetchSmb[id=6b1f9f93-4d76-38fc-94ed-08918722a36b] Could not fetch file OTL-Prod-Reports/OTL_Manual_Override//Errors_and_Warnings/Events/Events_OTL_Override_Error_Warnings_2026_04_24.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.util.concurrent.TimeoutException: Timeout expired
- Caused by: java.util.concurrent.TimeoutException: Timeout expired
FetchSmb[id=6b1f9f93-4d76-38fc-94ed-08918722a36b] Could not fetch file OTL-Prod-Reports/OTL_Manual_Override//Errors_and_Warnings/New_Stores/NewStores_OTL_Override_Error_Warnings_2026_04_25.csv.: java.io.IOException: Could not create session for share smb://ifiler-smb03:445/SFTP
- Caused by: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: Cannot write SMB2_SESSION_SETUP with message id << 169 >> as transport is disconnected
- Caused by: com.hierynomus.protocol.transport.TransportException: Cannot write SMB2_SESSION_SETUP with message id << 169 >> as transport is disconnected
Created 04-30-2026 05:16 AM
@nisaar
Why are you posting the same response over and over again every few hours?
It makes the thread unnecessarily noisy.
Your issue is a timeout issue within the SMBJClientProviderService that is attempting to establish a connection with your target SMB share. This is taking longer then the configured timeout. The subsequent request is probably working because the connection is still established at time of second run. Same issue with the FetchSMB it appears as the connection is closed at time of attempting to fetch the File content. Have you tried increasing the Timeout setting in that controllers service from the default 5 secs to 20 seconds?
Have you inspected your network latency between NiFi host and SMB server?
Are you seeing any packet loss?
Have you inspected the SMB server logs in Windows?
Does the behavior change if you stop using the "run once" option and just start the processor? Your run schedule of every 30 seconds is allowing the connection to timeout. If you also adjust that run schedule to 10 seconds on ListSMB, do you see a change in behavior?
Unfortunately I do not have a SMB share available to test this setup myself and am providing what guidance and suggestions I can to help with your community query.
Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt
Created 04-30-2026 08:51 AM
Sorry for reposting again and again, whatever I post was not visible to me on page refresh.
So was confused if its getting posted or not.
- Yes, have tried increasing the timeout upto 120 Secs, still same issue.
- Out storage team don't save the SMB server logs.
- I'm not sure how to check packet loss.
- Yes, have already tried running it based on scheduler instead of "Run Once" and still same error.
- Its scheduled to run every 30 min not 30 seconds.
Created 05-01-2026 07:28 AM
@nissar
Do you observe same issue if you run it more frequently so it is constantly checking for new files to list rather then larger batches every 30 minutes?
Matt
Created 05-03-2026 11:40 AM
Yes, its same issue if we run it frequently.
If I use Retry option on FetchSMB its able to fetch the file that failed during first attempt.
But, the concern is retry is impacting the scheduler, the next scheduler which is supposed to run after 30 minutes is not getting triggered, sometime it even skips 2 scheduler runs.
Is retry somehow impacting scheduler ?
my problem is not the error we get during FetchSMB, this can be resolved with retry option. But the concern is more on scheduler.
Thanks