2 years, 8 months ago #20020
I have a problem with my website. Every 24 hours my product stocks get updated via WP All Import tink te index gets broken. Even if I reindex the data I get some products missing from the catalog (only on the frontend. If i delete all the data currently in the index and reindex all again everything works fine.
I think this should be done by Crontab. How can I install WP Solr tests plugin to test the cronjob? If I put the cronjob command copied from plugin panel in cPanel Cronjob I get:
curl: no URL specified!
curl: try ‘curl –help’ or ‘curl –manual’ for more information
This is the command that I use:
curl -X GET -H “Content-type: application/json” -H “Accept: application/json” -u wpsolr-cron:MYPASSWORD “https://solutiiarhiva.ro/wpsolr-api/json/cron/39357381BDA2AAB21B1BDB66B1EA30D4”2 years, 8 months ago #20023
Here is the page with the module activated: https://i.ibb.co/fQhsv3M/Screenshot-2020-05-27-at-16-45-17.png
Also as you can see in the screenshot I have license and is activated until: 2020-10-012 years, 8 months ago #20129
Url “https://solutiiarhiva.ro/wpsolr-api/json/cron/39357381BDA2AAB21B1BDB66B1EA30D4” is not recognized on your site.2 years, 8 months ago #20143
I already tried this with no success.
This is the new cron command that I see:
curl -X GET -H "Content-type: application/json" -H "Accept: application/json" -u wpsolr-cron:XXXXXX "https://solutiiarhiva.ro/wpsolr-api/json/cron/3C98843B9E377C97A91A931DBFFE1B9E"2 years, 7 months ago #20194
Hi, I managed to fix the 404 issues. Now the cron starts. What I can’t figure out now is why my cron stops at some point.
Every night our products stocks get updated. I created two crons: One for deleting all the index and one for indexing all the data. The problem is that the one that indexes all the data will stop at some time, it shows in the admin panel that is running but it’s actually stuck. You can see the video below to see what I am talking about.
What is your advice? What is the best way to solve this problem?
You must be logged in to reply to this topic.