laravel / octane

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

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

Open Cluster2a opened 3 weeks ago

Cluster2a commented 3 weeks 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 3 weeks 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 3 weeks ago

Is /app/ the root directory of your project?