Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks Nextcloud 21 #26

Open
agross opened this issue Feb 22, 2021 · 7 comments
Open

Breaks Nextcloud 21 #26

agross opened this issue Feb 22, 2021 · 7 comments

Comments

@agross
Copy link

agross commented Feb 22, 2021

I just upgraded to Nextcloud 21. With Yubikey enabled users cannot use the web UI (sync clients still work).

This the logged (formatted):

{
    "reqId": "lmNptdBY6dbXJweETGGT",
    "level": 3,
    "time": "2021-02-22T17:06:10+01:00",
    "remoteAddr": "2004:480:1f0b:c9a:5ce0:b75f:9282:6cf",
    "user": "agross",
    "app": "index",
    "method": "GET",
    "url": "/apps/photos/service-worker.js",
    "message": {
        "Exception": "Exception",
        "Message": "Could not load two-factor auth provider OCA\\TwoFactor_Yubikey\\Provider\\YubikeyProvider",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/lib/private/Authentication/TwoFactorAuth/Manager.php",
                "line": 119,
                "function": "getProviders",
                "class": "OC\\Authentication\\TwoFactorAuth\\ProviderLoader",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\User\\User"
                    }
                ]
            },
            {
                "file": "/var/www/html/core/Middleware/TwoFactorMiddleware.php",
                "line": 115,
                "function": "isTwoFactorAuthenticated",
                "class": "OC\\Authentication\\TwoFactorAuth\\Manager",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\User\\User"
                    }
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php",
                "line": 98,
                "function": "beforeController",
                "class": "OC\\Core\\Middleware\\TwoFactorMiddleware",
                "type": "->",
                "args": [
                    {
                        "__class__": "OCA\\Photos\\Controller\\ApiController"
                    },
                    "serviceWorker"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 119,
                "function": "beforeController",
                "class": "OC\\AppFramework\\Middleware\\MiddlewareDispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OCA\\Photos\\Controller\\ApiController"
                    },
                    "serviceWorker"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/App.php",
                "line": 157,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OCA\\Photos\\Controller\\ApiController"
                    },
                    "serviceWorker"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Route/Router.php",
                "line": 302,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OCA\\Photos\\Controller\\ApiController",
                    "serviceWorker",
                    {
                        "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    },
                    {
                        "_route": "photos.api.serviceWorker"
                    }
                ]
            },
            {
                "file": "/var/www/html/lib/base.php",
                "line": 993,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/apps/photos/service-worker.js"
                ]
            },
            {
                "file": "/var/www/html/index.php",
                "line": 37,
                "function": "handleRequest",
                "class": "OC",
                "type": "::",
                "args": []
            }
        ],
        "File": "/var/www/html/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php",
        "Line": 69,
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36",
    "version": "21.0.0.18"
}
@jaark
Copy link
Owner

jaark commented Feb 22, 2021

It looks like something has changed in the way a plugin needs to register with the autoloader. I'm gonna have to take some time to figure out how to make it work in version 21.

@Tarry91
Copy link

Tarry91 commented Mar 11, 2021

Any update to this?

@flabbergast
Copy link

Same problem here.
Was able to disable the plugin using command line occ on the server; but note that if that is the only two factor module that's enabled and 2fa is required to log in, you will be locked out of nextcloud.

sudo -u www-data php occ app:disable twofactor_yubikey

(see the manual for more info about how to run the occ)

@81pla
Copy link

81pla commented May 20, 2021

Is there any news about this issue. @jaark

@rleo79
Copy link

rleo79 commented May 20, 2021

Any news about this issue ?
Just got a 12 hours of downtime on a production installation due to twofactor_yubikey enabled and snap installed automatically NC21 !

@My1
Copy link

My1 commented Jan 11, 2022

here we are in 2022, anything new yet? @jaark

@adamboutcher
Copy link

+1 Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants