[GH-ISSUE #1250] Can not log in to my nextcloud instance #833

Closed
opened 2026-02-25 22:38:14 +03:00 by kerem · 17 comments
Owner

Originally created by @akallabeth on GitHub (Sep 8, 2022).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1250

Which version of floccus are you using?

4.17.1 (F-Droid)

Sync method

Nextcloud Bookmarks

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

grapheneos (android 13) pro

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

23.0.8.1

What kind of WebDAV server are you using? (if relevant)

No response

Describe the Bug

When trying to log in to the nextcloud instance, the password is not accepted.

  • Certificate is a valid Lets encrypt cert
  • I use a custom App-Password which works fine (texted with other services by copy/paste)

Expected Behavior

Credentials accepted, floccus working on my device

To Reproduce

  1. connect to nextcloud instance
  2. enter credentials (use a App-Password generated for the specific app)

Debug log provided

  • I have provided a debug log file
Originally created by @akallabeth on GitHub (Sep 8, 2022). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1250 ### Which version of floccus are you using? 4.17.1 (F-Droid) ### Sync method Nextcloud Bookmarks ### Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please. grapheneos (android 13) pro ### Which version of Nextcloud Bookmarks are you using? (if relevant) _No response_ ### Which version of Nextcloud? (if relevant) 23.0.8.1 ### What kind of WebDAV server are you using? (if relevant) _No response_ ### Describe the Bug When trying to log in to the nextcloud instance, the password is not accepted. * Certificate is a valid Lets encrypt cert * I use a custom `App-Password` which works fine (texted with other services by copy/paste) ### Expected Behavior Credentials accepted, floccus working on my device ### To Reproduce 1. connect to nextcloud instance 2. enter credentials (use a `App-Password` generated for the specific app) ### Debug log provided - [ ] I have provided a debug log file
kerem 2026-02-25 22:38:14 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@marcelklehr commented on GitHub (Sep 8, 2022):

Floccus uses Nextcloud's login flow which allows you to use your normal password and 2factor authentication when authenticating for floccus access. Can you try your normal credentials?

<!-- gh-comment-id:1240460174 --> @marcelklehr commented on GitHub (Sep 8, 2022): Floccus uses Nextcloud's login flow which allows you to use your normal password and 2factor authentication when authenticating for floccus access. Can you try your normal credentials?
Author
Owner

@akallabeth commented on GitHub (Sep 8, 2022):

@marcelklehr sorry for the dealy,
also did not work.

Works for the nextcloud client and browser on the same device though.

FYI: Got 2FA set up with a yubikey or OTP tokens as second factor

<!-- gh-comment-id:1240592871 --> @akallabeth commented on GitHub (Sep 8, 2022): @marcelklehr sorry for the dealy, also did not work. Works for the nextcloud client and browser on the same device though. FYI: Got 2FA set up with a yubikey or OTP tokens as second factor
Author
Owner

@akallabeth commented on GitHub (Sep 8, 2022):

Also of interest: Floccus from my firefox on debian (laptop) syncs to the same instance/account without any issues.

<!-- gh-comment-id:1240597246 --> @akallabeth commented on GitHub (Sep 8, 2022): Also of interest: Floccus from my firefox on debian (laptop) syncs to the same instance/account without any issues.
Author
Owner

@b-m-f commented on GitHub (Sep 27, 2022):

Hitting the same issue.

Logs from instance:

Exception: OC\Core\Service\LoginFlowV2Service::flowDoneWithAppPassword(): Argument #3 ($loginName) must be of type string, null given, called in /var/www/html/core/Controller/ClientFlowLoginV2Controller.php on line 227 in file '/var/www/html/core/Service/LoginFlowV2Service.php' line 189
<!-- gh-comment-id:1259251383 --> @b-m-f commented on GitHub (Sep 27, 2022): Hitting the same issue. Logs from instance: ``` Exception: OC\Core\Service\LoginFlowV2Service::flowDoneWithAppPassword(): Argument #3 ($loginName) must be of type string, null given, called in /var/www/html/core/Controller/ClientFlowLoginV2Controller.php on line 227 in file '/var/www/html/core/Service/LoginFlowV2Service.php' line 189 ```
Author
Owner

@marcelklehr commented on GitHub (Nov 17, 2022):

Sorry for the delay.

also did not work.

@akallabeth What happened?

Logs from instance:

@b-m-f That error looks like a server side issue. Logging in with login flow shouldn't trigger an exception.

<!-- gh-comment-id:1319078097 --> @marcelklehr commented on GitHub (Nov 17, 2022): Sorry for the delay. > also did not work. @akallabeth What happened? > Logs from instance: @b-m-f That error looks like a server side issue. Logging in with login flow shouldn't trigger an exception.
Author
Owner

@akallabeth commented on GitHub (Nov 17, 2022):

@marcelklehr the credentials did not log me in, the page refreshed promted again

<!-- gh-comment-id:1319162608 --> @akallabeth commented on GitHub (Nov 17, 2022): @marcelklehr the credentials did not log me in, the page refreshed promted again
Author
Owner

@marcelklehr commented on GitHub (Nov 26, 2022):

the credentials did not log me in, the page refreshed promted again

Sometimes you need to log in twice. Nextcloud has a bug regarding that

<!-- gh-comment-id:1328070939 --> @marcelklehr commented on GitHub (Nov 26, 2022): > the credentials did not log me in, the page refreshed promted again Sometimes you need to log in twice. Nextcloud has a bug regarding that
Author
Owner

@akallabeth commented on GitHub (Nov 28, 2022):

@marcelklehr does not work. did fix that by downgrading to an older version though (v4.15.0)

<!-- gh-comment-id:1328725978 --> @akallabeth commented on GitHub (Nov 28, 2022): @marcelklehr does not work. did fix that by downgrading to an older version though (`v4.15.0`)
Author
Owner

@mottech20 commented on GitHub (Dec 12, 2022):

Related https://github.com/nextcloud/server/issues/33187 ?

<!-- gh-comment-id:1347075826 --> @mottech20 commented on GitHub (Dec 12, 2022): Related https://github.com/nextcloud/server/issues/33187 ?
Author
Owner

@marcelklehr commented on GitHub (Dec 12, 2022):

Nice catch @mottech20

<!-- gh-comment-id:1347112427 --> @marcelklehr commented on GitHub (Dec 12, 2022): Nice catch @mottech20
Author
Owner

@akallabeth commented on GitHub (Dec 15, 2022):

Nice catch indeed, but that does not resolve this issue (it also does not work with normal passwords except with the older version mentioned, where I can log in perfectly)

<!-- gh-comment-id:1352678812 --> @akallabeth commented on GitHub (Dec 15, 2022): Nice catch indeed, but that does not resolve this issue (it also does not work with normal passwords except with the older version mentioned, where I can log in perfectly)
Author
Owner

@mottech20 commented on GitHub (Dec 15, 2022):

@akallabeth I couldn't wait for the new release, so I just went and edited the ClientFlowLoginV2Controller.php on my docker container. I was able to login with app password afterwards. Quiet easy if you have access to the instance.

<!-- gh-comment-id:1352723985 --> @mottech20 commented on GitHub (Dec 15, 2022): @akallabeth I couldn't wait for the new release, so I just went and [edited](https://github.com/nextcloud/server/issues/33187#issuecomment-1179584560) the `ClientFlowLoginV2Controller.php` on my docker container. I was able to login with app password afterwards. Quiet easy if you have access to the instance.
Author
Owner

@mottech20 commented on GitHub (Dec 15, 2022):

@marcelklehr Tangential but if the login could utilize Android's built-in accounts similar to what the Notes and Talk app do (using accounts registered from the main NC app), it would be ideal.

<!-- gh-comment-id:1352728447 --> @mottech20 commented on GitHub (Dec 15, 2022): @marcelklehr Tangential but if the login could utilize Android's built-in accounts similar to what the Notes and Talk app do (using accounts registered from the main NC app), it would be ideal.
Author
Owner

@ingelumer commented on GitHub (Dec 21, 2022):

@mottech20 many thanks for your hint to edit the file directly in Docker.
It brought me a step further, but actually to the next login issue.
For anyone running into same trouble where Nexrcloud authentication was not succeeding this might help you.

I found that using the Floccus app the login process referred to a http login page, so removed https.
When using the Chrome extension my login did not succeed after Zugriff gewähren.
This fix was solving the issue, run following command in your nextcloud docker instance:
docker exec -it -u www-data NAME_NEXTCLOUD_CONTAINER bash -c './occ config:system:set overwriteprotocol --value="https"'
Source: https://help.nextcloud.com/t/zugriff-gewaehren-laedt-ohne-ende/46622/7

<!-- gh-comment-id:1361555088 --> @ingelumer commented on GitHub (Dec 21, 2022): @mottech20 many thanks for your hint to edit the file directly in Docker. It brought me a step further, but actually to the next login issue. For anyone running into same trouble where Nexrcloud authentication was not succeeding this might help you. I found that using the Floccus app the login process referred to a http login page, so removed https. When using the Chrome extension my login did not succeed after Zugriff gewähren. This fix was solving the issue, run following command in your nextcloud docker instance: `docker exec -it -u www-data NAME_NEXTCLOUD_CONTAINER bash -c './occ config:system:set overwriteprotocol --value="https"'` Source: https://help.nextcloud.com/t/zugriff-gewaehren-laedt-ohne-ende/46622/7
Author
Owner

@marcelklehr commented on GitHub (Jan 8, 2023):

@marcelklehr Tangential but if the login could utilize Android's built-in accounts similar to what the Notes and Talk app do (using accounts registered from the main NC app), it would be ideal.

This is sadly not possible due to incompatible technologies used :/

<!-- gh-comment-id:1374871082 --> @marcelklehr commented on GitHub (Jan 8, 2023): > @marcelklehr Tangential but if the login could utilize Android's built-in accounts similar to what the Notes and Talk app do (using accounts registered from the main NC app), it would be ideal. This is sadly not possible due to incompatible technologies used :/
Author
Owner

@marcelklehr commented on GitHub (May 21, 2023):

Closing this as a nextcloud setup issue.

<!-- gh-comment-id:1556127946 --> @marcelklehr commented on GitHub (May 21, 2023): Closing this as a nextcloud setup issue.
Author
Owner

@github-actions[bot] commented on GitHub (May 21, 2024):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:2121475988 --> @github-actions[bot] commented on GitHub (May 21, 2024): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#833
No description provided.