Can't add repositories
max4ever opened this issue · comments
max4ever commented
Hi,
I am following the README.md and when I try to execute docker-compose exec --user www-data packagist /srv/app/console packagist:dump --no-debug --env=prod --force
I get this warning
PHP Warning: ksort() expects parameter 1 to be array, null given in /srv/src/Packagist/WebBundle/Package/SymlinkDumper.php on line 526
Then when I try to submit any package, even "https://github.com/composer/composer" I always get a 500 HTTP response.
This is what the log shows/var/log # more cron.log
Web dir is /srv/web/p ()
Build dir is /srv/app/cache/prod/composer-packages-build/a
Cleaning up existing files
Preparing individual files listings
Dumping individual listings
Dumping root
PHP Warning: ksort() expects parameter 1 to be array, null given in /srv/src/Packagist/WebBundle/Package/SymlinkDumper.php on line 526
Putting new files in production
Writing/linking the packages.json
Cleaning up old build dir
Copying new contents to old build dir to sync up
Updating package dump times
Deleting existing index
[Solarium_Client_HttpException]
Solr HTTP error: HTTP request failed
Exception trace:
() at /srv/vendor/solarium/solarium/library/Solarium/Client/Adapter/Http.php:80
Solarium_Client_Adapter_Http->check() at /srv/vendor/solarium/solarium/library/Solarium/Client/Adapter/Http.php:62
Solarium_Client_Adapter_Http->execute() at /srv/vendor/solarium/solarium/library/Solarium/Client.php:574
Solarium_Client->executeRequest() at /srv/vendor/solarium/solarium/library/Solarium/Client.php:554
Solarium_Client->execute() at /srv/vendor/solarium/solarium/library/Solarium/Client.php:627
Solarium_Client->update() at /srv/src/Packagist/WebBundle/Command/IndexPackagesCommand.php:106
Packagist\WebBundle\Command\IndexPackagesCommand->execute() at /srv/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:259
Symfony\Component\Console\Command\Command->run() at /srv/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:863
Symfony\Component\Console\Application->doRunCommand() at /srv/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:192
Symfony\Component\Console\Application->doRun() at /srv/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:92
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:123
Symfony\Component\Console\Application->run() at /srv/app/console:30
packagist:index [--force] [--all] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-s|--shell] [--process-isolation] [-e|--env ENV] [--no-debug] [--] <command> [<package>]