-
Notifications
You must be signed in to change notification settings - Fork 638
StatisticsUpdated job crashing #10
Comments
Have you restarted the queue worker so that it knows about the new event? |
Yep - been stopping and starting it quite a bit to try and debug it myself :-) I'll keep poking at it - if I find the reason I'll post back here :-) Thanks again for the package - it's very appreciated :-) |
I've exactly the same problem. The
I can still play with this wonderful package. Keep up the awesome work. |
Facing the same problem here: 2018-12-05 21:24:54][39] Processing: BeyondCode\LaravelWebsockets\Statistics\Events\StatisticsUpdated
PHP Fatal error: method_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "BeyondCode\LaravelWebsockets\Statistics\Events\StatisticsUpdated" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /Users/jafar/test-app/vendor/laravel/framework/src/Illuminate/Broadcasting/BroadcastEvent.php on line 43 Tried to restart the queue worker, without luck. |
Same issue, I've restarted redis, flushed it, stopped and restarted queue etc. None of those seemed to do anything. |
Same here, maybe this Sentry event helps somehow: https://sentry.io/share/issue/ca6da1cdacaa4b179bd943dcb128cd44/ Edit; After a quick look I also not found the culprit, if useful, both locally and in production this fails and I'm using Horizon + Redis + PHP 7.1. |
The issue should be fixed with the PR #33. I'm testing since last few hours and it seems to be fine now. |
This is now fixed with 1.0.2 |
I am having this same issue and I am on v1.0.4. I receive it when I run |
just delete that event from "jobs" table in database. |
Same issue queue worker crashing, everything was working fine but i installed laravel-websockets in a separate project and configured broadcast driver as 'pusher' and added the host and port in my existing project and now the queue worker is crashing. The thing is i dont have this package installed on that project, its in a different instance then that but queue worker in old project crashing referencing to this package, the only common thing between both the projects is Redis i.e my old project and the new project which only has this package installed uses a common redis server. Shutting down the project with this package installed fixes the issue and queue doesnt crash any more. |
The app names are different on both the projects though so: |
Separating the cache dbs solved it, add unique db in both the projects, the issue is not related to this project -> .env |
I've gone through the install and things seem to be working great as a drop-in replacement for Pusher - thanks! This is way nicer to use than the node echo server! :-)
I do keep seing a failed job in the horizon queue runner though - and no stats are being gathered (but the notifications are coming through ok in the app). The queue runner is outputting :
I'm using redis as the queue driver. I've tried the usual dump-autoload etc, restarting everything - but it keeps happening. I had a look at the StatisticsUpdated class and nothing was leaping out at me as being the 'ah-ha!' problem - sorry :-/
The text was updated successfully, but these errors were encountered: