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

SVNDownloader and --enable-sigchild #2954

Closed
ftdysa opened this issue May 1, 2014 · 3 comments
Closed

SVNDownloader and --enable-sigchild #2954

ftdysa opened this issue May 1, 2014 · 3 comments
Labels

Comments

@ftdysa
Copy link

ftdysa commented May 1, 2014

Hello,

You recommend that --enable-sigchild can lead to issues with processes not returning the correct exit flags. I've run into the opposite. Compiling php without this option is causing SvnDownloader to think that the svn checkout is returning a 1, when it is really returning a zero. I've run the command from the command line and $? is always zero, but running composer fails every time.

Configure command without --enable-sigchild.

Configure Command =>  './configure'  '--prefix=/web/local/php5.5.11' '--with-pdo-mysql=mysqlnd' '--with-zlib-dir' '--with-freetype-dir' '--enable-mbstring' '--with-libxml-dir=/usr' '--enable-soap' '--enable-calendar' '--with-curl' '--with-mcrypt' '--with-zlib' '--with-gd' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-pcntl' '--enable-mbregex' '--enable-exif' '--enable-bcmath' '--with-mhash' '--enable-zip' '--with-pcre-regex' '--with-mysql' '--with-pdo-mysql' '--with-mysqli' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--with-openssl' '--with-fpm-user=www-data' '--with-fpm-group=www-data' '--with-libdir=/lib/x86_64-linux-gnu' '--enable-ftp' '--with-gettext' '--with-xmlrpc' '--with-xsl' '--enable-opcache' '--enable-fpm' '--with-snmp' '--with-t1lib'

Composer error. Note that this is seen from a cap deploy command. I did try running the exact same composer install generated by cap deploy to rule out that it was a capifony/capistrano issue.

 ** [out :: server.hostname.com] Reading ./composer.json
 ** [out :: server.hostname.com] Executing command (CWD): git describe --exact-match --tags
 ** [out :: server.hostname.com] Executing command (CWD): git branch --no-color --no-abbrev -v
 ** [out :: server.hostname.com] Executing command (CWD): hg branch
 ** [out :: server.hostname.com] Executing command (CWD): svn info --xml
 ** [out :: server.hostname.com] Reading ./composer.lock
 ** [out :: server.hostname.com] Loading composer repositories with package information
 ** [out :: server.hostname.com] Installing dependencies from lock file
 ** [out :: server.hostname.com] Reading ./composer.lock
 ** [out :: server.hostname.com] - Installing company/entities (dev-trunk)
 ** [out :: server.hostname.com] Checking out /trunk/@11408

...

 ** [out :: server.hostname.com] U   /web/sites/api.company.com/shared/vendor/company/entities
 ** [out :: server.hostname.com] Checked out revision 11408.
*** [err :: server.hostname.com] [RuntimeException]
*** [err :: server.hostname.com] Package could not be downloaded, A    /web/sites/api.company.com/shared/vendor/company/entities/composer.json
*** [err :: server.hostname.com] A    /web/sites/api.company.com/shared/vendor/company/entities/src
*** [err :: server.hostname.com] A    /web/sites/api.company.com/shared/vendor/company/entities/src/Entity
*** [err :: server.hostname.com] A    /web/sites/api.company.com/shared/vendor/company/entities/src/Entity/Postfix
*** [err :: server.hostname.com] A    /web/sites/api.company.com/shared/vendor/company/entities/src/Entity/Postfix/Domain.php
*** [err :: server.hostname.com] A    /web/sites/api.company.com/shared/vendor/company/entities/src/Entity/Postfix/Alias.php
*** [err :: server.hostname.com] A    /web/sites/api.company.com/shared/vendor/company/entities/src/Entity/Postfix/Repository
...


