Giter Site home page Giter Site logo

Comments (11)

joshtrichards avatar joshtrichards commented on June 17, 2024

I understand you can't enable the app now, but can you expand on the initial issue:

LDAP enabled backend app causing server to crash after configurating it,

"Crash" as in ... ? And maybe provided the associated log entry?

I don't suppose you can provide some details about how you configured LDAP?

from server.

zainab186 avatar zainab186 commented on June 17, 2024

Thank you for responding, crash as in literally server is not showing any gui and not accessible, showing "server is not able to complete your request",ldap backend was enabled after installing php-ldap on the system. I tried installing it (ldap backend) using occ via shell but it keeps breaking the server. When i install it from the app store on nc it prevents me and shows the screen attached. Logs actually show nothing regarding why server crashes or what happen after i install the ldap. I will provide you with them just when i am at office. Thank you

from server.

zainab186 avatar zainab186 commented on June 17, 2024

At first it crashes after faulty config which I can't trace yet because AD management is not within my sight, we have another dept handling it, but now it just does that after enabling ldap backend

from server.

joshtrichards avatar joshtrichards commented on June 17, 2024

Thank you for responding, crash as in literally server is not showing any gui and not accessible, showing "server is not able to complete your request",ldap backend was enabled after installing php-ldap on the system. I tried installing it (ldap backend) using occ via shell but it keeps breaking the server.

So you're saying it initially crashed before you configured anything LDAP related?

