"bad message" error on uploading certain filenames with SFTP

Advertisement

Mithaldu
Mithaldu avatar
Joined:
Posts:
5
Location:
Germany

"bad message" error on uploading certain filenames with SFTP

Tried to upload some files via SFTP and got the following error:

Bad message (badly formatted packet or protocol incompatibility).
Error code: 5
Error message from server: Bad message

This happens for example for this filename: "急上昇に載りました...朝通知きてびっくりして泣きながら録画しました...その一部始終をありのままに...視聴者さん、本当にありがとう。夢絶対叶えるよ私は。-goQVVwxr.zip" It also happens with more characters in the name, but removing the r at the end allows it to be uploaded.

This does not happen with SCP.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,635
Location:
Prague, Czechia

Re: "bad message" error on uploading certain filenames with SFTP

Can you upload those files using any other SFTP client?

Reply with quote

Mithaldu
Mithaldu avatar
Joined:
Posts:
5
Location:
Germany

Yep, Filezilla in SFTP mode can upload the file without issue.

It's also not related to total path length. Even uploading to / fails.

Reply with quote

Mithaldu
Mithaldu avatar
Joined:
Posts:
5
Location:
Germany

Forcing it to "off" results in a file with a bunch of questionmarks in the name, "on" behaves the same as "auto".

Log files attached.
  • winscp.log (36.26 KB, Private file)
  • filezilla.log (12.12 KB, Private file)

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum