mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 17:15:53 +03:00
[GH-ISSUE #37] Unable to install twofactor_sms in production environment #18
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#18
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 @Dretech on GitHub (Apr 9, 2018).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/37
Hi Christoph,
In my test nextcloud environment towfactor_sms is running fine. I also wanted to use the two factor sms in my production environment. I followed the steps you gave me (for my test environment) and there are no errors. The logfile data/nextcloud.log does not give new entries. But after entering my password I get the screen below:

Translation: Unable to send message. Try again or contact your administrator.
Can you give me some hints how to solve this problem?
Kind regards,
André
@ChristophWurst commented on GitHub (Apr 9, 2018):
Phew, that is hard to tell. Do you have a debugger set up? Then you could set a break point at https://github.com/nextcloud/twofactor_sms/blob/master/lib/Service/SmsProvider/PlaySMS.php#L69, which is where errors should be caught.
@Dretech commented on GitHub (Apr 16, 2018):
Thanks for your reply. I enables debug in the nextcloud config.php. The last line of data/nextcloud.log is:
`{"reqId":"9A63ynYw4WCWZeLG88Vu","level":3,"time":"2018-04-09T10:38:43+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"include_once(): Failed opening '/usr/share/webapps/nextcloud/apps/twofactor_sms/appinfo/../vendor/autoload.php' for inclusion (include_path='/usr/share/webapps/nextcloud/3rdparty/pear/console_getopt:/usr/share/webapps/nextcloud/3rdparty/pear/pear_exception:/usr/share/webapps/nextcloud/3rdparty/pear/pear-core-minimal/src:/usr/share/webapps/nextcloud/3rdparty/pear/archive_tar:/usr/share/webapps/nextcloud/apps') at /usr/share/webapps/nextcloud/apps/twofactor_sms/appinfo/app.php#21","userAgent":"--","version":"13.0.1.1"}
Does that logline give a meaningful explonation why the 2fa is not running?
@ChristophWurst commented on GitHub (Apr 16, 2018):
Sounds like you did not run
composer installin the app's directory and thus thevendordirectory is missing.@ChristophWurst commented on GitHub (Aug 21, 2018):
Assuming this is resolved -> closing