directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ezsra McDonald <ezsra.mcdon...@gmail.com>
Subject Re: Move ADS to new location on disk
Date Fri, 10 Jun 2016 02:23:22 GMT
After relocating ADS to a new filesystem the partition is empty when I
browse it in Apache Directory Studio. But I can do a search and find
results. Any idea why?



On Thu, Jun 9, 2016 at 5:58 PM, Ezsra McDonald <ezsra.mcdonald@gmail.com>
wrote:

> I figured it out.
>
> wrapper-instance.conf contains a line "#include
> /opt/foo/ApacheDS/opt/conf/wrapper.conf"
>
> Okay, how many of you think that line is a comment? It is not. You have to
> correct that line leaving the '#' at the beginning.
>
> This works:
>
> "#include /opt/ApacheDS/opt/conf/wrapper.conf"
>
>
>
> On Thu, Jun 9, 2016 at 5:13 PM, Ezsra McDonald <ezsra.mcdonald@gmail.com>
> wrote:
>
>> I found a wrapper.log in /opt/ApacheDS/opt/bin
>>
>> STATUS | wrapper  | 2016/06/08 16:57:41 | --> Wrapper Started as Daemon
>> STATUS | wrapper  | 2016/06/08 16:57:41 | Launching a JVM...
>> ERROR  | wrapper  | 2016/06/08 16:57:41 | JVM exited while loading the
>> application.
>> INFO   | jvm 1    | 2016/06/08 16:57:41 | Error: Could not find or load
>> main class Main
>> STATUS | wrapper  | 2016/06/08 16:57:45 | Launching a JVM...
>> ERROR  | wrapper  | 2016/06/08 16:57:45 | JVM exited while loading the
>> application.
>> INFO   | jvm 2    | 2016/06/08 16:57:45 | Error: Could not find or load
>> main class Main
>> STATUS | wrapper  | 2016/06/08 16:57:49 | Launching a JVM...
>> ERROR  | wrapper  | 2016/06/08 16:57:49 | JVM exited while loading the
>> application.
>> INFO   | jvm 3    | 2016/06/08 16:57:49 | Error: Could not find or load
>> main class Main
>> STATUS | wrapper  | 2016/06/08 16:57:54 | Launching a JVM...
>> ERROR  | wrapper  | 2016/06/08 16:57:54 | JVM exited while loading the
>> application.
>> INFO   | jvm 4    | 2016/06/08 16:57:54 | Error: Could not find or load
>> main class Main
>> STATUS | wrapper  | 2016/06/08 16:57:58 | Launching a JVM...
>> ERROR  | wrapper  | 2016/06/08 16:57:58 | JVM exited while loading the
>> application.
>> INFO   | jvm 5    | 2016/06/08 16:57:58 | Error: Could not find or load
>> main class Main
>> FATAL  | wrapper  | 2016/06/08 16:57:58 | There were 5 failed launches in
>> a row, each lasting less than 300 seconds.  Giving up.
>> FATAL  | wrapper  | 2016/06/08 16:57:58 |   There may be a configuration
>> problem: please check the logs.
>> STATUS | wrapper  | 2016/06/08 16:57:58 | <-- Wrapper Stopped
>>
>> I am not a java guy so no clue. :-)
>>
>> I'll google a bit.
>>
>> On Thu, Jun 9, 2016 at 4:39 PM, Ezsra McDonald <ezsra.mcdonald@gmail.com>
>> wrote:
>>
>>> Hmm, Seems to be a problem still.
>>>
>>> I did the following :
>>>
>>>
>>> cd /servers/ApacheDS/
>>> # Tar up opt var folders
>>> sudo tar czvf ~/ads-server.tgz *
>>> cd /opt/ApacheDS/
>>> sudo tar xzvf ~/ads-server.tgz
>>> sudo vi /etc/init.d/apacheds-2.0.0-M20-default
>>> CHANGE FILE: /etc/init.d/apacheds-2.0.0-M20-default
>>> LINE NUMBER: 36
>>>
>>> /opt/ApacheDS/opt/bin/apacheds $1 default
>>> sudo vi /opt/ApacheDS/opt/bin/apacheds
>>> CHANGE FILE: /opt/ApacheDS/opt/bin/apacheds
>>> LINE NUMBERS: 30 & 31
>>>
>>> INSTALLATION_DIRECTORY="/opt/ApacheDS/opt"
>>> INSTANCES_DIRECTORY="/opt/ApacheDS/var/lib"
>>>
>>> The server fails to start
>>>
>>> PS shows the following process but it dies shortly after issuing the
>>> start command:
>>>
>>> apacheds 16052     1  0 16:22 ?        00:00:00
>>> /opt/ApacheDS/opt/bin/wrapper
>>> /opt/ApacheDS/var/lib/default/conf/wrapper-instance.conf
>>> set.INSTANCE_DIRECTORY=/opt/ApacheDS/var/lib/default set.INSTANCE=default
>>> wrapper.syslog.ident=apacheds
>>> wrapper.pidfile=/opt/ApacheDS/var/lib/default/run/apacheds-default.pid
>>> wrapper.daemonize=TRUE
>>>
>>> The last thing in the logs is a log from when I stopped the instance:
>>>
>>> STATUS | wrapper  | 2016/06/08 15:03:22 | <-- Wrapper Stopped
>>>
>>>
>>> I added a 'set -x' to /opt/ApacheDS/opt/bin/apacheds and started the
>>> server again:
>>>
>>>
>>> + INSTANCE=default
>>> + INSTALLATION_DIRECTORY=/opt/ApacheDS/opt
>>> + INSTANCES_DIRECTORY=/opt/ApacheDS/var/lib
>>> + INSTANCE_DIRECTORY=/opt/ApacheDS/var/lib/default
>>> + APP_NAME=apacheds
>>> + APP_LONG_NAME='ApacheDS - default'
>>> + WRAPPER_CMD=/opt/ApacheDS/opt/bin/wrapper
>>> + WRAPPER_CONF=/opt/ApacheDS/var/lib/default/conf/wrapper-instance.conf
>>> + PRIORITY=
>>> + PIDDIR=/opt/ApacheDS/var/lib/default/run
>>> + RUN_AS_USER=apacheds
>>> + RUN_AS_GROUP=apacheds
>>> + case $0 in
>>> + SCRIPT=/opt/ApacheDS/opt/bin/apacheds
>>> + CHANGED=true
>>> + '[' Xtrue '!=' X ']'
>>> ++ echo /opt/ApacheDS/opt/bin/apacheds
>>> ++ sed -e 's; ;:;g'
>>> + SAFESCRIPT=/opt/ApacheDS/opt/bin/apacheds
>>> ++ echo /opt/ApacheDS/opt/bin/apacheds
>>> ++ sed -e 's;/; ;g'
>>> + TOKENS=' opt ApacheDS opt bin apacheds'
>>> + REALPATH=
>>> + for C in '$TOKENS'
>>> ++ echo opt
>>> ++ sed -e 's;:; ;g'
>>> + C=opt
>>> + REALPATH=/opt
>>> + '[' -h /opt ']'
>>> + for C in '$TOKENS'
>>> ++ echo ApacheDS
>>> ++ sed -e 's;:; ;g'
>>> + C=ApacheDS
>>> + REALPATH=/opt/ApacheDS
>>> + '[' -h /opt/ApacheDS ']'
>>> + for C in '$TOKENS'
>>> ++ echo opt
>>> ++ sed -e 's;:; ;g'
>>> + C=opt
>>> + REALPATH=/opt/ApacheDS/opt
>>> + '[' -h /opt/ApacheDS/opt ']'
>>> + for C in '$TOKENS'
>>> ++ echo bin
>>> ++ sed -e 's;:; ;g'
>>> + C=bin
>>> + REALPATH=/opt/ApacheDS/opt/bin
>>> + '[' -h /opt/ApacheDS/opt/bin ']'
>>> + for C in '$TOKENS'
>>> ++ echo apacheds
>>> ++ sed -e 's;:; ;g'
>>> + C=apacheds
>>> + REALPATH=/opt/ApacheDS/opt/bin/apacheds
>>> + '[' -h /opt/ApacheDS/opt/bin/apacheds ']'
>>> + '[' /opt/ApacheDS/opt/bin/apacheds = /opt/ApacheDS/opt/bin/apacheds
>>> ']'
>>> + CHANGED=
>>> + '[' X '!=' X ']'
>>> ++ dirname /opt/ApacheDS/opt/bin/apacheds
>>> + cd /opt/ApacheDS/opt/bin
>>> ++ pwd
>>> + REALDIR=/opt/ApacheDS/opt/bin
>>> ++ echo /opt/ApacheDS/var/lib/default/run
>>> ++ cut -c1,1
>>> + FIRST_CHAR=/
>>> + '[' / '!=' / ']'
>>> ++ echo /opt/ApacheDS/opt/bin/wrapper
>>> ++ cut -c1,1
>>> + FIRST_CHAR=/
>>> + '[' / '!=' / ']'
>>> ++ echo /opt/ApacheDS/var/lib/default/conf/wrapper-instance.conf
>>> ++ cut -c1,1
>>> + FIRST_CHAR=/
>>> + '[' / '!=' / ']'
>>> + ANCHORFILE=/opt/ApacheDS/var/lib/default/run/default.anchor
>>> + PIDFILE=/opt/ApacheDS/var/lib/default/run/apacheds-default.pid
>>> + LOCKDIR=/var/lock/subsys
>>> + LOCKFILE=/var/lock/subsys/default
>>> + pid=
>>> + PSEXE=/usr/bin/ps
>>> + '[' '!' -x /usr/bin/ps ']'
>>> + PSEXE=/bin/ps
>>> + '[' '!' -x /bin/ps ']'
>>> ++ uname -s
>>> ++ tr '[:upper:]' '[:lower:]'
>>> ++ tr -d '[:blank:]'
>>> + DIST_OS=linux
>>> + case "$DIST_OS" in
>>> ++ uname -p
>>> ++ tr '[:upper:]' '[:lower:]'
>>> ++ tr -d '[:blank:]'
>>> + DIST_ARCH=x86_64
>>> + '[' x86_64 = unknown ']'
>>> + case "$DIST_ARCH" in
>>> + DIST_ARCH=x86
>>> + '[' X = X ']'
>>> + CMDNICE=
>>> + '[' X = X ']'
>>> + ANCHORPROP=
>>> + IGNOREPROP=
>>> + LOCKPROP=
>>> + '[' -d /var/lock/subsys ']'
>>> + '[' -w /var/lock/subsys ']'
>>> + LOCKPROP='wrapper.lockfile="/var/lock/subsys/default"'
>>> + '[' xstart = x ']'
>>> + '[' xdefault = x ']'
>>> + case "$1" in
>>> + checkUser touchlock start default
>>> + '[' Xapacheds '!=' X ']'
>>> + IDEXE=/usr/xpg4/bin/id
>>> + '[' '!' -x /usr/xpg4/bin/id ']'
>>> + IDEXE=/usr/bin/id
>>> + '[' '!' -x /usr/bin/id ']'
>>> ++ /usr/bin/id -u -n
>>> + '[' root = apacheds ']'
>>> + '[' Xapacheds '!=' X ']'
>>> + '[' 'Xwrapper.lockfile="/var/lock/subsys/default"' '!=' X ']'
>>> + '[' Xtouchlock '!=' X ']'
>>> ++ groups apacheds
>>> ++ awk '{print $3}'
>>> ++ tail -1
>>> + RUN_AS_GROUP=apacheds
>>> + '[' Xapacheds = X ']'
>>> + touch /var/lock/subsys/default
>>> + chown apacheds:apacheds /var/lock/subsys/default
>>> + su -m apacheds -c '"/opt/ApacheDS/opt/bin/apacheds" start default'
>>> + INSTANCE=default
>>> + INSTALLATION_DIRECTORY=/opt/ApacheDS/opt
>>> + INSTANCES_DIRECTORY=/opt/ApacheDS/var/lib
>>> + INSTANCE_DIRECTORY=/opt/ApacheDS/var/lib/default
>>> + APP_NAME=apacheds
>>> + APP_LONG_NAME='ApacheDS - default'
>>> + WRAPPER_CMD=/opt/ApacheDS/opt/bin/wrapper
>>> + WRAPPER_CONF=/opt/ApacheDS/var/lib/default/conf/wrapper-instance.conf
>>> + PRIORITY=
>>> + PIDDIR=/opt/ApacheDS/var/lib/default/run
>>> + RUN_AS_USER=apacheds
>>> + RUN_AS_GROUP=apacheds
>>> + case $0 in
>>> + SCRIPT=/opt/ApacheDS/opt/bin/apacheds
>>> + CHANGED=true
>>> + '[' Xtrue '!=' X ']'
>>> ++ echo /opt/ApacheDS/opt/bin/apacheds
>>> ++ sed -e 's; ;:;g'
>>> + SAFESCRIPT=/opt/ApacheDS/opt/bin/apacheds
>>> ++ echo /opt/ApacheDS/opt/bin/apacheds
>>> ++ sed -e 's;/; ;g'
>>> + TOKENS=' opt ApacheDS opt bin apacheds'
>>> + REALPATH=
>>> + for C in '$TOKENS'
>>> ++ echo opt
>>> ++ sed -e 's;:; ;g'
>>> + C=opt
>>> + REALPATH=/opt
>>> + '[' -h /opt ']'
>>> + for C in '$TOKENS'
>>> ++ echo ApacheDS
>>> ++ sed -e 's;:; ;g'
>>> + C=ApacheDS
>>> + REALPATH=/opt/ApacheDS
>>> + '[' -h /opt/ApacheDS ']'
>>> + for C in '$TOKENS'
>>> ++ echo opt
>>> ++ sed -e 's;:; ;g'
>>> + C=opt
>>> + REALPATH=/opt/ApacheDS/opt
>>> + '[' -h /opt/ApacheDS/opt ']'
>>> + for C in '$TOKENS'
>>> ++ echo bin
>>> ++ sed -e 's;:; ;g'
>>> + C=bin
>>> + REALPATH=/opt/ApacheDS/opt/bin
>>> + '[' -h /opt/ApacheDS/opt/bin ']'
>>> + for C in '$TOKENS'
>>> ++ echo apacheds
>>> ++ sed -e 's;:; ;g'
>>> + C=apacheds
>>> + REALPATH=/opt/ApacheDS/opt/bin/apacheds
>>> + '[' -h /opt/ApacheDS/opt/bin/apacheds ']'
>>> + '[' /opt/ApacheDS/opt/bin/apacheds = /opt/ApacheDS/opt/bin/apacheds
>>> ']'
>>> + CHANGED=
>>> + '[' X '!=' X ']'
>>> ++ dirname /opt/ApacheDS/opt/bin/apacheds
>>> + cd /opt/ApacheDS/opt/bin
>>> ++ pwd
>>> + REALDIR=/opt/ApacheDS/opt/bin
>>> ++ echo /opt/ApacheDS/var/lib/default/run
>>> ++ cut -c1,1
>>> + FIRST_CHAR=/
>>> + '[' / '!=' / ']'
>>> ++ echo /opt/ApacheDS/opt/bin/wrapper
>>> ++ cut -c1,1
>>> + FIRST_CHAR=/
>>> + '[' / '!=' / ']'
>>> ++ echo /opt/ApacheDS/var/lib/default/conf/wrapper-instance.conf
>>> ++ cut -c1,1
>>> + FIRST_CHAR=/
>>> + '[' / '!=' / ']'
>>> + ANCHORFILE=/opt/ApacheDS/var/lib/default/run/default.anchor
>>> + PIDFILE=/opt/ApacheDS/var/lib/default/run/apacheds-default.pid
>>> + LOCKDIR=/var/lock/subsys
>>> + LOCKFILE=/var/lock/subsys/default
>>> + pid=
>>> + PSEXE=/usr/bin/ps
>>> + '[' '!' -x /usr/bin/ps ']'
>>> + PSEXE=/bin/ps
>>> + '[' '!' -x /bin/ps ']'
>>> ++ uname -s
>>> ++ tr '[:upper:]' '[:lower:]'
>>> ++ tr -d '[:blank:]'
>>> + DIST_OS=linux
>>> + case "$DIST_OS" in
>>> ++ uname -p
>>> ++ tr '[:upper:]' '[:lower:]'
>>> ++ tr -d '[:blank:]'
>>> + DIST_ARCH=x86_64
>>> + '[' x86_64 = unknown ']'
>>> + case "$DIST_ARCH" in
>>> + DIST_ARCH=x86
>>> + '[' X = X ']'
>>> + CMDNICE=
>>> + '[' X = X ']'
>>> + ANCHORPROP=
>>> + IGNOREPROP=
>>> + LOCKPROP=
>>> + '[' -d /var/lock/subsys ']'
>>> + '[' -w /var/lock/subsys ']'
>>> + '[' xstart = x ']'
>>> + '[' xdefault = x ']'
>>> + case "$1" in
>>> + checkUser touchlock start default
>>> + '[' Xapacheds '!=' X ']'
>>> + IDEXE=/usr/xpg4/bin/id
>>> + '[' '!' -x /usr/xpg4/bin/id ']'
>>> + IDEXE=/usr/bin/id
>>> + '[' '!' -x /usr/bin/id ']'
>>> ++ /usr/bin/id -u -n
>>> + '[' apacheds = apacheds ']'
>>> + RUN_AS_USER=
>>> + '[' X '!=' X ']'
>>> + start
>>> + echo 'Starting ApacheDS - default...'
>>> Starting ApacheDS - default...
>>> + getpid
>>> + '[' -f /opt/ApacheDS/var/lib/default/run/apacheds-default.pid ']'
>>> + '[' X = X ']'
>>> + COMMAND_LINE=' "/opt/ApacheDS/opt/bin/wrapper"
>>> "/opt/ApacheDS/var/lib/default/conf/wrapper-instance.conf"
>>> set.INSTANCE_DIRECTORY="/opt/ApacheDS/var/lib/default"
>>> set.INSTANCE="default" wrapper.syslog.ident="apacheds"
>>> wrapper.pidfile="/opt/ApacheDS/var/lib/default/run/apacheds-default.pid"
>>> wrapper.daemonize=TRUE   '
>>> + eval '"/opt/ApacheDS/opt/bin/wrapper"'
>>> '"/opt/ApacheDS/var/lib/default/conf/wrapper-instance.conf"'
>>> 'set.INSTANCE_DIRECTORY="/opt/ApacheDS/var/lib/default"'
>>> 'set.INSTANCE="default"' 'wrapper.syslog.ident="apacheds"'
>>> 'wrapper.pidfile="/opt/ApacheDS/var/lib/default/run/apacheds-default.pid"'
>>> wrapper.daemonize=TRUE
>>> ++ /opt/ApacheDS/opt/bin/wrapper
>>> /opt/ApacheDS/var/lib/default/conf/wrapper-instance.conf
>>> set.INSTANCE_DIRECTORY=/opt/ApacheDS/var/lib/default set.INSTANCE=default
>>> wrapper.syslog.ident=apacheds
>>> wrapper.pidfile=/opt/ApacheDS/var/lib/default/run/apacheds-default.pid
>>> wrapper.daemonize=TRUE
>>> + exit 0
>>> + '[' 'Xwrapper.lockfile="/var/lock/subsys/default"' '!=' X ']'
>>> + getpid
>>> + '[' -f /opt/ApacheDS/var/lib/default/run/apacheds-default.pid ']'
>>> + '[' -r /opt/ApacheDS/var/lib/default/run/apacheds-default.pid ']'
>>> ++ cat /opt/ApacheDS/var/lib/default/run/apacheds-default.pid
>>> + pid=15893
>>> + '[' X15893 = X ']'
>>> + exit 0
>>>
>>> Let me know if you need anything else.
>>>
>>>
>>> On Thu, Jun 9, 2016 at 10:48 AM, Emmanuel Lécharny <elecharny@gmail.com>
>>> wrote:
>>>
>>>> Le 09/06/16 à 17:18, Ezsra McDonald a écrit :
>>>> > Good question, sorry
>>>> >
>>>> > The OS is Enterprise Linux.
>>>> >
>>>> > I used the apacheds-2.0.0-M20-64bit.bin installer.
>>>>
>>>> The directories teh server is using are described in
>>>>
>>>> http://directory.apache.org/apacheds/advanced-ug/2.2-instance-layout.html
>>>>
>>>> Data will be stored in the partitions sub-directory.
>>>>
>>>> If you move the whole tree, it should work, assuming you also change the
>>>> /etc/init.d/apacheds script to point on this new directory.
>>>>
>>>> You may have a look at the various configuration files that may contain
>>>> root based paths.
>>>>
>>>>
>>>>
>>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message