cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
13.79k stars 1.55k forks source link

MFA activation gives HTTP 500 #4391

Closed Artic6 closed 4 weeks ago

Artic6 commented 1 month ago

I am unable to enable to factor authentication because I get an internal server error (500) I would imagine it’s missing a module or plug-in to be able to interact with Google authenticator to get the QR code that I need to scan - this is what I get in the logs

When you go to enable MFA, you do not get a QR code to Scan you getting an internal server error but on your next login it prompt you for a code which you don’t have because you can’t set it up?

This is all I get from the logs, If I need to look in other places, please let me know

[2024-05-31 12:46:09] production.NOTICE: Symfony\Component\HttpKernel\Exception\HttpException in /var/www/html/Cachet/app/Http/Middleware/Authenticate.php:58 Stack trace:

0 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): CachetHQ\Cachet\Http\Middleware\Authenticate->handle()

1 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

2 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}()

3 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Routing\Middleware\SubstituteBindings->handle()

4 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()

5 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(75): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}()

6

Artic6 commented 1 month ago

Reading the previous closures of this it would appear your focusing on v3

but if you look at your demo site of v3 it’s not fully released and when you look at the v3 demo - it’s still actually v2

jbrooksuk commented 4 weeks ago

@Artic6 that's correct, v3 is the version we're actively working on. However, if you'd like to make a PR to fix this issue I'd happily accept it and release a patch.

jbrooksuk commented 4 weeks ago

By the way, I was not able to replicate this in the live demo.

CleanShot 2024-06-03 at 05 36 40@2x

Artic6 commented 4 weeks ago

I don’t get the QR code. I just get an internal server error.

do I need to download a component that I’m missing?

jbrooksuk commented 4 weeks ago

The package that generates the QR code is already required by default. Can you provide information on the server you're running Cachet on? What version of PHP etc?

Artic6 commented 4 weeks ago

Ubuntu 20.04 and its PHP 7.4 - I had trouble getting it working on PHP 8.2

Lee Croucher 🐻| @.*** | w:https://a6n.co.uk http://www.a6n.co.uk/ http://facebook.com/artic6 http://us.linkedin.com/in/artic6 http://twitter.com/artic6 http://flickr.com/photos/croucher_lee http://itunes.apple.com/app/artic6 http://drive.google.com/artic6

On Mon, 3 Jun 2024 at 05:44, James Brooks @.***> wrote:

The package that generates the QR code is already required by default. Can you provide information on the server you're running Cachet on? What version of PHP etc?

— Reply to this email directly, view it on GitHub https://github.com/cachethq/cachet/issues/4391#issuecomment-2144270038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7S7YVS2BGO3SZE6FGNZTZFPYCVAVCNFSM6AAAAABIT5DRZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGI3TAMBTHA . You are receiving this because you were mentioned.Message ID: @.***>

Artic6 commented 4 weeks ago

I’m not on v3 because it’s not released, I don’t think it justifies the video the moment you click on Google authenticator you immediately get the internal serve error

It does not show you the QR code and then it prevents you logging in because the next time you login it asked for your authentication token

The problem with this is you don’t get a QR code to scan what would cause it not to generate that QR code?

Lee Croucher 🐻| @.*** | w:https://a6n.co.uk http://www.a6n.co.uk/ http://facebook.com/artic6 http://us.linkedin.com/in/artic6 http://twitter.com/artic6 http://flickr.com/photos/croucher_lee http://itunes.apple.com/app/artic6 http://drive.google.com/artic6

On Mon, 3 Jun 2024 at 05:45, Lee Croucher @.***> wrote:

Ubuntu 20.04 and its PHP 7.4 - I had trouble getting it working on PHP 8.2

Lee Croucher 🐻| @.*** | w:https://a6n.co.uk http://www.a6n.co.uk/ http://facebook.com/artic6 http://us.linkedin.com/in/artic6 http://twitter.com/artic6 http://flickr.com/photos/croucher_lee http://itunes.apple.com/app/artic6 http://drive.google.com/artic6

On Mon, 3 Jun 2024 at 05:44, James Brooks @.***> wrote:

The package that generates the QR code is already required by default. Can you provide information on the server you're running Cachet on? What version of PHP etc?

— Reply to this email directly, view it on GitHub https://github.com/cachethq/cachet/issues/4391#issuecomment-2144270038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7S7YVS2BGO3SZE6FGNZTZFPYCVAVCNFSM6AAAAABIT5DRZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGI3TAMBTHA . You are receiving this because you were mentioned.Message ID: @.***>