mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 09:05:55 +03:00
[GH-ISSUE #8] App cannot be enabled because it makes the server unstable #7
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#7
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 @corsaved on GitHub (Oct 26, 2016).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/8
I update php up to 5.6, and copy twofactor_sms from GitHub in apps folder.
Next i try enabler app, but i see this messge for this app - "App cannot be enabled because it makes the server unstable"
After I checked a owncloud.log, and see this errors:
Exception: {"Exception":"Exception","Message":"Could not load two-factor auth provider OCA\\TwoFactorSms\\Provider\\SmsProvider","Code":0,"Trace":"#0 \/var\/www\/html\/owncloud\/lib\/private\/Authentication\/TwoFactorAuth\/Manager.php(66): OC\\Authentication\\TwoFactorAuth\\Manager->getProviders(Object(OC\\User\\User))\n#1 \/var\/www\/html\/owncloud\/core\/Middleware\/TwoFactorMiddleware.php(93): OC\\Authentication\\TwoFactorAuth\\Manager->isTwoFactorAuthenticated(Object(OC\\User\\User))\n#2 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Middleware\/MiddlewareDispatcher.php(93): OC\\Core\\Middleware\\TwoFactorMiddleware->beforeController(Object(OCA\\Files\\Controller\\ViewController), 'index')\n#3 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(88): OC\\AppFramework\\Middleware\\MiddlewareDispatcher->beforeController(Object(OCA\\Files\\Controller\\ViewController), 'index')\n#4 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/App.php(110): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files\\Controller\\ViewController), 'index')\n#5 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(46): OC\\AppFramework\\App::main('ViewController', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#6 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#7 \/var\/www\/html\/owncloud\/lib\/private\/Route\/Router.php(280): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\n#8 \/var\/www\/html\/owncloud\/lib\/base.php(891): OC\\Route\\Router->match('\/apps\/files')\n#9 \/var\/www\/html\/owncloud\/index.php(39): OC::handleRequest()\n#10 {main}","File":"\/var\/www\/html\/owncloud\/lib\/private\/Authentication\/TwoFactorAuth\/Manager.php","Line":120}include_once(): Failed opening '/var/www/html/owncloud/apps/twofactor_sms/appinfo/../vendor/autoload.php' for inclusion (include_path='/var/www/html/owncloud/3rdparty/pear/console_getopt:/var/www/html/owncloud/3rdparty/pear/pear_exception:/var/www/html/owncloud/3rdparty/pear/pear-core-minimal/src:/var/www/html/owncloud/3rdparty/pear/archive_tar:/var/www/html/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/var/www/html/owncloud/lib/private:/var/www/html/owncloud/config:/var/www/html/owncloud/3rdparty:/var/www/html/owncloud/apps:.:/usr/share/pear:/usr/share/php:/var/www/html/owncloud') at /var/www/html/owncloud/apps/twofactor_sms/appinfo/app.php#21How i can fix this?
upd:
CentOS7, Apache, OwnCloud 9.1.1 (stable)
Thanks
@pclemot commented on GitHub (Dec 7, 2016):
Hi,
I encounter the same issue. The directory 'vendor' does not exists in the repository, dans is listed in the .gitignore file.
I'm running Nextcloud 11.0.0beta2 on Debian8, Nginx.
Many thanks.
@ChristophWurst commented on GitHub (Feb 27, 2017):
This directory is created by composer while installing dependencies. Run
composer.phar installin the project's root directory to install the dependencies.