mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 00:55:52 +03:00
[GH-ISSUE #624] twofactor_gateway 0.20.0 breaks Nextcloud 31 #126
Labels
No labels
0. to triage
1. to develop
3. to review
blocked
bug
discussion
duplicate
enhancement
enhancement
gateway:signal
gateway:signal
gateway:signal
gateway:sms
gateway:telegram
hacktoberfest
help wanted
invalid
needs info
php
pull-request
question
technical debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/twofactor_gateway-nextcloud#126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @StodaraHodan on GitHub (Feb 27, 2025).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/624
How to use GitHub
Steps to reproduce
Expected behaviour
two factor query after login screen
Actual behaviour
internal server error with error in log:
nextcloud.log
Server configuration
Web server: Apache/2.4.61 (Debian)
Database: mysql Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu
PHP version: 8.2
Nextcloud version: Nextcloud Hub 10 (31.0.0)
List of activated apps
Nextcloud configuration
Browser
Browser name: Firefox
Browser version: 135.0
Operating system: nixos
Browser log
@FelixBuehler commented on GitHub (Feb 27, 2025):
Yes, I can confirm this for me.
Disabled the app for now:
occ app:disable twofactor_gateway@bovender commented on GitHub (Mar 14, 2025):
+1
Had to disable it too. It is really unfortunate that 2FA is not a first-class citizen in the Nextcloud world. What is the reason? Should I rather move my IAM out of NC and use, say Keycloak...? I'm puzzled.
@quorle commented on GitHub (Mar 14, 2025):
Same problem here. The app is deactivated.
I absolutely need this app to send codes via Telegram. I haven't found another app yet.
This app hasn't been developed in a long time!
@sh2515 commented on GitHub (Mar 19, 2025):
Same here, had to disable to login.
@serversghost commented on GitHub (Mar 21, 2025):
Same here :(
Also did anyone else get this when they disabled the app?
@AndiDoe commented on GitHub (May 2, 2025):
Error in nextcloud-log:
<html> Exception Failed to construct console command 'OCA\TwoFactorGateway\Command\Configure': Could not resolve OCP\ILogger! Class can not be instantiated -- </html>@FelixBuehler commented on GitHub (May 6, 2025):
Addendum: Disabling the app via the occ command leaves traces of the app of enabled providers in your user account active and won't remove them. So if you decide to disable 2FA overall, Nextcloud has a bug (at least for me), that you always get a 2FA warning after login ("Could not load at least one of your enabled two-factor auth methods. Please contact your admin."), even if 2FA is disabled overall.
You need to remove the entries from your account (
occ twofactorauth:disable USER gateway_telegram), but that doesn't work since the app no longer is active.The solution is this:
@serversghost commented on GitHub (May 7, 2025):
In case its of any help, when I did this back in March, it fixed the server error, but I was then getting a warning on login to Nextcloud about the missing gateway, despite running the relevant occ disable, remove & cleanup commands.
I had to additionally remove gateway_telegram from my Nextcloud MySQL database.
I'm only an amateur but this is what I ran in MySQL which solved the login warning after removing twofactor_gateway.
@vitormattos commented on GitHub (Sep 11, 2025):
Hi all,
Are you still looking for this app to be updated? I’d be glad to help with the work needed to bring it up to date.
If so, it would be very helpful if you could also share your support in the following issue, where the need for new maintainers of this app is being discussed:
@henmohr commented on GitHub (Oct 6, 2025):
Hello. Tested branch stable31 on Nextcloud 31 and works fine.
Here are the steps to reproduce it.
Hope it helps.
@ADadlDudlDa commented on GitHub (Oct 7, 2025):
Hello @henmohr ,
I have never tested an not official released app, but I would try to do it.
I have a NextcloutPI installation without docker. Can you help me, what I need to do inseatd of the
docker run -v .:/app composer composer install --no-devcomand?Thank you
ADadlDudlDa
@vitormattos commented on GitHub (Oct 7, 2025):
Hi @ADadlDudlDa
I received the permission to commit at this repository but for now I can't create releases. You will need to follow the suggested steps and build the project by yourself. Maybe I can create a release but don't will be possible send the release to appstore, by this way only will reduce some steps to you because don't will be necessary build the project, you only will download the .tar.gz file and extract at your apps folder.
@vitormattos commented on GitHub (Oct 7, 2025):
you need to have the composer at your environment: https://getcomposer.org/
And then, you will be able to run the command
composer install --no-devcommand@vitormattos commented on GitHub (Oct 7, 2025):
Also will be necessary build the frontend with:
And to do this, will be necessary to have the npm at your environment.