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

[RuntimeException] Package could not be downloaded for smarty #2352

Closed
gtbear opened this issue Oct 20, 2013 · 2 comments
Closed

[RuntimeException] Package could not be downloaded for smarty #2352

gtbear opened this issue Oct 20, 2013 · 2 comments

Comments

@gtbear
Copy link

gtbear commented Oct 20, 2013

Hello. I'm having some problems with smarty installation via composer. I found this problem only on one of my hosts.

PHP: 5.4.20
subversion-1.7.13

Even after failed installation i can see files in vendor/smarty.

composer.json

{
    "require": {
        "smarty/smarty": "v3.1.15"
    }
}
DEV # php /usr/bin/composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing smarty/smarty (v3.1.15)
    Checking out /tags/v3.1.15/@4782



  [RuntimeException]
  Package could not be downloaded, A    vendor/smarty/smarty/composer.json
  A    vendor/smarty/smarty/distribution
  A    vendor/smarty/smarty/distribution/change_log.txt

-- BIG LIST OF SMARTY FILES HERE --

  A    vendor/smarty/smarty/documentation/entities/ISO/ISOamsr
  A    vendor/smarty/smarty/documentation/entities/ISO/ISOlat2




Exception trace:
 () at phar:///usr/bin/composer.phar/src/Composer/Downloader/SvnDownloader.php:84
 Composer\Downloader\SvnDownloader->execute() at phar:///usr/bin/composer.phar/src/Composer/Downloader/SvnDownloader.php:33
 Composer\Downloader\SvnDownloader->doDownload() at phar:///usr/bin/composer.phar/src/Composer/Downloader/VcsDownloader.php:59
 Composer\Downloader\VcsDownloader->download() at phar:///usr/bin/composer.phar/src/Composer/Downloader/DownloadManager.php:180
 Composer\Downloader\DownloadManager->download() at phar:///usr/bin/composer.phar/src/Composer/Installer/LibraryInstaller.php:155
 Composer\Installer\LibraryInstaller->installCode() at phar:///usr/bin/composer.phar/src/Composer/Installer/LibraryInstaller.php:86
 Composer\Installer\LibraryInstaller->install() at phar:///usr/bin/composer.phar/src/Composer/Installer/InstallationManager.php:153
 Composer\Installer\InstallationManager->install() at phar:///usr/bin/composer.phar/src/Composer/Installer/InstallationManager.php:140
 Composer\Installer\InstallationManager->execute() at phar:///usr/bin/composer.phar/src/Composer/Installer.php:511
 Composer\Installer->doInstall() at phar:///usr/bin/composer.phar/src/Composer/Installer.php:212
 Composer\Installer->run() at phar:///usr/bin/composer.phar/src/Composer/Command/InstallCommand.php:110
 Composer\Command\InstallCommand->execute() at phar:///usr/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:244
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:897
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer.phar/src/Composer/Console/Application.php:117
 Composer\Console\Application->doRun() at phar:///usr/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer.phar/src/Composer/Console/Application.php:83
 Composer\Console\Application->run() at phar:///usr/bin/composer.phar/bin/composer:43
 require() at /usr/bin/composer.phar:15


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--ver
bose] [-o|--optimize-autoloader]
@Seldaek
Copy link
Member

Seldaek commented Oct 21, 2013

It could be that your svn process returns 1 instead of 0 for some obscure reason. Could you run with -vvv so you get full output including executed commands? Then you could try to run the svn checkout command yourself and after it's done do echo $? to see which return code it had. If it's non-zero that's the problem.

Also you could try to run composer diagnose to check for php configuration issues.

@gtbear
Copy link
Author

gtbear commented Dec 3, 2013

I found the reason. Filesystem was mounted via vboxsf and svn checkout fails each time. After i moved all data to local disk it was fixed.

@gtbear gtbear closed this as completed Dec 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants