• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue issue uploading videos to site, Ubunto 16.04, Plesk 17

zoldos

Basic Pleskian
I'm testing out a networking script and want to upload a video. I've confirmed my ffmpeg installation and everything looks good. But even a small video uploads, but then won't process. I get this error in my server error_log:

Code:
[Sat Mar 23 00:12:43.801315 2019] [fcgid:warn] [pid 12671] (70008)Partial results are valid but processing is incomplete: [client xx.xx.xx.33:2222] mod_fcgid: can't get data from http client, referer: https://xxxx.net/gallery/new-videos?page=7

I'm assuming this is the related error. How do I fix this? Thanks!
 
Try to increase timeouts, e.g. in PHP and FastCGI settings, disable Apache reqtimeout module if enabled. For example in /etc/httpd/conf.d/fcgid.conf change the value of FcgidIOTimeout, then restart Apache.
 
Try to increase timeouts, e.g. in PHP and FastCGI settings, disable Apache reqtimeout module if enabled. For example in /etc/httpd/conf.d/fcgid.conf change the value of FcgidIOTimeout, then restart Apache.
Hmm....I didn't have that file on that path. I use vhosts. I did see this tho in another file here: /var/www/vhosts/system/mydomain.net/conf (httpd.conf) (but it said not to edit as it is created automatically):

Code:
<IfModule mod_fcgid.c>
            FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/mydomain.net/etc/php.ini
            FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX fastcgi
            FcgidMaxRequestLen 134217728
            FcgidIOTimeout 1500
        </IfModule>

And I have this in my Plesk Apache overrides:

Code:
<IfModule mod_fcgid.c>
    FcgidMaxRequestLen 4294967296
    FcgidMaxRequestsPerProcess 1250
    FcgidProcessLifeTime 14400
</IfModule>

Should I change something?
 
/etc/httpd/conf.d/fcgid.conf
maybe is
/etc/apache2/mods-enabled/fcgid.conf
in your system. The exact location and name depends on the operating system you are using.
 
Okay I found this: /etc/apache2/mods-enabled/fcgid.conf Inside is

Code:
# This is the Apache server configuration file for providing FastCGI support
# via mod_fcgid
#
# Documentation is available at http://fastcgi.coremail.cn/doc.htm


<IfModule mod_fcgid.c>

<IfModule !mod_fastcgi.c>
    AddHandler fcgid-script fcg fcgi fpl
</IfModule>

  FcgidIPCDir /var/lib/apache2/fcgid/sock
  FcgidProcessTableFile /var/lib/apache2/fcgid/shm

  FcgidIdleTimeout 40
  FcgidProcessLifeTime 30
  FcgidMaxProcesses 20
  FcgidMaxProcessesPerClass 8
  FcgidMinProcessesPerClass 0
  FcgidConnectTimeout 30
  FcgidIOTimeout 45
  FcgidInitialEnv RAILS_ENV production
  FcgidIdleScanInterval 10

</IfModule>

Can I edit this file directly? What should I change? Or should I change something in my Apache override statement?
 
You could try for example:
FcgidProcessLifeTime 360
FcgidIOTimeout 120

And maybe in general (not directly related to the issue):
FcgidMaxProcesses 200
FcgidMaxProcessesPerClass 30

To apply the new settings, please reload the webserver afterwards, for example

Test syntax
# apachectl -t
If good, reload
# service apache2 reload
 
It still didn't work. I'm beginning to think it's a script error, not my server config as I have another site on the same domain and I can upload videos up to like 250MB without issue...

Thanks for your time tho!
 
Back
Top