Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
Cshort Posted August 10, 2023 Posted August 10, 2023 I have been trying to get rid of this pesky error for a while now... I have a server running Plesk, I have created a cron job doing exactly what it says: /opt/plesk/php/8.0/bin/php -d memory_limit=-1 -d max_execution_time=0 /mnt/raid/kevswoodworks.com/forum.kevswoodworks.com/public_html/applications/core/interface/task/task.php 63857b871abd49cbc101d2bbe81c4b77 now if I say to run with traffic, it still gives me this notice at the top... I have switched it to the cron job and scheduled the cron job in plesk as: /opt/plesk/php/8.0/bin/php -d memory_limit=-1 -d max_execution_time=0 /mnt/raid/kevswoodworks.com/forum.kevswoodworks.com/public_html/applications/core/interface/task/task.php 63857b871abd49cbc101d2bbe81c4b77 it is running every minute with 0 errors, what am I doing wrong here? there are no system errors in the error log, I can't see anything actually breaking currently. does anyone have any recommendations?
Marc Posted August 10, 2023 Posted August 10, 2023 is the task file itself executable by the system? I realise you mention there is no error showing, but its also not doing anything, so on that basis I suspect its not getting as far as something throwing errors
Nathan Explosion Posted August 10, 2023 Posted August 10, 2023 On 8/10/2023 at 4:39 AM, Cshort said: 8.0 Expand Are you actually using PHP 8.0 for the site itself? wegorz23 1
CheersnGears Posted August 10, 2023 Posted August 10, 2023 On 8/10/2023 at 8:25 AM, Nathan Explosion said: Are you actually using PHP 8.0 for the site itself? Expand @Cshort if the PHP version running the site doesn't match the PHP version running in Cron, you'll continue to get this error.
Cshort Posted August 10, 2023 Author Posted August 10, 2023 On 8/10/2023 at 12:37 PM, CheersnGears said: @Cshort if the PHP version running the site doesn't match the PHP version running in Cron, you'll continue to get this error. Expand I am running 8.0.29, do I have to change it to match the version exactly? On 8/10/2023 at 7:35 AM, Marc Stridgen said: is the task file itself executable by the system? I realise you mention there is no error showing, but its also not doing anything, so on that basis I suspect its not getting as far as something throwing errors Expand The cron job is running as root, so I believe it would have access.
CheersnGears Posted August 10, 2023 Posted August 10, 2023 On 8/10/2023 at 1:33 PM, Cshort said: I am running 8.0.29, do I have to change it to match the version exactly? The cron job is running as root, so I believe it would have access. Expand It should be fine. I'd be surprised if you had multiple 8.0.x versions running on the same server.
Cshort Posted August 10, 2023 Author Posted August 10, 2023 On 8/10/2023 at 1:35 PM, CheersnGears said: It should be fine. I'd be surprised if you had multiple 8.0.x versions running on the same server. Expand so that is most likely not the issue then? On 8/10/2023 at 1:38 PM, Cshort said: so that is most likely not the issue then? Expand I am going to try and update it to match the specific version of 8 see if that does it? On 8/10/2023 at 1:38 PM, Cshort said: so that is most likely not the issue then? I am going to try and update it to match the specific version of 8 see if that does it? Expand nope when I change it to the specific version the cron job fails.
CheersnGears Posted August 10, 2023 Posted August 10, 2023 On 8/10/2023 at 1:38 PM, Cshort said: so that is most likely not the issue then? I am going to try and update it to match the specific version of 8 see if that does it? nope when I change it to the specific version the cron job fails. Expand How did you change it to the specific version?
Cshort Posted August 11, 2023 Author Posted August 11, 2023 (edited) On 8/10/2023 at 1:41 PM, CheersnGears said: How did you change it to the specific version? Expand I changed it to the specific version by doing this:/opt/plesk/php/8.0.29/bin/php -d memory_limit=-1 -d max_execution_time=0 /mnt/raid/kevswoodworks.com/forum.kevswoodworks.com/public_html/applications/core/interface/task/task.php 63857b871abd49cbc101d2bbe81c4b77 makes sense it failed as that is not a directory. Do I need to change the account running the cron? It is currently: server (user:root) Do I need to change it to what other crons are running on the server for the other sites? server (user:psaadm) Edited August 11, 2023 by Cshort Adding additional Info
Cshort Posted August 11, 2023 Author Posted August 11, 2023 On 8/11/2023 at 1:52 AM, Cshort said: I changed it to the specific version by doing this:/opt/plesk/php/8.0.29/bin/php -d memory_limit=-1 -d max_execution_time=0 /mnt/raid/kevswoodworks.com/forum.kevswoodworks.com/public_html/applications/core/interface/task/task.php 63857b871abd49cbc101d2bbe81c4b77 makes sense it failed as that is not a directory. Do I need to change the account running the cron? It is currently: server (user:root) Do I need to change it to what other crons are running on the server for the other sites? server (user:psaadm) Expand My apologies guys, I just took the whole thing as if it were one command, if I had actually analyzed what it was doing, I would have realized, this needs to be php script execution, with the parameter 63857b871abd49cbc101d2bbe81c4b77... I changed it to this. will post tomorrow if this fixes the issue. Marc 1
Cshort Posted August 12, 2023 Author Posted August 12, 2023 On 8/11/2023 at 3:36 AM, Cshort said: My apologies guys, I just took the whole thing as if it were one command, if I had actually analyzed what it was doing, I would have realized, this needs to be php script execution, with the parameter 63857b871abd49cbc101d2bbe81c4b77... I changed it to this. will post tomorrow if this fixes the issue. Expand this was it, come back today, no errors. Randy Calvert 1
Cshort Posted August 12, 2023 Author Posted August 12, 2023 (edited) it is back... I am at a loss, it is running every minute. if I tell it to run with traffic the error comes back, this error will not go away. the only thing that I can see under tasks that is not running on time, is the autoDeleteMsg task, last ran in 2022... however... I feel like this was from a plugin from a while back that has since been removed On 8/12/2023 at 8:24 PM, Cshort said: it is back... I am at a loss, it is running every minute. if I tell it to run with traffic the error comes back, this error will not go away. the only thing that I can see under tasks that is not running on time, is the autoDeleteMsg task, last ran in 2022... however... I feel like this was from a plugin from a while back that has since been removed Expand this autoDeleteMsg does not have application or system labeled. Edited August 12, 2023 by Cshort Adding additional Info
Marc Posted August 14, 2023 Posted August 14, 2023 Sorry, could you please clarify, this is happening when you switch back to running with traffic only, or regardless?
Cshort Posted August 14, 2023 Author Posted August 14, 2023 On 8/14/2023 at 9:16 AM, Marc Stridgen said: Sorry, could you please clarify, this is happening when you switch back to running with traffic only, or regardless? Expand this error appears regardless, that is why I wanted to try switching to a cron job.
Marc Posted August 14, 2023 Posted August 14, 2023 You do have one recommended item showing within the support area for curl. I would advise on updating that first of all, in case its this causing you issues
Cshort Posted August 14, 2023 Author Posted August 14, 2023 On 8/14/2023 at 1:52 PM, Marc Stridgen said: You do have one recommended item showing within the support area for curl. I would advise on updating that first of all, in case its this causing you issues Expand it should be enabled... the only curl that is in use has it enabled.
Marc Posted August 15, 2023 Posted August 15, 2023 You need to ensure it's the version stated in your admin CP rather than just making sure its switched on. If you are unsure on this, you would need to contact your hosting provider for assistance
Cshort Posted August 17, 2023 Author Posted August 17, 2023 On 8/15/2023 at 6:59 AM, Marc Stridgen said: You need to ensure it's the version stated in your admin CP rather than just making sure its switched on. If you are unsure on this, you would need to contact your hosting provider for assistance Expand I have verified that curl is enabled and working for the version specified in the admin cp, it is version 8.0.30 and I have verified via cmd it is enabled and other sites are using that curl extension just fine. I tell the forum to check again I get the same error. On 8/17/2023 at 12:04 AM, Cshort said: I have verified that curl is enabled and working for the version specified in the admin cp, it is version 8.0.30 and I have verified via cmd it is enabled and other sites are using that curl extension just fine. I tell the forum to check again I get the same error. Expand I built the server and configured the firewall, I built it all. installed plesk. installed invision, we have gone through a couple versions of linux and this error does not go away currently.
Marc Posted August 17, 2023 Posted August 17, 2023 If you click on PHP info on the right of the support area, and search for CURL, you will see thats not the case. At present its 7.29 you are running on that PHP version
Cshort Posted August 17, 2023 Author Posted August 17, 2023 On 8/17/2023 at 8:13 AM, Marc Stridgen said: If you click on PHP info on the right of the support area, and search for CURL, you will see thats not the case. At present its 7.29 you are running on that PHP version Expand I will have to see how I can change that because php itself says that nothing is using 7.29. I have it enabled but for some reason invision is choosing to use it even though the site itself is using 8.0.3.
Cshort Posted August 17, 2023 Author Posted August 17, 2023 On 8/17/2023 at 2:22 PM, Cshort said: I will have to see how I can change that because php itself says that nothing is using 7.29. I have it enabled but for some reason invision is choosing to use it even though the site itself is using 8.0.3. Expand nevermind, even though php 8.0.3 is installed centos7 which is the latest lts version of the os, and ubuntu 18 only supports up to 7.29, so I have to go to a non lts version to use a version of curl you guys support?
Marc Posted August 17, 2023 Posted August 17, 2023 Thats something you would need to speak to your hosting provider on
Solution CheersnGears Posted August 17, 2023 Solution Posted August 17, 2023 (edited) On 8/17/2023 at 2:31 PM, Cshort said: nevermind, even though php 8.0.3 is installed centos7 which is the latest lts version of the os, and ubuntu 18 only supports up to 7.29, so I have to go to a non lts version to use a version of curl you guys support? Expand If you're on Ubuntu 18 LTS, your server went out of support in May 2023. CentOS7 is also on the chopping block, you'll want to see if an uplift to Alma is possible on your system, however, I recommend a fresh install of Alma on a new server as the cleanest option. Edited August 17, 2023 by CheersnGears
Cshort Posted August 17, 2023 Author Posted August 17, 2023 On 8/17/2023 at 3:40 PM, CheersnGears said: If you're on Ubuntu 18 LTS, your server went out of support in May 2023. CentOS7 is also on the chopping block, you'll want to see if an uplift to Alma is possible on your system, however, I recommend a fresh install of Alma on a new server as the cleanest option. Expand I will need to do this anyway as I need to add configuration for clustering. With HA setup, Day job is software developer... but I took this job on for my father who does not like others hosting his data. not my best decision.
Recommended Posts