You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by ___cliff rayman___ <cl...@rayman.com> on 2005/09/07 02:41:07 UTC

Need to send "404 Not Found" instead of "ERR: 12 open error

We are receiving "ERR 12" open errors from Embperl instead of  "404 Not 
Found" errors.
 Is anyone having the same problem?  Does anyone know what is wrong with 
our configuration?

---------------------
Message in browser:

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request. 
Please contact the server administrator, webmaster@xulucorp.com and
inform them of the time the error occurred, and anything you might have
done that may have caused the error. 
[26419]ERR: 12: uv-index.html(1): File
/var/www/html/crowd-control/uv-index.html open error: No such file or
directory  
Embperl/2.0b11 Apache/2.0.50 (Fedora) [Tue Sep 6 10:21:06 2005]

-----------------------
error_log:

[Tue Sep 06 10:21:05 2005] [error] [26419]ERR:  12: uv-index.html(1):
File /var/www/html/crowd-control/uv-index.html open er
ror: No such file or directory

---------------------
Server specs :

Fedora Core release 1 (Yarrow)
perl, v5.8.3 built for i386-linux-thread-multi
mod_perl/1.99_12
Embperl 2.0b11
Apache/2.0.50

----------------------
httpd -V:

Server version: Apache/2.0.50
Server built:   Jul  1 2004 08:49:07
Server's Module Magic Number: 20020903:8
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


