Topic "Incorrect MAC received on packet."

Author Message
webmaster33
[View user's profile]

Joined: 2006-05-19
Posts: 17
File move (SCP) from server to local.
Result: Incorrect MAC received on packet.
Error happens: randomly

Copying file 'backup_2012-03-19_mysql.zip' fatally failed.
Copying files from remote side failed.

Winscp v5.1 (from Windows 7 Enterprise)
Debian Lenny (server)
OpenSSL 0.9.8g 19 Oct 2007 (Library: OpenSSL 0.9.8o 01 Jun 2010)
OpenSSH_4.7p1 Debian-2, OpenSSL 0.9.8o 01 Jun 2010
Putty v0.60


How to fix this "Incorrect MAC received on packet." problem?


How can I send you the log file securely?
Email?


Thanks,
Webmaster33
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Can you try to disable Optimize connection buffer size?
http://winscp.net/eng/docs/ui_login_connection
_________________
Martin Prikryl
webmaster33
[View user's profile]

Joined: 2006-05-19
Posts: 17
Unfortunately this error happened again Sad
webmaster33
[View user's profile]

Joined: 2006-05-19
Posts: 17
prikryl wrote:
Can you try to disable Optimize connection buffer size?
http://winscp.net/eng/docs/ui_login_connection


More idea?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Have you tried using SFTP instead of SCP?
webmaster33
[View user's profile]

Joined: 2006-05-19
Posts: 17
prikryl wrote:
Have you tried using SFTP instead of SCP?


No, because I want to use SCP.


I found something similar error at ProFTPd:
https://forums.proftpd.org/smf/index.php?topic=3775.0

And there was a bugfix:
http://bugs.proftpd.org/show_bug.cgi?id=3292

ProFTPd Patch:
http://bugs.proftpd.org/attachment.cgi?id=3118


Does it help you fixing it?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Thanks for sharing this. Though it does not look related. WinSCP does not use OpenSSL for SFTP. And it uses the up to date version anyway.
webmaster33
[View user's profile]

Joined: 2006-05-19
Posts: 17
prikryl wrote:
Thanks for sharing this. Though it does not look related. WinSCP does not use OpenSSL for SFTP. And it uses the up to date version anyway.


Finally I had to change from SCP to SFTP.
SCP was simply unusable because the often errors.

SFTP does not have errors, but the speed is very poor.

SCP had even over 2Mbyte/s copy speed
SFTP has a maximum of 400-450 kbyte/s speed.

Also I had to downgrade back to v4.1.9, which seems to be more stable, than WinSCP v5.1 Sad
WinSCP v5.1 seems to have some GUI draw problems, sometimes does not refresh correctly the server side panel, so it results a white frame with empty content.

I do beta test it, if do you need my help.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
webmaster33 wrote:
Also I had to downgrade back to v4.1.9, which seems to be more stable, than WinSCP v5.1 Sad
WinSCP v5.1 seems to have some GUI draw problems, sometimes does not refresh correctly the server side panel, so it results a white frame with empty content.

Can you please open a new thread and post some screenshots? What version of WinSCP are you using?
_________________
Martin Prikryl
webmaster33
[View user's profile]

Joined: 2006-05-19
Posts: 17
prikryl wrote:
webmaster33 wrote:
Also I had to downgrade back to v4.1.9, which seems to be more stable, than WinSCP v5.1 Sad
WinSCP v5.1 seems to have some GUI draw problems, sometimes does not refresh correctly the server side panel, so it results a white frame with empty content.

Can you please open a new thread and post some screenshots? What version of WinSCP are you using?


The bug happened in WinSCP v5.1.
webmaster33
[View user's profile]

Joined: 2006-05-19
Posts: 17
webmaster33 wrote:

SCP had even over 2Mbyte/s copy speed
SFTP has a maximum of 400-450 kbyte/s speed.


When using WinSCP v5.1 with SFTP mode, there is no speed degradation.
Just wanted to let you know this.


I will try to reproduce the other problem: "GUI draw problem: sometimes does not refresh correctly the server side panel, so it results a white frame with empty content."
When I do, will start a new thread, as you suggested.
Nirupam
[View user's profile]

Joined: 2014-03-04
Posts: 2
We are experiencing this problem too and wondering if anybody knows about the fix. We have a nightly batch downloading files through SFTP and occasionally receive this error and the download aborts.

Here are the details:
OS: Windows Server 2008 R2 Standard SP1
WinSCP: V5.5.0 (Build 3839)

Error log:
. 2014-03-01 04:32:16.211 Incorrect MAC received on packet
. 2014-03-01 04:32:16.227 Connection was lost, asking what to do.
. 2014-03-01 04:32:16.227 Asking user:
. 2014-03-01 04:32:16.227 Incorrect MAC received on packet ()
< 2014-03-01 04:32:16.227 Script: Incorrect MAC received on packet
< 2014-03-01 04:32:16.227 Script: Incorrect MAC received on packet
< 2014-03-01 04:32:16.227 Script: Copying files from remote side failed.

Screenshots of some relevant configs attached.

Any advice would be greatly appreciated.

Thanks!
WinSCPScreenshots.zip (194.32 KB) [Download]

Description: Screenshots

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Nirupam wrote:
We are experiencing this problem too and wondering if anybody knows about the fix. We have a nightly batch downloading files through SFTP and occasionally receive this error and the download aborts.

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

_________________
Martin Prikryl
Nirupam
[View user's profile]

Joined: 2014-03-04
Posts: 2
Hello!

The log file is attached (sensitive data removed). We are at WinSCP 5.5.0 and it would be nice to know if this bug is fixed in the latest 5.5.1 version before we upgrade it or is it something we could fix by changing any config at 5.5.0.

Many thanks,
Nirupam
WinSCP_IncorrectMAC_ErrorLog_20140301.txt (12.33 KB) [Download]

Description: Log file

Guest




webmaster33 wrote:
File move (SCP) from server to local.
Result: Incorrect MAC received on packet.
Error happens: randomly

Copying file 'backup_2012-03-19_mysql.zip' fatally failed.
Copying files from remote side failed.

Winscp v5.1 (from Windows 7 Enterprise)
Debian Lenny (server)
OpenSSL 0.9.8g 19 Oct 2007 (Library: OpenSSL 0.9.8o 01 Jun 2010)
OpenSSH_4.7p1 Debian-2, OpenSSL 0.9.8o 01 Jun 2010
Putty v0.60


How to fix this "Incorrect MAC received on packet." problem?


How can I send you the log file securely?
Email?


Thanks,
Webmaster33



did have this issue before
wss solved after change the NIC setting as fix instead of autosense
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License