Bugzilla : Error log : [cgid:error] script not found or unable to stat: /usr/lib/cgi-bin/mainfunction.cgi

Hi All,

 I am Facing the below issue, I couldn't find any fixes in searches.
Please help me.
[cgid:error] [pid 9388:tid 140064252229376] [client 511.32.86.98:46346] AH01264: script not found or unable to stat: /usr/lib/cgi-bin/mainfunction.cgi

Bug: 5.0.6.
Ubuntu : 18.4 
--
Regards 
chandru S

0
chandruzdba
5/15/2020 7:20:59 AM
mozilla.support.bugzilla 10133 articles. 0 followers. Post Follow

8 Replies
12 Views

Similar Articles

[PageSpeed] 10

Guten Tag chandruzdba@gmail.com,
am Freitag, 15. Mai 2020 um 09:20 schrieben Sie:

> [cgid:error] [pid 9388:tid 140064252229376] [client
> 511.32.86.98:46346] AH01264: script not found or unable to stat: /usr/lib=
/cgi-bin/mainfunction.cgi

That file is NOT part of Bugzilla and Bugzilla is NOT even designed to
be placed in "cgi-bin".

https://bugzilla.readthedocs.io/en/5.0/installing/linux.html#bugzilla

Mit freundlichen Gr=FC=DFen,

Thorsten Sch=F6ning

--=20
Thorsten Sch=F6ning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Gesch=E4ftsf=FChrer: Andreas Muchow

0
windows
5/15/2020 8:34:05 AM
* chandruzdba@gmail.com [15/05/2020 00:20] :
>
>  I am Facing the below issue, I couldn't find any fixes in searches.
> Please help me.
> [cgid:error] [pid 9388:tid 140064252229376] [client 511.32.86.98:46346] AH01264: script not found or unable to stat: /usr/lib/cgi-bin/mainfunction.cgi

Hello, Chandru.

Bugzilla 5.0.6 does not contain a mainfunction.cgi and no files contain
the term 'mainfunction'. Has your bugzilla instance been modified locally?

Emmanuel
0
Emmanuel
5/15/2020 9:06:06 AM
On Friday, May 15, 2020 at 2:36:22 PM UTC+5:30, Emmanuel Seyman wrote:
> * chandruzdba@gmail.com [15/05/2020 00:20] :
> >
> >  I am Facing the below issue, I couldn't find any fixes in searches.
> > Please help me.
> > [cgid:error] [pid 9388:tid 140064252229376] [client 511.32.86.98:46346] AH01264: script not found or unable to stat: /usr/lib/cgi-bin/mainfunction.cgi
> 
> Hello, Chandru.
> 
> Bugzilla 5.0.6 does not contain a mainfunction.cgi and no files contain
> the term 'mainfunction'. Has your bugzilla instance been modified locally?
> 
> Emmanuel

Hi Emmanuel,

No i followed the steps as per in the bugzilla documents, I get this error rarely.
[cgid:error] [pid 9388:tid 140064252229376] [client 5.32.86.98:46346] AH01264: script not found or unable to stat: /usr/lib/cgi-bin/mainfunction.cgi 

As you mentioned i too checked everywhere and but no clue on this.
its not related to bugzilla, but i don't need to see error in error log.

--
Thanks,
Chandru S

 
0
Chandru
5/15/2020 10:49:50 AM
Guten Tag Chandru Subramani,
am Freitag, 15. Mai 2020 um 12:49 schrieben Sie:

> As you mentioned i too checked everywhere and but no clue on this.
> its not related to bugzilla, but i don't need to see error in error log.

If you know it's not related to Bugzilla, it's very unlikely anyone on
this list is able to help you with this. The error could be triggered
by anything.

Mit freundlichen Gr=FC=DFen,

Thorsten Sch=F6ning

--=20
Thorsten Sch=F6ning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Gesch=E4ftsf=FChrer: Andreas Muchow

0
windows
5/15/2020 12:19:39 PM
On Friday, May 15, 2020 at 5:50:00 PM UTC+5:30, Thorsten Sch=C3=B6ning wrot=
e:
> Guten Tag Chandru Subramani,
> am Freitag, 15. Mai 2020 um 12:49 schrieben Sie:
>=20
> > As you mentioned i too checked everywhere and but no clue on this.
> > its not related to bugzilla, but i don't need to see error in error log=
..
>=20
> If you know it's not related to Bugzilla, it's very unlikely anyone on
> this list is able to help you with this. The error could be triggered
> by anything.
>=20
> Mit freundlichen Gr=C3=BC=C3=9Fen,
>=20
> Thorsten Sch=C3=B6ning
>=20
> --=20
> Thorsten Sch=C3=B6ning       E-Mail: Thorsten.Schoening@AM-SoFT.de
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>=20
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>=20
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Gesch=C3=A4ftsf=C3=BChrer: Andreas Muchow

Hi Thorsten,

Thanks for helping out.

--
Regards
Chandru S
0
Chandru
5/15/2020 12:51:04 PM
On Friday, May 15, 2020 at 6:21:06 PM UTC+5:30, Chandru Subramani wrote:
> On Friday, May 15, 2020 at 5:50:00 PM UTC+5:30, Thorsten Sch=C3=B6ning wr=
ote:
> > Guten Tag Chandru Subramani,
> > am Freitag, 15. Mai 2020 um 12:49 schrieben Sie:
> >=20
> > > As you mentioned i too checked everywhere and but no clue on this.
> > > its not related to bugzilla, but i don't need to see error in error l=
og.
> >=20
> > If you know it's not related to Bugzilla, it's very unlikely anyone on
> > this list is able to help you with this. The error could be triggered
> > by anything.
> >=20
> > Mit freundlichen Gr=C3=BC=C3=9Fen,
> >=20
> > Thorsten Sch=C3=B6ning
> >=20
> > --=20
> > Thorsten Sch=C3=B6ning       E-Mail: Thorsten.Schoening@AM-SoFT.de
> > AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
> >=20
> > Telefon...........05151-  9468- 55
> > Fax...............05151-  9468- 88
> > Mobil..............0178-8 9468- 04
> >=20
> > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> > AG Hannover HRB 207 694 - Gesch=C3=A4ftsf=C3=BChrer: Andreas Muchow
>=20
> Hi Thorsten,
>=20
> Thanks for helping out.
>=20
> --
> Regards
> Chandru S

Hi All,

Still i am seeing this error in my error log.

[Sun May 17 09:03:07.496040 2020] [cgid:error] [pid 29173:tid 1398267203233=
28] [client 70.3213.205.2343:59343] AH01264: script not found or unable to =
stat: /usr/lib/cgi-bin/mainfunction.cgi

If anybody who faces this issue please help me to fix this ?
Thanks,
Chandru S

0
Chandru
5/18/2020 7:01:07 AM
On Monday, May 18, 2020 at 12:31:09 PM UTC+5:30, Chandru Subramani wrote:
> On Friday, May 15, 2020 at 6:21:06 PM UTC+5:30, Chandru Subramani wrote:
> > On Friday, May 15, 2020 at 5:50:00 PM UTC+5:30, Thorsten Sch=C3=B6ning =
wrote:
> > > Guten Tag Chandru Subramani,
> > > am Freitag, 15. Mai 2020 um 12:49 schrieben Sie:
> > >=20
> > > > As you mentioned i too checked everywhere and but no clue on this.
> > > > its not related to bugzilla, but i don't need to see error in error=
 log.
> > >=20
> > > If you know it's not related to Bugzilla, it's very unlikely anyone o=
n
> > > this list is able to help you with this. The error could be triggered
> > > by anything.
> > >=20
> > > Mit freundlichen Gr=C3=BC=C3=9Fen,
> > >=20
> > > Thorsten Sch=C3=B6ning
> > >=20
> > > --=20
> > > Thorsten Sch=C3=B6ning       E-Mail: Thorsten.Schoening@AM-SoFT.de
> > > AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
> > >=20
> > > Telefon...........05151-  9468- 55
> > > Fax...............05151-  9468- 88
> > > Mobil..............0178-8 9468- 04
> > >=20
> > > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> > > AG Hannover HRB 207 694 - Gesch=C3=A4ftsf=C3=BChrer: Andreas Muchow
> >=20
> > Hi Thorsten,
> >=20
> > Thanks for helping out.
> >=20
> > --
> > Regards
> > Chandru S
>=20
> Hi All,
>=20
> Still i am seeing this error in my error log.
>=20
> [Sun May 17 09:03:07.496040 2020] [cgid:error] [pid 29173:tid 13982672032=
3328] [client 70.3213.205.2343:59343] AH01264: script not found or unable t=
o stat: /usr/lib/cgi-bin/mainfunction.cgi
>=20
> If anybody who faces this issue please help me to fix this ?
> Thanks,
> Chandru S