*** [err :: server.hostname.com] Checked out revision 11408.
*** [err :: server.hostname.com] Exception trace:
*** [err :: server.hostname.com] () at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Downloader/SvnDownloader.php:93
*** [err :: server.hostname.com] Composer\Downloader\SvnDownloader->execute() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Downloader/SvnDownloader.php:34
*** [err :: server.hostname.com] Composer\Downloader\SvnDownloader->doDownload() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Downloader/VcsDownloader.php:59
*** [err :: server.hostname.com] Composer\Downloader\VcsDownloader->download() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Downloader/DownloadManager.php:201
*** [err :: server.hostname.com] Composer\Downloader\DownloadManager->download() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Installer/LibraryInstaller.php:155
*** [err :: server.hostname.com] Composer\Installer\LibraryInstaller->installCode() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Installer/LibraryInstaller.php:86
*** [err :: server.hostname.com] Composer\Installer\LibraryInstaller->install() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Installer/InstallationManager.php:153
*** [err :: server.hostname.com] Composer\Installer\InstallationManager->install() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Installer/InstallationManager.php:140
*** [err :: server.hostname.com] Composer\Installer\InstallationManager->execute() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Installer.php:529
*** [err :: server.hostname.com] Composer\Installer->doInstall() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Installer.php:215
*** [err :: server.hostname.com] Composer\Installer->run() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Command/InstallCommand.php:122
*** [err :: server.hostname.com] Composer\Command\InstallCommand->execute() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241
*** [err :: server.hostname.com] Symfony\Component\Console\Command\Command->run() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:892
*** [err :: server.hostname.com] Symfony\Component\Console\Application->doRunCommand() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
*** [err :: server.hostname.com] Symfony\Component\Console\Application->doRun() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Console/Application.php:117
*** [err :: server.hostname.com] Composer\Console\Application->doRun() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
*** [err :: server.hostname.com] Symfony\Component\Console\Application->run() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/src/Composer/Console/Application.php:83
*** [err :: server.hostname.com] Composer\Console\Application->run() at phar:///web/sites/api.company.com/releases/20140501101623/composer.phar/bin/composer:43
*** [err :: server.hostname.com] require() at /web/sites/api.company.com/releases/20140501101623/composer.phar:15
*** [err :: server.hostname.com] install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

Configure command with --enable-sigchild

[06:33:14] root@server:/web/local/src/php-5.5.11 # php -r "phpinfo();"|grep configure
Configure Command =>  './configure'  '--prefix=/web/local/php5.5.11' '--with-pdo-mysql=mysqlnd' '--with-zlib-dir' '--with-freetype-dir' '--enable-mbstring' '--with-libxml-dir=/usr' '--enable-soap' '--enable-calendar' '--with-curl' '--with-mcrypt' '--with-zlib' '--with-gd' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-pcntl' '--enable-mbregex' '--enable-exif' '--enable-bcmath' '--with-mhash' '--enable-zip' '--with-pcre-regex' '--with-mysql' '--with-pdo-mysql' '--with-mysqli' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--with-openssl' '--with-fpm-user=www-data' '--with-fpm-group=www-data' '--with-libdir=/lib/x86_64-linux-gnu' '--enable-ftp' '--with-gettext' '--with-xmlrpc' '--with-xsl' '--enable-opcache' '--enable-fpm' '--with-snmp' '--with-t1lib' '--enable-sigchild'

Same exact command used to generate the error above now executes correctly.

@Seldaek
Copy link
Member

Seldaek commented May 1, 2014

Which OS/distro are you on? sigchild was a fix for OCI8/Oracle DBs and it's the first time I see someone say it fixes anything. Usually it just causes problems.

@ftdysa
Copy link
Author

ftdysa commented May 1, 2014

Latest debian stable (wheezy)

[11:45:06] root@server:/web/sites/api.company.com # cat /etc/debian_version
7.5

uname -a
Linux server 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux

@Seldaek
Copy link
Member

Seldaek commented May 1, 2014

hm ok, very weird because debian isn't such an exotic system. I don't know what is causing this behavior, but possibly another compile flag or some library that you have.

@Seldaek Seldaek added the Support label May 1, 2014
@Seldaek Seldaek closed this as completed Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants