Wordpress Cannot do Cron Jobs cURL error!

My YunoHost server

Hardware: VM with 3 cores 8 GB hosted by AMD RYZEN 3 2200G with 32GB

YunoHost version: latest

I have access to my server : Yes.
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : Some skinning.
If yes, please explain:
see above :wink:

Description of my issue

I have some issues doing Cron Jobs with Wordpress it did work earlier tough but now it won’t. I’m heavily depended on these Cron Jobs cause they are used for some affiliate products!

cURL error 28: Connection timed out after 3001 milliseconds

Please help me A.S.A.P. BUT First take time to grab a cup of whatever you like to drink :wink:

What is the full curl command triggered by the cronjob?

1 Like

Hello, my wp-cron.php file is not pinged and I’m getting an error message on my WordPress administration panel. Can you please check and help me to solve it? Thank you very much in advance, your support is greatly appreciated

My server can not ping itself, they said adding my server ip to /etc/hosts will be helpful but I can not manage it. Can you help?

Curl is pinging https://easycomp.shop/v2/wp-cron.php?doing_wp_cron address. It is giving 200 from my browser but my server can not curl it itself.

Thank you.

Edit: Thanks for cleaning my last post someone I did’t knew if people on this topic got updated if a change is being made :wink:

Edit II: Add some server stats

| --- | --- |
|OS:|Linux / 64Bit OS (Linux easycomp.cloud 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64)|
|IP Address:||
|Web Port:|443|
|Date / Time (WP):|2020-11-14 18:16:57 (2020-11-14 19:16:57)|
|Timezone (WP):|UTC (UTC+1)|
|Default Timezone is UTC:|Yes|
|CGI Version:|CGI/1.1|
|CPU Total:|1 / 3 Cores|
|CPU Usage:|0.5%|
|CPU Load Average:|0.17, 0.12, 0.16|
|Disk Space:|Total: 175 GB / Free: 106.95 GB / Used: 59.1 GB|
|Disk Space Usage:|33.77%

59.1 GB of 175 GB|
|Memory (RAM) Total:|3.85 GB|
|Memory (RAM) Free:|1.03 GB|
|Memory (RAM) Usage:|73.25%

2.82 GB of 3.85 GB|
|Uptime:|1 Days 1 Hours 45 Minutes|
|PHP Version:|7.3.19-1~deb10u1|
|PHP Memory Limit (WP):|64 MB (64 MB)|
|PHP Memory Usage:|6%

4 MB of 64 MB|
|PHP Max Upload Size (WP):|50 MB (50 MB)|
|PHP Post Max Size:|50 MB|
|PHP Max Input Vars:|1000|
|PHP Max Execution Time:|30 Seconds|
|PHP Extensions:|Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, json, ldap, exif, mysqli, pdo_mysql, apc, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, libsmbclient, Zend OPcache|
|GD Library:|Yes / Version: 2.2.5|
|cURL Version:|7.64.0, OpenSSL/1.1.1d|
|SUHOSIN Installed:|–|
|PHP Error Log File Location:||
|SoapClient:|No Your server does not have the [SoapClient](https://php.net/manual/en/class.soapclient.php) class enabled - some gateway plugins which use SOAP may not work as expected.|
|Multibyte String:|Yes|
|Remote Get Status:|Yes|

What does your server say if you do ping easycomp.shop ?

If there is an error, then let’s add easycomp.shop at the end of your hosts file with sudo nano /etc/hosts. You can then save with CTRL+O and exit with CTRL+X.

1 Like
PING easycomp.shop ( 56 data bytes

64 bytes from icmp_seq=0 ttl=64 time=12.791 ms

64 bytes from icmp_seq=1 ttl=64 time=6.761 ms

--- easycomp.shop ping statistics ---

2 packets transmitted, 2 packets received, 0.0% packet loss

round-trip min/avg/max/stddev = 6.761/9.776/12.791/3.015 ms

I used FileZilla and sublime text (Mac notepad++ like app)
I indeed could have used terminus to ssh into the server and use nano or I could RDP into and use the vm console but anyhow here is the new hosts file.	localhost	yunohost.yunohost.org	yunohost

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters	cloud	ecz	easycomp	coinup-arcade   easycomp.shop

Topic closed it started to work immediately

Thank you @tituspijean! You’ve earned your :coffee:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.