thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Database not connecting #5285

Open IsmaelQG opened 3 years ago

IsmaelQG commented 3 years ago

Version information

Description

I have an application that works with Laravel/Voyager. My issue is that when I try to connect with my Database this error appears in the log:

No Database connection yet in VoyagerServiceProvider loadAuth():ErrorException: Packets out of order. Expected 1 received 5. Packet size=26 in /home/booktable/panel.booktable.app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:258

When I repair the Database I can connect without problems apparently but after an hour I get this error again.

I can't create users, list them or anything. The routes seem to stop working. When this happens all routes in user table generated by Voyager disappear.

Expected behavior

My app must connect to the database on the first try and without connection errors.

Screenshots

image

emptynick commented 3 years ago

This is just a warning and can be ignored. See https://github.com/the-control-group/voyager/issues/5069

IsmaelQG commented 3 years ago

I can't ignore the error because the user table stops working. I can't create users, list them or anything. The routes seem to stop working. When this happens all routes in user table generated by Voyager disappear.

alex2k17 commented 3 years ago

I have the same problem

alex2k17 commented 3 years ago

This was a configuration error in the database.

the value of this parameter -> max_allowed_packet needs to be increased.

Now it works correctly

emptynick commented 3 years ago

The error messages was "softened" and is now an information. This message (No database connection yet in VoyagerServiceProvider loadAuth()) can be ignored safely and is definitely not the cause of any problems mentioned here.