Re: Redeploying ApacheDS from Mac to Linux
You can also set the log4j logs to DEBUG in the installation-root/instances/default/conf/log4j.properties file. Replace log4j.rootCategory=WARN, R, stdout by log4j.rootCategory= DEBUG, R, stdout And log4j.logger.org.apache.directory.server=FATAL by log4j.logger.org.apache.directory.server=DEBUG Regards, Pierre-Arnaud On 16 juil. 2013, at 20:43, Kiran Ayyagari kayyag...@apache.org wrote: On Wed, Jul 17, 2013 at 12:06 AM, Nick Duan nd...@dtechspace.com wrote: Thanks! But where could the file name discrepancies be? Is there any way to run apacheds in debug mode? check the .ldif files present in installation-root/instances/default/partitions/schema (I assumed that your instance name is default if not replace it with the appropriate name) you can do using JVM settins example: export JAVA_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8008 -Xnoagent Nick -Original Message- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Tuesday, July 16, 2013 11:23 AM To: users@directory.apache.org Subject: Re: Redeploying ApacheDS from Mac to Linux Le 7/16/13 4:53 PM, Nick Duan a écrit : We created ApacheDS LDAP entries on Mac and running without any problems. When I redeployed the same installation on Linux (packaged the entire apacheds directory into a tar.gz file), I got the following exception. However, the same installation can be deployed to another Mac without any problems. No problem occurs when deploying from Linux to Mac, either. Any hints/suggestions are highly appreciated. It's likely that the file names won't be copied correctly. Check on your mac, but Mac file system default to a Preserving/ Case non sensitive for file names (ie, FILE and file will be the same file, but the case will be the one used when you created the name) for instance, I have a NOTICE file on my mac OSX machine : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll total 208 -rw-r--r-- 1 elecharny staff167 Jul 15 21:49 NOTICE But if I do : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll NoTiCe -rw-r--r-- 1 elecharny staff 167 Jul 15 21:49 NoTiCe As you can see, the two files are the same, with different names. On Linux, this is a different story... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com -- Kiran Ayyagari http://keydap.com
Re: Redeploying ApacheDS from Mac to Linux
Le 7/16/13 4:53 PM, Nick Duan a écrit : We created ApacheDS LDAP entries on Mac and running without any problems. When I redeployed the same installation on Linux (packaged the entire apacheds directory into a tar.gz file), I got the following exception. However, the same installation can be deployed to another Mac without any problems. No problem occurs when deploying from Linux to Mac, either. Any hints/suggestions are highly appreciated. It's likely that the file names won't be copied correctly. Check on your mac, but Mac file system default to a Preserving/ Case non sensitive for file names (ie, FILE and file will be the same file, but the case will be the one used when you created the name) for instance, I have a NOTICE file on my mac OSX machine : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll total 208 -rw-r--r-- 1 elecharny staff167 Jul 15 21:49 NOTICE But if I do : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll NoTiCe -rw-r--r-- 1 elecharny staff 167 Jul 15 21:49 NoTiCe As you can see, the two files are the same, with different names. On Linux, this is a different story... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
Re: Redeploying ApacheDS from Mac to Linux
What version of ApacheDS are you using? Looking at the stacktrace and line numbers, it doesn't seem to be the latest version. I presume you used either the zip or tar.gz ApacheDS installer. Is that right ? Regards, Pierre-Arnaud On 16 juil. 2013, at 17:23, Emmanuel Lécharny elecha...@gmail.com wrote: Le 7/16/13 4:53 PM, Nick Duan a écrit : We created ApacheDS LDAP entries on Mac and running without any problems. When I redeployed the same installation on Linux (packaged the entire apacheds directory into a tar.gz file), I got the following exception. However, the same installation can be deployed to another Mac without any problems. No problem occurs when deploying from Linux to Mac, either. Any hints/suggestions are highly appreciated. It's likely that the file names won't be copied correctly. Check on your mac, but Mac file system default to a Preserving/ Case non sensitive for file names (ie, FILE and file will be the same file, but the case will be the one used when you created the name) for instance, I have a NOTICE file on my mac OSX machine : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll total 208 -rw-r--r-- 1 elecharny staff167 Jul 15 21:49 NOTICE But if I do : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll NoTiCe -rw-r--r-- 1 elecharny staff 167 Jul 15 21:49 NoTiCe As you can see, the two files are the same, with different names. On Linux, this is a different story... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
RE: Redeploying ApacheDS from Mac to Linux
Yes, we use tar.gz to bundle the entire apacheds directory before moving to linux. The version of ApacheDS is M8. I think it may not be related to version No. but probably related to the file name problem that Emmanuel mentioned in his response... Thanks! Nick -Original Message- From: Pierre-Arnaud Marcelot [mailto:paj...@gmail.com] On Behalf Of Pierre-Arnaud Marcelot Sent: Tuesday, July 16, 2013 11:34 AM To: users@directory.apache.org Subject: Re: Redeploying ApacheDS from Mac to Linux What version of ApacheDS are you using? Looking at the stacktrace and line numbers, it doesn't seem to be the latest version. I presume you used either the zip or tar.gz ApacheDS installer. Is that right ? Regards, Pierre-Arnaud On 16 juil. 2013, at 17:23, Emmanuel Lécharny elecha...@gmail.com wrote: Le 7/16/13 4:53 PM, Nick Duan a écrit : We created ApacheDS LDAP entries on Mac and running without any problems. When I redeployed the same installation on Linux (packaged the entire apacheds directory into a tar.gz file), I got the following exception. However, the same installation can be deployed to another Mac without any problems. No problem occurs when deploying from Linux to Mac, either. Any hints/suggestions are highly appreciated. It's likely that the file names won't be copied correctly. Check on your mac, but Mac file system default to a Preserving/ Case non sensitive for file names (ie, FILE and file will be the same file, but the case will be the one used when you created the name) for instance, I have a NOTICE file on my mac OSX machine : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll total 208 -rw-r--r-- 1 elecharny staff167 Jul 15 21:49 NOTICE But if I do : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll NoTiCe -rw-r--r-- 1 elecharny staff 167 Jul 15 21:49 NoTiCe As you can see, the two files are the same, with different names. On Linux, this is a different story... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
RE: Redeploying ApacheDS from Mac to Linux
Thanks! But where could the file name discrepancies be? Is there any way to run apacheds in debug mode? Nick -Original Message- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Tuesday, July 16, 2013 11:23 AM To: users@directory.apache.org Subject: Re: Redeploying ApacheDS from Mac to Linux Le 7/16/13 4:53 PM, Nick Duan a écrit : We created ApacheDS LDAP entries on Mac and running without any problems. When I redeployed the same installation on Linux (packaged the entire apacheds directory into a tar.gz file), I got the following exception. However, the same installation can be deployed to another Mac without any problems. No problem occurs when deploying from Linux to Mac, either. Any hints/suggestions are highly appreciated. It's likely that the file names won't be copied correctly. Check on your mac, but Mac file system default to a Preserving/ Case non sensitive for file names (ie, FILE and file will be the same file, but the case will be the one used when you created the name) for instance, I have a NOTICE file on my mac OSX machine : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll total 208 -rw-r--r-- 1 elecharny staff167 Jul 15 21:49 NOTICE But if I do : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll NoTiCe -rw-r--r-- 1 elecharny staff 167 Jul 15 21:49 NoTiCe As you can see, the two files are the same, with different names. On Linux, this is a different story... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
Re: Redeploying ApacheDS from Mac to Linux
On Wed, Jul 17, 2013 at 12:06 AM, Nick Duan nd...@dtechspace.com wrote: Thanks! But where could the file name discrepancies be? Is there any way to run apacheds in debug mode? check the .ldif files present in installation-root/instances/default/partitions/schema (I assumed that your instance name is default if not replace it with the appropriate name) you can do using JVM settins example: export JAVA_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8008 -Xnoagent Nick -Original Message- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Tuesday, July 16, 2013 11:23 AM To: users@directory.apache.org Subject: Re: Redeploying ApacheDS from Mac to Linux Le 7/16/13 4:53 PM, Nick Duan a écrit : We created ApacheDS LDAP entries on Mac and running without any problems. When I redeployed the same installation on Linux (packaged the entire apacheds directory into a tar.gz file), I got the following exception. However, the same installation can be deployed to another Mac without any problems. No problem occurs when deploying from Linux to Mac, either. Any hints/suggestions are highly appreciated. It's likely that the file names won't be copied correctly. Check on your mac, but Mac file system default to a Preserving/ Case non sensitive for file names (ie, FILE and file will be the same file, but the case will be the one used when you created the name) for instance, I have a NOTICE file on my mac OSX machine : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll total 208 -rw-r--r-- 1 elecharny staff167 Jul 15 21:49 NOTICE But if I do : Emmanuels-MacBook-Pro:mina-trunk-git elecharny$ ll NoTiCe -rw-r--r-- 1 elecharny staff 167 Jul 15 21:49 NoTiCe As you can see, the two files are the same, with different names. On Linux, this is a different story... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com -- Kiran Ayyagari http://keydap.com