mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-26 01:25:48 +03:00
[GH-ISSUE #129] Unhundled exception when setting up 2FA #42
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#42
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 @mmartinortiz on GitHub (Oct 5, 2018).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/129
Two-Factor Gateway: 0.9.0
Nextcloud: 14.0.2 RC1
I've followed the instructions of the admin documentation for setting up the two-factor authentification using telegram. My Nextcloud server runs in a docker container, so I run the
occcommand with the following command:It raises the following error:
Can I provide more useful information? I'm not sure how to proceed to getting 2FA working. (I did not try with other providers)
@ChristophWurst commented on GitHub (Oct 5, 2018):
Did you enter a bot token when you were asked for it?
@mmartinortiz commented on GitHub (Oct 5, 2018):
I was not asked for a token, I just got the exception after I run the command
Edit:
I've tried using the token as a second argument after
telegramand as I expected it complains about "extra arguments"@ChristophWurst commented on GitHub (Oct 5, 2018):
That is unexpected. The telegram configure command definitely asks for a token:
github.com/nextcloud/twofactor_gateway@aa730883d7/lib/Command/Configure.php (L157-L167)@mmartinortiz commented on GitHub (Oct 5, 2018):
Interesting... the exception I get points to the line 150, and the function in the repository starts at line 157. I've checked both files (my local file and the one in the repo) and they are different.
Here is the diff:
I've disabled, removed and download the application again. The file I get installed is the same that I had previously. The
appinfo/info.xmlfile indicates that the version is 0.9.0, though.How can I delete the applications cache? I want to make sure to force the the app to be downloaded again after I remove it.
@ChristophWurst commented on GitHub (Oct 5, 2018):
Of course, because the master branch has change since the last release. You should be at this specific version:
github.com/nextcloud/twofactor_gateway@a5a7d4047e/lib/Command/Configure.php (L146-L156).Please don't change any files. If you do so and your installation breaks, you're on your own. I suggest to restore a backup with the previous state.
That functionality does not exist. You can try overwriting the app directory with the latest release tarball.
@mmartinortiz commented on GitHub (Oct 5, 2018):
If the master branch contains a new development version I think it should have a different version number, like the 0.10.0 or just a 0.9.1-dev.
In any case, I've tried with
smsandsignal. In the case of signal I get aUsing a localhost:5000what I guess means that the argument is accepted. If I usesmsI get an exception:Invalid gateway noway
@ChristophWurst commented on GitHub (Oct 5, 2018):
No, because we need the version bumps to trigger database migrations. Of course we could use even numbers for releases and odd ones for dev versions, but that breaks semver, which I'm a big fan of.
May I ask you what terminal you're using? Sounds like yours is not interactive and thus the questions are not asked. This is weird tbh.
@mmartinortiz commented on GitHub (Oct 5, 2018):
I've checked the terminal. I'm using bash, but I forgot to use the
-tiparameters for docker (making it interactive). My fault :-\Now I'm having the same problem described in this other issue, but I'll add information there.
Thanks for your help