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

recompose throws an error while updating composer , exceeded the timeout of 60 seconds. #154

Closed
1 task done
utmsandeep opened this issue Feb 1, 2019 · 4 comments
Closed
1 task done

Comments

@utmsandeep
Copy link

utmsandeep commented Feb 1, 2019

C:\wamp64\www>php upgrade-code.phar recompose --write

Upgrading PHP constraint

Done.

Rebuilding dependencies

! [NOTE] Trying to re-require all packages

  • Requiring php:">=5.6" ......... ✔
  • Requiring silverstripe/recipe-core:"4.3.0" ....................................................................................... ✔
  • Requiring silverstripe/recipe-cms:"*" .................................................................................................................................... ✔
  • Requiring silverstripe/reports:"*" ............................................................................................................................................... ✔
  • Requiring silverstripe/siteconfig:"*" ............................................................................................................................. ✔
  • Requiring silverstripe-themes/simple:"*" .............................................................................................................................. ✔

In Process.php line 1236:

The process "composer update --working-dir="C:\Users\PKGUPT~1\AppData\Local\Temp\ss-upgrader-5c53e7ac309a8" --prefe
r-stable --ignore-platform-reqs --no-plugins" exceeded the timeout of 60 seconds.

recompose [-d|--root-dir ROOT-DIR] [-w|--write] [-S|--strict] [-R|--recipe-core-constraint [RECIPE-CORE-CONSTRAINT]] [--cwp-constraint [CWP-CONSTRAINT]] [-P|--composer-path [COMPOSER-PATH]] [-Q|--quick]

Pull request

@maxime-rainville
Copy link
Contributor

The recompose command calls composer to perform a various operations. My guess is you are running against composer's process-timeout.

60 seconds is a bit short for this however. The default value should be 300 seconds. Try running this command to confirm what your current limit is composer config process-timeout. If it comes back with 60 seconds try increasing it to 300 or 600 seconds with composer config process-timeout 300.

@maxime-rainville
Copy link
Contributor

@utmsandeep Any luck?

@dnsl48
Copy link

dnsl48 commented Feb 18, 2019

Please feel free to reopen if you still have the issue happening.

@maxime-rainville
Copy link
Contributor

Figured out what the issue is. The composer command runs inside a Symfony Process. Composer's timeout is 300 sec, but the Symfony Process also has a timeout which is 60 sec.

I've increase the Process timeout to match the default composer timeout. #173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants