luceos My apologies if it took awhile for me to respond. I did not know how to dispatch a queue until this morning.
Situation:
I have both admin user and test user log-in to the forum using different devices - laptop and mobile respectively. Test user creates a discussion, follows it and mentions admin user and vice-versa but neither of them get any web notifications. The bell (notification) icon does not glow orange and when you click on it, nothing is shown. But when you refresh the page, the notification appears (greyed out). Email notifications do get sent.
Background:
Realtime and Redis service are actively running in the background when I type sudo systemctl status
. Both web and email notifications are active.
The Realtime service is using the default setting as I don't know how to configure the js-client, php-client and app while my Redis service is using this:
return [
(new Blomstra\Redis\Extend\Redis([
'host' => '127.0.0.1',
'password' => null,
'port' => 6379,
'database' => 1,
]))
->useDatabaseWith('cache', 1)
->useDatabaseWith('queue', 2)
->useDatabaseWith('session', 3)
];
Assessment:
I went into the terminal and decided to check what's going on by typing sudo -u www-data php flarum queue:work -vvv
. Test user makes a post and mentions admin user again. This is the output I see on the terminal:
[2022-11-09 16:19:12][mxOYTONEv33cmrIu6JhBHIe3CaCRyorj] Processing: Blomstra\Realtime\Push\Jobs\SendTriggerJob
[2022-11-09 16:20:27][mxOYTONEv33cmrIu6JhBHIe3CaCRyorj] Failed: Blomstra\Realtime\Push\Jobs\SendTriggerJob
Killed
I don't know where the problem lies. I'm pretty sure I religiously followed all the instructions on the guide.
I hope the explanation is sufficient. Thanks!