MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: azzureal on 2015-07-08, 01:20:10

Title: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: azzureal on 2015-07-08, 01:20:10
The account has many domains.
But only one domain got this error '(2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...'...

I ran fixphp , fixweb and restart-web -y

But the same.

How can i Solve it?

[root@tiger ~]# sh /script/sysinfo

A. Kloxo-MR: 7.0.0.b-2014122501

B. OS: CentOS release 6.6 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.40-2.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.29-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.9.0-f.3.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: --uninstalled--
   9. Qmail: qmail-toaster-1.03-1.3.45.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2015-07-08, 04:07:26
Update your Kloxo-MR with 'yum clean all; yum update -y; sh /script/cleanup'. Your Kloxo-MR is very old.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2018-08-16, 14:01:17
i have still the same problum no one helps here some are trying
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2018-08-16, 23:15:39
I had a similar FastCGI error. In Kloxo-MR panel - Webservice configure I selected fcgid_event for PHP-type in stead of php-fpm_event. Then  'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web -y'. No more error recorded in the error log in my case. You can try that to see if it helps.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2018-08-17, 00:12:10
Ref my last msg. Maybe not a good idea after all. As a result I got other problems with my websites, so I had to go back to php-fpm_type again, and the fastcgi errors are poping up again in the error log again. Sorry. But I belive the problem must be with mod_fastcgi.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2018-08-21, 22:28:38
how to fix mod_fastcgi ?
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2018-08-22, 13:47:06
Mod_fastCGI is just not somthing that can be fixed. It is old/depeciated, but have made life easier for many small sites for several years. Kloxo-MR use mod_fastcgi if you select php-fpm as php type in webserver configure. I have found it to be the best choise for my sites, and have to live with the error reports mentioned in the header. You can try out the other options like for example  proxy_fcgi_event, and the error reports will stop. It requires sethandlers to work, and I got several permission issues with it so i switched back to php-fpm. I am not at all an expert on these matters, but if anybody have experience with proxy_fcgi_event I would be glad to read how to configure this in Kloxo-MR.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: azzureal on 2018-09-02, 05:18:41
In my case, some outside banners had problems.

So I changed dns of resolved.conf.

Pleae try.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2018-09-04, 04:54:18
@azzureal
I tried your suggestion to edit /etc/resolv.conf with other nameserver IPs like my static VPS IP, 127.0.0.1 and 8.8.8.8 but observed no change to my domain error log, where the following error is recorded exactly every 5 minutes:
[Tue Sep 04 04:45:06 2018] [fastcgi:error] [pid 1135] [mod_fastcgi.c(2241):] [FastCGI: neither POLLIN nor POLLOUT...] [mydomain.com]
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: azzureal on 2018-09-08, 13:04:52
I changed  to 1.1.1.1 because it was blocked by adz of  my site.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2018-09-21, 13:21:05
mine still not working
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2018-12-19, 16:04:36
any help
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-04-21, 17:49:28
help me
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-04-22, 03:43:57
Try change httpd (apache) from 2.2 to 2.4 version.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2019-04-22, 13:04:49
I use apache 2.4 and have similar error logged on all domains when using php-fpm_event in webserver configure

Error comes at regular intervals and looks like this:
[Mon Apr 22 10:39:49 2019] [fastcgi:error] [pid 15499] [mod_fastcgi.c(2241):] [FastCGI: neither POLLIN nor POLLOUT...] [mydomain.com]

If I switch to proxy_fcgi_event in webserver configure then error goes away.
So I believe the problem is caused by mod_fastcgi which is in use when using php-fpm mode.

AJ
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-04-22, 13:47:46
Any issues for proxy_fcgi_event?.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2019-04-22, 21:36:30
I have 2 different VPS, both KVM-based, sysinfo is identical on both, and I have identical website on both.
When using proxy_fcgi_event one of the servers has no issues, but the other server have directory permission errors. On that server, if I set certain directory permissions to 777 there are no issues.

When I swithch both servers to php-fpm_event mode then domain error log shows [FastCGI: neither POLLIN nor POLLOUT...] [mydomain.com] at regular intervals on both servers.

With this error, do you thin that the response time will slow down significatly if there are many logged in to the domain at the same time ?
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-04-23, 17:34:04
This forum have cache directory issue if using proxy_fcgi. Need change ownership to apache:apache (better than permissions to 777).
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-04-24, 21:39:55
how to change ?
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-04-25, 10:14:26
USe 'file manager' in Kloxo-MR panel for cache directory (example: '/home/tester/domain.com/cache directory').
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-05-17, 21:22:36
cant find can you give exact location
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-05-18, 05:14:20
Update your Kloxo-MR and then try fastcgi_event and proxy_fcgid
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2019-05-18, 12:04:40
@nikobellicgamerin

If you use fastcgi_event or proxy_fcgid as PHP type in Webserver config then, as Mustafa have explained, you will most likely experience some file write issues, especially for files and directories used for various types of cache files. For example the cache directory located in the file sturcture below your domain root. This can be fixed as Mustafa has explained, by changing ownership to apache:apache for user and group for those directories & files concerned, by using the change ownership tool available in Kloxo-MR File Manager.   
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-05-18, 12:18:55
Update your Kloxo-MR and then try fastcgi_event and proxy_fcgid
Don't forget run 'sh /script/cleanup' after 'yum clean all; yum update -y'.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2019-05-19, 22:47:49
It seems that the  FastCGI: neither POLLIN nor POLLOUT... error when using  php-fpm_type for PHP has gone away after last update.  ;D
Excellent   ;D
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-05-20, 22:34:00
Update your Kloxo-MR and then try fastcgi_event and proxy_fcgid
Don't forget run 'sh /script/cleanup' after 'yum clean all; yum update -y'.

I have already on latest update itself 7.0.0.c-2017072303 still same issue.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: atljohnsen on 2019-05-20, 23:27:03
Latest update is: 7.0.0.c-2019051601

You have old version
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-05-22, 06:23:52
how to update now then
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-05-22, 06:27:30
Run 'yum clean all; yum update -y; sh /script/cleanup'.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-05-22, 07:27:02
Does yum clean all will delete all my website data and files ?
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-05-22, 07:34:22
No. It is just remove yum cache.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-05-22, 11:44:49
i am getting this error when i try to update

http://repo.varnish-cache.org/redhat/varnish-3.0/el6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'repo.varnish-cache.org'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mratwork-varnish-3.0. Please verify its path and try again
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-05-22, 12:30:04
Try 'yum update mratwork-release -y' first.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-05-22, 12:36:39
Try 'yum update mratwork-release -y' first.

still this error

http://repo.varnish-cache.org/redhat/varnish-3.0/el6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'repo.varnish-cache.org'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mratwork-varnish-3.0. Please verify its path and try again
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-05-22, 12:46:24
Try 'yum update mratwork-* --disablerepo=mratwork-varnish -y' first.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-05-22, 17:22:27
Try 'yum update mratwork-* --disablerepo=mratwork-varnish -y' first.

Error Again

 yum update mratwork-* --disablerepo=mratwork-varnish -y
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace


Error getting repository data for mratwork-varnish, repository not found
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-05-22, 17:38:24
Ok, give me your ssh login. Send to my mustafa@bigraf.com.
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: nikobellicgamerin on 2019-05-24, 18:47:10
Ok, give me your ssh login. Send to my mustafa@bigraf.com.

this server is not mine i use ssh key to login and its bound to my static ip .
Title: Re: (2)No such file or directory: FastCGI: neither POLLIN nor POLLOUT...
Post by: MRatWork on 2019-05-24, 18:56:44
Login to Kloxo-MR panel is enough.