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

Sync error: “Server stopped accepting new streams before this stream was established” #7136

Open
5 of 8 tasks
kmorber opened this issue Sep 16, 2024 · 27 comments
Open
5 of 8 tasks
Labels
1. to develop approved bug approved by the team

Comments

@kmorber
Copy link

kmorber commented Sep 16, 2024

⚠️ Before submitting, please verify the following: ⚠️

Bug description

Nextcloud client has connection losses.

Sync error: “Server stopped accepting new streams before this stream was established”](https://help.nextcloud.com/t/sync-error-server-stopped-accepting-new-streams-before-this-stream-was-established/59209)

Steps to reproduce

  1. Right click on the file
  2. Click on Share Options
  3. The share dialog does not display the option to share by e-mail
    ...

Expected behavior

no connection losses

Which files are affected by this bug

all

Operating system

Windows

Which version of the operating system you are running.

Windows 11

Package

Official Windows MSI

Nextcloud Server version

30.0.0

Nextcloud Desktop Client version

3.14.0

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

No response

Additional info

log.zip

@thalunil
Copy link

With a fresh sync, i have the same issue with the version 3.14.0 on Windows.
Version 3.13.4 works as expected.

@PhilippSchlesinger
Copy link

@mgallien
Is this issue caused by #6986, always enabling http2?
There is an ancient bug #1503 (comment) on the same issue, at that time solved via a PR #1823 that disabled http2 due to Qt bugs.

@kmorber
Copy link
Author

kmorber commented Sep 17, 2024

I have disabled http2, but same issues.

@mbentley
Copy link

I have disabled http2, but same issues.

Could you share your web server config? If you're having this issue but are not using http2, that would be very surprising from what I understand.

I also noticed that doing an initial sync triggered this for me yesterday on macOS using the 3.14.0 client. I previously had http2 turned on in nginx so I've had to disable it for nextcloud now to allow the sync to work. I re-installed the 3.12.7 macOS nextcloud client and as expected, it works fine whether I have http2 turned off or on. That version appears to be one of the last since #6986 was merged.

@nursoda
Copy link

nursoda commented Sep 17, 2024

I have enabled http2 (and not http3/quic) in NGINX. I see the issue on Windows 11 23H2v2 and Arch Linux with NC Desktop 3.14.0 on KDE/Plasma (Qt).

@vagner-dias
Copy link

vagner-dias commented Sep 17, 2024

I am having the very same issue. Fresh sync using 3.14 throws this error.
V 3.13.4 works smoothly

[EDIT] Repeatedly Forcing new synchronizations causes a crash in the desktop client.

image

@webneo82
Copy link

Same issue here since update the client to V. 3.14.0.

Windows 11 22631.4169
Nextcloud Server 29.0.7 with NGiNX and http/2 enabled. Disabling http/2 will also cause synchronization errors. However, "Server stopped accepting new streams before this stream was established will not appear", but "Connection timeout".

With Nextcloud Client V 3.13.4 all works fine.

@osiktech
Copy link

I ran into the same issue on macOS 14.7 with a fresh sync. I downgraded my client back to 3.13.4 and everything is back to normal.

One more finding (maybe related): My nextcloud server was continuesly deactivating my user account although I allowed my ip address through bruteforce settings.

@timirons
Copy link

Same issue here with a new install today, using Ionos server.

@mgallien
Copy link
Collaborator

we will revert the change and try to find another solution
we did this change because when http1.1 is broken and http2 is working, having to define an env variable is far from obvious as a fix

@charliehoward
Copy link

I'm also having this issue running NextCloudCMD on Ubuntu

@Stoony1
Copy link

Stoony1 commented Sep 18, 2024

same problem here

@albert-a
Copy link

Same problem with Nextcloud AIO 29.0.6 and Desktop client 3.14.0 (Mac)
Subjectively the 3.14.0 client is very very slow and always shows this error.
I removed Desktop client 3.14.0, and installed 3.13.4 and now everything works again, fast and smooth.

@prrar
Copy link

prrar commented Sep 18, 2024

Same problem here. Clean macOS Sequoia 15.0 install, Nextclkoud AIO 29.0.6 and Desktop Client 3.14.0 Mac. I've followed @albert-a 's suggestion and downgraded to 3.14.4. So far, so good.

@DDQW
Copy link

DDQW commented Sep 18, 2024

For people who run an nginx server this can be fixed serverside:

raising the value of keepalive_requests should help with this. default value is 1000 i raised it to 99999 (a debug value you should adjust that to your needs) which seems to be enough for our usecase (no error reported since i made the adjustment) be aware that this increases nginxs ram usage and your system needs to be ready for this.

i also adjusted keepalive timeout in nginx to 600 (10 minutes) from 1 minute. Maybe something for the nginx default config

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    types_hash_max_size 2048;
    # server_tokens off;
    client_max_body_size 512G;
    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;
    keepalive_requests 99999;
    keepalive_timeout 600;
    include /etc/nginx/mime.types;
    default_type application/octet-stream;

So it appears that the client needs a limit to the connections it tries to create and/or not bug out when a connection is refused and just use the ones it got.

@eurovisionfanatic
Copy link

Same issues here, everything works fine on 3.13 but 3.14 won't sync. Disabling HTTP2 causes the Connection Timeout issue. Has anyone found any mitigations for this?

@charliehoward
Copy link

I unfortunately do not have access to the server side, as I pay for it to be hosted

@GarmischWg
Copy link

I am having the very same issue. Fresh sync using 3.14 throws this error. V 3.13.4 works smoothly

[EDIT] Repeatedly Forcing new synchronizations causes a crash in the desktop client.

image

encoutering the same issue, the solution provided did not solve the issue unfortunately

@Xenthys
Copy link

Xenthys commented Sep 19, 2024

Same problem here, I almost blamed my hosting provider. Downgrading to 3.13.4 fixed my stream issue.

@Thomas6013
Copy link

I've the same issue with the same configuration

@GitTimeraider
Copy link

GitTimeraider commented Sep 19, 2024

Started receiving notifications that large files could not be uploaded.. tried fixes, nothing helped. Downgraded the client from 3.14 to a lower version (in this case 3.13 to be sure) and that one works perfectly fine

Desktop client installed on Windows 11 home

@Belledonne0
Copy link

same error. One Fix is in way ?!

@charliehoward
Copy link

How can I downgrade the client on linux with no GUI? Seems apt only has the current version and 3.11

@jamesstanw
Copy link

Same as reported above

@osiktech
Copy link

osiktech commented Sep 20, 2024

How can I downgrade the client on linux with no GUI? Seems apt only has the current version and 3.11

@charliehoward you could use the appimage package from here https://github.com/nextcloud-releases/desktop/releases/tag/v3.13.3 depending on the distro you could also download an older version directly from a mirror and do an apt-pinning.

@charliehoward
Copy link

I'm not using the AppImage I'm using apt as it's a server with no GUI, I used NextCloudCMD to syn on a schedule.

@charliehoward
Copy link

I ran apt list -a nextcloud-desktop but I only get two options -
nextcloud-desktop/noble,now 3.14.0-20240916.085658.d8fcb9273-1.0~noble1 amd64 [residual-config] nextcloud-desktop/noble 3.11.0-1.1build4 amd64 [residual-config]

Unless you can suggest a source with older versions? Specifically 3.13.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop approved bug approved by the team
Projects
None yet
Development

No branches or pull requests