# Unable to grant access for sync client through Login Flow V2

**URL:** <https://help.nextcloud.com/t/unable-to-grant-access-for-sync-client-through-login-flow-v2/64513>\
**Category:** ℹ️ Support\
**Tags:** docker\
**Created:** [November 19, 2019, 4:18pm UTC](https://help.nextcloud.com/t/unable-to-grant-access-for-sync-client-through-login-flow-v2/64513 "2019-11-19T16:18:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raijin](https://help.nextcloud.com/letter_avatar/raijin/32/6_22734026db12803ebb3e059622ac3534.png) [@Raijin](https://help.nextcloud.com/u/Raijin)\
**Post date:** [November 19, 2019, 4:18pm UTC](https://help.nextcloud.com/t/unable-to-grant-access-for-sync-client-through-login-flow-v2/64513/1 "2019-11-19T16:18:33Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://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:
> 
> ```auto
> 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 ❤

Nextcloud version _(eg, 12.0.2)_: 17.0.1  
Operating system and version _(eg, Ubuntu 17.04)_: Ubuntu 18.04  
Apache or nginx version _(eg, Apache 2.4.25)_: 2.4.38  
PHP version _(eg, 7.1)_: 7.3.11

The issue you are facing: The “Grant Access” page in my browser is unresponsive when I click the button after the page is opened by my sync client.  
When I try on the android sync client, I get a 404 when I try to log in

Is this the first time you’ve seen this error? _(Y/N)_: Y

Steps to replicate it:

1. Download, install, and set up official Nextcloud docker image
2. Point Linux sync client at server and let the browser page open
3. Sign in
4. Click “Grant Access”

The output of your Nextcloud log in **Admin \> Logging** :

```auto
I saw no relevant output

```

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

```auto
PASTE HERE

```

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
PASTE HERE

```

---

<div class="post-metadata">

**Author:** ![kesselb](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kesselb/32/74519_2.png) [@kesselb](https://help.nextcloud.com/u/kesselb)\
**Post date:** [November 19, 2019, 5:05pm UTC](https://help.nextcloud.com/t/unable-to-grant-access-for-sync-client-through-login-flow-v2/64513/2 "2019-11-19T17:05:01Z")

</div>

Probably the generated urls are wrong. Please check overwritehost and overwriteprotocol.

---

<div class="post-metadata">

**Author:** ![Raijin](https://help.nextcloud.com/letter_avatar/raijin/32/6_22734026db12803ebb3e059622ac3534.png) [@Raijin](https://help.nextcloud.com/u/Raijin)\
**Post date:** [November 19, 2019, 6:45pm UTC](https://help.nextcloud.com/t/unable-to-grant-access-for-sync-client-through-login-flow-v2/64513/3 "2019-11-19T18:45:35Z")

</div>

Ok, thanks for the tip. I’m assuming you’re referring to `config.php`.

I found the line

`'overwrite.cli.url' => 'http://cloud.mydomain.com'`

where `cloud.mydomain.com` is my Nextcloud server. Does this need to be https or something?

---

<div class="post-metadata">

**Author:** ![Raijin](https://help.nextcloud.com/letter_avatar/raijin/32/6_22734026db12803ebb3e059622ac3534.png) [@Raijin](https://help.nextcloud.com/u/Raijin)\
**Post date:** [November 19, 2019, 7:01pm UTC](https://help.nextcloud.com/t/unable-to-grant-access-for-sync-client-through-login-flow-v2/64513/4 "2019-11-19T19:01:00Z")

</div>

UPDATE: I added the line

`'overwriteprotocol' => 'https',`

and seemed to have fixed things!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 12:20pm UTC](https://help.nextcloud.com/t/unable-to-grant-access-for-sync-client-through-login-flow-v2/64513/5 "2024-12-04T12:20:41Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 4:00pm UTC](https://help.nextcloud.com/t/unable-to-grant-access-for-sync-client-through-login-flow-v2/64513/6 "2024-12-11T16:00:09Z")

</div>


