Skip to content
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

VFS SMB2 Proxy stops polling in EI 6.6.0 #5525

Closed
isurul28 opened this issue Dec 1, 2021 · 0 comments
Closed

VFS SMB2 Proxy stops polling in EI 6.6.0 #5525

isurul28 opened this issue Dec 1, 2021 · 0 comments
Labels
IceBox Older issues that are not being actively worked on but may be revisited in the future.

Comments

@isurul28
Copy link

isurul28 commented Dec 1, 2021

Description:
The SMB Share is on a Windows Server with SMBv1 and SMBv2 enabled.
When the Windows server is rebooted, the SMBv2 proxies stop and they don't restart.
SMBv1 proxies works without an issue after the windows server reboot.
We could see below error log

[2021-11-30 18:53:56,312] INFO {com.hierynomus.smbj.transport.PacketReader} - PacketReader error, got exception. com.hierynomus.protocol.transport.TransportException: java.net.SocketException: Connection resetat com.hierynomus.smbj.transport.tcp.direct.DirectTcpPacketReader.doRead(DirectTcpPacketReader.java:53)at com.hierynomus.smbj.transport.PacketReader.readPacket(PacketReader.java:70)at com.hierynomus.smbj.transport.PacketReader.run(PacketReader.java:48)at java.lang.Thread.run(Thread.java:748)Caused by: java.net.SocketException: Connection resetat java.net.SocketInputStream.read(SocketInputStream.java:210)at java.net.SocketInputStream.read(SocketInputStream.java:141)at com.hierynomus.smbj.transport.tcp.direct.DirectTcpPacketReader.readFully(DirectTcpPacketReader.java:70)at com.hierynomus.smbj.transport.tcp.direct.DirectTcpPacketReader.readTcpHeader(DirectTcpPacketReader.java:59)at com.hierynomus.smbj.transport.tcp.direct.DirectTcpPacketReader.doRead(DirectTcpPacketReader.java:48)... 3 more [2021-11-30 18:53:56,321] INFO {com.hierynomus.smbj.session.Session} - Logging off session 61572651155465 from host 192.168.104.17 [2021-11-30 18:53:56,322] ERROR {com.hierynomus.smbj.session.Session} - Caught exception while closing TreeConnect with id: 1 com.hierynomus.protocol.transport.TransportException: java.net.SocketException: Broken pipe (Write failed)at com.hierynomus.smbj.transport.tcp.direct.DirectTcpTransport.write(DirectTcpTransport.java:78)at com.hierynomus.smbj.connection.Connection.send(Connection.java:297)at com.hierynomus.smbj.session.Session.send(Session.java:292)at com.hierynomus.smbj.share.TreeConnect.close(TreeConnect.java:66)at com.hierynomus.smbj.share.Share.close(Share.java:115)at com.hierynomus.smbj.session.Session.logoff(Session.java:233)at com.hierynomus.smbj.session.Session.close(Session.java:274)at com.hierynomus.smbj.connection.Connection.close(Connection.java:153)at com.hierynomus.smbj.connection.Connection.close(Connection.java:128)at com.hierynomus.smbj.connection.Connection.handleError(Connection.java:467)at com.hierynomus.smbj.transport.PacketReader.run(PacketReader.java:54)at java.lang.Thread.run(Thread.java:748)Caused by: java.net.SocketException: Broken pipe (Write failed)at java.net.SocketOutputStream.socketWrite0(Native Method)at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)at java.net.SocketOutputStream.write(SocketOutputStream.java:155)at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)at com.hierynomus.smbj.transport.tcp.direct.DirectTcpTransport.write(DirectTcpTransport.java:75)... 11 more [2021-11-30 18:53:56,324] WARN {com.hierynomus.smbj.connection.Connection} - Exception while closing session 61572651155465 com.hierynomus.protocol.transport.TransportException: java.net.SocketException: Broken pipe (Write failed)at com.hierynomus.smbj.transport.tcp.direct.DirectTcpTransport.write(DirectTcpTransport.java:78)at com.hierynomus.smbj.connection.Connection.send(Connection.java:297)at com.hierynomus.smbj.session.Session.send(Session.java:292)at com.hierynomus.smbj.session.Session.logoff(Session.java:247)at com.hierynomus.smbj.session.Session.close(Session.java:274)at com.hierynomus.smbj.connection.Connection.close(Connection.java:153)at com.hierynomus.smbj.connection.Connection.close(Connection.java:128)at com.hierynomus.smbj.connection.Connection.handleError(Connection.java:467)at com.hierynomus.smbj.transport.PacketReader.run(PacketReader.java:54)at java.lang.Thread.run(Thread.java:748)Caused by: java.net.SocketException: Broken pipe (Write failed)at java.net.SocketOutputStream.socketWrite0(Native Method)at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)at java.net.SocketOutputStream.write(SocketOutputStream.java:155)at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)at com.hierynomus.smbj.transport.tcp.direct.DirectTcpTransport.write(DirectTcpTransport.java:75)... 9 more

Suggested Labels:

Suggested Assignees:

Affected Product Version:
EI 6.6.0
OS, DB, other environment details and versions:

Steps to reproduce:

  1. Get an EI 6.5.0 updated pack.
  2. Deploy a VFS proxy to consume files from a Windows file system.
  3. After deploying the proxy Put some text file to IN folder and restart the windows server. After windows is restart you will see SMB2 proxy wont work.

Related Issues:
#5456

@anupama-pathirage anupama-pathirage added the IceBox Older issues that are not being actively worked on but may be revisited in the future. label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IceBox Older issues that are not being actively worked on but may be revisited in the future.
Projects
None yet
Development

No branches or pull requests

2 participants