After Nextcloud 17 Update, I can't sync my linux client with nextcloud

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 17
Operating system and version Centos 7.6:
Apache: 2
PHP version: 7

The issue you are facing:

Is this the first time you’ve seen this error?: Y

Steps to replicate it:

  1. Upgrade from 16.04 to 17
  2. Open your Linux nextcloud sync program
  3. Login with your nextcloud address and credentials
  4. The default browser will be open, click on Login
  5. Click on Grant Access
  6. Nothing happens
  7. You will see this error on the browser console (Tried on FF, Chrome, Midori, Opera): Refused to send form data to ‘http://nextcloud.massware.mx/login/v2/grant’ because it violates the following Content Security Policy directive: “form-action ‘self’”.

The output of your Nextcloud log in Admin > Logging:

No errors

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Default config

Same here!
Also applies to mac clients - However, seems not to be an issue with Android Client

Nextcloud is running behind haproxy reverse proxy
request goes to the nextcloud URL with ssl - but at first (before disabling the plugin) went to collabora URL (dont know why) with the same error mentioned above.

When logging in via Web interface it does not stop loading and does not forward to the user area. Refreshing the page will result in opening the regular user area for logged in users without opening another login prompt.

It’s a problem with the latest Windows client as well. You may want to try using a previous version. There are also the daily builds located here.

@infotech thank you for your response, I tried the daily build and it didn’t work either :frowning:

https://download.nextcloud.com/desktop/daily/Linux/Nextcloud-2.7.0.20191025-daily-x86_64.AppImage

@robertpro, try using the 2.5.3 image. That seems to be the version that works for us right now.

Isn’t it because of TLS1.3?

@infotech Still not working, Do you know how to clear Nextcloud data from the File System? maybe that can help

@Gatak I’m not sure why it isn’t working, although I am just using TLS1.3 on all my devices. That is as likely an explanation as any other.

@robertpro I wish I were more of a Linux guru, but you could try the following code:
sudo apt-get --purge autoremove nextcloud-client

You may manually have to remove any configuration files in your home directory.

Same problem on openSUSE Tumbleweed with Firfefox / Chromium when trying to connect to the private docker hosted behind reverse-proxy instance. All worked with 16.0.3 but now I can not use desktop clients.

It fixed my issue by adding:

'overwriteprotocol' => "https",

to config.php
https://docs.nextcloud.com/server/17/admin_manual/configuration_server/reverse_proxy_configuration.html

Since we are running nexcloud behind a proxy, nextcloud is not aware of https and therefore needs to be told to create links (such as http:…/v2/flow/grant) with https instead of http (since http is not allowed in the CSP header).

2 Likes

Thank you @Exchizz, that worked! Marking as resolved