laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.78k stars 296 forks source link

unlink(/app/storage/logs/octane-server-state.json): No such file or directory during kubernetes scaling #950

Closed Cluster2a closed 3 weeks ago

Cluster2a commented 2 months ago

Octane Version

2.5.5

Laravel Version

11.2.0

PHP Version

8.3

What server type are you using?

Swoole

Server Version

5.1.4

Database Driver & Version

MySQL 9.0.1

Description

We are running Laravel on swoole on a kubernetes cluster. Depending on the load the autoscaler starts and stops additionaly instances.

Sometimes we are getting this error: image image

We are not mounting any storage within the container - so every container should have it's own octane-server-state.json file.

Steps To Reproduce

Currently this seems to happen randomly - especially if the application scales up and down.

github-actions[bot] commented 1 month ago

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

sy-records commented 1 month ago

Is /app/ the root directory of your project?

crynobone commented 3 weeks ago

Hey there,

We're closing this issue because it's inactive, already solved, old, or not relevant anymore. Feel free to open up a new issue if you're still experiencing this problem.