# Downloads fail from remote server - Error 426 failure writing network stream

**URL:** <https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839>\
**Category:** Help and Support\
**Created:** [November 1, 2022, 3:19pm UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839 "2022-11-01T15:19:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezervinggg](https://forum.rclone.org/user_avatar/forum.rclone.org/dezervinggg/32/10534_2.png) [@dezervinggg](https://forum.rclone.org/u/dezervinggg)\
**Post date:** [November 1, 2022, 3:19pm UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839/1 "2022-11-01T15:19:44Z")

</div>

#### What is the problem you are having with rclone?

Downloads keep failing from remote server to unraid server. Keep getting error 426 error writing network stream. Sometimes the downloads will succeed with the retries but sometimes they'll fail outright. I've searched and there is nothing on rclone forums about this specific issue. Is there a flag or setting I'm missing? Thank you!

I'm downloading from a remote server (FTP) to my local unraid server - rclone is on my local unraid server.

#### Run the command 'rclone version' and share the full output of the command.

rclone v1.60.0

- os/version: slackware 15.0+ (64 bit)
- os/kernel: 5.19.14-Unraid (x86\_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.2
- go/linking: static
- go/tags: none

#### Which cloud storage system are you using? (eg Google Drive)

FTP (remote server)

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

```auto
rclone copy "usb:jdownloader2/four" "/mnt/user/data/media/tvshows/Four More Shots Please!" -Pvv --log-file=/mnt/user/files/ksp/logs/rclone-copy.txt

```

#### The rclone config contents with secrets removed.

```auto
[gdrive]
client_id = id
client_secret = secret
type = drive
server_side_across_configs = true
token = {token}

[gcrypt]
type = crypt
remote = gdrive:/encrypt
filename_encryption = standard
directory_name_encryption = true
password = pass1
password2 = pass2

[usb]
type = ftp
host = host
user = user
pass = pass
explicit_tls = true
no_check_certificate = true

[usb2]
type = sftp
host = host
user = user
pass = pass
shell_type = unix
no_check_certificate = true
md5sum_command = md5sum
sha1sum_command = sha1sum

```

#### A log from the command with the `-vv` flag

[Log File](https://pastebin.com/1DxM9jfY)

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [November 1, 2022, 3:27pm UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839/2 "2022-11-01T15:27:03Z")

</div>

hello and welcome to the forum,

with `usb`, have you tried other ftp clients?

does `usb2` point to the same server has `usb`?  
if so, do you have issues with `usb2`

can you add `--dump=headers` and post the log.

---

<div class="post-metadata">

**Author:** ![dezervinggg](https://forum.rclone.org/user_avatar/forum.rclone.org/dezervinggg/32/10534_2.png) [@dezervinggg](https://forum.rclone.org/u/dezervinggg)\
**Post date:** [November 1, 2022, 3:49pm UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839/3 "2022-11-01T15:49:19Z")

</div>

Hey thank you! How would I try different FTP clients?

Also, no usb2 was just my attempt at using sftp but there was no difference - errors persisted in both and I ended up reverting back to using just usb because I was running into other issues with sftp.

Here is the log with --dump=headers on a subsequent retry (download hasn't finished, it keeps restarting for some reason...):  
[Log File](https://pastebin.com/gRETNkd3)

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [November 1, 2022, 3:55pm UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839/4 "2022-11-01T15:55:34Z")

</div>

> [@dezervinggg](#):
>
> no usb2 was just my attempt at using sftp but there was no difference

does `usb2` point ot the same server as `usb`?

> [@dezervinggg](#):
>
> How would I try different FTP clients?

try another client such as filezilla or lftp

note: rclone can emulate a ftp server and a sftp server.  
`rclone serve sftp usb:`

---

<div class="post-metadata">

**Author:** ![dezervinggg](https://forum.rclone.org/user_avatar/forum.rclone.org/dezervinggg/32/10534_2.png) [@dezervinggg](https://forum.rclone.org/u/dezervinggg)\
**Post date:** [November 1, 2022, 8:44pm UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839/5 "2022-11-01T20:44:22Z")

</div>

Usb2 does point to the same server as usb (but honestly am going to remove it - not needed) and ah I thought you meant within rclone. I have used winscp, cyberduck, and countless others and they all are fine with connecting and uploading/downloading from the server. This network stream issue only occurs with rclone.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [November 2, 2022, 10:50am UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839/6 "2022-11-02T10:50:13Z")

</div>

The problem starts here

```auto
2022/11/01 10:48:37 DEBUG : TheMoviesBoss - Four.More.Shots.Please.S03E04.Sparks.fly.1080p.AMZN.WEB-DL.Hindi.DDP5.1.HEVC-themoviesboss.mkv: multi-thread copy: stream 2/4 failed: 1 error occurred:
* 426 Failure writing network stream.

```

The reason rclone stops is that it doesn't know it can retry a 426 error...

It also isn't retrying errors on starting downloads which it should be.

I've fixed both of those here - can you give it a go?

[v1.61.0-beta.6507.8b540e5d5.fix-ftp-retry](https://beta.rclone.org/branch/fix-ftp-retry/v1.61.0-beta.6507.8b540e5d5.fix-ftp-retry/) on branch [fix-ftp-retry](https://github.com/rclone/rclone/tree/fix-ftp-retry) (uploaded in 15-30 mins)

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [December 2, 2022, 10:50am UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839/7 "2022-12-02T10:50:32Z")

</div>

Closed on December 2, 2022, 10:50am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [March 7, 2023, 2:35pm UTC](https://forum.rclone.org/t/downloads-fail-from-remote-server-error-426-failure-writing-network-stream/33839/8 "2023-03-07T14:35:01Z")

</div>

I've merged this to master now which means it will be in [the latest beta](https://beta.rclone.org/) in 15-30 minutes and released in v1.62
