Hi,
I have developed a 2FA app and it works fine on the instance I developed it. However, it fails to load on the instance I moved it to.
What could be the problem?
Here’s the log:
{"reqId":"Px2pmnAhHYZ7vZdko6lC","level":3,"time":"2022-02-09T08:15:26+00:00","remoteAddr":"193.156.42.5","user":"admin","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Could not load two-factor auth provider OCA\\externaltwofactor\\Provider\\TotpProvider","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15","version":"23.0.1.2","exception":{"Exception":"Exception","Message":"Could not load two-factor auth provider OCA\\externaltwofactor\\Provider\\TotpProvider","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Authentication/TwoFactorAuth/Manager.php","line":133,"function":"getProviders","class":"OC\\Authentication\\TwoFactorAuth\\ProviderLoader","type":"->","args":[{"__class__":"OC\\User\\User"}]},{"file":"/var/www/html/core/Middleware/TwoFactorMiddleware.php","line":125,"function":"isTwoFactorAuthenticated","class":"OC\\Authentication\\TwoFactorAuth\\Manager","type":"->","args":[{"__class__":"OC\\User\\User"}]},{"file":"/var/www/html/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":97,"function":"beforeController","class":"OC\\Core\\Middleware\\TwoFactorMiddleware","type":"->","args":[{"__class__":"OCA\\Notifications\\Controller\\EndpointController"},"listNotifications"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->","args":[{"__class__":"OCA\\Notifications\\Controller\\EndpointController"},"listNotifications"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Notifications\\Controller\\EndpointController"},"listNotifications"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Notifications\\Controller\\EndpointController","listNotifications",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"apiVersion":"v2","_route":"ocs.notifications.Endpoint.listNotifications"}]},{"file":"/var/www/html/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/notifications/api/v2/notifications"]},{"file":"/var/www/html/ocs/v2.php","line":23,"args":["/var/www/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php","Line":73,"CustomMessage":"--"}}