nextcloud / nextcloud/fulltextsearch
An unhandled exception thrown on occ fulltextsearch:test
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 234
- Forks
- 64
- Avg merge
- 6h 18m
- Merged PRs (30d)
- 10
Description
After updating one of the components, the Nextcloud log is flooded with messages. Unfortunately, I didn't notice the error right away, so I can't narrow down the actual problem.
What is certain is that a occ fulltextsearch:test used to work and now the following error (which I also find in the log) occurs:
An unhandled exception has been thrown:
Error: Failed opening required '/var/lib/nextcloud/apps/fulltextsearch/lib/AppInfo/../../vendor/autoload.php' (include_path='/usr/share/webapps/nextcloud/apps/news/vendor/pear/net_url2:/usr/share/webapps/nextcloud/3rdparty/pear/archive_tar:/usr/share/webapps/nextcloud/3rdparty/pear/console_getopt:/usr/share/webapps/nextcloud/3rdparty/pear/pear-core-minimal/src:/usr/share/webapps/nextcloud/3rdparty/pear/pear_exception:/usr/share/webapps/nextcloud/apps:/var/lib/nextcloud/apps') in /var/lib/nextcloud/apps/fulltextsearch/lib/AppInfo/Application.php:54
Stack trace:
#0 /usr/share/webapps/nextcloud/lib/composer/composer/ClassLoader.php(480): include()
#1 /usr/share/webapps/nextcloud/lib/composer/composer/ClassLoader.php(346): Composer\Autoload\includeFile()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 /usr/share/webapps/nextcloud/lib/private/ServerContainer.php(106): class_exists()
#4 /usr/share/webapps/nextcloud/lib/private/ServerContainer.php(176): OC\ServerContainer->getAppContainer()
#5 /usr/share/webapps/nextcloud/lib/private/ServerContainer.php(143): OC\ServerContainer->getAppContainerForService()
#6 /usr/share/webapps/nextcloud/lib/private/Console/Application.php(215): OC\ServerContainer->query()
#7 /usr/share/webapps/nextcloud/lib/private/Console/Application.php(128): OC\Console\Application->loadCommandsFromInfoXml()
#8 /usr/share/webapps/nextcloud/console.php(98): OC\Console\Application->loadCommands()
#9 /usr/share/webapps/nextcloud/occ(11): require_once('...')
The file /var/lib/nextcloud/apps/fulltextsearch/vendor/autoload.php really does not exist in the file system and also not in the package!
My Server configuration is: nginx 1.20.1 (with php-fpm 8.0.12), nextcloud 22.2.0 and Full text search 22.0.1
I hope for your support!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce occ fulltextsearch:test with the reported Nextcloud and Full text search versions, then inspect lib/AppInfo/Application.php around line 54 and the packaged vendor contents. Trace why vendor/autoload.php is absent from /apps/fulltextsearch; done means the command loads the app without the unhandled exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, build-system, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100