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

groupfolders and fulltextsearch cannot coexist on 27.0.0 #2428

Closed
joergmschulz opened this issue Jun 13, 2023 · 6 comments
Closed

groupfolders and fulltextsearch cannot coexist on 27.0.0 #2428

joergmschulz opened this issue Jun 13, 2023 · 6 comments
Labels
0. Needs triage Issues that need to be triaged bug

Comments

@joergmschulz
Copy link

joergmschulz commented Jun 13, 2023

Steps to reproduce

  1. upgrade a 26 version to 27
  2. reactivate groupfolders and fulltextsearch

Expected behaviour

nc should run just like version 26

Actual behaviour

a crash happens:, log below. When I disable one of [groufolders, fulltextsearch] all works fine.

index] Fehler: TypeError: OC\App\AppManager::checkAppForUser(): Argument #2 ($user) must be of type ?OCP\IUser, string given, called in /www/nextcloud/lib/private/App/AppManager.php on line 307 at <<closure>>

 0. /www/nextcloud/lib/private/App/AppManager.php line 307
    OC\App\AppManager->checkAppForUser("yes", "joerg.schulz")
 1. /data/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php line 103
    OC\App\AppManager->isEnabledForUser("groupfolders", "joerg.schulz")
 2. <<closure>>
    OCA\Files_FullTextSearch\Service\GroupFoldersService->__construct("joerg.schulz", ["OC\\DB\\ConnectionAdapter"], ["OC\\App\\AppManager"], ["OC\\Share20\\Manager"], ["OC\\Group\\Manager"], ["OCA\\Files_Ful ... "], ["OCA\\Files_Ful ... ]], ["OCA\\Files_Ful ... "])
 3. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
    ReflectionClass->newInstanceArgs(["joerg.schulz", ... ]])
 4. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
    OC\AppFramework\Utility\SimpleContainer->buildClass(["ReflectionClas ... "])
 5. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\Files_Full ... e")
 6. /www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 494
    OC\AppFramework\Utility\SimpleContainer->query("OCA\\Files_Full ... e")
 7. /www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 466
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\Files_Full ... e")
 8. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 97
    OC\AppFramework\DependencyInjection\DIContainer->query("OCA\\Files_Full ... e", true)
 9. <<closure>>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
10. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
    array_map(["Closure"], [["ReflectionPar ... ]])
11. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
    OC\AppFramework\Utility\SimpleContainer->buildClass(["ReflectionClas ... "])
12. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\Files_Full ... e")
13. /www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 494
    OC\AppFramework\Utility\SimpleContainer->query("OCA\\Files_Full ... e")
14. /www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 466
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\Files_Full ... e")
15. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 97
    OC\AppFramework\DependencyInjection\DIContainer->query("OCA\\Files_Full ... e", true)
16. <<closure>>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
17. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
    array_map(["Closure"], [["ReflectionPar ... ]])
18. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
    OC\AppFramework\Utility\SimpleContainer->buildClass(["ReflectionClas ... "])
19. /www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\Files_Full ... r")
20. /www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 494
    OC\AppFramework\Utility\SimpleContainer->query("OCA\\Files_Full ... r")
21. /www/nextcloud/lib/private/ServerContainer.php line 155
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\Files_Full ... r")
22. /data/apps/fulltextsearch/lib/Service/ProviderService.php line 122
    OC\ServerContainer->query("OCA\\Files_Full ... r")
23. /data/apps/fulltextsearch/lib/Service/ProviderService.php line 311
    OCA\FullTextSearch\Service\ProviderService->loadProvider("files_fulltextsearch", "OCA\\Files_Full ... r")
24. /data/apps/fulltextsearch/lib/Service/ProviderService.php line 282
    OCA\FullTextSearch\Service\ProviderService->loadProvidersFromList("files_fulltextsearch", ["OCA\\Files_Ful ... "])
25. /data/apps/fulltextsearch/lib/Service/ProviderService.php line 102
    OCA\FullTextSearch\Service\ProviderService->loadProvidersFromApp("files_fulltextsearch")
26. /data/apps/fulltextsearch/lib/Service/ProviderService.php line 156
    OCA\FullTextSearch\Service\ProviderService->loadProviders()
27. /data/apps/fulltextsearch/lib/Capabilities.php line 80
    OCA\FullTextSearch\Service\ProviderService->getConfiguredProviders()
28. /www/nextcloud/lib/private/CapabilitiesManager.php line 74
    OCA\FullTextSearch\Capabilities->getCapabilities()
29. /www/nextcloud/lib/private/Template/JSConfigHelper.php line 166
    OC\CapabilitiesManager->getCapabilities(false, true)
30. /www/nextcloud/lib/private/TemplateLayout.php line 240
    OC\Template\JSConfigHelper->getConfig()
31. /www/nextcloud/lib/private/legacy/OC_Template.php line 182
    OC\TemplateLayout->__construct("user", "settings")
32. /www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php line 213
    OC_Template->fetchPage([[[["personal-in ... "])
33. /www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 182
    OCP\AppFramework\Http\TemplateResponse->render()
34. /www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Settings\ ... "], "index")
35. /www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main("OCA\\Settings\\ ... r", "index", ["OC\\AppFramewo ... "], ["logging","sett ... "])
36. /www/nextcloud/lib/base.php line 1064
    OC\Route\Router->match("/settings/admin/logging")
37. /www/nextcloud/index.php line 36
    OC::handleRequest()

GET /index.phpadmin/logging
from 172.20.0.1 by joerg.schulz at 2023-06-13T22:18:23+02:00

Server configuration

enabled applications

Enabled:
  - activity: 2.19.0
  - bbb: 2.4.0
  - bookmarks: 13.0.1
  - calendar: 4.4.2
  - calendar_news: 1.1.7
  - circles: 27.0.0
  - cloud_federation_api: 1.10.0
  - collectives: 2.5.0
  - comments: 1.17.0
  - contacts: 5.3.0
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - deck: 1.10.0
  - drawio: 2.1.1
  - external: 5.2.0
  - federatedfilesharing: 1.17.0
  - files: 1.22.0
  - files_antivirus: 5.1.0
  - files_fulltextsearch: 27.0.0
  - files_pdfviewer: 2.8.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - forms: 3.3.0
  - fulltextsearch: 27.0.0
  - fulltextsearch_elasticsearch: 27.0.0
  - integration_openai: 1.0.10
  - integration_openstreetmap: 1.0.5
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.2.0
  - nextcloud_announcements: 1.16.0
  - notifications: 2.15.0
  - notify_push: 0.6.3
  - oauth2: 1.15.0
  - photos: 2.3.0
  - polls: 5.0.5
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recognize: 4.1.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - richdocuments: 8.1.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - side_menu: 3.8.0
  - snappymail: 2.28.1
  - spreed: 17.0.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - tables: 0.5.1
  - tasks: 0.15.0
  - terms_of_service: 2.2.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - updatenotification: 1.17.0
  - user_ldap: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - workflowengine: 2.9.0

Database:
postgresql 15

PHP version:
8.2
Nextcloud version: (see Nextcloud admin page)
27

Group folders version:
15.0.0
fulltextsearch version:
27.0.0

Updated from an older Nextcloud/ownCloud or fresh install:
yes, 26

Where did you install Nextcloud from:
docker / tiredofit

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...
ldap

Client configuration

Browser:
Firefox
Operating system:
macos ventura

@solracsf
Copy link
Member

Fixed by nextcloud/files_fulltextsearch#227

@wagnbeu0
Copy link

When will it be fixed for productive users? With NC 27.0.1? Or can we upgrade the modules manually?

@wagnbeu0
Copy link

wagnbeu0 commented Jul 21, 2023

Hi, I just made the update to 27.0.1 - but problem still exists ... when will it be fixed? Now that all my instances will upgrade to NC27.0.x it turns out that I have to disable files_fulltextsearch on all installations - I also use groupfolders which I cannot disable.

@joergmschulz
Copy link
Author

files_fulltextsearch needs to be deployed to the appstore. It seems the current github version works. You git pull that one though I don't know how well that's tested.

@joshtrichards
Copy link
Member

v27.0.1 has since been published: https://apps.nextcloud.com/apps/files_fulltextsearch/releases?platform=27#27

Same goes for v26 & v25 releases

@wagnbeu0
Copy link

wagnbeu0 commented Oct 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged bug
Projects
None yet
Development

No branches or pull requests

4 participants