You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #2420 from WPO-Foundation/fix-2406
Fix 2406- improve form usability in create experiments
Description
The issue that we are having is that archiving isn't working out of the box by simply specifying the config params in settings.ini (check below how we configured it below).
Configure settings.ini with cron_archive, days to keep/delete and folder to use for archiving, bring up the docker environment by running docker compose up at root directory and verify if supervisord -> crond triggers the 5min.php/15min.php/hourly.php scripts.
Expected result
After configuring the settings.ini to run the archive scripts hourly through crond results are archived/deleted as specified by the params.
Actual result
No logs are stored @cli/archive.log as expected. 5min.php/15min.php/hourly.php scripts don't run.
Related issues?
No
The text was updated successfully, but these errors were encountered:
Hello Catchpoint/WPT Devs,
We have set up a Private instance for our testing purposes where we are using tag 23.01 with branch/master & last commit e56ced6;
The environment is brough up with docker-compose.yaml and we are using the local/Dockerfiles.
git branch
master
git log -n 1
commit e56ced6 (HEAD, tag: 23.01)
Merge: a287cbb 7004c48
Author: Scott Jehl [email protected]
Date: Tue Oct 4 19:41:06 2022 -0400
Description
The issue that we are having is that archiving isn't working out of the box by simply specifying the config params in settings.ini (check below how we configured it below).
cxxx@wptstage:~/WebPageTest/docker/local/wptconfig$ cat settings.ini | grep archive
archive_dir=/var/www/webpagetest/www/results/archive
archive_kept_days=3
archive_days=2
cron_archive=1
My investigation and troubleshooting pointed to:
Cron/Supervisord configuration for local/Dockerfile-php is done in the root context before switching to php user:
https://github.com/catchpoint/WebPageTest/blob/master/docker/local/Dockerfile-php#L168
---> This configures crond tab for root user instead of php
CMD/Entrypoint for Dockerfile-php starts supervisord by php user:
https://github.com/catchpoint/WebPageTest/blob/master/docker/local/Dockerfile-php#L171
---> This causes mismatch for process owner (php) / crontab owner (root)
Can this be fixed so it works out of the box?
Thank you in advance for the considerations!
Steps to reproduce
Configure settings.ini with cron_archive, days to keep/delete and folder to use for archiving, bring up the docker environment by running docker compose up at root directory and verify if supervisord -> crond triggers the 5min.php/15min.php/hourly.php scripts.
Expected result
After configuring the settings.ini to run the archive scripts hourly through crond results are archived/deleted as specified by the params.
Actual result
No logs are stored @cli/archive.log as expected. 5min.php/15min.php/hourly.php scripts don't run.
Related issues?
No
The text was updated successfully, but these errors were encountered: