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

Process "xxxxx" not found #267

Open
dan-comentis opened this issue Jan 10, 2024 · 4 comments
Open

Process "xxxxx" not found #267

dan-comentis opened this issue Jan 10, 2024 · 4 comments
Labels

Comments

@dan-comentis
Copy link

Hi - I am trying to upgrade from CakePHP 4.4 to 5, however as I'm running the migration code I get the following:

➜  upgrade git:(5.x) bin/cake upgrade rector --rules cakephp50 <path>/app/src
  56/131 [▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░]  42%
In ProcessPool.php line 31:

  Process "z5zo7cwtj3" not found.

process [-n|--dry-run] [-a|--autoload-file AUTOLOAD-FILE] [--no-progress-bar] [--no-diffs] [--output-format OUTPUT-FORMAT] [--debug] [--memory-limit MEMORY-LIMIT] [--clear-cache] [--port PORT] [--identifier IDENTIFIER] [--] [<source>...]

It doesn't seem to consistently fail at the same place either.

I'm running this on a Macbook M3 Pro

@garas
Copy link
Member

garas commented Jan 10, 2024

It looks like something wrong with subprocess manager in Rector itself.

Run bin/cake upgrade rector with --verbose to get command /path/vendor/bin/rector process ....
Then run that Rector command with --debug to get more details from Rector.

@dan-comentis
Copy link
Author

Hey @garas - thanks for that, although it hasn't shed much more light on the situation I don't think. I now can see the exception and the full stack trace, but it doesn't give me a lot to go on (with my limited knowledge):

PHP Fatal error:  Uncaught RectorPrefix202311\Symplify\EasyParallel\Exception\ParallelShouldNotHappenException: Process "idnwsqbylf" not found. in /Users/d/work/upgrade/vendor/rector/rector/vendor/symplify/easy-parallel/src/ValueObject/ProcessPool.php:31

I've uploaded the trace here in case thats of any use: trace.txt

@garas
Copy link
Member

garas commented Jan 10, 2024

Report issue to https://github.com/rectorphp/rector. It is problem inside of Rector, they might know better how to debug and fix the problem.

@LordSimal
Copy link
Contributor

I am able to reproduce your problem, but only with "larger" codebases, not smaller plugins.

Looking at your error message it could only be caused by this exception

I am no expert in rector internals but it feels like something is wrong with the parallel file processing logic as it seems to quit a process which doesn't exist any more. Maybe something related to a timeout? 🤔

@dereuromark dereuromark added the bug label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants