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
UnexpectedValueException: Expected NET_SFTP_NAME or NET_SFTP_STATUS. Got packet type:: #1945
Comments
I apologize for the delay - I've been vacationing in Canada and Washington for the past ten days and am flying back today. Anyway, can you post the logs? You can get them by doing Thanks! |
@terrafrost I'm attaching a log from one of these instances. Hope this helps to solve the issue. It's causing quite a bit of random disruption in production for our application. |
@michaellehmkuhl - so it looks like, if anything, you're getting a It would be interesting to see your SSH logs as well. Like what is your SSH server and are you getting any errors at the SSH layer after phpseclib sends that last NET_SFTP_READ request? In lieu of knowing that I do wonder if |
Thanks for the tip, @terrafrost! We'll give that a try. |
Hi, guys. I want to share my experience. Maybe it help you. I also often had the same error. I ran a disk check. It turned out that there are a lot of bad sectors. And because of that the file writing was interrupted. With the same error. After contacting customer service, the disk was replaced. The error also disappeared. |
I am trying to list contents from a server directory using an SFTP connection, and sometimes it just throws this error
UnexpectedValueException: Expected NET_SFTP_NAME or NET_SFTP_STATUS. Got packet type::
This issues is happening intermittently. I have attached the screenshot of the timeframe when its happening. I am using this connection for a long time now (almost 5 months), but this issues has started up showing recently. I am using phpseclib version 3.0.19
The text was updated successfully, but these errors were encountered: