joshua655 / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Periodic 403 Forbidden #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
========
What steps will reproduce the problem?
1. set up apache with mod v8cgi
2. create index.sjs
3. refresh the browser multiple times.. after few refresh, forbidden page
come..

========
What is the expected output? 
it must show constantly: 
1: undefined
a: undefined
b: undefined
{}[object Object]

========
What do you see instead?
Forbidden
You don't have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch
proxy_html/3.0.1 mod_v8cgi mod_perl/2.0.4 Perl/v5.10.0 Server at localhost
Port 80

========
What version of the product are you using? 
#cat ~/Repository/v8cgi/download.sh
#wget --continue
http://launchpadlibrarian.net/26305244/libicu40_4.0.1-2_amd64.deb
#wget --continue
http://launchpadlibrarian.net/26305246/libicu-dev_4.0.1-2_amd64.deb
#wget --continue
http://launchpadlibrarian.net/30735190/libxerces-c3.0_3.0.1-2_amd64.deb
#wget --continue
http://launchpadlibrarian.net/30735191/libxerces-c-dev_3.0.1-2_amd64.deb
#sudo dpkg -i libicu40_4.0.1-2_amd64.deb
#sudo dpkg -i libicu-dev_4.0.1-2_amd64.deb
#sudo dpkg -i libxerces-c3.0_3.0.1-2_amd64.deb
#sudo dpkg -i libxerces-c-dev_3.0.1-2_amd64.deb
svn checkout http://v8cgi.googlecode.com/svn/trunk/ .
scons reuse_context=1 mysql=1 pgsql=1 sqlite=1 fcgi=1 gd=1 dom=1 module=1
arch=x64
ifile=/etc/v8cgi.conf
sudo cp v8cgi.conf.posix $ifile
param='s/\/usr\/lib\/v8cgi/\/home\/kyz\/Repository\/v8cgi\/lib/g'
sudo sed -i "$param" $ifile
/usr/lib/v8cgi
ifile='/home/kyz/Repository/v8cgi/v8cgi'
ofile='/usr/lib/v8cgi'
sudo rm $ofile
sudo ln -s $ifile $ofile
ofile='/usr/local/bin/v8cgi'
sudo rm $ofile
sudo ln -s $ifile $ofile
ifile='/etc/apache2/mods-available/v8cgi.load'
sudo touch $ifile
sudo chmod 777 $ifile
sudo echo 'LoadModule v8cgi_module /home/kyz/Repository/v8cgi/mod_v8cgi.so'
> $ifile
sudo chmod 644 $ifile
ls -al $ifile
ifile='/etc/apache2/mods-available/v8cgi.conf'
sudo touch $ifile
sudo chmod 777 $ifile
sudo echo 'AddHandler v8cgi-script .sjs .ssjs .jst' > $ifile
sudo chmod 644 $ifile
ls -al $ifile
sudo /etc/init.d/apache2 restart

========
On what operating system?
Ubuntu amd64 9.04
browsers tested: chromium-browser (daily), mozilla-firefox (daily), opera 10

========
Please provide any additional information below.

Configuration of the mod_v8cgi:
#cat /etc/apache2/mods-available/v8cgi.conf
AddHandler v8cgi-script .sjs .ssjs .jst

Configuration of the apache2:
#cat /etc/apache2/sites-available/default
<VirtualHost *:80>
        ServerName jcode
        ServerAdmin kyz@localhost
        DocumentRoot /home/kyz/Projects
        ServerSignature Off
        <Directory /home/kyz/Projects >
                Options Indexes All Multiviews
                AllowOverride All
                Order deny,allow
                deny from all
                allow from 127.0.0.1
                DirectoryIndex index.sjs
        </Directory>
        ErrorLog /var/log/apache2/v8cgi_error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog /var/log/apache2/v8cgi_access.log combined
        ServerSignature On
</VirtualHost>

is it because i also install libv8-0 and libv8-dev?
#dpkg -l | grep v8
ii  libv8-0                                   
1.2.14~svn20090930r2986-0ubuntu1~ucd1~jaunty               V8 JavaScript Engine
ii  libv8-dev                                 
1.2.14~svn20090930r2986-0ubuntu1~ucd1~jaunty               Development
files for the V8 JavaScript Engine

build configuration of v8:
#cat ~/Repository/v8/download.sh
svn checkout http://v8.googlecode.com/svn/trunk/ .
scons mode=release library=shared snapshot=on arch=x64
# originally linked to libv8.so.0
sudo rm /usr/lib/libv8.so
sudo ln -s /home/kyz/Repository/v8/libv8.so /usr/lib/libv8.so

apache2 error log:
[Fri Oct 09 07:15:23 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/favicon.ico
[Fri Oct 09 07:15:23 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:15:23 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/favicon.ico
[Fri Oct 09 07:15:23 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/favicon.ico
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/favicon.ico
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] client denied by
server configuration: /home/kyz/Projects/
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] client denied by
server configuration: /home/kyz/Projects/favicon.ico
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] client denied by
server configuration: /home/kyz/Projects/
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] client denied by
server configuration: /home/kyz/Projects/favicon.ico
[Fri Oct 09 07:15:24 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error

index.sjs value:
#cat ~/Projects/index.sjs
var test = undefined;
var test = {
 a : test
, b : test
, 1 : test
};
//test = [ 1 , "test", 's4' ];
response.write(HTML.dump(test));
response.write(JSON.stringify(test));
response.write(test);
//try { include('./guestbook.sjs'); }
//catch (e) { response.write('<dialog
style="color:red;display:block">'+e+'</dialog>');
response.write(JSON.stringify(e)); HTML.dump(e); }

Original issue reported on code.google.com by chosenpe...@gmail.com on 9 Oct 2009 at 12:16

GoogleCodeExporter commented 9 years ago
Wow, strange, I will soon test this to see if I can reproduce...

Original comment by ondrej.zara on 13 Oct 2009 at 6:30

GoogleCodeExporter commented 9 years ago
I am unable to reproduce this. I use your script, latest SVN v8cgi (both
reuse_context=0 and reuse_context=1) and this setup:

LoadModule v8cgi_module /path/to/mod_v8cgi.so
AddHandler v8cgi-script .ssjs

Are you requesting the file directly? Can you try with curl/wget?

Original comment by ondrej.zara on 14 Oct 2009 at 12:14

GoogleCodeExporter commented 9 years ago
i guess, it's my apache's fault, because i got the same thing when i use 
php-cgi,
sorry.. please make this bug as invalid, i will try again using latest apache2 
^^ thanks

Original comment by chosenpe...@gmail.com on 15 Oct 2009 at 12:39

GoogleCodeExporter commented 9 years ago

Original comment by ondrej.zara on 15 Oct 2009 at 6:30