Hi Thorson,

I am facing another errors in error log, can we ignore the below error or w=
ill its dependent for the bugzilla ?
Need your suggestion ?

[cgid:error] [pid 7900:tid 139996455491328] [client 262.12.81.84:34204] AH0=
1264: script not found or unable to stat: /usr/lib/cgi-bin/mainfunction.cgi
[cgid:error] [pid 7898:tid 139996346386176] [client 249.235.73.5:17003] AH0=
1264: script not found or unable to stat: /usr/lib/cgi-bin/php
[cgid:error] [pid 7898:tid 139996337993472] [client 249.235.73.5:17003] AH0=
1264: script not found or unable to stat: /usr/lib/cgi-bin/php5
[cgid:error] [pid 7898:tid 139996329600768] [client 249.235.73.5:17003] AH0=
1264: script not found or unable to stat: /usr/lib/cgi-bin/php-cgi
[cgid:error] [pid 7898:tid 139996321208064] [client 249.235.73.5:17003] AH0=
1264: script not found or unable to stat: /usr/lib/cgi-bin/php.cgi
[cgid:error] [pid 7898:tid 139996312815360] [client 249.235.73.5:17003] AH0=
1264: script not found or unable to stat: /usr/lib/cgi-bin/php4
[authz_core:error] [pid 7900:tid 139996571444992] [client 249.235.73.5:1361=
6] AH01630: client denied by server configuration: /var/www/html/bugzilla/l=
ib/phpunit
[authz_core:error] [pid 7900:tid 139996563052288] [client 249.235.73.5:1361=
6] AH01630: client denied by server configuration: /var/www/html/bugzilla/l=
ib/phpunit
[authz_core:error] [pid 7900:tid 139996554659584] [client 249.235.73.5:1361=
6] AH01630: client denied by server configuration: /var/www/html/bugzilla/l=
ib/phpunit
[authz_core:error] [pid 7900:tid 139996472276736] [client 249.235.73.5:1361=
6] AH01630: client denied by server configuration: /var/www/html/bugzilla/l=
ib/phpunit
[authz_core:error] [pid 7898:tid 139996396742400] [client 249.235.73.5:2056=
6] AH01630: client denied by server configuration: /var/www/html/bugzilla/d=
ata/admin

-
Regards
Chandru S
0
Chandru
5/19/2020 11:16:11 AM
Guten Tag Chandru Subramani,
am Dienstag, 19. Mai 2020 um 13:16 schrieben Sie:

> I am facing another errors in error log, can we ignore the below
> error or will its dependent for the bugzilla ?
> Need your suggestion ?

I hope you won't ask questions like these for each and every error you
see in your logs. Because in the end it's up to you to decide if those
errors are a problem for your concrete setup or not, because only you
know what you are actually doing and why. :-)

Nevertheless, some hints: Look at the requested file names, which
contain the term "php". You still know what you read as system
requirement for Bugzilla, do you? Perl. Do you still know where you
installed Bugzilla? NOT "/usr/lib/cgi-bin", because that wouldn't work
and is explicitly warned about in the docs.

So it seems that there's something scanning publicly available parts
of your web server for some unknown reason. Those reasons can be bad,
can be legit, everything depends on what you are hosting to whom why
and how. Only you can know.

Additionally you should take more care of the concrete error messages
you get: "script not found or unable to stat" means that whatever
whoever wanted to do couldn't be done because the requested file was
not available. That's a good thing if whoever does something is a bad
guy. That's a bad thing if you have customers paying letting those
requests succeed. Nothing of that has anything to do with Bugzilla,
though.

"client denied by server configuration" means that the web server
didn't even care to check if some file is available or not and simply
denied everything. Which makes sense, because Bugzilla doesn't contain
any PHP-files by default and therefore the default config only
executes Perl-files in special directories with special file
extensions.

So, if those error messages are correct or not is again something only
you can decide: If you didn't customize Bugzilla to contain PHP for
some reason, it's a good thing that requests have been denied. If
customers pay you to host PHP within your Bugzilla for some reason,
those errors are a bad thing, because things don't work.

So as often, it depends, but it's somewhat likely that those errors
are a good thing in your case.

Mit freundlichen Gr=C3=BC=C3=9Fen,

Thorsten Sch=C3=B6ning

--=20
Thorsten Sch=C3=B6ning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Gesch=C3=A4ftsf=C3=BChrer: Andreas Muchow

0
utf
5/19/2020 12:33:05 PM
Reply: