snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.91k stars 3.15k forks source link

500 Server Error. Please check your server logs for more information. When attempting to Test LDAP Syncroniazation #10795

Open t-dao opened 2 years ago

t-dao commented 2 years ago

Debug mode

Describe the bug

Our LDAP has been unable to sync and bring in new users.

image

Reproduction steps

1.Manually initiate LDAP sync through PHP artisan or through Test LDAP Synchronization button 2.Process cycles and and then produces a 500 Server error 3.New users no longer become synced in through LDAP.

Expected behavior

LDAP sync to update users processes and new users appear for asset assignment.

Screenshots

image

Snipe-IT Version

v5.3.10 build 6684 (g05c081977)

Operating System

Cent OS

Web Server

Apache

PHP Version

7.3.25

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

[2022-03-07 14:37:18] production.ERROR: Symfony\Component\Console\Exception\RuntimeException: The "--list" option does not exist. in /opt/snipe-it/vendor/symfony/console/Input/ArgvInput.php:201
Stack trace:
#0 /opt/snipe-it/vendor/symfony/console/Input/ArgvInput.php(145): Symfony\Component\Console\Input\ArgvInput->addLongOption('list', NULL)
#1 /opt/snipe-it/vendor/symfony/console/Input/ArgvInput.php(79): Symfony\Component\Console\Input\ArgvInput->parseLongOption('--list')
#2 /opt/snipe-it/vendor/symfony/console/Input/Input.php(55): Symfony\Component\Console\Input\ArgvInput->parse()
#3 /opt/snipe-it/vendor/symfony/console/Command/Command.php(214): Symfony\Component\Console\Input\Input->bind(Object(Symfony\Component\Console\Input\InputDefinition))
#4 /opt/snipe-it/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /opt/snipe-it/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Symfony\Component\Console\Command\ListCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /opt/snipe-it/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /opt/snipe-it/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /opt/snipe-it/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(131): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /opt/snipe-it/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 {main}  
[2022-03-07 14:37:18] production.ERROR: The "--list" option does not exist. {"exception":"[object] (Symfony\\Component\\Console\\Exception\\RuntimeException(code: 0): The \"--list\" option does not exist. at /opt/snipe-it/vendor/symfony/console/Input/ArgvInput.php:201)
[stacktrace]
#0 /opt/snipe-it/vendor/symfony/console/Input/ArgvInput.php(145): Symfony\\Component\\Console\\Input\\ArgvInput->addLongOption('list', NULL)
#1 /opt/snipe-it/vendor/symfony/console/Input/ArgvInput.php(79): Symfony\\Component\\Console\\Input\\ArgvInput->parseLongOption('--list')
#2 /opt/snipe-it/vendor/symfony/console/Input/Input.php(55): Symfony\\Component\\Console\\Input\\ArgvInput->parse()
#3 /opt/snipe-it/vendor/symfony/console/Command/Command.php(214): Symfony\\Component\\Console\\Input\\Input->bind(Object(Symfony\\Component\\Console\\Input\\InputDefinition))
#4 /opt/snipe-it/vendor/symfony/console/Application.php(1009): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#5 /opt/snipe-it/vendor/symfony/console/Application.php(273): Symfony\\Component\\Console\\Application->doRunCommand(Object(Symfony\\Component\\Console\\Command\\ListCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#6 /opt/snipe-it/vendor/symfony/console/Application.php(149): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#7 /opt/snipe-it/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#8 /opt/snipe-it/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(131): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#9 /opt/snipe-it/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#10 {main}
"}

Additional context

Prior to moving to PHP 7.3 we were on PHP 7.2 and were recieving this error:

[2022-03-02 13:28:51] production.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /opt/snipe-it/app/Models/Ldap.php:293 Stack trace:

0 {main}

[2022-03-02 13:28:51] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":8788,"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /opt/snipe-it/app/Models/Ldap.php:293) [stacktrace]

0 {main}

"} [2022-03-02 20:22:49] production.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /opt/snipe-it/app/Models/Ldap.php:293 Stack trace:

0 {main}

[2022-03-02 20:22:49] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) {"userId":8788,"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 1): Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /opt/snipe-it/app/Models/Ldap.php:293)

welcome[bot] commented 2 years ago

šŸ‘‹ Thanks for opening your first issue here! If you're reporting a šŸž bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 2 years ago

I'd probably start by upgrading your install. A lot has changed since 5.3.10.