Skip to content

How to install a specific version of phpredis? #395

@potsky

Description

@potsky

Hi !

Since the upgrade from 5.3.7 to 6.0.2 of phpredis on December the 20th, we have a lot of problems of this kind : Redis::exec(): Send of 463 bytes failed with errno=32 Broken pipe or Redis server tcp://xxx.redis.dbs.scalingo.com:xx went away.

We have checked with the Scalingo support team the Redis and app logs, we have check our code, the dependencies upgrades... With 5.x everything were working find for years. So we would like to test a previous version of the extension.

So we have forked the PHP buildpack and have replaced the GitHub repository in our app in the .buildpacks file. Given than the commit where phpredis has been upgraded from 5.3.7 to 6.0.2 is a little bit more complicated (the variable phpredis_version did not exist before), we have tested to load the version 6.0.1 in our fork :

1 fork a

We have added debug information to check our fork is taken into account. It is correctly loaded when deploying :

1 fork b

Before deploying, we have clear the deploy cache on the dashboard. During deployment, everything is ok, version 6.0.1 is downloaded and used:

2 deploy

But when the deployment is done, phpinfo always tells us that PHP is using version 6.0.2 :-(

3 phpinfo

  1. Is our buildpack really used?
  2. Have we missed something?
  3. Do we must keep the Scalingo buildpack ? If so, we can send a PR to let user configure the wanted version from an ENV variable for example. What do you think about this?

Thank you for your answer!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions