Describe the bug
I am using Centminmod nginx and php stack installer. On all new VPS installed I cannot get Spatie/Ray to work correctly (I had it running perfectly in the past). On multiple VPS I always get the same error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /home/nginx/domains/somedomain.com/public/ray.php on line 7
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /home/nginx/domains/somedomain.com/public/vendor/spatie/ray/src/Settings/SettingsFactory.php on line 35
The ray.php file is just calling ray function to make sure everything works fine:
`<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require DIR . '/vendor/autoload.php';
ray("hello ray");
echo "hello";
?>`
Even reverting back to php 7.4.33 doesn't solve the issue, in php 7.4.33 the error message reads:
`Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/nginx/domains/somedomain.com/public/vendor/spatie/ray/src/Settings/SettingsFactory.php on line 35
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/nginx/domains/somedomain.com/public/vendor/spatie/ray/src/helpers.php on line 19`
Versions
Ray desktop 2.1.1 but due to the bug on the server messages are never sent to the desktop app
You can use composer show
to get the version numbers of:
- spatie/ray package version: 1.36.0
PHP version: 8.1.13
To Reproduce
install centminmod with PHP 8.1.13, install ray with composer and try to use Ray
Expected behavior
There is apparently a bug somewhere, no clue if it's PHP 8.1.13 or the ray server-side component that's not working
Desktop (please complete the following information):
- Not applicable, bug on the server