Why error installing L5-Swagger in laravel 6 app? - laravel

I have laravel 6 backend rest api app and I want to create Swagger docs for add I found
https://github.com/DarkaOnLine/L5-Swagger
plugin which I suppose could use usefull creating Swagger docs
But I encountered erros publishing config. I suppose I really need this step.
$ php artisan --version
Laravel Framework 6.13.1
serge#athoe:/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI$ composer require "darkaonline/l5-swagger"
Using version ^6.0 for darkaonline/l5-swagger
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
- Installing symfony/yaml (v4.4.4): Downloading (100%)
- Installing swagger-api/swagger-ui (v3.25.0): Downloading (100%)
- Installing doctrine/annotations (v1.8.0): Downloading (100%)
- Installing zircote/swagger-php (3.0.3): Downloading (100%)
- Installing darkaonline/l5-swagger (6.0.3): Downloading (100%)
darkaonline/l5-swagger suggests installing zircote/swagger-php:~2.0 (!!! Require Swagger-PHP ~2.0 for #SWG annotations support !!!)
Package anahkiasen/underscore-php is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files
Warning: Ambiguous class resolution, "App\library\ChunkReadFilter" was found in both "/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/app/library/importBoxRooms.php" and "/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/app/library/importTasks.php", the first will be used.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> #php artisan package:discover --ansi
Discovered Package: barryvdh/laravel-cors
Discovered Package: barryvdh/laravel-ide-helper
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: cviebrock/eloquent-sluggable
Discovered Package: darkaonline/l5-swagger
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: laravel/tinker
Discovered Package: laravolt/avatar
Discovered Package: maatwebsite/excel
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: orangehill/iseed
Discovered Package: spatie/laravel-activitylog
Discovered Package: spatie/laravel-image-optimizer
Discovered Package: tymon/jwt-auth
Package manifest generated successfully.
serge#athoe:/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI$ php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider"
Copied File [/vendor/darkaonline/l5-swagger/config/l5-swagger.php] To [/config/l5-swagger.php]
League\Flysystem\Exception : Impossible to create the root directory "".
at /mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/league/flysystem/src/Adapter/Local.php:112
108| clearstatcache(false, $root);
109|
110| if ( ! is_dir($root)) {
111| $errorMessage = isset($mkdirError['message']) ? $mkdirError['message'] : '';
> 112| throw new Exception(sprintf('Impossible to create the root directory "%s". %s', $root, $errorMessage));
113| }
114| }
115| }
116|
Exception trace:
1 League\Flysystem\Adapter\Local::ensureDirectory()
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/league/flysystem/src/Adapter/Local.php:78
2 League\Flysystem\Adapter\Local::__construct()
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:235
Please use the argument -v to see more details.
serge#athoe:/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI$ php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider" -v
League\Flysystem\Exception : Impossible to create the root directory "".
at /mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/league/flysystem/src/Adapter/Local.php:112
108| clearstatcache(false, $root);
109|
110| if ( ! is_dir($root)) {
111| $errorMessage = isset($mkdirError['message']) ? $mkdirError['message'] : '';
> 112| throw new Exception(sprintf('Impossible to create the root directory "%s". %s', $root, $errorMessage));
113| }
114| }
115| }
116|
Exception trace:
1 League\Flysystem\Adapter\Local::ensureDirectory()
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/league/flysystem/src/Adapter/Local.php:78
2 League\Flysystem\Adapter\Local::__construct()
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:235
3 Illuminate\Foundation\Console\VendorPublishCommand::publishDirectory("/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/darkaonline/l5-swagger/src/../resources/views")
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:200
4 Illuminate\Foundation\Console\VendorPublishCommand::publishItem("/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/darkaonline/l5-swagger/src/../resources/views")
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:163
5 Illuminate\Foundation\Console\VendorPublishCommand::publishTag()
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:76
6 Illuminate\Foundation\Console\VendorPublishCommand::handle()
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32
7 call_user_func_array([])
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32
8 Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Container/Util.php:36
9 Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90
10 Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Object(Closure))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34
11 Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), [])
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Container/Container.php:590
12 Illuminate\Container\Container::call()
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Console/Command.php:201
13 Illuminate\Console\Command::execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/symfony/console/Command/Command.php:255
14 Symfony\Component\Console\Command\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Console/Command.php:188
15 Illuminate\Console\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/symfony/console/Application.php:1012
16 Symfony\Component\Console\Application::doRunCommand(Object(Illuminate\Foundation\Console\VendorPublishCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/symfony/console/Application.php:272
17 Symfony\Component\Console\Application::doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/symfony/console/Application.php:148
18 Symfony\Component\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Console/Application.php:93
19 Illuminate\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:131
20 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
/mnt/_work_sdb8/wwwroot/lar/CTasksRestAPI/artisan:37
Googling for decision I tried run :
chown -R www-data:root .
But it did not help.
also I do not have any problems with settging other plugins, configurations.
How fix it ?
Thanks!

As far as I see from your stack trace, the command fails to create a views directory (./resources/views/vendor/l5-swagger).
Note: chown -R www-data:root . - this command can create some new problems..
After that command, owner is www-data (but you start artisan commands as serge).
After that command, group is root (but serge may not be part of that group).
You have to verify that your user (serge) has proper permissions there (./resources/views, ./resources/views/vendor).
To check current permissions run: ls -la ./resources, ls -la ./resources/views, and ls -la ./resources/views/vendor (if vendor exists already)
Maybe you need something like: sudo chmod -R serge.www-data (serge - owner, www-data - group)
However, it mostly depends on your specific setup and desired result.

Related

compose update not working if using php8 (xxx in the lock file but not in remote repositories ,...)

I've a composer project (magento 2, upgraded from php7 to php 8), if now i use php 8 (inside docker) run "composer udpate", it will shows
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires mobiledetect/mobiledetectlib 2.8.39, found mobiledetect/mobiledetectlib[2.8.39] in the lock file but not in remote repositories, mak e sure you avoid updating this package to keep the one from the lock file.
Problem 2
- Root composer.json requires magento/composer-root-update-plugin 2.0.2 -> satisfiable by magento/composer-root-update-plugin[2.0.2].
- magento/composer-root-update-plugin 2.0.2 requires composer/composer ^1.0 || ^2.0 -> found composer/composer[2.2.18] in the lock file but not in remote reposito ries, make sure you avoid updating this package to keep the one from the lock file.
Problem 3
- Root composer.json requires magento/ece-tools ^2002.1.11 -> satisfiable by magento/ece-tools[2002.1.11, 2002.1.12].
- magento/ece-tools[2002.1.11, ..., 2002.1.12] require colinmollenhour/credis ^1.6.0 -> found colinmollenhour/credis[v1.13.0] in the lock file but not in remote r epositories, make sure you avoid updating this package to keep the one from the lock file.
Problem 4
- Root composer.json requires magento/magento-cloud-metapackage >=2.4.5 <2.4.6 -> satisfiable by magento/magento-cloud-metapackage[2.4.5].
- magento/magento-cloud-metapackage 2.4.5 requires fastly/magento2 ^1.2.34 -> found fastly/magento2[1.2.187] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
But it will work fine in php7.4(inside docker), do anyone know what's the problem?
More info:
docker info
php72:
container_name: web_php
image: webmaketech/php74
build: ./php72
volumes:
- ./src:/var/www
- ./php72/php.ini:/usr/local/etc/php/php.ini
- ./php72/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf
php810:
container_name: web_php_810
image: webmaketech/php810
build: ./php810
volumes:
- ./src:/var/www
- ./php810/php.ini:/usr/local/etc/php/php.ini
- ./php810/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf
You can ignore platform requirements. run the below command.
composer udpate --ignore-platform-reqs
searched 2 days on internet, finally got solution
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer
after run this command, i can process now

Got error when trying to deploy using deployer

I am trying to run Deployer to deploy my project. But got problem with Composer.
Is it possible to any one to look this error code and give any idea what is wrong?
I am getting this error
➤ Executing task deploy:vendors
[whocallme.uk] > if hash unzip 2>/dev/null; then echo 'true'; fi
[whocallme.uk] < true
[whocallme.uk] > if hash composer 2>/dev/null; then echo 'true'; fi
[whocallme.uk] < true
[whocallme.uk] > command -v 'composer' || which 'composer' || type -p 'composer'
[whocallme.uk] < /usr/local/bin/composer
[whocallme.uk] > cd /var/www/whocallme.uk/html/releases/1 && /usr/local/bin/composer install --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --no-suggest
[whocallme.uk] < You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.
[whocallme.uk] < Installing dependencies from lock file
[whocallme.uk] < Verifying lock file contents can be installed on current platform.
[whocallme.uk] < Dependency resolution completed in 0.000 seconds
[whocallme.uk] < Package operations: 70 installs, 0 updates, 0 removals
[whocallme.uk] < Installs: voku/portable-ascii:1.5.6, symfony/polyfill-php80:v1.22.0, symfony/polyfill-mbstring:v1.22.0, symfony/polyfill-ctype:v1.22.0, phpoption/phpoption:1.7.5, graham-campbell/result-type:v1.0.1, vlucas/phpdotenv:v5.3.0, symfony/css-selector:v5.2.3, tijsverkoyen/css-to-inline-styles:2.2.3, symfony/var-dumper:v5.2.3, symfony/deprecation-contracts:v2.2.0, symfony/routing:v5.2.3, symfony/process:v5.2.3, symfony/polyfill-php72:v1.22.0, symfony/polyfill-intl-normalizer:v1.22.0, symfony/polyfill-intl-idn:v1.22.0, symfony/mime:v5.2.3, symfony/polyfill-php73:v1.22.0, symfony/http-foundation:v5.2.3, symfony/http-client-contracts:v2.3.1, psr/event-dispatcher:1.0.0, symfony/event-dispatcher-contracts:v2.2.0, symfony/event-dispatcher:v5.2.3, psr/log:1.1.3, symfony/error-handler:v5.2.3, symfony/http-kernel:v5.2.3, symfony/finder:v5.2.3, symfony/polyfill-intl-grapheme:v1.22.0, symfony/string:v5.2.3, psr/container:1.0.0, symfony/service-contracts:v2.2.0, symfony/console:v5.2.3, symfony/polyfill-iconv:v1.22.0, doctrine/lexer:1.2.1, egulias/email-validator:2.1.25, swiftmailer/swiftmailer:v6.2.5, ramsey/collection:1.1.3, brick/math:0.9.2, ramsey/uuid:4.1.1, psr/simple-cache:1.0.1, opis/closure:3.6.1, symfony/translation-contracts:v2.3.0, symfony/translation:v5.2.3, nesbot/carbon:2.44.0, monolog/monolog:2.2.0, league/mime-type-detection:1.7.0, league/flysystem:1.1.3, league/commonmark:1.5.7, webmozart/assert:1.9.1, dragonmantank/cron-expression:v3.1.0, doctrine/inflector:2.0.3, laravel/framework:v8.26.1, psr/http-message:1.0.1, psr/http-client:1.0.1, ralouphie/getallheaders:3.0.3, guzzlehttp/psr7:1.7.0, guzzlehttp/promises:1.4.0, guzzlehttp/guzzle:7.2.0, anhskohbo/no-captcha:3.3.0, fideloper/proxy:4.4.1, asm89/stack-cors:v2.0.2, fruitcake/laravel-cors:v2.0.3, nikic/php-parser:v4.10.4, dnoegel/php-xdg-base-dir:v0.1.1, psy/psysh:v0.10.6, laravel/tinker:v2.6.0, laravel/ui:v3.2.0, spatie/laravel-honeypot:3.0.1, erusev/parsedown:1.7.4, laravelista/comments:4.4.1
[whocallme.uk] < - Installing voku/portable-ascii (1.5.6): Extracting archive
................................................................
[whocallme.uk] < - Installing erusev/parsedown (1.7.4): Extracting archive
[whocallme.uk] < - Installing laravelista/comments (4.4.1): Extracting archive
[whocallme.uk] < Generating optimized autoload files
[whocallme.uk] < > post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump
[whocallme.uk] < > post-autoload-dump: #php artisan package:discover --ansi
[whocallme.uk] < In Compiler.php line 36:
[whocallme.uk] <
[whocallme.uk] < Please provide a valid cache path.
[whocallme.uk] < Script #php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
➤ Executing task deploy:failed
• done on [whocallme.uk]
✔ Ok [0ms]
➤ Executing task deploy:unlock
[whocallme.uk] > rm -f /var/www/whocallme.uk/html/.dep/deploy.lock
• done on [whocallme.uk]
✔ Ok [64ms]
In Client.php line 103:
[Deployer\Exception\RuntimeException (1)]
The command "cd /var/www/whocallme.uk/html/releases/1 && /usr/local/bin/composer install --verbose --prefer-dist --no-progress --no-interactio
n --no-dev --optimize-autoloader --no-suggest" failed.
Exit Code: 1 (General error)
Host Name: whocallme.uk
================
You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Dependency resolution completed in 0.000 seconds
Package operations: 70 installs, 0 updates, 0 removals
. . . . . . . . . . . . . .
- Installing laravelista/comments (4.4.1): Extracting archive
Generating optimized autoload files
> post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump
> post-autoload-dump: #php artisan package:discover --ansi
Script #php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Exception trace:
at phar:///usr/local/bin/dep/src/Ssh/Client.php:103
Deployer\Ssh\Client->run() at phar:///usr/local/bin/dep
.......
But I am not sure if it is problem with composer...
If there is any idea what can cause this error?
Thank you
The error message is:
Please provide a valid cache path
Create the following directories under storage/framework to resolve the issue.
sessions
views
cache
A similar cause is discussed in this question/answer.
I think some files or folders are missing. When I did FTP to server all OK. But when try git and deployer something is missing. And got this error when I try run composer update.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> #php artisan package:discover --ansi
InvalidArgumentException
Please provide a valid cache path.
at vendor/laravel/framework/src/Illuminate/View/Compilers/Compiler.php:36
32▕ */
33▕ public function __construct(Filesystem $files, $cachePath)
34▕ {
35▕ if (! $cachePath) {
➜ 36▕ throw new InvalidArgumentException('Please provide a valid cache path.');
37▕ }
38▕
39▕ $this->files = $files;
40▕ $this->cachePath = $cachePath;
+20 vendor frames
21 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
+5 vendor frames
27 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Script #php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

yum update reports errors on EC2 on package dependency

Performing yum update -y on EC2 reports errors below
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:18.06.1ce-10.amzn2 will be updated
---> Package docker.x86_64 0:18.09.9ce-2.amzn2 will be an update
--> Processing Dependency: runc = 1.0.0 for package: docker-18.09.9ce-2.amzn2.x86_64
--> Processing Dependency: containerd = 1.2.6 for package: docker-18.09.9ce-2.amzn2.x86_64
---> Package jenkins.noarch 0:2.208-1.1 will be updated
---> Package jenkins.noarch 0:2.209-1.1 will be an update
---> Package libcgroup.x86_64 0:0.41-15.amzn2 will be updated
---> Package libcgroup.x86_64 0:0.41-21.amzn2 will be an update
---> Package libseccomp.x86_64 0:2.3.1-3.amzn2.0.3 will be updated
---> Package libseccomp.x86_64 0:2.4.1-1.amzn2 will be an update
--> Running transaction check
---> Package containerd.io.x86_64 0:1.2.10-3.2.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.2.10-3.2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: containerd.io-1.2.10-3.2.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I could potentially perform workaround as suggested but I am inclined not to as I want always a clean update.
Some additional information:
yum repolist
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
repo id repo name status
!amzn2-core/2/x86_64 Amazon Linux 2 core repository 17,916
amzn2extra-ansible2/2/x86_64 Amazon Extras repo for ansible2 47
amzn2extra-docker/2/x86_64 Amazon Extras repo for docker 19
docker-ce-stable/x86_64 Docker CE Stable - x86_64 63
epel-apache-maven/x86_64 maven from apache foundation. 4
jenkins Jenkins 537
I did
yum clean all
But still no charm
Unable to find package container-selinux on EC2 as well
sudo yum whatprovides container-selinux
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core/2/x86_64/filelists_db | 31 MB 00:00:00
amzn2extra-ansible2/2/x86_64/filelists_db | 264 kB 00:00:00
amzn2extra-docker/2/x86_64/filelists_db | 10 kB 00:00:00
docker-ce-stable/x86_64/filelists_db | 18 kB 00:00:00
epel-apache-maven/x86_64/filelists_db | 4.6 kB 00:00:00
jenkins/filelists_db | 91 kB 00:00:00
No matches found
subscription-manager reports command not found..
subscription-manager repos --enable=rhel-7-server-extras-rpms
-bash: subscription-manager: command not found
Any idea any clues, or this should be raised as a Ticket with AWS?

Deploy with deployer fails on vendors

I try to deploy the Laravel application with deployer. The process fails.
Below you will see the responses
✔ Executing task deploy:shared
✔ Executing task deploy:writable
➤ Executing task deploy:vendors
✔ Executing task deploy:failed
In Client.php line 99:
The command "cd /gopanel/sites/xxx_net/public/xaio/releases/1 && /usr/bin/php /usr/local/bin/composer install --verbose --prefer-dist
--no-progress --no-interaction --no-dev --optimize-autoloader" failed.
Exit Code: 1 (General error)
Host Name: xx.xxxx.net
================
Loading composer repositories with package information
Installing dependencies from lock file
Dependency resolution completed in 0.000 seconds
Analyzed 166 packages to resolve dependencies
Analyzed 463 rules to resolve dependencies
Package operations: 103 installs, 0 updates, 0 removals
Installs: symfony/polyfill-ctype:v1.11.0, phpoption/phpoption:1.5.0, vlucas/phpdotenv:v3.3.3, symfony/css-selector:v4.2.4,
y/psysh:v0.9.9, laravel/tinker:v1.0.8, intervention/image:2.4.2, league/glide:1.5.0, owen-it/laravel-auditing:v9.0.0, predis/predis:v1.1.1,
What is wrong?
Output is not enough to understand. You must run your command in verbose mode by adding -vvv to end of command.
Like this:
user#local:~$ dep deploy host -vvv

Installing Yii2 with composer [ErrorException] Undefined index

1) Installed Composer on my Qnap NAS through Putty with the following command:
curl -sS -k https://getcomposer.org/installer | /mnt/ext/opt/apache/bin/php -d detect_unicode=Off
2) Updated composer:
/mnt/ext/opt/apache/bin/php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4"
3) Installed Yii2:
/mnt/ext/opt/apache/bin/php composer.phar create-project yiisoft/yii2-app-advanced advanced 2.0.3
The advanced folder has been created but without the vendor folder. Composer gives the following error:
Loading composer repositories with package information
Updating dependencies (including require-dev)
[ErrorException] Undefined index: owner
Update
Error with -vvv
Exception trace:
() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Repository/Vcs/GitHubDriver.php:409
Composer\Util\ErrorHandler::handle() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Repository/Vcs/GitHubDriver.php:409
Composer\Repository\Vcs\GitHubDriver->fetchRootIdentifier() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Repository/Vcs/GitHubDriver.php:61
Composer\Repository\Vcs\GitHubDriver->initialize() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Repository/VcsRepository.php:86
Composer\Repository\VcsRepository->getDriver() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetVcsRepository.php:118
Fxp\Composer\AssetPlugin\Repository\AbstractAssetVcsRepository->initDriver() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:38
Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initialize() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Repository/ArrayRepository.php:170
Composer\Repository\ArrayRepository->getPackages() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/DependencyResolver/Pool.php:104
Composer\DependencyResolver\Pool->addRepository() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/Util.php:58
Fxp\Composer\AssetPlugin\Repository\Util::addRepositoryInstance() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/Util.php:39
Fxp\Composer\AssetPlugin\Repository\Util::addRepository() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php:139
Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository->whatProvides() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/DependencyResolver/Pool.php:191
Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/DependencyResolver/Pool.php:180
Composer\DependencyResolver\Pool->whatProvides() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php:161
Composer\DependencyResolver\RuleSetGenerator->whitelistFromPackage() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php:273
Composer\DependencyResolver\RuleSetGenerator->whitelistFromJobs() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php:324
Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/DependencyResolver/Solver.php:172
Composer\DependencyResolver\Solver->solve() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Installer.php:505
Composer\Installer->doInstall() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Installer.php:230
Composer\Installer->run() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Command/UpdateCommand.php:140
Composer\Command\UpdateCommand->execute() at phar:///share/MD0_DATA/Web/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
Symfony\Component\Console\Command\Command->run() at phar:///share/MD0_DATA/Web/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at phar:///share/MD0_DATA/Web/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Console/Application.php:146
Composer\Console\Application->doRun() at phar:///share/MD0_DATA/Web/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at phar:///share/MD0_DATA/Web/composer.phar/src/Composer/Console/Application.php:83
Composer\Console\Application->run() at phar:///share/MD0_DATA/Web/composer.phar/bin/composer:43
require() at /share/MD0_DATA/Web/composer.phar:25

Resources