Strange problem starting apacheds in normal mode
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > Strange problem starting apacheds in normal mode




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Strange problem starting apacheds in normal mode  
tux-07


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-29-07 06: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            St
ate
[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:/ho
me/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            St
ate

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            St
ate

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

Any ideas??
Thank you.
George






[ Post a follow-up to this message ]



    Re: Strange problem starting apacheds in normal mode  
Emmanuel Lecharny


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-29-07 06: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






[ Post a follow-up to this message ]



    Re: Strange problem starting apacheds in normal mode  
tux-07


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-29-07 06: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:[vbc
ol=seagreen]
> 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> wr
ote: 
>                   7 
> State 
> CLASSPATH=3D:/usr/lib/jre-1_5_0_08/lib/tools.jar:/home/gs/Programs/apache=[/vbcol]
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






[ Post a follow-up to this message ]



    Re: Strange problem starting apacheds in normal mode  
Emmanuel Lecharny


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-30-07 12:11 AM

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.








[ Post a follow-up to this message ]



    Re: Strange problem starting apacheds in normal mode  
tux-07


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-31-07 06:11 AM

On 3/29/07, Emmanuel Lecharny <elecharny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:[vbc
ol=seagreen]
> 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 ?[/vbcol]

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.

> 
>
>
>






[ Post a follow-up to this message ]



    Re: Strange problem starting apacheds in normal mode  
Alex Karasulu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-31-07 06:11 AM

Hi,

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


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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:06 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register