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

Script Google\Task\Composer::cleanup handling the pre-autoload-dump event terminated with an exception #2530

Closed
bjsapkota1313 opened this issue Dec 14, 2023 · 2 comments

Comments

@bjsapkota1313
Copy link

Environment details

  • Docker
  • PHP 8.1
  • "google/apiclient": "^2.15.1",

Steps to reproduce

  • Composer install

Code example

# example

image

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

@bjsapkota1313 bjsapkota1313 changed the title Pre Auto Load Dump Not working Script Google\Task\Composer::cleanup handling the pre-autoload-dump event terminated with an exception Dec 14, 2023
@bshaffer
Copy link
Contributor

bshaffer commented Dec 15, 2023

See #2532

@bjsapkota1313 I am updating the README to contain more info on how to debug the error. Can you follow these instructions and let me know if it fixes your problem? Here are the instructions:

If you see the following error, it's because you need to increase your composer process timeout:

Script Google\Task\Composer::cleanup handling the pre-autoload-dump event terminated with an exception
In Filesystem.php line 200:
Failed to remove directory "(/path/to/vendor/google/apiclient-services/src/...": rmdir(/path/to/...): Text file busy

Either increase the timeout for composer by adding the env flag as COMPOSER_PROCESS_TIMEOUT=600 composer install,
or put this in the config section of the composer schema:

{
    "config": {
        "process-timeout": 600
    }
}

This happens because there are a LOT of Google services which are downloaded as part of this package, and it can
unfortunately take so long that composer's default of 300 seconds times out.

@bshaffer
Copy link
Contributor

Closing due to inactivity. Please open a new issue if this continues to be a problem

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

No branches or pull requests

2 participants