devaslanphp / project-management

An open source Project management tool based on Laravel and Filament
https://devaslanphp.github.io/project-management
MIT License
683 stars 188 forks source link

Queue does not receive any jobs #105

Open ExtremOPS opened 7 months ago

ExtremOPS commented 7 months ago

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?

Anostrofy commented 7 months ago

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: @.***>

ExtremOPS commented 7 months ago

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.

Anostrofy commented 7 months ago

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: @.***>

mihaisolomon commented 7 months ago

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

ExtremOPS commented 6 months ago

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?

otvoslaszlogabriel commented 5 months ago

@ExtremOPS i just have installed and can confirm the same

mihaisolomon commented 5 months ago

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

otvoslaszlogabriel commented 5 months ago

@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 commented 5 months ago

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.

mihaisolomon commented 5 months ago

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

ExtremOPS commented 3 weeks ago

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.