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

Symfony: Unable to launch a new process #453

Open
vanhoaiduc opened this issue Aug 23, 2022 · 3 comments
Open

Symfony: Unable to launch a new process #453

vanhoaiduc opened this issue Aug 23, 2022 · 3 comments

Comments

@vanhoaiduc
Copy link

vanhoaiduc commented Aug 23, 2022

What steps will reproduce the problem?

Run queue by screen with "queue/listen --verbose"

What's expected?

The queue keeps run smooth

What do you get instead?

Symphony exception
image

Additional info

Q A
Yii version: 2.0.38
PHP version: 7.2
Operating system: Linux
@vanhoaiduc vanhoaiduc changed the title Symphony: Unable to lunch a new process Symfony: Unable to lunch a new process Aug 23, 2022
@yii-bot
Copy link

yii-bot commented Aug 28, 2022

Thanks for posting in our issue tracker.
In order to properly assist you, we need additional information:

  • When does the issue occur?
  • What do you see?
  • What was the expected result?
  • Can you supply us with a stacktrace? (optional)
  • Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

@vanhoaiduc
Copy link
Author

vanhoaiduc commented Aug 28, 2022

When does the issue occur?

  • This issue occurred seem per ~2 months on my PROD, I tried to reproduce but no hope

What do you see?

  • The queue can't continue to execute the new job, it must be restarted
  • I thought it related to memory, garbage collector, or something like that

What was the expected result?

  • Queue continue to execute the new job

Can you supply us with a stacktrace? (optional)

  • I can't, this image is all I got

Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

  • Not modify anything about the queue, just implement RetryableJobInterface

@vanhoaiduc vanhoaiduc reopened this Aug 28, 2022
@vanhoaiduc vanhoaiduc changed the title Symfony: Unable to lunch a new process Symfony: Unable to launch a new process Aug 28, 2022
@rob006
Copy link

rob006 commented Aug 28, 2022

This usually is a result of some kind of server limitation (limit on number of opened processes or files) and there is nothing that this library can do with that. Unfortunately, it looks likeProcess hides real message which may explain what actual problem is. You could try to remove @ char from this line and check error message from proc_open() - it should be more useful than exception thrown by Process. You may need to restart worker process after this change.

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