Apache Directory Project - Strange problem starting apacheds in normal mode

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > March 2007 > Strange problem starting apacheds in normal mode





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Strange problem starting apacheds in normal mode
tux-07

2007-03-29, 1:11 pm

Hello guys,

I do not know what I am missing but I am having a problem connecting
to apache DS on Linux when I run the normal command:
/etc/init.d/apacheds start
if I put it in the debug mode with:
/etc/init.d/apacheds debug
I can connect with no problems what am I missing?

A check on TCP connections etc. produces this output:
[root@localhost ~]# date
Thu Mar 29 12:02:25 EDT 2007
[root@localhost ~]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 *:sunrpc *:*
LISTEN
tcp 0 0 *:x11 *:*
LISTEN
tcp 0 0 *:57010 *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
tcp 0 0 *:7741 *:*
LISTEN
tcp 0 0 *:40287 *:*
LISTEN
tcp 0 0 *:x11 *:*
LISTEN
tcp 0 0 ::1:59893 *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
udp 0 0 *:32768 *:*
udp 0 0 *:32770 *:*
udp 0 0 *:778 *:*
udp 0 0 localhost:32783 *:*
udp 0 0 *:32784 *:*
udp 0 0 *:7741 *:*
udp 0 0 *:bootpc *:*
udp 0 0 *:40287 *:*
udp 0 0 *:5353 *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
udp 0 0 *:32769 *:*
raw 520 0 *:icmp *:* 7
Active UNIX domain sockets (only servers)
<trimmed-irrelevant>
Proto Recv-Q Send-Q Local Address Foreign Address State
[root@localhost ~]# /etc/init.d/apacheds start
JAVA_HOME=/usr/lib/jre-1_5_0_08
APACHEDS_HOME=/home/gs/Programs/apacheds-1.0.1
CLASSPATH=:/usr/lib/jre-1_5_0_08/lib/tools.jar:/home/gs/Programs/apacheds-1.0.1/bin/bootstrapper.jar:/home/gs/Programs/apacheds-1.0.1/bin/logger.jar:/home/gs/Programs/apacheds-1.0.1/bi
n/daemon.jar
Starting apacheds server: successful apacheds server startup

[root@localhost ~]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 *:sunrpc *:*
LISTEN
tcp 0 0 *:x11 *:*
LISTEN
tcp 0 0 *:57010 *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
tcp 0 0 *:7741 *:*
LISTEN
tcp 0 0 *:40287 *:*
LISTEN
tcp 0 0 *:x11 *:*
LISTEN
tcp 0 0 ::1:59893 *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
udp 0 0 *:32768 *:*
udp 0 0 *:32770 *:*
udp 0 0 *:778 *:*
udp 0 0 localhost:32783 *:*
udp 0 0 *:32784 *:*
udp 0 0 *:7741 *:*
udp 0 0 *:bootpc *:*
udp 0 0 *:40287 *:*
udp 0 0 *:5353 *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
udp 0 0 *:32769 *:*
raw 520 0 *:icmp *:* 7
Active UNIX domain sockets (only servers)
<trimmed-irrelevant>
Proto Recv-Q Send-Q Local Address Foreign Address State

As you can see the 10389 port is never claimed and expecting
connections on the other hand if I run it in debug mode produces this:

[root@localhost ~]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 *:5005 *:*
LISTEN
tcp 0 0 *:sunrpc *:*
LISTEN
tcp 0 0 *:x11 *:*
LISTEN
tcp 0 0 *:57010 *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
tcp 0 0 *:7741 *:*
LISTEN
tcp 0 0 *:40287 *:*
LISTEN
tcp 0 0 *:x11 *:*
LISTEN
tcp 0 0 localhost:30003 *:*
LISTEN
tcp 0 0 *:10389 *:*
LISTEN
tcp 0 0 ::1:59893 *:*
LISTEN
tcp 0 0 *:46038 *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
udp 0 0 *:32768 *:*
udp 0 0 *:32770 *:*
udp 0 0 *:778 *:*
udp 0 0 localhost:32783 *:*
udp 0 0 *:32784 *:*
udp 0 0 *:7741 *:*
udp 0 0 *:bootpc *:*
udp 0 0 *:40287 *:*
udp 0 0 *:5353 *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
udp 0 0 *:32769 *:*
raw 520 0 *:icmp *:* 7
Active UNIX domain sockets (only servers)
<trimmed-irrelevant>
Proto Recv-Q Send-Q Local Address Foreign Address State

I am using apacheds-1-0-1 and line 92 in server.xml reads:
<property name="ldapPort" value="10389" />

Any ideas??
Thank you.
George

Emmanuel Lecharny

2007-03-29, 1:11 pm

Hi George,

can you check the logs which are in /usr/local/apacheds/var/logs (or
something like that) ?

Which Linux are you using ?

Emmanuel

On 3/29/07, tux-07 <gstoyanoff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hello guys,
>
> I do not know what I am missing but I am having a problem connecting
> to apache DS on Linux when I run the normal command:
> /etc/init.d/apacheds start
> if I put it in the debug mode with:
> /etc/init.d/apacheds debug
> I can connect with no problems what am I missing?
>
> A check on TCP connections etc. produces this output:
> [root@localhost ~]# date
> Thu Mar 29 12:02:25 EDT 2007
> [root@localhost ~]# netstat -l
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign Address
> State
> tcp 0 0 *:sunrpc *:*
> LISTEN
> tcp 0 0 *:x11 *:*
> LISTEN
> tcp 0 0 *:57010 *:*
> LISTEN
> tcp 0 0 *:ipp *:*
> LISTEN
> tcp 0 0 *:7741 *:*
> LISTEN
> tcp 0 0 *:40287 *:*
> LISTEN
> tcp 0 0 *:x11 *:*
> LISTEN
> tcp 0 0 ::1:59893 *:*
> LISTEN
> tcp 0 0 *:ipp *:*
> LISTEN
> udp 0 0 *:32768 *:*
> udp 0 0 *:32770 *:*
> udp 0 0 *:778 *:*
> udp 0 0 localhost:32783 *:*
> udp 0 0 *:32784 *:*
> udp 0 0 *:7741 *:*
> udp 0 0 *:bootpc *:*
> udp 0 0 *:40287 *:*
> udp 0 0 *:5353 *:*
> udp 0 0 *:sunrpc *:*
> udp 0 0 *:ipp *:*
> udp 0 0 *:32769 *:*
> raw 520 0
> *:icmp *:* 7
> Active UNIX domain sockets (only servers)
> <trimmed-irrelevant>
> Proto Recv-Q Send-Q Local Address Foreign
> Address State
> [root@localhost ~]# /etc/init.d/apacheds start
> JAVA_HOME=/usr/lib/jre-1_5_0_08
> APACHEDS_HOME=/home/gs/Programs/apacheds-1.0.1
> CLASSPATH=:/usr/lib/jre-1_5_0_08/lib/tools.jar:/home/gs/Programs/apacheds-
> 1.0.1/bin/bootstrapper.jar:/home/gs/Programs/apacheds-1.0.1
> /bin/logger.jar:/home/gs/Programs/apacheds-1.0.1/bi
> n/daemon.jar
> Starting apacheds server: successful apacheds server startup
>
> [root@localhost ~]# netstat -l
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign Address
> State
> tcp 0 0 *:sunrpc *:*
> LISTEN
> tcp 0 0 *:x11 *:*
> LISTEN
> tcp 0 0 *:57010 *:*
> LISTEN
> tcp 0 0 *:ipp *:*
> LISTEN
> tcp 0 0 *:7741 *:*
> LISTEN
> tcp 0 0 *:40287 *:*
> LISTEN
> tcp 0 0 *:x11 *:*
> LISTEN
> tcp 0 0 ::1:59893 *:*
> LISTEN
> tcp 0 0 *:ipp *:*
> LISTEN
> udp 0 0 *:32768 *:*
> udp 0 0 *:32770 *:*
> udp 0 0 *:778 *:*
> udp 0 0 localhost:32783 *:*
> udp 0 0 *:32784 *:*
> udp 0 0 *:7741 *:*
> udp 0 0 *:bootpc *:*
> udp 0 0 *:40287 *:*
> udp 0 0 *:5353 *:*
> udp 0 0 *:sunrpc *:*
> udp 0 0 *:ipp *:*
> udp 0 0 *:32769 *:*
> raw 520 0
> *:icmp *:* 7
> Active UNIX domain sockets (only servers)
> <trimmed-irrelevant>
> Proto Recv-Q Send-Q Local Address Foreign
> Address State
>
> As you can see the 10389 port is never claimed and expecting
> connections on the other hand if I run it in debug mode produces this:
>
> [root@localhost ~]# netstat -l
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign Address
> State
> tcp 0 0 *:5005 *:*
> LISTEN
> tcp 0 0 *:sunrpc *:*
> LISTEN
> tcp 0 0 *:x11 *:*
> LISTEN
> tcp 0 0 *:57010 *:*
> LISTEN
> tcp 0 0 *:ipp *:*
> LISTEN
> tcp 0 0 *:7741 *:*
> LISTEN
> tcp 0 0 *:40287 *:*
> LISTEN
> tcp 0 0 *:x11 *:*
> LISTEN
> tcp 0 0 localhost:30003 *:*
> LISTEN
> tcp 0 0 *:10389 *:*
> LISTEN
> tcp 0 0 ::1:59893 *:*
> LISTEN
> tcp 0 0 *:46038 *:*
> LISTEN
> tcp 0 0 *:ipp *:*
> LISTEN
> udp 0 0 *:32768 *:*
> udp 0 0 *:32770 *:*
> udp 0 0 *:778 *:*
> udp 0 0 localhost:32783 *:*
> udp 0 0 *:32784 *:*
> udp 0 0 *:7741 *:*
> udp 0 0 *:bootpc *:*
> udp 0 0 *:40287 *:*
> udp 0 0 *:5353 *:*
> udp 0 0 *:sunrpc *:*
> udp 0 0 *:ipp *:*
> udp 0 0 *:32769 *:*
> raw 520 0
> *:icmp *:* 7
> Active UNIX domain sockets (only servers)
> <trimmed-irrelevant>
> Proto Recv-Q Send-Q Local Address Foreign
> Address State
>
> I am using apacheds-1-0-1 and line 92 in server.xml reads:
> <property name="ldapPort" value="10389" />
>
> Any ideas??
> Thank you.
> George
>




--
Cordialement,
Emmanuel Lécharny
www.iktek.com

tux-07

2007-03-29, 1:11 pm

Emmanuel:

I checked the logs they have the following content:
[root@localhost log]# ls -l
total 2
-rw-r--r-- 1 root root 1574 Mar 29 12:51 apacheds-stderr.log
-rw-r--r-- 1 root root 0 Mar 28 13:57 apacheds-stdout.log
[root@localhost log]# cat apacheds-stderr.log
28/03/2007 13:57:55 9763 jsvc.exec error: Cannot find daemon loader
org/apache/commons/daemon/support/DaemonLoader
28/03/2007 13:57:55 9762 jsvc.exec error: Service exit with a return value =
of 1
28/03/2007 14:35:34 10312 jsvc.exec error: Cannot find daemon loader
org/apache/commons/daemon/support/DaemonLoader
28/03/2007 14:35:34 10308 jsvc.exec error: Service exit with a return value=
of 1
28/03/2007 17:13:04 14652 jsvc.exec error: Cannot find daemon loader
org/apache/commons/daemon/support/DaemonLoader
28/03/2007 17:13:04 14648 jsvc.exec error: Service exit with a return value=
of 1
29/03/2007 11:49:46 27913 jsvc.exec error: Cannot find daemon loader
org/apache/commons/daemon/support/DaemonLoader
29/03/2007 11:49:46 27909 jsvc.exec error: Service exit with a return value=
of 1
29/03/2007 11:51:37 27987 jsvc.exec error: Cannot find daemon loader
org/apache/commons/daemon/support/DaemonLoader
29/03/2007 11:51:37 27986 jsvc.exec error: Service exit with a return value=
of 1
29/03/2007 11:54:16 28103 jsvc.exec error: Cannot find daemon loader
org/apache/commons/daemon/support/DaemonLoader
29/03/2007 11:54:16 28102 jsvc.exec error: Service exit with a return value=
of 1
29/03/2007 12:03:03 28197 jsvc.exec error: Cannot find daemon loader
org/apache/commons/daemon/support/DaemonLoader
29/03/2007 12:03:03 28196 jsvc.exec error: Service exit with a return value=
of 1
29/03/2007 12:51:05 28798 jsvc.exec error: Cannot find daemon loader
org/apache/commons/daemon/support/DaemonLoader
29/03/2007 12:51:05 28797 jsvc.exec error: Service exit with a return value=
of 1

I assume it is because I do not have jsvc I am using Mandriva 2007. Is
there another way of starting the server without jsvc I am doing
development and testing and on this machine I do not need it to be a
service?

Thanks.



On 3/29/07, Emmanuel Lecharny <elecharny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi George,
>
> can you check the logs which are in /usr/local/apacheds/var/logs (or
> something like that) ?
>
> Which Linux are you using ?
>
> Emmanuel
>
>
> On 3/29/07, tux-07 <gstoyanoff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 7
> State
> CLASSPATH=3D:/usr/lib/jre-1_5_0_08/lib/tools.jar:/home/gs/Programs/apache=

ds-1.0.1/bin/bootstrapper.jar:/home/gs/Programs/apacheds-1.0.1/bin/logger.j=
ar:/home/gs/Programs/apacheds-
> 1.0.1/bi
> 7
> State
> 7
> State
>
>
>
> --
> Cordialement,
> Emmanuel L=E9charny
> www.iktek.com


Emmanuel Lecharny

2007-03-29, 7:11 pm

tux-07 a écrit :

> Emmanuel:
>
> I checked the logs they have the following content:
> [root@localhost log]# ls -l
> total 2
> -rw-r--r-- 1 root root 1574 Mar 29 12:51 apacheds-stderr.log
> -rw-r--r-- 1 root root 0 Mar 28 13:57 apacheds-stdout.log
> [root@localhost log]# cat apacheds-stderr.log


<snip/>

> 29/03/2007 12:03:03 28196 jsvc.exec error: Service exit with a return
> value of 1
> 29/03/2007 12:51:05 28798 jsvc.exec error: Cannot find daemon loader
> org/apache/commons/daemon/support/DaemonLoader
> 29/03/2007 12:51:05 28797 jsvc.exec error: Service exit with a return
> value of 1
>
> I assume it is because I do not have jsvc I am using Mandriva 2007.


Very strange... Alex, any idea ?

> Is
> there another way of starting the server without jsvc I am doing
> development and testing and on this machine I do not need it to be a
> service?


If you have built the server after having downloaded the sources (from
svn), you can use a script into apacheds/server-main : apacheds.sh

But that means you have installed a jdk and maven 2.0.4...

Have you installed the rpm package ? Which JDK version are you using ?

>
> Thanks.




tux-07

2007-03-31, 1:11 am

On 3/29/07, Emmanuel Lecharny <elecharny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> tux-07 a =E9crit :
>
>
> <snip/>
>
>
> Very strange... Alex, any idea ?
>
>
> If you have built the server after having downloaded the sources (from
> svn), you can use a script into apacheds/server-main : apacheds.sh
>
> But that means you have installed a jdk and maven 2.0.4...
>
> Have you installed the rpm package ? Which JDK version are you using ?


I have not build anything I run the precompiled binaries I installed
from apacheds-1.0.1-linux-i386-setup.jar downloaded from one of the
mirrors. I do not have maven installed, the version of java, apacheds
is using accoring to the apacheds init script is:
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode)

Do I have to pre-build the server to be able to run it with jsvc??
Thanks.

>
>
>
>


Alex Karasulu

2007-03-31, 1:11 am

Hi,

On 3/29/07, Emmanuel Lecharny <elecharny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> tux-07 a écrit :
>
>
> <snip/>
>
>
> Very strange... Alex, any idea ?



I think this might be due to not having the daemon.jar which is just
commons-daemon in the classpath. This might make jsvc barf as it is doing.
[vbcol=seagreen]
> Is


Sure just use the debug option still but comment out the debug parameters or
remove them. For the next release we can add a start-non-daemon case in
addition to start|stop|debug.

Alex

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com