PHP Fatal error: Uncaught Error: Class "Laravel\Octane\Octane" not found #51212
-
When I run the built image on kubernetes, I get the following error.
Adding The composer.json contains the following octane and confirms that the {
"require": {
"php": "^8.2",
"darkaonline/l5-swagger": "^8.6",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^11.0",
"laravel/octane": "^2.3",
"laravel/sanctum": "^4.0",
"laravel/telescope": "^5.0",
"laravel/tinker": "^2.8",
"spatie/laravel-permission": "^6.4"
},
} I have minimal k8s resources set up for startup, is that a problem? resources:
limits:
cpu: 300m
memory: 450Mi
requests:
cpu: 100m
memory: 180Mi
How can I solve this problem...? I would be grateful for your wisdom.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I remember having the same issue. The problem is that Octane is obfuscating the actual error that occurs when starting the server. You can try removing the try catch block in the I'm suspecting the port the server wants to listen to is somehow unavailable |
Beta Was this translation helpful? Give feedback.
I remember having the same issue. The problem is that Octane is obfuscating the actual error that occurs when starting the server. You can try removing the try catch block in the
createSwooleServer.php
file inside your vendor, then you'll see what error actually gets thrownI'm suspecting the port the server wants to listen to is somehow unavailable