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
Fails to install dependencies randomly. #876
Comments
I think we had someone report this on irc the other day. It just seems that in some environments the process returns a non-zero exit code, even though it ran through fine. I'm not sure how to proceed, ignoring exit codes isn't really a great idea, but it seems to be a bug in php's proc_open handling, or hopefully it lies in the Process component we use and then it'd be maybe fixable. Anyway until I can get my hands on a box that does that, I don't really know how to best debug and fix this. |
For what it's worth, here's the differing line for anyone interested |
If anyone experiencing this could give as much details as they can about their environment (OS, php version, configure params) it would maybe help. |
Here are the details of our jenkins server: [PHP Modules] [Zend Modules] PHP: OS: cURL: Anything else? |
Which OS is it? and can you paste a |
Configure Command => './configure' '--host=x86_64-linux' '--prefix=/opt/easw/tools/php-5.4.3' '--with-apxs2=/opt/easw/tools/apache2/bin/apxs' '--with-openssl' '--with-sqlite3' '--with-zlib' '--with-curl' '--enable-mbstring' '--with-xsl' '--with-pear' '--with-zlib-dir' '--with-xmlrpc' '--with-gd' '--enable-gd-native-ttf' '--with-pdo-oci=instantclient,/home/build/rpmbuild/BUILD/easw_php54/instantclient_11_1,11.1' '--with-png-dir' '--with-jpeg-dir' '--with-pic' '--disable-debug' '--disable-ipv6' '--with-bz2' '--with-gettext' '--with-gmp' '--with-iconv' '--with-mcrypt' '--enable-bcmath' '--enable-sockets' '--enable-zip' '--with-ldap=shared' '--with-snmp=shared' |
uname is just the kernel, but could be rhel5/centos5/scientific/etc :) |
oh sorry, it's rhel5 |
I'm having the same problem on centos5 installing symfony-standard 2.1. composer alpha 3 works fine instead. Updating dependencies
Here's host data: Configure Command => './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--enable-force-cgi-redirect' '--libdir=/usr/lib64/php' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-oci8=shared,instantclient,/usr/lib64/oracle/11.2/client64/lib,11.2' '--with-pdo-oci=shared,instantclient,/usr,11.2' '--with-interbase=shared,/usr/lib64/firebird' '--with-pdo-firebird=shared,/usr/lib64/firebird' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-pdo-dblib=shared,/usr' '--without-sqlite3' '--with-sqlite=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/usr' '--with-tidy=shared,/usr' '--with-mssql=shared,/usr' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr' Linux 2.6.18-308.8.2.el5 #1 SMP Tue Jun 12 09:58:12 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux I'm using php-5.3.14-1.el5.remi.rpm In my case it never works installing certain packages like doctrine/doctrine-bundle (dev-master) |
The referenced issue in symfony was closed. Fabien says it's an issue with Composer. Should this be reopened? |
@robzienert This issue is open. |
Oh, I'm sorry. I was thrown off by the closed reference issue above my comment. :( |
Process runs fine as expected, but the return value is
|
So would anyone have a clue what we can do to work around this? Does it fail on all CentOS5/RHEL5? All CentOS/RHEL? |
Don't have much info right now, but failed for me quite a bit on RHEL5 running Jenkins. I have to run composer install several times in order to get all of my dependencies. |
I had a chance to try centos6. It works there. With Centos5 installations always fail for me with a Alpha 3 works fine. Doesn't it check return values? |
I am having this same issue with CentOS 5.8. |
So it seems it's something in CentOS/RHEL 5.. most likely some patch they applied to their php version that blew things up. A few things:
@iJanki yes, alpha3 works fine because it did not do the same stuff, and the current behavior needs to know if the command failed to proceed. |
$ php -i | grep configure $ php -v |
I gave the rhelcomposer.phar a try. I used it to attempt to install the latest beta release of Symphony 2.1.x:
|
BTW is there an easy way to roll back composer as iJanki said Alpha 3 works fine? thx |
@cs278 thank you! |
@Seldaek you can detect os version reading /etc/redhat-release file. cat /etc/redhat-release I don't have rhel5 though to see how it would appear. |
Seems to be a problem in Symfony, see the above PR. |
Commits ------- 310c458 [Process] Fixed a problem on RHEL5 where the exit code was incorrect Discussion ---------- [Process] Fixed a problem on RHEL5 where the exit code was incorrect Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes License of the code: MIT RHEL5 will intermittently result in an exit code of -1 due to `proc_get_status()` being called after the process has completed but outside of `updateStatus()` which saves the exit code. See composer/composer#876
The PR on Symfony has been merged now. Can you all confirm that it fixes the issue? |
I upgraded the deps of composer, so if you update to the latest phar it should include the patch from @cs278 |
Hi yes this appears to work. Nice work all. |
Ok looks like it is fixed so I will close the issue for now. If it pops up again with a recent composer version please do tell. |
RHEL5 will intermittently result in an exit code of -1 [1] due to proc_get_status() being called after the process has completed but outside of updateStatus() which saves the exit code. [1]: composer/composer#876
We have Jenkins running on RedHat 5 after on of the updates the installation of dependencies on that box specifically started to fail randomly with the following error:
It happens of different bundles in different cases and sometimes it works properly.
We reverted to version '1.0.0-alpha3' and it works perfectly fine.
The text was updated successfully, but these errors were encountered: