1
powadha
Connection problem?
  • 2006/7/29 19:04

  • powadha

  • Just popping in

  • Posts: 41

  • Since: 2005/2/27


A member of my website reports the following error:

I have just run the command...
date wget [url=http://www.ninan.org/modules/newbb/viewforum.php]http://www.ninan.org/modules/newbb/viewforum.php[/url]

and the results are
Sat Jul 29 13:16:25 BST 2006
--13:16:25--  [url=http://www.ninan.org/modules/newbb/viewforum.php]http://www.ninan.org/modules/newbb/viewforum.php[/url]
           
=> `viewforum.php'
Resolving [url=http://www.ninan.org...]www.ninan.org...[/url] 82.168.251.8
Connecting to [url=http://www.ninan.org]www.ninan.org[/url][82.168.251.8]:80... connected.
HTTP request sent, awaiting response...
13:18:25 ERROR -1: No data received.




When I run the same command:

date wget [url=http://www.ninan.org/modules/newbb/viewforum.php]http://www.ninan.org/modules/newbb/viewforum.php[/url]
Sat Jul 29 14:34:38 CEST 2006
--14:34:38--  [url=http://www.ninan.org/modules/newbb/viewforum.php]http://www.ninan.org/modules/newbb/viewforum.php[/url]
           
=> `viewforum.php'
Resolving [url=http://www.ninan.org...]www.ninan.org...[/url] 82.168.251.8
Connecting to [url=http://www.ninan.org]www.ninan.org[/url]|82.168.251.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Lengte: 1,584 (1.5K) [text/html]

100%[====================================>] 1,584         --.--K/s

14:34:38 (36.84 MB/s) - 'viewforum.php' saved [1584/1584]




What could be the reason for this error? I connect from home to a self hosted server so even using the ip would probably result in a local connection. Can this be fixed?

Regards

2
powadha
Re: Connection problem?
  • 2006/7/31 9:43

  • powadha

  • Just popping in

  • Posts: 41

  • Since: 2005/2/27


Besides this problem, CBB crashes apache when a member of the site submits some code between the code tags. The code is a script (can't paste is here, the server is down atm).
These are major problems, anyone any clues?

3
phppp
Re: Connection problem?
  • 2006/7/31 10:10

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


must be caused by preg_replace in xoopscode decode function

Try to find out the script, otherwise we can not do more

4
powadha
Re: Connection problem?
  • 2006/7/31 15:55

  • powadha

  • Just popping in

  • Posts: 41

  • Since: 2005/2/27


The script posted was (btw not XOOPS related)

#!/bin/bash

#enter the location that ninan is installed in
export NINANDIR=/path/to/ninan-install-folder

#Use this to specify the java command 
#export JAVABIN="/usr/lib/java/bin/java"
export JAVABIN="java"

#this is a breakdown of the ninan command - the java options and the command itself
#export JAVAOPT="-Xms128m -Xmx256m"
export JAVAOPT="-Xmx128m" 

#one day, i'll figur out a way of generating this bit
export NINANCMD="-Djava.awt.headless=true -classpath
./lib/ninan.jar:./lib/mysql-connector-java-3.0.14-production-bin.jar:./lib/hsqldb.jar:./lib/log4j.jar:./lib/commons-lang.jar:./lib/commons-net.jar:./lib/org.mortbay.jetty.jar:./lib/jasper-compiler.jar:./lib/jasper-runtime.jar:./lib/javax.servlet.jar:./lib/ant.jar:./lib/commons-logging.jar:./lib/commons-httpclient-2.0-rc3.jar:./lib/saxpath.jar:./lib/dom4j-1.6.jar:./lib/jaxen-full.jar:./lib/spring-core-1.2.6.jar:./lib/spring-1.2.6.jar:./config:.
dk.team.ninan.core.NinanMain"


if [ `whoami` == root ]
then
   
echo "Ninan should NOT run as root!"
   
exit -1
fi

case "$1" in

  stop
)
    
kill `cat /var/run/ninand.pid`
    echo 
Killing Process `ps -ef | grep ninan | awk '{print $2}'`
    
kill `ps -ef | grep ninan | awk '{print $2}'`
  ;;

  
start)
    /
bin/bash -'
    /bin/echo $$ > /var/run/ninand.pid ; 
    cd $NINANDIR ; 
    touch $NINANDIR/restart ; 
    while test -f $NINANDIR/restart ; 
     do rm $NINANDIR/restart ; 
     nohup $JAVABIN $JAVAOPT $NINANCMD ; 
    done' 
>/dev/null 2>/dev/null &
  ;;

  
restart)
    $
0 stop
    sleep 2
    
$0 start
  
;;

  
startl)
    $
0 start 
    sleep 2
    
$0 log
  
;;

  
log)
    
tail -f $NINANDIR/log4j.txt
  
;;

  *)
    echo 
"Usage: $0 {start|stop|log|startl}" >&2
    
exit 1
  
;;

esac


So as a user this code can't be posted..The server didn't crash btw. I was just unable to connect anymore from the location (work) at home it turned out that the server was still running. Really weird....

5
Herko
Re: Connection problem?
  • 2006/8/2 9:32

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Oddly enough, this code can't be posted on the xoops.nl forums either. That's running X2.0.13.2+cbb 3.0.2. Results in error:

Forbidden

You don't have permission to access /modules/newbb/post.php on this server.

Herko

6
incama
Re: Connection problem?
  • 2006/8/2 10:08

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


Tested the code on newbbex 1.26 on XOOPS 2.0.14, doesn't seem to be a problem.
Webdesign
Sitting Ducks?!
I hate politics, give me a stylie instead...

7
phppp
Re: Connection problem?
  • 2006/8/2 10:15

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Herko, did you post with admin account or regular member account?

8
Herko
Re: Connection problem?
  • 2006/8/2 10:32

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Quote:

phppp wrote:
Herko, did you post with admin account or regular member account?
Admin account.

Herko

Login

Who's Online

203 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits