Edit profile page returns 500 when any OAuth2 provider is enabled #200

Closed
opened 2026-02-05 17:15:45 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @IxPrumxI on GitHub (Dec 1, 2024).

Originally assigned to: @Boy132 on GitHub.

Current Behavior

When adding oauth2 to .env following https://github.com/pelican-dev/panel/blob/main/config/auth.php#L28-L137. The page returns 500 with the logs reading:

[2024-12-01 04:37:42] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363)
[stacktrace]
#0 {main}
"}

Expected Behavior

Edit profile page to show up with the added oauth2 providers with the ability to connect to them.

Steps to Reproduce

Add any oauth2 provider from https://github.com/pelican-dev/panel/blob/main/config/auth.php#L28-L137 to the panel.
Observe as setting OAUTH_anyprovider_ENABLED=true causes the panel to responds with 500.

Panel Version

1.0.0-beta14

Wings Version

1.0.0-beta7

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

[2024-12-01 04:05:24] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363)
[stacktrace]
#0 {main}
"} 
[2024-12-01 04:09:43] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363)
[stacktrace]
#0 {main}
"} 
[2024-12-01 04:11:12] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363)
[stacktrace]
#0 {main}
"} 
[2024-12-01 04:16:46] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363)
[stacktrace]
#0 {main}
"} 
[2024-12-01 04:34:20] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363)
[stacktrace]
#0 {main}
"} 
[2024-12-01 04:37:42] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363)
[stacktrace]
#0 {main}
"}

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Originally created by @IxPrumxI on GitHub (Dec 1, 2024). Originally assigned to: @Boy132 on GitHub. ### Current Behavior When adding oauth2 to .env following https://github.com/pelican-dev/panel/blob/main/config/auth.php#L28-L137. The page returns 500 with the logs reading: ``` [2024-12-01 04:37:42] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363) [stacktrace] #0 {main} "} ``` ### Expected Behavior Edit profile page to show up with the added oauth2 providers with the ability to connect to them. ### Steps to Reproduce Add any oauth2 provider from https://github.com/pelican-dev/panel/blob/main/config/auth.php#L28-L137 to the panel. Observe as setting OAUTH_anyprovider_ENABLED=true causes the panel to responds with 500. ### Panel Version 1.0.0-beta14 ### Wings Version 1.0.0-beta7 ### Games and/or Eggs Affected _No response_ ### Docker Image _No response_ ### Error Logs ```bash [2024-12-01 04:05:24] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363) [stacktrace] #0 {main} "} [2024-12-01 04:09:43] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363) [stacktrace] #0 {main} "} [2024-12-01 04:11:12] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363) [stacktrace] #0 {main} "} [2024-12-01 04:16:46] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363) [stacktrace] #0 {main} "} [2024-12-01 04:34:20] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363) [stacktrace] #0 {main} "} [2024-12-01 04:37:42] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/pelican/app/Filament/Resources/UserResource/Pages/EditProfile.php:363) [stacktrace] #0 {main} "} ``` ### Is there an existing issue for this? - [X] I have searched the existing issues before opening this issue. - [X] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server. - [X] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Author
Owner

@rmartinoscar commented on GitHub (Dec 1, 2024):

Hey i just tried it with Discord and i cannot reproduce, did you enter correct credentials in .env ?
image
image

And is your oauth callback correct ?
(Those have been regenerated fyi)

Im in discord General
https://discord.gg/pelican-panel

@rmartinoscar commented on GitHub (Dec 1, 2024): Hey i just tried it with Discord and i cannot reproduce, did you enter correct credentials in .env ? ![image](https://github.com/user-attachments/assets/d4c6dfa7-bb71-4deb-a468-0478bad17aa0) ![image](https://github.com/user-attachments/assets/1e5ab719-219f-4f41-9237-b4107186ed7c) And is your oauth callback correct ? (Those have been regenerated fyi) Im in [discord General](https://discord.com/channels/1218730176297439332/1290830961583587420) https://discord.gg/pelican-panel
Author
Owner

@PeterStrick commented on GitHub (Dec 1, 2024):

A bit different here, I already use Azure as my OAuth Provider in multiple Applications even Filament ones, so I installed the Azure OAuth Provider with composer require socialiteproviders/microsoft-azure, made a new entry in config/auth.php and my .env for Azure and it seems to work just fine

config/auth.php snippet used:

'azure' => [
    'enabled' => env('OAUTH_AZURE_ENABLED'),
    'icon' => 'tabler-brand-azure',
    'color' => Color::hex('#2f2a6b'),
    'service' => [
        'client_id' => env('OAUTH_AZURE_CLIENT_ID'),
        'client_secret' => env('OAUTH_AZURE_CLIENT_SECRET'),
        'redirect' => env('OAUTH_AZURE_REDIRECT_URI'),
        'tenant' => env('OAUTH_AZURE_TENANT_ID'),
    ],
    'provider' => \SocialiteProviders\Azure\Provider::class,
],

(this will likely revert back with Panel Updates, but in the Future being able to add custom Socialite Providers through Plugins would be a neat idea)

https://github.com/user-attachments/assets/481838f9-8443-4a6d-bfe6-1faaedb731c4

@PeterStrick commented on GitHub (Dec 1, 2024): A bit different here, I already use Azure as my OAuth Provider in multiple Applications even Filament ones, so I installed the Azure OAuth Provider with `composer require socialiteproviders/microsoft-azure`, made a new entry in `config/auth.php` and my `.env` for Azure and it seems to work just fine `config/auth.php` snippet used: ```php 'azure' => [ 'enabled' => env('OAUTH_AZURE_ENABLED'), 'icon' => 'tabler-brand-azure', 'color' => Color::hex('#2f2a6b'), 'service' => [ 'client_id' => env('OAUTH_AZURE_CLIENT_ID'), 'client_secret' => env('OAUTH_AZURE_CLIENT_SECRET'), 'redirect' => env('OAUTH_AZURE_REDIRECT_URI'), 'tenant' => env('OAUTH_AZURE_TENANT_ID'), ], 'provider' => \SocialiteProviders\Azure\Provider::class, ], ``` (this will likely revert back with Panel Updates, but in the Future being able to add custom Socialite Providers through Plugins would be a neat idea) https://github.com/user-attachments/assets/481838f9-8443-4a6d-bfe6-1faaedb731c4
Author
Owner

@Boy132 commented on GitHub (Dec 1, 2024):

You need to increase the memory limit for php/ php-fpm.

(this will likely revert back with Panel Updates, but in the Future being able to add custom Socialite Providers through Plugins would be a neat idea)

Yes, plugins will be able to easily add new providers. For now your way is correct to add custom providers.

@Boy132 commented on GitHub (Dec 1, 2024): You need to increase the memory limit for php/ php-fpm. > (this will likely revert back with Panel Updates, but in the Future being able to add custom Socialite Providers through Plugins would be a neat idea) Yes, plugins will be able to easily add new providers. For now your way is correct to add custom providers.
Author
Owner

@IxPrumxI commented on GitHub (Dec 2, 2024):

Hey i just tried it with Discord and i cannot reproduce, did you enter correct credentials in .env ? image image

And is your oauth callback correct ? (Those have been regenerated fyi)

Im in discord General https://discord.gg/pelican-panel

I just tried with a new oauth app from discord and still didn't work. Same error.

You need to increase the memory limit for php/ php-fpm.

I bumped the memory limit from 128M till 1024M then it started crashing php-fpm instead of an error causing the whole panel to stop working if I try to access the edit profile page.

@IxPrumxI commented on GitHub (Dec 2, 2024): > Hey i just tried it with Discord and i cannot reproduce, did you enter correct credentials in .env ? ![image](https://private-user-images.githubusercontent.com/40749467/391306950-d4c6dfa7-bb71-4deb-a468-0478bad17aa0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxMTE1NzUsIm5iZiI6MTczMzExMTI3NSwicGF0aCI6Ii80MDc0OTQ2Ny8zOTEzMDY5NTAtZDRjNmRmYTctYmI3MS00ZGViLWE0NjgtMDQ3OGJhZDE3YWEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjAyVDAzNDc1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5YWY3MWUwZDQ5NzVjMWYxZDc3NWQ0ZTBmOTdjZmYyZDM5ODBhODMyNzUwYTM4YjEzYTQzYjE1Yjk2NDgxZDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.LuK4Cp55wzC2ItYP_EpKI9u_t2Tlq_7gqSIkKvLUTHU) ![image](https://private-user-images.githubusercontent.com/40749467/391307520-1e5ab719-219f-4f41-9237-b4107186ed7c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxMTE1NzUsIm5iZiI6MTczMzExMTI3NSwicGF0aCI6Ii80MDc0OTQ2Ny8zOTEzMDc1MjAtMWU1YWI3MTktMjE5Zi00ZjQxLTkyMzctYjQxMDcxODZlZDdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjAyVDAzNDc1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxZjc4NWVlOWY5YmUxZmU1MjVlODUyNmRkYTgyNDNmZTY3YzhjODE1NjA5ZjkwMjk0ZjYzZDU3OTZhMWVhMzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iHzdN_8LX2aoN1YKI8FLSue7J8X-iKq7U3GT9FsdKVg) > > And is your oauth callback correct ? (Those have been regenerated fyi) > > Im in [discord General](https://discord.com/channels/1218730176297439332/1290830961583587420) https://discord.gg/pelican-panel I just tried with a new oauth app from discord and still didn't work. Same error. > You need to increase the memory limit for php/ php-fpm. I bumped the memory limit from 128M till 1024M then it started crashing php-fpm instead of an error causing the whole panel to stop working if I try to access the edit profile page.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#200