Skip to content

Any ideas how to fix locking problem? If I change docs and load locahost/docs multiple times it gets stuck till timeout #416

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

Closed
juslintek opened this issue Jun 25, 2024 · 4 comments

Comments

@juslintek
Copy link

API Platform version(s) affected: 3.3.6

Description
api/vendor/symfony/http-kernel/Kernel.php get stuck at line 420: if (!flock($lock, \LOCK_EX | \LOCK_NB, $wouldBlock) && !flock($lock, $wouldBlock ? \LOCK_SH : \LOCK_EX)) { no pun intended. But it happens after several changes to entity resources and requests to http://localhost/docs.

How to reproduce
Run this project remove VOLUME in order to get var accessible in local filesystem. And make changes to entities resources, then go to http://localhost/docs and see the timout in 30s happen.

@juslintek juslintek changed the title Any ideas how to fix locking problem? If I change docs and load locahost/docs multiple times it gets till timeout Any ideas how to fix locking problem? If I change docs and load locahost/docs multiple times it gets stuck till timeout Jun 25, 2024
@vincentchalamon
Copy link
Contributor

Hi @juslintek,

Can you produce a reproducer please? You can fork this project and create a reproducer with your bug, so I can investigate on it.

@juslintek
Copy link
Author

juslintek commented Jun 25, 2024

Hey, I do not need to create reproducer, problem exists on current latest main branch :-) Just run it in dev mode. Seems like frankenphp --watch spins up lots of coroutine processes which start to lock each other from themselves. And that is mostly caused by any changes that happens with docs. You can add on entity resource description attribute and type in "Here I am". And reload https://localhosts/docs and vuola.

Might be Mac M2 and VirtuoFS issue, haven't tested on other settings.

@dunglas
Copy link
Member

dunglas commented Jun 25, 2024

Likely the same issue as dunglas/frankenphp#886 and dunglas/symfony-docker#641

@vincentchalamon
Copy link
Contributor

Closing as not related to this repository, please follow the issues linked above for more information about this bug.

@vincentchalamon vincentchalamon closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
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

3 participants