Jump to content

Recommended Posts

Posted

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?

image.png.c4b20cf0ff7a430dbb749d63546c6fc7.png

 

I created a new thread in the X section, I clicked submit and I got the following message;

IMG_2551.png
 

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.

 

Posted (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;

IMG_2551.png

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 by Miss_B
Posted
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: 

image.thumb.png.7ff7132c248f9cad2175c57991f33c4e.png

Posted

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. 

Posted

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

Posted
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.

Posted
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.

Posted

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. 

Posted
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?

 

image.thumb.png.6df1238a659bf9e67147312dd12e8006.png

 

image.thumb.png.b7772a329415c6977d7e8f4a890552fb.png

Posted
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.

Posted
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)

Posted

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:

image.png

 

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.

Posted
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...