Clear cache with deploy console not working

I updated to OC 4.x and try to clear the cache with the deploy plugin console like this:

Artisan::call('cache:clear');
echo Artisan::output();

The output is this:

Undefined constant "STDIN"

I don’t see the new dashboard. I use PHP 8.3 with deploy plugin 3.x.

I tried to clear the cache manually with FTP, but with no luck.

Hey @mathilde

In Deploy v3 and for Laravel 12 compatibility, you need to redeploy the Beacon files. Download them again and redeploy the script.

Now I’m getting following error:

posix_isatty(): Could not use stream of type 'Output'

And the cache isn’t cleared.

That’s a new one, I haven’t seen that error before. Will need to re-test it, because it was working last time I checked.

I have an OC installment, which I updated since version 1.x to now version 4.x. There clearing the cache command with the deploy console worked, even without re-deploying the beacon.

The ones that do not work were created from 3.x.