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

Error: Accept: Connection Reset #997

Closed
jems99 opened this issue Dec 18, 2017 · 15 comments
Closed

Error: Accept: Connection Reset #997

jems99 opened this issue Dec 18, 2017 · 15 comments

Comments

@jems99
Copy link

jems99 commented Dec 18, 2017

Please answer the following

If it is a terminal issue then please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH

"OpenSSH for Windows" version
((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)

Latest build

Server OperatingSystem
((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion\" -Name ProductName).ProductName)
Server 2008 R2

Client OperatingSystem

What is failing
After about 10 minutes we get this error "Error: Accept: Connection Reset". This causes SFTP to stop working completely and the log file to grow exponentially.

Expected output

Actual output

@cxhercules
Copy link

I started getting this all weekend, several times per second after about 10 hours possibly and disk space was filled by a sshd.log of 16 gigs.

"OpenSSH for Windows" version: v0.0.22.0

Server OperatingSystem: 2012r2 build 9600

Client OperatingSystem

What is failing:
We are getting constant error message "Error: Accept: Connection Reset" and this has filled disk space.

@bagajjal
Copy link
Collaborator

Can you provide the sshd.log with DEBUG3 enabled..
Are you seeing this issue all the time?
Also have you tried restarting sshd deamon process (net stop sshd; net start sshd)? Did it help?

Unfortunately we don't have log throttling mechanism as our long term goal is to move away from log file to windows logging..

As a workaround to throttle the sshd log,
create a task scheduler task that would run the following PowerShell script (edit as needed) at intervals. It empties contents of sshd.log into a backup file once sshd.log breaches 25MB

if ((Get-ChildItem .\logs\sshd.log).Length -gt 2510241024)
{
copy-item .\logs\sshd.log .\logs\sshd.log.prev
$null | Set-Content .\logs\sshd.log
}

@jems99
Copy link
Author

jems99 commented Dec 18, 2017

For me the log is this message over and over: Error: Accept: Connection Reset

When the application gets into this state no connections can be established. Restarts both services fixes the issue for about 10 minutes and then it happens again. Right now we can't use SFTP because of this.

@jems99
Copy link
Author

jems99 commented Dec 18, 2017

I can run in DEBUG3 and provide shortly.

@cxhercules
Copy link

Yes seems related to issue #935 and will see if I can set to debug3 and set this task in place as well.

Thanks

@bagajjal
Copy link
Collaborator

it would be great if you can repro the issue and provide the complete log file that covers service restart, working for 10 minutes and start seeing the issue again..

issue #935 is about log throttling but not related to this.

@cxhercules
Copy link

This morning came in and everything was down because all disk were full on ssh enabled windows systems so had to quickly get them back up and running, but did investigate on one system and that is how I found the log file. I will add more info as I gather it, thanks.

@cxhercules
Copy link

Well it relates to this in that it filled the disk space or create huge log file, but understood. I thought maybe they just did not show the error message that filled the log. Seemed to me it could have been same error.

@bagajjal
Copy link
Collaborator

If you have a close look at the #935 description, they are using 0.0.10.0 (might be a year old).. The current version is 0.0.24.0..

@cxhercules
Copy link

I did see that, and thank you.

@cxhercules
Copy link

@bagajjal by the way I tested your script and works, but 25MB should be represented as 26214400.

@bagajjal
Copy link
Collaborator

bagajjal commented Dec 18, 2017

This might be related to #787

fyi, we couldn't reproduce #787 as well and we don't have proper logs (DEBUG3 enabled)..
It would be great if you can provide sshd.log with DEBUG3 enabled so that we can analyze from log file.

@cxhercules
Copy link

Thank you I will check with team to find out if these systems are in fact being scanned. I will set some systems to debug3 in effort to resolve this issue.

@bagajjal
Copy link
Collaborator

Any update on this

@manojampalam
Copy link
Contributor

We had a recent fix in transport that might potentially resolve this. Try out the latest release 1.0.0.0, reopen if you still see this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants