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

mkdir(): File exists #165

Open
ametad opened this issue Mar 23, 2021 · 3 comments
Open

mkdir(): File exists #165

ametad opened this issue Mar 23, 2021 · 3 comments

Comments

@ametad
Copy link

ametad commented Mar 23, 2021

mkdir($this->dir, 0755, true);

In my logs I encounter every day this error "mkdir(): File exists " from the above code fragment. In production it lives in a kubernetes pod, so the instance is new/fresh regularly.

Am I correct to assume that the error could be because of multiple request life cycles try to create the temp cache dir at the same time?

It is not a very big problem, because after this the following life cycles will have the temp cache dir in place and so, no error is thrown. But for me this is on a daily basis and I would love to fix this for my users who occasionally see an error 500 on their screen.

@goper-leo
Copy link

@ametad I also encounter this. Did you manage to solve this one?

@ametad
Copy link
Author

ametad commented Nov 13, 2021

No... I am sorry. Are you also seeing this regularly?

I found out this is a known problem with implementing mkdir():

@doubleprincez
Copy link

doubleprincez commented Jul 17, 2023

Any solution to this yet? I dont seem to know why my debugger gets filled with this same error.

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