Jump to content
X2Community Forums

[Solved] Cron Table - Reload without updating


Recommended Posts

Every time I try to enable the "Run scheduled X2Engine tasks via web request" the page just reloads with no change.

 

Here is a video screencast if you want to see the error in action: https://www.screencast.com/t/bHm89UblH 

 

 

When running the local API resolvability test everything looks good. 

 

Web request succeeded.
Response matched expected content.

Conclusion: success! Can run API commands locally from this server to itself.

 

 

An insight would be a great help :)

 

 

  • Like 1
Link to post
Share on other sites

Hello,

 

Unfortunately I wasn't able to view the screencast, I got a 404. However, if the form is not updating on page reload with the option enabled, then it may be due to cron configuration. What operating system are you hosting X2CRM on? If you're on a Windows system, you'll need to use another system like Scheduled Commands to run the commands. If you're on Linux, it may be best to check for the presence of /etc/cron.allow and /etc/cron.deny, and make sure that either the web server user is included in the former, or not included in the latter.

 

Raymond

  • Like 1
Link to post
Share on other sites

Hey, 

 

I am running x2crm on Linux server (shared hosting on SiteGround).

 

My Crons are working - I set them up manually in my cpanel - So most things work just fine 

post-11142-0-61896900-1498775561_thumb.jpg
 
 
The only things I can't setup is - Run scheduled X2Engine tasks via web request
post-11142-0-24198200-1498775734_thumb.jpg

 

 

 

*If I can't fix this what will I be missing out on ?**

post-11142-0-61896900-1498775561_thumb.jpg

post-11142-0-24198200-1498775734_thumb.jpg

Link to post
Share on other sites

Ah yes, then it is likely a cron restriction for the web server user. Since you can add the cron jobs with your cpanel, feel free to add the web request method to your cron table as well.  Both this method and the command line method invoke the same backend methods, but it is always good to have redundancy. If you can use wait actions in X2Workflow, then your cron is configured and working.

  • Like 1
Link to post
Share on other sites

Here is how I solved the problem :) 

I am using a service to run the cronjob externally and it is working like a charm especially because my hosting provider gives a limit on cron jobs that allow it to only run once every 30 min.

So now I am running every minute using  setcronjob.com (if you have a better server I can use I am all ears : )

 

Just thought I would give a follow up if anyone else runs into the same limitations I did.

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...