Closed kroshp closed 9 years ago
Which command did you run exactly?
Can you paste full trace of it?
Sorry for the late reply: php composer.phar install --prefer-dist -vvv
Can you paste full trace of it?
I ve just make a composer update and i don't have the problem anymore. May be the problem came from the sonata version. Here is the trace of the composer update: Updating dependencies (including require-dev)
Ok. Closing this one as un-reproducable for the moment.
Feel free to reopen it if you get again this error.
Ok thanks.
I ve got again the error while running
php composer.phar install --prefer-dist -vvv
But no errors while running :
php composer.phar install --prefer-source -vvv
Here are the trace:
....
- Installing sonata-project/admin-bundle (2.3.3)
Downloading https://api.github.com/repos/sonata-project/SonataAdminBundle/zipball/03db550ece14b3bf1dddf700f7e0570aaef9c6fe
Downloading: 100%
Writing C:/Users/kroshp/AppData/Local/Composer/files/sonata-project/admin-bundle/03db550ece14b3bf1dddf700f7e0570aaef9c6fe.zip into cache
Extracting archive
- Installing sonata-project/admin-bundle (2.3.3)
Downloading https://api.github.com/repos/sonata-project/SonataAdminBundle/zipball/03db550ece14b3bf1dddf700f7e0570aaef9c6fe
Downloading: 100%
Writing C:/Users/kroshp/AppData/Local/Composer/files/sonata-project/admin-bundle/03db550ece14b3bf1dddf700f7e0570aaef9c6fe.zip into cache
Extracting archive
[ErrorException]
ZipArchive::extractTo(D:\Documents\Projets\sources\Symfony/vendor/composer/f702efc3/sonata-project-SonataAdminBundle-03db550\Resources\public\vendor\x-editable\dist\jquery-editable\jquery-ui-datepicker\css\redmond\images/ui-bg_flat_0_aaaaaa_40x100.png): failed to open stream: Invalid argument
Exception trace:
() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Downloader/ZipDownloader.php:79
Composer\Util\ErrorHandler::handle() at n/a:n/a
ZipArchive->extractTo() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Downloader/ZipDownloader.php:79
Composer\Downloader\ZipDownloader->extract() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Downloader/ArchiveDownloader.php:44
Composer\Downloader\ArchiveDownloader->download() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Downloader/DownloadManager.php:201
Composer\Downloader\DownloadManager->download() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Installer/LibraryInstaller.php:156
Composer\Installer\LibraryInstaller->installCode() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Installer/LibraryInstaller.php:87
Composer\Installer\LibraryInstaller->install() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Installer/InstallationManager.php:152
Composer\Installer\InstallationManager->install() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Installer/InstallationManager.php:139
Composer\Installer\InstallationManager->execute() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Installer.php:580
Composer\Installer->doInstall() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Installer.php:230
Composer\Installer->run() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Command/InstallCommand.php:131
Composer\Command\InstallCommand->execute() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
Symfony\Component\Console\Command\Command->run() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Console/Application.php:146
Composer\Console\Application->doRun() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/src/Composer/Console/Application.php:82
Composer\Console\Application->run() at phar://D:/Documents/Projets/sources/Symfony/composer.phar/bin/composer:43
require() at D:\MesDocuments\MesProjets\cocorico-come-and-drive\sources\Symfony\composer.phar:25
Not sure if it's a composer or a sonata issue but your path is weird. You have both /
and \
on it.
cc @rande: Did you already see this kind of error?
@Soullivaneuh no... XD
I have same problem. I tried different versions (^3.9
^3.8
3.x-dev
) different keys (--prefer-source
--prefer-dist
--prefer-stable
) and all their combinations. Tried to install it in new project. Nothing helps. Does not matter install
or require
. I get same result any time.
Composer cannot to open file vendor/composer/841ba6bd/sonata-project-SonataAdminBundle-7008fa8\Resources\public\vendor\x-editable\dist\jquery-editable\jquery-ui-datepicker\css\redmond\images/ui-bg_flat_0_aaaaaa_40x100.png
I cannot use bundle because some image not found. It is image only and it is sad.
Is it possible to ignore missed images during installation?
P.S. My environment
P.P.S.
Error log:
composer require sonata-project/admin-bundle --prefer-source -vvv
Now trying to download from dist
- Installing sonata-project/admin-bundle (3.x-dev 7008fa8)
Downloading https://api.github.com/repos/sonata-project/SonataAdminBundle/zipball/7008fa8ad3e3eb7ef09cb59d24facd025e43c619
Downloading: Connecting...Following redirect (2) https://codeload.github.com/sonata-project/SonataAdminBundle/legacy.zip/7008fa8ad3e3eb7ef09cb59d24facd025e43c619
Downloading https://codeload.github.com/sonata-project/SonataAdminBundle/legacy.zip/7008fa8ad3e3eb7ef09cb59d24facd025e43c619
Downloading: 100%
Writing C:/Users/mbaran/AppData/Local/Composer/files/sonata-project/admin-bundle/63c9eb0a8a08ee4ded3722c785dc48209b6f4040.zip into cache from C:\openserver\OpenServer\domains\intellias.ua.dev28\trunk\intellias\vendor/sonata-project/admin-bundle/de64d893dc70652e10695c9cf00da8bf
Extracting archive
Installation failed, reverting ./composer.json to its original content.
[ErrorException]
ZipArchive::extractTo(C:\intellias28/vendor/composer/841ba6bd/sonata-project-SonataAdminBundle-7008fa8\Resources\public\vendor\x-editable\dist\jquery-editable\jquery-ui-datepicker\css\redmond\images/ui-bg_flat_0_aaaaaa_40x100.png): failed to open stream: No such file or directory
Exception trace:
() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Downloader/ZipDownloader.php:99
Composer\Util\ErrorHandler::handle() at n/a:n/a
ZipArchive->extractTo() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Downloader/ZipDownloader.php:99
Composer\Downloader\ZipDownloader->extract() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Downloader/ArchiveDownloader.php:43
Composer\Downloader\ArchiveDownloader->download() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Downloader/ZipDownloader.php:65
Composer\Downloader\ZipDownloader->download() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Downloader/DownloadManager.php:213
Composer\Downloader\DownloadManager->download() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Installer/LibraryInstaller.php:186
Composer\Installer\LibraryInstaller->installCode() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Installer/LibraryInstaller.php:90
Composer\Installer\LibraryInstaller->install() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Installer/InstallationManager.php:173
Composer\Installer\InstallationManager->install() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Installer/InstallationManager.php:160
Composer\Installer\InstallationManager->execute() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Installer.php:542
Composer\Installer->doInstall() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Installer.php:216
Composer\Installer->run() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Command/RequireCommand.php:177
Composer\Command\RequireCommand->execute() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/vendor/symfony/console/Command/Command.php:259
Symfony\Component\Console\Command\Command->run() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/vendor/symfony/console/Application.php:847
Symfony\Component\Console\Application->doRunCommand() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/vendor/symfony/console/Application.php:192
Symfony\Component\Console\Application->doRun() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Console/Application.php:227
Composer\Console\Application->doRun() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/vendor/symfony/console/Application.php:123
Symfony\Component\Console\Application->run() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/src/Composer/Console/Application.php:100
Composer\Console\Application->run() at phar://C:/openserver/OpenServer/modules/php/PHP-5.5.6/composer.phar/bin/composer:52
require() at C:\openserver\OpenServer\modules\php\PHP-5.5.6\composer.phar:25
I think I have already seen this bug, it has to do with the length of the path,which is too long on Windows, sadly. Have a look at the composer issues.
I think you could work around it by forcing composer to use the source instead of the dist
@greg0ire Do you mean "ZipArchive::extractTo() Full extraction path exceed MAXPATHLEN (260)"? It was my previos problem. I fixed it using mklink /j in cmd. But this error seems something else.
php -a
Interactive mode enabled
php > var_dump(strlen('C:\intellias28/vendor/composer/841ba6bd/sonata-project-SonataAdminBundle-7008fa8\Resources\public\vendor\x-editable\dist\jquery-editable\jquery-ui-datepicker\css\redmond\images/ui-bg_flat_0_aaaaaa_40x100.png'));
int(207)
You're right it's "only" 207 chars. But I think this really is an issue you should report to Composer (or even to whoever wrote ZipArchive).
ok. Thanks.
Im having the exact same problem on windows
`PS C:\work\aeg-live--bowery-ecosystem-rfp\source\backend> composer install --prefer-source Warning: This development build of composer is over 60 days old. It is recommended to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-update" to get the latest version. Loading composer repositories with package information Installing dependencies (including require-dev) from lock file
HEAD is now at 10c27f6... 3.20.1 error: unable to create file Resources/public/vendor/x-editable/dist/jquery-editable/jquery-ui-datepicker/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png (No such file or directory) error: unable to create file Resources/public/vendor/x-editable/dist/jquery-editable/jquery-ui-datepicker/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png (No such file or directory) error: unable to create file Resources/public/vendor/x-editable/dist/jquery-editable/jquery-ui-datepicker/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png (No such file or directory) fatal: Could not reset index file to revision '10c27f6ee911c452ee67059bfdc1a1fca8953904'.
Now trying to download from dist
Installing sonata-project/admin-bundle (3.20.1) Downloading: 100%
[ErrorException] ZipArchive::extractTo(C:\work\aeg-live--bowery-ecosystem-rfp\source\backend/vendor/composer/c2c7374a/sonata-project-SonataAdminBundle-10c27f6\Resources\public\vendor\jqueryui\ themes\base\minified\images/ui-bg_highlight-soft_75_cccccc_1x100.png): failed to open stream: No such file or directory`
That not the same issue at all. Upgrade composer and try again.
It is the same ZipArchive error:
`PS C:\work\aeg-live--bowery-ecosystem-rfp\source\backend> composer self-update Updating to version 1.5.2. Downloading: 100% Use composer self-update --rollback to return to version 40c14709f79f9d7ea35ac969cfbd7f41beb525bb PS C:\work\aeg-live--bowery-ecosystem-rfp\source\backend> composer install --prefer-source Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Package operations: 66 installs, 0 updates, 0 removals
HEAD is now at 10c27f6... 3.20.1 error: unable to create file Resources/public/vendor/x-editable/dist/jquery-editable/jquery-ui-datepicker/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png (No such file or directory) error: unable to create file Resources/public/vendor/x-editable/dist/jquery-editable/jquery-ui-datepicker/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png (No such file or directory) error: unable to create file Resources/public/vendor/x-editable/dist/jquery-editable/jquery-ui-datepicker/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png (No such file or directory) fatal: Could not reset index file to revision '10c27f6ee911c452ee67059bfdc1a1fca8953904'.
Now trying to download from dist
This is different:
history was rewritten?
And this is different
The archive may contain identical file names with different capitalization
So now, not the same error message. It's the same function call, but it fails for a different reason => different bug.
Also, please try the latest Sonata version.
An error occurred when installing from composer on windows: Symfony/vendor/composer/c1a059ef/sonata-project-SonataAdminBundle-3fbeb00\Resources\public\vendor\x-editable\dist\jquery-editable\jquery-ui-datepicker\css\redmond\images/ui-bg_gloss-wave_55_5c9ccc_500x100.png): failed to open stream: Invalid argument