A
A
Alla2022-02-26 13:31:18
MariaDB
Alla, 2022-02-26 13:31:18

Why does "Warning: Got an error reading communication packets" crash when using laravel 8 scheduler?

There is a scheduler that every 5 seconds gets the message history of each client from the telegram.
I use supervisorctl to start.

[program:short-scheduler]
command=/usr/bin/php /var/www/messenger/new_api/artisan short-schedule:run
numprocs=1
autostart=true
autorestart=true

This artisan short-schedule:run command runs the code:
protected function shortSchedule(ShortSchedule $schedule) {
        $schedule->command('telegram:history')->everySecond(5)->withoutOverlapping();
    }

And when I run the command sudo supervisorctl stop short-scheduler, then every 5 seconds a message flies out in the console:
Feb 26 13:17:32 messenger mariadbd[890306]: 2022-02-26 13:17:32 179 [Warning] Aborted connection N to db: 'test' user: 'test' host: 'localhost' (Got an error reading communication packets)

PS All instances in the generated scheduler have been removed and processed. So it's definitely not a bug in the code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2022-02-26
@martin74ua

and your script is allowed into the database? server name, database name, login and password specified? Are they correct?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question