Skip to content

Timeout during extension install #424

@Radiergummi

Description

@Radiergummi

I'm using pie to install several extensions in our (public) PHP base images. This works on my local machine, but seems to fail in GitHub Actions…

…when installing phpredis/phpredis:

278.2 Install complete: /usr/local/lib/php/extensions/no-debug-non-zts-20240924/redis.so
285.4 
285.4 In Process.php line 1156:
285.4                                                                                
285.4   The process "'/usr/local/bin/docker-php-ext-enable' 'redis'" exceeded the t  
285.4   imeout of 5 seconds.                                                         
285.4                                                                                
285.4 
285.4 install [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--skip-enable-extension] [--force] [-d|--working-dir WORKING-DIR] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--with-phpize-path WITH-PHPIZE-PATH] [--disable-redis-json] [--disable-redis-session] [--enable-redis] [--enable-redis-igbinary] [--enable-redis-lz4] [--enable-redis-lzf] [--enable-redis-msgpack] [--enable-redis-zstd] [--with-liblz4 WITH-LIBLZ4] [--with-liblzf WITH-LIBLZF] [--with-libzstd WITH-LIBZSTD] [--] [<requested-package-and-version>]

See here for the full build log

…when installing Swoole:

#26 2656.3 + pie install -j4 swoole/swoole --enable-swoole-sqlite --enable-swoole-pgsql --enable-swoole-curl --enable-sockets --enable-openssl --enable-iouring --enable-brotli
#26 2657.3 🥧 PHP Installer for Extensions (PIE) 1.2.1, from The PHP Foundation
#26 2660.0 You are running PHP 8.4.15
#26 2660.4 Target PHP installation: 8.4.15 nts, on Linux/OSX/etc x86_64 (from /usr/local/bin/php)
#26 2666.1 Found package: swoole/swoole:v6.1.2 which provides ext-swoole
#26 2678.2 Extracted swoole/swoole:v6.1.2 source to: /root/.config/pie/php8.4_9307545343b66a8775eb653e0afcb1da/vendor/swoole/swoole
#26 2694.3 phpize complete.
#26 2814.9 
#26 2815.0 In Process.php line 1156:
#26 2815.0                                                                                
#26 2815.0   The process "'./configure' '--enable-brotli' '--enable-iouring' '--enable-o  
#26 2815.0   penssl' '--enable-sockets' '--enable-swoole-curl' '--enable-swoole-pgsql' '  
#26 2815.0   --enable-swoole-sqlite' '--with-php-config=/usr/local/bin/php-config'" exce  
#26 2815.0   eded the timeout of 120 seconds.                                             
#26 2815.0                                                                                
#26 2815.0 
#26 2815.0 install [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--skip-enable-extension] [--force] [-d|--working-dir WORKING-DIR] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--with-phpize-path WITH-PHPIZE-PATH] [--enable-brotli] [--enable-cares] [--enable-iouring] [--enable-mysqlnd] [--enable-openssl] [--enable-sockets] [--enable-swoole-curl] [--enable-swoole-pgsql] [--enable-swoole-sqlite] [--enable-swoole-thread] [--enable-zstd] [--with-brotli-dir WITH-BROTLI-DIR] [--with-openssl-dir WITH-OPENSSL-DIR] [--with-swoole-odbc WITH-SWOOLE-ODBC] [--with-swoole-oracle WITH-SWOOLE-ORACLE] [--] [<requested-package-and-version>]

See here for the full build log

I'm not sure why seemingly arbitrary timeout values would be desirable here? Our images are built for x86 and ARM64; the ARM builds are a lot slower thanks to QEMU emulation, so I suspect that might be the reason here. I don't see why the build hardware should be a limiting factor when installing PHP extensions, though.

This looks similar to #72, by the way.

Metadata

Metadata

Assignees

Labels

maintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions