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

Scheduled test is not running at the correct, scheduled time #649

Closed
ampersandru opened this issue Jun 29, 2023 · 15 comments · Fixed by #929
Closed

Scheduled test is not running at the correct, scheduled time #649

ampersandru opened this issue Jun 29, 2023 · 15 comments · Fixed by #929
Labels
🐛 bug Something isn't working 📖 documentation Improvements or additions to documentation

Comments

@ampersandru
Copy link

In general settings, I have 0 5 * * * as my scheduled speed test, which should be every day at 5 AM. However, it is running the speed test every day at 22:00, which is 10 PM. I don't believe it's a timezone issue because when I manually run a test, the shown last run time is correct.

@alexjustesen alexjustesen added the 😖 duplicate This issue or pull request already exists label Jun 30, 2023
@alexjustesen
Copy link
Owner

Double check your time zone as the default is UTC. Also improvements will be made in connection with #194

@alexdelprete
Copy link
Contributor

I don't believe it's a timezone issue because when I manually run a test, the shown last run time is correct.

Configure TZ env variable in docker-compose and also the localtime volume mapping:

version: '3.3'
services:
  speedtest-tracker:
    image: ghcr.io/alexjustesen/speedtest-tracker:v0.5.0
    container_name: speedtest-tracker
    restart: unless-stopped
    ports:
      - 8008:443
    environment:
      TZ: Europe/Rome
      PUID: 1000
      PGID: 1000
      DB_CONNECTION: mysql
      DB_HOST: mariadb.axel.dom
      DB_PORT: 3306
      DB_DATABASE: speedtest_tracker
      DB_USERNAME: xxxxxxxxxx
      DB_PASSWORD: **********
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - $PWD/config:/config
      - $PWD/certs:/etc/ssl/web

@ampersandru
Copy link
Author

Binding /etc/localtime fixed it, I already had TZ: America/Los_Angeles - I believe it was actually running at 5AM PST but displaying 22:00. Adding the /etc/localtime bind seems to have updated the time on the tests to be 5AM

Thanks!

@alexdelprete
Copy link
Contributor

@alexjustesen this should be added to the docs, it's one of the most common issues.

@alexjustesen
Copy link
Owner

Yeah that's a good call, I'm opening the issue again until a PR is open or docs updated.

@alexjustesen alexjustesen added 🐛 bug Something isn't working 📖 documentation Improvements or additions to documentation and removed 😖 duplicate This issue or pull request already exists labels Jul 3, 2023
@alexjustesen alexjustesen reopened this Jul 3, 2023
@alexdelprete
Copy link
Contributor

TZ: America/Los_Angeles

PR submitted: alexjustesen/speedtest-tracker-docs#14

@LarryT8959
Copy link

I’m trying to figure the code for running scheduled test on the half hour? Is that possible? I brought back to like an old Mac and built a second server with docker installed. I also have this running on my nas which is testing on the hour. I don’t really want them running at the same time. I’m trying to compare speeds. The speeds on the nas are inconsistent at best.
Thanks

@alexdelprete
Copy link
Contributor

alexdelprete commented Jul 6, 2023

I’m trying to figure the code for running scheduled test on the half hour? Is that possible?

ST supports crontab expressions. Under the expression field, it says: "You can also use the cron expression generator HERE to help you make schedules."

Did you try to use the linked crontab expression generator or at least google it?

image

@LarryT8959
Copy link

I tried that same formula on the expression generator put didn't get it to work. I assume it would yield results on the web page but I guess I was wrong. I placed it in the actual test page an it took, no errors. Thanks

@alexdelprete
Copy link
Contributor

alexdelprete commented Jul 6, 2023

I tried that same formula on the expression generator put didn't get it to work. I assume it would yield results on the web page but I guess I was wrong.

On the right of the expression it says what the expression means in normal language, as you can see here:

image

@LarryT8959
Copy link

Still not working for me, obviously I'm doing something wrong. After entering I press enter and nothing happens? Tried tab also.

@alexdelprete
Copy link
Contributor

alexdelprete commented Jul 6, 2023

You don't have to click return or anything...just type...it's dynamic, here's an animated gif so you see what I'm doing:

msedge_TRl26kwYPO

@LarryT8959
Copy link

LarryT8959 commented Jul 6, 2023 via email

@alexdelprete
Copy link
Contributor

alexdelprete commented Jul 6, 2023

I don't see anything in your post.

If it doesn't work, change browser. What browser are you using? What OS?

Or maybe you're using some fancy browser security plugin that blocks javascript etc.

@LarryT8959
Copy link

LarryT8959 commented Jul 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 📖 documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants