Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only works in localhost #7

Open
hipoagencia opened this issue Nov 28, 2023 · 8 comments
Open

Only works in localhost #7

hipoagencia opened this issue Nov 28, 2023 · 8 comments

Comments

@hipoagencia
Copy link

Hello! I cant make it work on live server.
I need to do anything extra?

Thanks

@ralphjsmit
Copy link
Owner

Hi! I can't help you without more info, so please describe the behavior that you're seeing vs what you're expecting to see.

@FrazeColder
Copy link

I am having the same problem here. On server I get:

2024-09-01 15:27:02 Running ['artisan' supervisor:check] ..... 454.01ms FAIL
⇂ '/usr/local/php83/bin/php' 'artisan' supervisor:check > '/dev/null' 2>&1

But I don't get any log error or anything.. how can I debug it?

@FrazeColder
Copy link

Update: When I run php artisan schedule:run no jobs at all are being started? I get:

No scheduled commands are ready to run.

@FrazeColder
Copy link

Somehow I am also not seeing any cronjobs being dispatched when running php artisan schedule:run. I get

INFO No scheduled commands are ready to run.

I have run composer dump-autoload and php artisan cache:clear but I am still not seeing any cronjobs being dispatched.

However, when I run php artisan I can see the command supervisor:check.

How can this be, what am I doing wrong?

@ralphjsmit
Copy link
Owner

Can you try running php artisan supervisor:check manually?

Somehow I am also not seeing any cronjobs being dispatched when running php artisan schedule:run.

This is correct, because the job is only scheduled to run "every three minutes". Therefore, only if you would run this command manually at exactly the start of the 3rd minute would you see anything, otherwise it will always see "nothing ready to run".

@FrazeColder
Copy link

php artisan supervisor:check starts horizon on both, local env and server

@ralphjsmit
Copy link
Owner

Okay, that's very weird.. Then I really don't know why it would fail on production via the scheduler if manually triggering all works. You can try to look at the global PHP log still.

@skeemer
Copy link
Contributor

skeemer commented Sep 9, 2024

This package is set to run every 3 minutes starting on the hour. Did you run php artisan schedule:run during one of those minutes when testing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants