Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
Deanuk Posted Monday at 10:17 AM Posted Monday at 10:17 AM Apologies for the new threads... Since our server migration last week I have run in to the following issues: Locked Task: dailyStreamSubscriptions Quote TypeError: log(): Argument #1 ($num) must be of type float, string given (0) #0 /var/www/vhosts/X/httpdocs/system/Helpers/Table/Db.php(118): log() #1 /var/www/vhosts/X/httpdocs/system/Helpers/Table/Table.php(504): IPS\Helpers\Table\_Db->getRows() #2 /var/www/vhosts/X/httpdocs/applications/core/modules/admin/settings/advanced.php(879): IPS\Helpers\Table\_Table->__toString() #3 /var/www/vhosts/X/httpdocs/system/Dispatcher/Controller.php(107): IPS\core\modules\admin\settings\_advanced->taskLogs() #4 /var/www/vhosts/X/httpdocs/applications/core/modules/admin/settings/advanced.php(38): IPS\Dispatcher\_Controller->execute() #5 /var/www/vhosts/X/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\settings\_advanced->execute() #6 /var/www/vhosts/X/httpdocs/admin/index.php(13): IPS\_Dispatcher->run() #7 {main} Locked Task: digest Quote TypeError: log(): Argument #1 ($num) must be of type float, string given (0) #0 /var/www/vhosts/x/httpdocs/system/Helpers/Table/Db.php(118): log() #1 /var/www/vhosts/x/httpdocs/system/Helpers/Table/Table.php(504): IPS\Helpers\Table\_Db->getRows() #2 /var/www/vhosts/x/httpdocs/applications/core/modules/admin/settings/advanced.php(879): IPS\Helpers\Table\_Table->__toString() #3 /var/www/vhosts/x/httpdocs/system/Dispatcher/Controller.php(107): IPS\core\modules\admin\settings\_advanced->taskLogs() #4 /var/www/vhosts/x/httpdocs/applications/core/modules/admin/settings/advanced.php(38): IPS\Dispatcher\_Controller->execute() #5 /var/www/vhosts/x/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\settings\_advanced->execute() #6 /var/www/vhosts/x/httpdocs/admin/index.php(13): IPS\_Dispatcher->run() #7 {main} Would the above cause the following errors? I created a new thread in the X section, I clicked submit and I got the following message; I then went back into the forum to find the post had been submitted. This has also happened when sending a PM. The same PM was sent 6 times. Thanks for your support. When trying to run any of the tasks manually I get the following: Quote 2C124/2 2C124/2 The task is already running and cannot be ran until it has finished or the lock is removed.
Miss_B Posted Monday at 10:27 AM Posted Monday at 10:27 AM (edited) 10 minutes ago, Dean Hamer said: I created a new thread in the X section, I clicked submit and I got the following message; The above quoted error is almost always server related and too general. Meaning it doesn't tell us much. Can you check either the System Logsat your Admin Panel, or better yet the Server Error log page and post here the most recent messages logged in there? What versions are your forum and php at? Edited Monday at 10:28 AM by Miss_B
Deanuk Posted Monday at 10:41 AM Author Posted Monday at 10:41 AM 13 minutes ago, Miss_B said: The above quoted error is almost always server related and too general. Meaning it doesn't tell us much. Can you check either the System Logsat your Admin Panel, or better yet the Server Error log page and post here the most recent messages logged in there? What versions are your forum and php at? I've not had chance to check the logs in detail but a quick glance does not show anything yet, I will take a further look at lunch. Invision Community v4.7.19 PHP Version 8.1.31 I think there may be some tweeks I need to make to our PHP configuration:
Marc Posted Monday at 12:11 PM Posted Monday at 12:11 PM Knowing the actual errors in your server error log would be the first place you would start here. Without those, we would simply be guessing.
Deanuk Posted Monday at 01:04 PM Author Posted Monday at 01:04 PM Looking at the logs, I am getting the following errors and warnings: They all seem to be of the following codes: Apache SSL/TLS access: 500 GET /forums/topic/6845-elections-for-the-board/page/15/?csrfKey=96d47f678928082ba449018fd9102052 HTTP/1.0 -------------------------- Apache SSL/TLS access: 403 GET /forums/topic/6845-elections-for-the-board/? HTTP/1.0 -------------------------- Apache SSL/TLS access: 404 GET /home/bury-fc-news/match-info-maghull-h-sat-24th-aug-300pm-ko-r936/maghull.png HTTP/1.0 ------------------------- In terms of warnings I am getting the following main errors: Apache error (32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://site.co.uk/forums/ mod_fcgid: read data timeout in 45 seconds, referer: https://site.co.uk/forums/topic/6526-squad-as-it-stands-🤷🏻♂️/page/28/ (110)Connection timed out: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://www.google.com/url?q=https://site.co.uk/forums/&sa=U&sqi=2&ved=2ahUKEwiamsDX1vKKAxWUVUEAHTnREtcQ0gIoAHoECCAQAQ&zccpm=epi&usg=AOvVaw1RWFciK6pxILeX5H0DotgJ
Miss_B Posted Monday at 01:11 PM Posted Monday at 01:11 PM 1 minute ago, Dean Hamer said: Apache SSL/TLS access: 403 This error means that users are prevented from accessing the topic mentioned with the error. This could be caused by various reasons, such as a permission error in the webroot directory or misconfigured / missing directives in the Apache configuration files. The above error, and the rest of the errors, they all seem to be server related and have nothing to do with Ipb imo.
Jim M Posted Monday at 01:37 PM Posted Monday at 01:37 PM 32 minutes ago, Dean Hamer said: Apache SSL/TLS access: 500 GET /forums/topic/6845-elections-for-the-board/page/15/?csrfKey=96d47f678928082ba449018fd9102052 HTTP/1.0 -------------------------- Apache SSL/TLS access: 403 GET /forums/topic/6845-elections-for-the-board/? HTTP/1.0 -------------------------- Apache SSL/TLS access: 404 GET /home/bury-fc-news/match-info-maghull-h-sat-24th-aug-300pm-ko-r936/maghull.png HTTP/1.0 This would be from the access log, not the error log. The error log is what is needed here.
Deanuk Posted Monday at 01:43 PM Author Posted Monday at 01:43 PM (edited) @Jim M @Marc and @Miss_B Ok, I think I have the right file? error log.txt Edited Monday at 01:46 PM by Dean Hamer
Marc Posted Monday at 03:27 PM Posted Monday at 03:27 PM You would need to contact your hosting company on this, as the issues you are getting are related to your server setup, rather than the software Seeing this a lot: ap_pass_brigade failed in handle_request_ipc function and data read timeouts. Deanuk 1
Deanuk Posted Monday at 03:35 PM Author Posted Monday at 03:35 PM 6 minutes ago, Marc said: You would need to contact your hosting company on this, as the issues you are getting are related to your server setup, rather than the software Seeing this a lot: ap_pass_brigade failed in handle_request_ipc function and data read timeouts. Thanks, I will. IS this something that is Invision related?
Marc Posted Monday at 03:53 PM Posted Monday at 03:53 PM If you click on "Run now" are these running through?
Deanuk Posted Monday at 03:53 PM Author Posted Monday at 03:53 PM Just now, Marc said: If you click on "Run now" are these running through? This error comes up: 2C124/2 The task is already running and cannot be ran until it has finished or the lock is removed.
Jim M Posted Monday at 04:43 PM Posted Monday at 04:43 PM 49 minutes ago, Dean Hamer said: This error comes up: 2C124/2 The task is already running and cannot be ran until it has finished or the lock is removed. You can go to ACP -> System -> Advanced Configuration -> View Tasks -> find the task mentioned and click "Unlock" (padlock unlocking looking icon)
Deanuk Posted Tuesday at 09:13 PM Author Posted Tuesday at 09:13 PM After a bit of digging, I found the issue. I wanted to post here in case anyone else has the issue and needs the solution. My VPS was brand new and needed the default PHP settings adjusted to give the Invision forum the power it needed to run so I set the following: I found that FastCGI was the issue, I looked for best practices on what needed to be run for FastCGI and found the following script: Quote ## BEGIN - FCGI Baseline Configuration Template <IfModule mod_fcgid.c> ## Set buffers to 1G to ensure buffered sites are loaded fully. ## Increase if page output may be larger than 1G. FcgidOutputBufferSize 1073741824 ## Match to FcgidOutputBufferSize (ensures large volume input works) FcgidMaxRequestLen 1073741824 ## Disable process termination based on number of requests ## (rely on lifetime for termination not request count) ## Protects against the FCGI random 500 ISE caveat. FcgidMaxRequestsPerProcess 0 FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 0 FcgidInitialEnv PHP_FCGI_CHILDREN 0 ## Total allowed active PHP Processes server-wide ## Calculated by: SystemAvailableMemory/PHP memory_limit FcgidMaxProcesses 100 ## Total allowed active PHP Processes per user ## Dedicated Servers should Match FcgidMaxProcesses ## Shared Servers use a fraction of FcgidMaxProcesses FcgidMaxProcessesPerClass 50 ## Should Match PHP: cgi.fix_pathinfo (which defaults to 1) FcgidFixPathinfo 1 ## How long to wait for I/O processes to complete ## Match Apache: Timeout FcgidIOTimeout 30 ## How long to wait for an active PHP process to finish before forced recycle. ## Should Match PHP: max_execution_time FcgidBusyTimeout 300 ## Kill off idle PHP processes ## Max lifespan of idle process is: FcgidIdleTimeout + FcgidIdleScanInterval FcgidIdleTimeout 60 FcgidIdleScanInterval 60 ## How long an active PHP processes lives before forced recycle. ## Lower this if PHP memory leaks become a problem FcgidProcessLifeTime 3600 ## Prevents idle PHP processes from lingering FcgidMinProcessesPerClass 0 </IfModule> ## FINISH - FCGI Baseline Configuration Template Luckily my server is powerful what I need and my forum is the only one on the server, specs are as follows: 8 Core CPU 16Gb RAM 1TB NvMe SSD Plesk Control Panel Hope this helps someone else in the future. Miss_B and media 2
Miss_B Posted Wednesday at 10:02 AM Posted Wednesday at 10:02 AM 12 hours ago, Deanuk said: I found the issue. I wanted to post here in case anyone else has the issue and needs the solution. Also glad to see that you got the issue solved and thank you for posting the solution as it will help other users who might run into the same issue. Deanuk 1
Recommended Posts