Blair2004 / NexoPOS

The base version of NexoPOS, which is a web-Based Point Of Sale (POS) System build with Laravel, TailwindCSS, and Vue.Js.
https://my.nexopos.com
GNU General Public License v3.0
858 stars 357 forks source link

[Issue] Nexopos 4.x can't run workers #1577

Closed iosc closed 1 year ago

iosc commented 1 year ago

Describe the bug Workers Aren't Running

The workers has been enabled, but it looks like NexoPOS can't run workers. This usually happen if supervisor is not configured correctly.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings'
  2. Click on 'workers'
  3. Scroll and click to 'test', then 'save settings'
  4. refresh the browser and See error 'notification'

Expected behavior Workers Aren't Running

The workers has been enabled, but it looks like NexoPOS can't run workers. This usually happen if supervisor is not configured correctly.

workers.log 0 byte, mysql ns_jobs and ns_failed_job all empty

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot at Jul 28 10-36-01

Environment:

Blair2004 commented 1 year ago

Hi, this can be fixed using Laravel Queues: https://laravel.com/docs/10.x/queues

iosc commented 1 year ago

hi Blair,

Thanks for the reply. I am on Laravel 9.x, and tested Queue and Supervisord all configured correctly and tested in CLI too, but the nexopos dashboard still seeing the notification stating that nexopos was not configured correctly without any further indications on what is the error?

The main problem I am having is when in busy business hour (lunch hour), i.e. 6 to 7 out of 10 orders continuosly not printing to cashier, water bar or kitchen printers

So I have to try to run workers / queue in order to see if that is the issue causing print problem