project-management icon indicating copy to clipboard operation
project-management copied to clipboard

Queue does not receive any jobs

Open ExtremOPS opened this issue 2 years ago • 11 comments

Hi there,

first of all thank you for the project. I did the installation as written in the doku. I can log in with Jon DOE but, if I register a new user I see in the DB but no email is triggered. And yes, I am running php artisan queue:work.

Do you have any idea, why this might be?

ExtremOPS avatar Jan 29 '24 10:01 ExtremOPS

Check your smtp configuration in your env file.

On Mon, 29 Jan, 2024 at 12:29, Christoph Goering @.***> wrote:

Hi there,

first of all thank you for the project. I did the installation as written in the doku. I can log in with Jon DOE but, if I register a new user I see in the DB but no email is triggered. And yes, I am running php artisan queue:work.

Do you have any idea, why this might be?

— Reply to this email directly, view it on GitHub https://github.com/devaslanphp/project-management/issues/105, or unsubscribe https://github.com/notifications/unsubscribe-auth/A57XVW3VXYXEQKFIEKPYVNLYQ52ZTAVCNFSM6AAAAABCPFS3RKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDKMJWGY4TCOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Anostrofy avatar Jan 29 '24 11:01 Anostrofy

I think the problem is, it is not even creating a job. I create a user but nothing happens in the jobs table in the DB. The failed_jobs are also empty.

ExtremOPS avatar Jan 29 '24 11:01 ExtremOPS

Stop your Queue and try this

nohup php artisan queue:work --daemon &

if u have a working smtp .. Im sure it will work.

On Mon, Jan 29, 2024 at 1:30 PM Christoph Goering @.***> wrote:

I think the problem is, it is not even creating a job. I create a user but nothing happens in the jobs table in the DB. The failed_jobs are also empty.

— Reply to this email directly, view it on GitHub https://github.com/devaslanphp/project-management/issues/105#issuecomment-1914502307, or unsubscribe https://github.com/notifications/unsubscribe-auth/A57XVW7KEEQZNLEYOCYXK4DYQ6B6BAVCNFSM6AAAAABCPFS3RKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGUYDEMZQG4 . You are receiving this because you commented.Message ID: @.***>

Anostrofy avatar Jan 29 '24 11:01 Anostrofy

Make sure you have this QUEUE_CONNECTION=database into the .env file.

mihaisolomon avatar Jan 29 '24 14:01 mihaisolomon

I have an update. If I create a user via the Login Screen and email verification is sent. If I create it within the app. No email to set a Password or to be onboarded is sent.

One can bypass it, by clicking "Forgot Password" but then after setting a new password one need to verify the email first.

It seems like, that a "Verify Email and Set Password" email should be triggered if a user is created within the app.

Or am I missing something?

ExtremOPS avatar Jan 30 '24 06:01 ExtremOPS

@ExtremOPS i just have installed and can confirm the same

otvoslaszlogabriel avatar Mar 19 '24 22:03 otvoslaszlogabriel

Can you put in detail the steps so I can have a look?

mihaisolomon avatar Mar 20 '24 06:03 mihaisolomon

@mihaisolomon

  1. add settongs to env file
  2. create docker image
  3. deploy the project
  4. Accces the project from browser (with predefined user)
  5. add a new user

the result shoud be no email sent (to newly added ) when you adding a user on the admin panel

otvoslaszlogabriel avatar Mar 20 '24 06:03 otvoslaszlogabriel

It is worth mentioning that the "php artisan queue:work" command is not running automatically after docker container starts, either way if this service is started. Even after starting this manually adding the user from admin panel will not send the email.

otvoslaszlogabriel avatar Mar 20 '24 08:03 otvoslaszlogabriel

From what I see it's not configured to run the job from the start, I created a PR https://github.com/devaslanphp/project-management/pull/112 with the supervisor that should fix one of the problems.

On the rest I'll investigate and update this PR

mihaisolomon avatar Mar 22 '24 11:03 mihaisolomon

Hi @mihaisolomon do you have any updates? It would be really nice if you could get this working... If I can be of any help, please let me know.

ExtremOPS avatar Jul 30 '24 06:07 ExtremOPS