You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Brian Wolfe <wo...@gmail.com> on 2021/12/18 05:43:06 UTC

Apache DS documentation on ADS_SHUTDOWN_PORT

Hi,
I am new to Apache DS. I have used other DS's such as Sun, Oracle and
Forgerock. so i'm mostly familiar with their operations.

Right now I have a pair of Apache DS instances replicating to each other.
I'm having an issue with running the shutdown command. The process is
hanging and just repeatedly attempts to shut the process down but doesn't
succeed. I'm thinking defining an ADS_SHUTDOWN_PORT as an environment
variable. but i'm not sure how that works. I couldn't find any
documentation other than the help section of the apachds.sh.

[apache@apacheds1 bin]$ bash apacheds.sh default stop
Using ADS_HOME:    /opt/apacheds/apacheds-2.0.0.AM26
Using JAVA_HOME:
 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-0.fc32.x86_64/jre

Stopping ApacheDS instance 'default' running as 1858
Exception in thread "main" java.net.ConnectException: Connection refused
(Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:607)
        at java.net.Socket.connect(Socket.java:556)
        at java.net.Socket.<init>(Socket.java:452)
        at java.net.Socket.<init>(Socket.java:262)
        at org.apache.directory.server.UberjarMain.main(UberjarMain.java:88)
ApacheDS stopping 1858: 0, 60 attempts remaining
ApacheDS stopping 1858: 0, 59 attempts remaining
ApacheDS stopping 1858: 0, 58 attempts remaining
ApacheDS stopping 1858: 0, 57 attempts remaining
ApacheDS stopping 1858: 0, 56 attempts remaining
ApacheDS stopping 1858: 0, 55 attempts remaining
ApacheDS stopping 1858: 0, 54 attempts remaining
ApacheDS stopping 1858: 0, 53 attempts remaining
ApacheDS stopping 1858: 0, 52 attempts remaining
ApacheDS stopping 1858: 0, 51 attempts remaining
ApacheDS stopping 1858: 0, 50 attempts remaining
ApacheDS stopping 1858: 0, 49 attempts remaining


-- 
Thanks,
Brian Wolfe
https://www.linkedin.com/in/brian-wolfe-3136425a/

Re: Apache DS documentation on ADS_SHUTDOWN_PORT

Posted by Emmanuel Lécharny <el...@gmail.com>.
Hi,

this may be a bug.

We are defining the shutdown part as a file containing it in the 'run' 
directory, with the name 'apacheds.shutdown.port', except that we are 
looking for the file named '.shutdown.port'.

I have to look a bit more into this issue to give you some complete 
feedback...

On 18/12/2021 06:43, Brian Wolfe wrote:
> Hi,
> I am new to Apache DS. I have used other DS's such as Sun, Oracle and
> Forgerock. so i'm mostly familiar with their operations.
> 
> Right now I have a pair of Apache DS instances replicating to each other.
> I'm having an issue with running the shutdown command. The process is
> hanging and just repeatedly attempts to shut the process down but doesn't
> succeed. I'm thinking defining an ADS_SHUTDOWN_PORT as an environment
> variable. but i'm not sure how that works. I couldn't find any
> documentation other than the help section of the apachds.sh.
> 
> [apache@apacheds1 bin]$ bash apacheds.sh default stop
> Using ADS_HOME:    /opt/apacheds/apacheds-2.0.0.AM26
> Using JAVA_HOME:
>   /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-0.fc32.x86_64/jre
> 
> Stopping ApacheDS instance 'default' running as 1858
> Exception in thread "main" java.net.ConnectException: Connection refused
> (Connection refused)
>          at java.net.PlainSocketImpl.socketConnect(Native Method)
>          at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
>          at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>          at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>          at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>          at java.net.Socket.connect(Socket.java:607)
>          at java.net.Socket.connect(Socket.java:556)
>          at java.net.Socket.<init>(Socket.java:452)
>          at java.net.Socket.<init>(Socket.java:262)
>          at org.apache.directory.server.UberjarMain.main(UberjarMain.java:88)
> ApacheDS stopping 1858: 0, 60 attempts remaining
> ApacheDS stopping 1858: 0, 59 attempts remaining
> ApacheDS stopping 1858: 0, 58 attempts remaining
> ApacheDS stopping 1858: 0, 57 attempts remaining
> ApacheDS stopping 1858: 0, 56 attempts remaining
> ApacheDS stopping 1858: 0, 55 attempts remaining
> ApacheDS stopping 1858: 0, 54 attempts remaining
> ApacheDS stopping 1858: 0, 53 attempts remaining
> ApacheDS stopping 1858: 0, 52 attempts remaining
> ApacheDS stopping 1858: 0, 51 attempts remaining
> ApacheDS stopping 1858: 0, 50 attempts remaining
> ApacheDS stopping 1858: 0, 49 attempts remaining
> 
> 

-- 
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecharny@busit.com https://www.busit.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@directory.apache.org
For additional commands, e-mail: users-help@directory.apache.org