Please provide the entire stack trace from the first erroneous log entry (it'll likely include a stack trace) after you enabled the user_ldap app. The bits you provided don't appear to be full log entries. If you're doing it from the Web UI, you need to use the option to get the raw entry. Otherwise grab it from your nextcloud.log.

from server.

zainab186 avatar zainab186 commented on June 17, 2024

sorry for messy explanation, the exact process was:
1- ldap enabled, then configured falsely
2- nextcloud display the following: internal server error
after deleting the config server returns to normal, trying again, server keep getting internal error
after trying to make changes according to user forums:
1- adding a specific line to Ajax files in nextcloud files, changing to memcache to apcu
those edits got more errors so they got deleted
2- server crashes immediately after enabling user_ldap using occ
3- gui refuses to enable it saying it makes the server unstable

now team decided to revert to older snapshot so i don't have the old logs of theses processes, but i have the current logs, they still full of ldap errors
nextcloud (2).log

from server.

small1 avatar small1 commented on June 17, 2024

Can you check the linux audit logs? you have dns errors and a few other things. Just to rule out selinux problems. (as you are running on rhel/centos)

from server.

zainab186 avatar zainab186 commented on June 17, 2024

SElinux is set off by setenforce 0, unless there's another way? dns issue appeared after changing the dns because i thought it was the issue, so anyway we are rolling back to the old one

from server.

zainab186 avatar zainab186 commented on June 17, 2024

since i got internal error again, these are the logs:


Level App Message Time


Error index Exception: LDAP Operations error at 2024-05-08T10:31:08+00:00
apps/user_ldap/lib/LDAP.php line 388

                     0. .../LDAP.php line 420

                        OCA\User_LDAP\LDAP->processLDAPError(



                        )

                     1. .../LDAP.php line 309

                        OCA\User_LDAP\LDAP->postFunctionCall(



                        )

                     2. .../LDAP.php line 215

                        OCA\User_LDAP\LDAP->invokeLDAPMethod("*** sensit ... *")

                     3. <<closure>>

                        OCA\User_LDAP\LDAP->search(



                        )

                     4. .../lib/Access.php line 1067

                        call_user_func_array(



                        )

                     5. .../Access.php line 1070

                        OCA\User_LDAP\Access->OCA\User_LDAP\{closure}("* ... *")

                     6. .../Access.php line 1128

                        OCA\User_LDAP\Access->invokeLDAPMethod("*** sens ... *")

                     7. .../Access.php line 1228

                        OCA\User_LDAP\Access->executeSearch(



                        )

                     8. .../lib/Access.php line 992

                        OCA\User_LDAP\Access->count(



                        )

                     9. .../User_LDAP.php line 594

                        OCA\User_LDAP\Access->countUsers(



                        )

                    10. .../User_Proxy.php line 405

                        OCA\User_LDAP\User_LDAP->countUsers(



                        )

                    11. .../Admin.php line 178

                        OCA\User_LDAP\User_Proxy->countUsers(



                        )

                    12. .../Admin.php line 165

                        OCA\UpdateNotification\Settings\Admin->getUserCount(



                        )

                    13. .../Admin.php line 102

                        OCA\UpdateNotification\Settings\Admin->isWebUpdaterRecommended(



                        )

                    14. .../CommonSettingsTrait.php line 140

                        OCA\UpdateNotification\Settings\Admin->getForm(



                        )

                    15. .../AdminSettingsController.php line 93

                        OCA\Settings\Controller\AdminSettingsController->formatSettings(



                        )

                    16. .../CommonSettingsTrait.php line 165

                        OCA\Settings\Controller\AdminSettingsController->getSettings(



                        )

                    17. .../AdminSettingsController.php line 77

                        OCA\Settings\Controller\AdminSettingsController->getIndexResponse(



                        )

                    18. .../Dispatcher.php line 232

                        OCA\Settings\Controller\AdminSettingsController->index(



                        )

                    19. .../Dispatcher.php line 138

                        OC\AppFramework\Http\Dispatcher->executeController(



                        )

                    20. .../App.php line 184

                        OC\AppFramework\Http\Dispatcher->dispatch(



                        )

                    21. .../Route/Router.php line 338

                        OC\AppFramework\App::main(



                        )

                    22. lib/base.php line 1050

                        OC\Route\Router->match(



                        )

                    23. index.php line 49

                        OC::handleRequest(



                        )

Warning user_ldap Bind failed: 49: Invalid credentials 2024-05-08T10:38:42+00:00

Error PHP ldap_search(): Search: Operations error at 2024-05-08T10:38:42+00:00
/var/www/html/nextcloud/apps/user_ldap/lib/LDAP.php#307

Error support Exception: LDAP Operations error at 2024-05-08T10:38:42+00:00
apps/user_ldap/lib/LDAP.php line 388

                     0. .../LDAP.php line 420

                        OCA\User_LDAP\LDAP->processLDAPError(



                        )

                     1. .../LDAP.php line 309

                        OCA\User_LDAP\LDAP->postFunctionCall(



                        )

                     2. .../LDAP.php line 215

                        OCA\User_LDAP\LDAP->invokeLDAPMethod("*** sensit ... *")

                     3. <<closure>>

                        OCA\User_LDAP\LDAP->search(



                        )

                     4. .../lib/Access.php line 1067

                        call_user_func_array(



                        )

                     5. .../Access.php line 1070

                        OCA\User_LDAP\Access->OCA\User_LDAP\{closure}("* ... *")

                     6. .../Access.php line 1128

                        OCA\User_LDAP\Access->invokeLDAPMethod("*** sens ... *")

                     7. .../Access.php line 1228

                        OCA\User_LDAP\Access->executeSearch(



                        )

                     8. .../lib/Access.php line 992

                        OCA\User_LDAP\Access->count(



                        )

                     9. .../User_LDAP.php line 594

                        OCA\User_LDAP\Access->countUsers(



                        )

                    10. .../User_Proxy.php line 405

                        OCA\User_LDAP\User_LDAP->countUsers(



                        )

                    11. .../SubscriptionService.php line 111

                        OCA\User_LDAP\User_Proxy->countUsers(



                        )

                    12. .../SubscriptionService.php line 262

                        OCA\Support\Service\SubscriptionService->getUserCount(



                        )

                    13. .../SubscriptionAdapter.php line 49

                        OCA\Support\Service\SubscriptionService->getSubscriptionInfo(



                        )

                    14. .../Registry.php line 137

                        OCA\Support\Subscription\SubscriptionAdapter->hasValidSubscription(



                        )

                    15. .../ServerDevNotice.php line 103

                        OC\Support\Subscription\Registry->delegateHasValidSubscription(



                        )

                    16. .../Manager.php line 217

                        OCA\Settings\Settings\Personal\ServerDevNotice->getSection(



                        )

                    17. .../Manager.php line 331

                        OC\Settings\Manager->getSettings(



                        )

                    18. .../Manager.php line 292

                        OC\Settings\Manager->getPersonalSettings(



                        )

                    19. .../CommonSettingsTrait.php line 122

                        OC\Settings\Manager->getPersonalSections(



                        )

                    20. .../CommonSettingsTrait.php line 77

                        OCA\Settings\Controller\AdminSettingsController->formatPersonalSections(



                        )

                    21. .../CommonSettingsTrait.php line 164

                        OCA\Settings\Controller\AdminSettingsController->getNavigationParameters(



                        )

                    22. .../AdminSettingsController.php line 77

                        OCA\Settings\Controller\AdminSettingsController->getIndexResponse(



                        )

                    23. .../Dispatcher.php line 232

                        OCA\Settings\Controller\AdminSettingsController->index(



                        )

                    24. .../Dispatcher.php line 138

                        OC\AppFramework\Http\Dispatcher->executeController(



                        )

                    25. .../App.php line 184

                        OC\AppFramework\Http\Dispatcher->dispatch(



                        )

                    26. .../Route/Router.php line 338

                        OC\AppFramework\App::main(



                        )

                    27. lib/base.php line 1050

                        OC\Route\Router->match(



                        )

                    28. index.php line 49

                        OC::handleRequest(



                        )

Warning support Can not determine user count for OCA\User_LDAP\User_Proxy 2024-05-08T10:38:42+00:00

Error PHP ldap_search(): Search: Operations error at 2024-05-08T10:38:42+00:00
/var/www/html/nextcloud/apps/user_ldap/lib/LDAP.php#307

Error index Exception: LDAP Operations error at 2024-05-08T10:38:42+00:00
apps/user_ldap/lib/LDAP.php line 388

                     0. .../LDAP.php line 420

                        OCA\User_LDAP\LDAP->processLDAPError(



                        )

                     1. .../LDAP.php line 309

                        OCA\User_LDAP\LDAP->postFunctionCall(



                        )

                     2. .../LDAP.php line 215

                        OCA\User_LDAP\LDAP->invokeLDAPMethod("*** sensit ... *")

                     3. <<closure>>

                        OCA\User_LDAP\LDAP->search(



                        )

                     4. .../lib/Access.php line 1067

                        call_user_func_array(



                        )

                     5. .../Access.php line 1070

                        OCA\User_LDAP\Access->OCA\User_LDAP\{closure}("* ... *")

                     6. .../Access.php line 1128

                        OCA\User_LDAP\Access->invokeLDAPMethod("*** sens ... *")

                     7. .../Access.php line 1228

                        OCA\User_LDAP\Access->executeSearch(



                        )

                     8. .../lib/Access.php line 992

                        OCA\User_LDAP\Access->count(



                        )

                     9. .../User_LDAP.php line 594

                        OCA\User_LDAP\Access->countUsers(



                        )

                    10. .../User_Proxy.php line 405

                        OCA\User_LDAP\User_LDAP->countUsers(



                        )

                    11. .../Admin.php line 178

                        OCA\User_LDAP\User_Proxy->countUsers(



                        )

                    12. .../Admin.php line 165

                        OCA\UpdateNotification\Settings\Admin->getUserCount(



                        )

                    13. .../Admin.php line 102

                        OCA\UpdateNotification\Settings\Admin->isWebUpdaterRecommended(



                        )

                    14. .../CommonSettingsTrait.php line 140

                        OCA\UpdateNotification\Settings\Admin->getForm(



                        )

                    15. .../AdminSettingsController.php line 93

                        OCA\Settings\Controller\AdminSettingsController->formatSettings(



                        )

                    16. .../CommonSettingsTrait.php line 165

                        OCA\Settings\Controller\AdminSettingsController->getSettings(



                        )

                    17. .../AdminSettingsController.php line 77

                        OCA\Settings\Controller\AdminSettingsController->getIndexResponse(



                        )

                    18. .../Dispatcher.php line 232

                        OCA\Settings\Controller\AdminSettingsController->index(



                        )

                    19. .../Dispatcher.php line 138

                        OC\AppFramework\Http\Dispatcher->executeController(



                        )

                    20. .../App.php line 184

                        OC\AppFramework\Http\Dispatcher->dispatch(



                        )

                    21. .../Route/Router.php line 338

                        OC\AppFramework\App::main(



                        )

                    22. lib/base.php line 1050

                        OC\Route\Router->match(



                        )

                    23. index.php line 49

                        OC::handleRequest(



                        )

Warning support Can not determine user count for OCA\User_LDAP\User_Proxy 2024-05-08T10:38:42+00:00

Error PHP ldap_search(): Search: Operations error at 2024-05-08T10:38:42+00:00
/var/www/html/nextcloud/apps/user_ldap/lib/LDAP.php#307

Error index Exception: LDAP Operations error at 2024-05-08T10:38:42+00:00
apps/user_ldap/lib/LDAP.php line 388

                     0. .../LDAP.php line 420

                        OCA\User_LDAP\LDAP->processLDAPError(



                        )

                     1. .../LDAP.php line 309

                        OCA\User_LDAP\LDAP->postFunctionCall(



                        )

                     2. .../LDAP.php line 215

                        OCA\User_LDAP\LDAP->invokeLDAPMethod("*** sensit ... *")

                     3. <<closure>>

                        OCA\User_LDAP\LDAP->search(



                        )

                     4. .../lib/Access.php line 1067

                        call_user_func_array(



                        )

                     5. .../Access.php line 1070

                        OCA\User_LDAP\Access->OCA\User_LDAP\{closure}("* ... *")

                     6. .../Access.php line 1128

                        OCA\User_LDAP\Access->invokeLDAPMethod("*** sens ... *")

                     7. .../Access.php line 1228

                        OCA\User_LDAP\Access->executeSearch(



                        )

                     8. .../lib/Access.php line 992

                        OCA\User_LDAP\Access->count(



                        )

                     9. .../User_LDAP.php line 594

                        OCA\User_LDAP\Access->countUsers(



                        )

                    10. .../User_Proxy.php line 405

                        OCA\User_LDAP\User_LDAP->countUsers(



                        )

                    11. .../Admin.php line 178

                        OCA\User_LDAP\User_Proxy->countUsers(



                        )

                    12. .../Admin.php line 165

                        OCA\UpdateNotification\Settings\Admin->getUserCount(



                        )

                    13. .../Admin.php line 102

                        OCA\UpdateNotification\Settings\Admin->isWebUpdaterRecommended(



                        )

                    14. .../CommonSettingsTrait.php line 140

                        OCA\UpdateNotification\Settings\Admin->getForm(



                        )

                    15. .../AdminSettingsController.php line 93

                        OCA\Settings\Controller\AdminSettingsController->formatSettings(



                        )

                    16. .../CommonSettingsTrait.php line 165

                        OCA\Settings\Controller\AdminSettingsController->getSettings(



                        )

                    17. .../AdminSettingsController.php line 77

                        OCA\Settings\Controller\AdminSettingsController->getIndexResponse(



                        )

                    18. .../Dispatcher.php line 232

                        OCA\Settings\Controller\AdminSettingsController->index(



                        )

                    19. .../Dispatcher.php line 138

                        OC\AppFramework\Http\Dispatcher->executeController(



                        )

                    20. .../App.php line 184

                        OC\AppFramework\Http\Dispatcher->dispatch(



                        )

                    21. .../Route/Router.php line 338

                        OC\AppFramework\App::main(



                        )

                    22. lib/base.php line 1050

                        OC\Route\Router->match(



                        )

                        OC::handleRequest(



                        )

from server.

zainab186 avatar zainab186 commented on June 17, 2024

Screenshot 2024-05-08 133848

from server.

zainab186 avatar zainab186 commented on June 17, 2024

Screenshot 2024-05-08 134300
deleted this line from config.php file, works again now

from server.

zainab186 avatar zainab186 commented on June 17, 2024

issue solved by providing the right creds.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.