-----------------------
httpd.conf (relevant):

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
Include conf.d/*.conf
ErrorDocument 404 /missing.html
ErrorDocument 500 /missing.html
Alias /error/ "/var/www/error/"
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
<Directory /var/www/html/download>
    Options Indexes FollowSymLinks
    AllowOverride All
</Directory>
<Directory /var/www/html/wwm>
    Options Indexes FollowSymLinks
    AllowOverride All
</Directory>

------------------
perl.conf (relevant):

LoadModule perl_module modules/mod_perl.so
LoadModule  embperl_module
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Embperl/Embp
erl.so
PerlModule Embperl
PerlSetEnv EMBPERL_DEBUG 1
PerlSetEnv EMBPERL_MAIL_ERRORS_TO hostmaster
PerlSetEnv EMBPERL_MAIL_ERRORS_LIMIT 1
PerlSetEnv EMBPERL_MAIL_ERRORS_RESET_TIME 600
PerlSetEnv EMBPERL_OPTIONS 8208
PerlSetEnv EMBPERL_COOKIE_NAME XDCUID
PerlSetEnv EMBPERL_COOKIE_DOMAIN .xulucorp.com
PerlSetEnv EMBPERL_COOKIE_PATH /
PerlSetEnv EMBPERL_COOKIE_EXPIRES 'Friday, 31-Dec-2010 14:00:00 GMT'
PerlSetEnv EMBPERL_LOG /var/log/httpd/embperl_log
PerlSetEnv EMBPERL_SESSION_CLASSES "File File" PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/var/www/embperl_sessions LockDirectory=/var/www/embperl_locks"
AddType text/html .epl
<Directory /var/www/html>
  <FilesMatch ".*\.html?$">
    SetHandler perl-script
    PerlHandler Embperl
    Options ExecCGI
    PerlSetVar	cnfNetAddress		192.31.1.18
    PerlSetVar	cnfNetPort		841
    #PerlSetVar	cnfNetAddress		192.31.1.19
    #PerlSetVar	cnfNetPort		4241
    PerlSetVar	cnfRefererHistMax	15
    PerlSetVar	cnfLoginTime		20
  </FilesMatch>
</Directory>

--------------------

TIA,
Cliff

-- 
_____cliff_rayman_____________________________________
Business Consulting and Turnaround Management
[web] http://www.rayman.com/
[web] http://all-clear-turnaround-management.com/
[eml] cliff _at_ rayman.com
[phn] 888-736-3802 x701
[fax] 818-743-7404
______________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: Need to send "404 Not Found" instead of "ERR: 12 open error

Posted by Gerald Richter <ri...@ecos.de>.
Hi Cliff,

> 
> I finally got around to patching Embperl2.0rc1 and make test 
> returns the following:
> 
>... 
> #12 error.htm...              make: *** [test_dynamic] Segmentation
> fault
> 

I also found this error and it's already sovled in Embperl 2.0.1, which is
released yesterday

Gerald


 
** Virus checked by BB-5000 Mailfilter ** 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Need to send "404 Not Found" instead of "ERR: 12 open error

Posted by ___cliff rayman___ <cl...@rayman.com>.
Gerald Richter wrote:

>Hi,
>  
>
>>>We are receiving "ERR 12" open errors from Embperl instead of
>>> "404 Not Found" errors.
>>> Is anyone having the same problem?  Does anyone know what is wrong 
>>>with our configuration?
>>>
>>>      
>>>
>
>The attached patch should solve the problem
>  
>
Hi Gerald,

I finally got around to patching Embperl2.0rc1 and make test returns the 
following:

Testing offline mode...

#0 ascii...                   ok
#1 pure.htm...                ok
#2 nooutput.htm...            ok
#3 nooutput.htm...            ok
#4 plain.htm...               ok
#5 plain.htm...               ok
#6 plain.htm...               ok
#7 plainblock.htm...          ok
#8 plainblock.htm...          ok
#12 error.htm...              make: *** [test_dynamic] Segmentation
fault




>------------------------------------------------------------------------
>
>Index: embperl.h
>===================================================================
>RCS file: /home/cvs/embperl/embperl.h,v
>retrieving revision 1.36
>diff -r1.36 embperl.h
>98a99
>  
>
>>    rcTokenNotFound,  
>>    
>>
>Index: epio.c
>===================================================================
>RCS file: /home/cvs/embperl/epio.c,v
>retrieving revision 1.31
>diff -r1.31 epio.c
>603a604,607
>  
>
>>        if (errno == EACCES)
>>            return rcForbidden ;
>>        else if (errno == ENOENT)
>>            return rcNotFound ;
>>    
>>
>Index: epmain.c
>===================================================================
>RCS file: /home/cvs/embperl/epmain.c,v
>retrieving revision 1.141
>diff -r1.141 epmain.c
>749c750,751
>< static int GenerateErrorPage (/*i/o*/ register req * r)
>---
>  
>
>>static int GenerateErrorPage (/*i/o*/ register req * r,
>>               		      /*in*/  int    rc)
>>    
>>
>755a758,763
>  
>
>>#ifdef APACHE
>>	if (r -> pApacheReq && rc >= 400)
>>	    r -> pApacheReq -> status = rc ;
>>        else
>>            r -> pApacheReq -> status = 500 ;
>>#endif
>>    
>>
>804,807d811
>< #ifdef APACHE
>< 	if (r -> pApacheReq)
>< 	    r -> pApacheReq -> status = 500 ;
>< #endif
>1152c1156
><         GenerateErrorPage (r) ;
>---
>  
>
>>        GenerateErrorPage (r, rc) ;
>>    
>>
>Index: Embperl/App.pm
>===================================================================
>RCS file: /home/cvs/embperl/Embperl/App.pm,v
>retrieving revision 1.6
>diff -r1.6 App.pm
>83a84
>  
>
>>    my $status      = $req_rec?$req_rec -> status:0 ;
>>    
>>
>94c95,106
><     Embperl::Req::output ($r,"<H1>Internal Server Error</H1>\r\n") ;
>---
>  
>
>>    if ($status == 403)
>>        {
>>        Embperl::Req::output ($r,"<H1>Forbidden</H1>\r\n") ;
>>        }
>>    elsif ($status == 404)
>>        {
>>        Embperl::Req::output ($r,"<H1>Not Found</H1>\r\n") ;
>>        }
>>    else
>>        {
>>        Embperl::Req::output ($r,"<H1>Internal Server Error</H1>\r\n") ;
>>        }
>>    
>>
>
>
> 
>** Virus checked by BB-5000 Mailfilter ** 
>  
>

-- 
_____cliff_rayman_____________________________________
Business Consulting and Turnaround Management
[web] http://www.rayman.com/
[web] http://all-clear-turnaround-management.com/
[eml] cliff __at__ rayman.com
[phn] 888-736-3802 x701
[fax] 818-743-7404
______________________________________________________


RE: Need to send "404 Not Found" instead of "ERR: 12 open error

Posted by Gerald Richter <ri...@ecos.de>.
Hi,
> 
> > 
> > We are receiving "ERR 12" open errors from Embperl instead of
> >  "404 Not Found" errors.
> >  Is anyone having the same problem?  Does anyone know what is wrong 
> > with our configuration?
> > 
> 

The attached patch should solve the problem

Gerald


 
** Virus checked by BB-5000 Mailfilter ** 

RE: Need to send "404 Not Found" instead of "ERR: 12 open error

Posted by Gerald Richter <ri...@ecos.de>.
Hi,

> 
> We are receiving "ERR 12" open errors from Embperl instead of 
>  "404 Not Found" errors.
>  Is anyone having the same problem?  Does anyone know what is 
> wrong with our configuration?
> 

You are right. Should return a 404 instead of 500. I am going to fix it and
will get back to you as soon as this is done

Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org