SFTP Operation Failed (Packet is not moving from landing zone).

Description

Build -0.9.1.

Process a packet and observed packet is not moving from landing zone and getting below error.

7 - FileManagerImpl::getFile(DirectoryPathDto workingDirectory, String fileName,SftpJschConnectionDto sftpConnectionDto)::entry
2019-10-21T10:34:29Z - [io.mosip.registration.processor.packet.manager.service.impl.FileManagerImpl] - DEBUG - SESSIONID - USERID - - FileManagerImpl::getSftpConnection()::entry
2019-10-21T10:34:29Z - [io.mosip.registration.processor.packet.manager.service.impl.FileManagerImpl] - ERROR - SESSIONID - REGISTRATIONID - 10005100790001820191021102927 - Failure4: Failure
at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2873)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:1337)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:1290)
at io.mosip.registration.processor.packet.manager.service.impl.FileManagerImpl.getFile(FileManagerImpl.java:344)
at io.mosip.registration.processor.packet.manager.service.impl.FileManagerImpl.getFile(FileManagerImpl.java:46)
at io.mosip.registration.processor.packet.uploader.service.impl.PacketUploaderServiceImpl.validateAndUploadPacket(PacketUploaderServiceImpl.java:184)
at io.mosip.registration.processor.packet.uploader.service.impl.PacketUploaderServiceImpl.validateAndUploadPacket(PacketUploaderServiceImpl.java:64)
at io.mosip.registration.processor.packet.uploader.stage.PacketUploaderStage.processURL(PacketUploaderStage.java:111)
at io.vertx.ext.web.impl.BlockingHandlerDecorator.lambda$handle$0(BlockingHandlerDecorator.java:48)
at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$1(ContextImpl.java:273)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)

2019-10-21T10:34:29Z - [io.mosip.registration.processor.packet.uploader.service.impl.PacketUploaderServiceImpl] - ERROR - SESSIONID - REGISTRATIONID - 10005100790001820191021102927 - RPR_PUM_SFTP_FILE_OPERATION_FAILEDio.mosip.registration.processor.core.exception.SftpFileOperationException: RPR-PKM-006 --> SFTP Operation Failed

Environment

None

Attachments

1
  • 21 Oct 2019, 12:34 PM

Activity

Show:

Piyush Singh April 1, 2020 at 4:22 AM

verified.

Monobikash.Das@mindtree.com January 28, 2020 at 8:29 AM

The root cause is -

the packet uploader stage uses sftp server to get the packet from landing zone. Now sftp server allows only 10 active session at a time, If more packets comes then it tries to open 11th session and it fails. We are processing only 10 packets at a time now.

Piyush Singh December 16, 2019 at 10:46 AM

Hi Mono, Could you please provide the root cause of this.

Piyush Singh November 11, 2019 at 12:20 PM

We are facing this issue for even one packet upload to reg proc.

Monobikash.Das@mindtree.com October 30, 2019 at 7:21 AM
Edited

Since the issue was found recently during performance test its not present in the open list. Its fine. Keep this defect as well.

If you see the creation and update date of previous defect, it was reported on october 16th and fixed on october 21. You have raised this defect on october 21. Since i know this defect is already fixed i updated to mark it as duplicate. But since it was not mentioned in open issues list we will keep this defect also open.

Fixed

Details

Assignee

Reporter

Severity

Major

Closed Date

Apr 01, 2020, 4:22 AM

Release Number

Rootcause

Coding issue

Time tracking

2h logged

Sprint

Priority

Created October 21, 2019 at 11:32 AM
Updated April 1, 2020 at 4:22 AM
Resolved November 18, 2019 at 12:53 PM

Flag notifications