Issue Details (XML | Word | Printable)

Key: DIRSERVER-770
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Unassigned
Reporter: Nikola Goran Cutura
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

LDIF file import at startup fails

Created: 27/Oct/06 07:43 AM   Updated: 15/Feb/09 01:36 PM
Return to search
Component/s: ldap
Affects Version/s: 1.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Zip Archive Licensed for inclusion in ASF works conf.zip 2006-10-28 09:22 PM Nikola Goran Cutura 7 kB
Text File Licensed for inclusion in ASF works error.log 2006-10-27 07:52 AM Nikola Goran Cutura 49 kB
XML File Licensed for inclusion in ASF works server.xml 2006-10-27 07:52 AM Nikola Goran Cutura 19 kB
File Licensed for inclusion in ASF works test.ldif 2006-10-27 07:52 AM Nikola Goran Cutura 6 kB
Zip Archive Licensed for inclusion in ASF works var.zip 2006-10-28 09:22 PM Nikola Goran Cutura 103 kB
Environment: Windows XP Pro, Java 1.5

Resolution Date: 25/Jan/07 03:59 PM


 Description  « Hide
LDIF file that is specified in server.xml configuration is correctly found but eventually import fails. Attached are LDIF file, xml configuration and error log.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nikola Goran Cutura added a comment - 27/Oct/06 07:52 AM
test.ldif was created from JXplorer.
error.log is a part from apacheds rolling log creatred during session that imports ldif file.

Emmanuel Lecharny added a comment - 27/Oct/06 06:36 PM
Strange... I have tested your configuration with your ldif file against the 1.0 sources (but not the installer), and it worked like a charm for me on Linux...

Here are the logs :

3923 [main] WARN org.apache.directory.server.core.DefaultDirectoryService - You didn't change the admin password of directory service instance 'default'. Please update the admin password as soon as possible to prevent a possible security breach.
3950 [main] INFO org.apache.directory.server.jndi.ServerContextFactory - Creating ou=loadedLdifFiles,ou=configuration,ou=system
3960 [main] INFO org.apache.directory.server.jndi.ServerContextFactory - LDIF load directory '/home/elecharny/apacheds/apacheds-1.0/apacheds/server-main/test.ldif' is a file. Will attempt to load as LDIF.
4010 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created o=ActiveMQ,dc=example,dc=com.
4042 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created ou=users,o=ActiveMQ,dc=example,dc=com.
4060 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created ou=destinations,o=ActiveMQ,dc=example,dc=com.
4085 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4100 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=\>,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4119 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=read,uid=\>,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4132 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=write,uid=\>,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4158 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=admin,uid=\>,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4182 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=USERS,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4198 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=\>,uid=USERS,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4216 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=read,uid=\>,uid=USERS,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4242 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=write,uid=\>,uid=USERS,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4259 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=admin,uid=\>,uid=USERS,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4279 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=GUEST,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4311 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=\>,uid=GUEST,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4321 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=read,uid=\>,uid=GUEST,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4331 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=write,uid=\>,uid=GUEST,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4343 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=admin,uid=\>,uid=GUEST,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4353 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=ActiveMQ,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4374 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=Advisory,uid=ActiveMQ,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4389 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=\>,uid=Advisory,uid=ActiveMQ,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4414 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=admin,uid=\>,uid=Advisory,uid=ActiveMQ,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4429 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=read,uid=\>,uid=Advisory,uid=ActiveMQ,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4439 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=write,uid=\>,uid=Advisory,uid=ActiveMQ,ou=topics,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4458 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4472 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=\>,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4484 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=admin,uid=\>,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4493 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=read,uid=\>,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4505 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=write,uid=\>,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4514 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=USERS,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4538 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=\>,uid=USERS,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4550 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=read,uid=\>,uid=USERS,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4560 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=write,uid=\>,uid=USERS,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4567 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=admin,uid=\>,uid=USERS,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4578 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=GUEST,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4589 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created uid=\>,uid=GUEST,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4598 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=admin,uid=\>,uid=GUEST,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4613 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=read,uid=\>,uid=GUEST,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4629 [main] INFO org.apache.directory.server.protocol.shared.store.LdifFileLoader - Created cn=write,uid=\>,uid=GUEST,ou=queues,ou=destinations,o=ActiveMQ,dc=example,dc=com.
4718 [main] INFO org.apache.directory.server.jndi.ServerContextFactory - Added Extended Request Handler: 1.2.6.1.4.1.18060.1.1.1.100.3
4718 [main] INFO org.apache.directory.server.jndi.ServerContextFactory - Added Extended Request Handler: 1.2.6.1.4.1.18060.1.1.1.100.1
4731 [main] INFO org.apache.directory.server.jndi.ServerContextFactory - Successful bind of an LDAP Service (10389) is complete.
4732 [main] INFO org.apache.directory.server.Service - server: started in 4731 milliseconds

Emmanuel Lecharny added a comment - 27/Oct/06 07:02 PM
I confirm that Goran is right : I get the very same error with the installer. Damn !!!

Is there a good reason for having those guys integrated into the installed lib directory when running the standard installer ? :

-rw-r--r-- 1 root root 785858 Oct 1 13:45 apacheds-core-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 9082 Oct 1 13:45 apacheds-core-shared-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 198496 Oct 1 13:45 apacheds-kerberos-shared-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 53664 Oct 1 13:45 apacheds-protocol-changepw-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 72150 Oct 1 13:45 apacheds-protocol-kerberos-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 96566 Oct 1 13:45 apacheds-protocol-ldap-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 26904 Oct 1 13:45 apacheds-protocol-ntp-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 38740 Oct 1 13:45 apacheds-protocol-shared-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 17416 Oct 1 13:45 apacheds-server-jndi-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 7120 Oct 1 13:45 apacheds-server-main-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 5575 Oct 1 13:45 apacheds-server-ssl-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 301874 Oct 1 13:45 mina-core-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 19992 Oct 1 13:45 mina-filter-ssl-1.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 87278 Oct 1 13:45 shared-asn1-0.9.5.3-SNAPSHOT.jar
-rw-r--r-- 1 root root 8340 Oct 1 13:45 shared-asn1-codec-0.9.5.3-SNAPSHOT.jar
-rw-r--r-- 1 root root 758062 Oct 1 13:45 shared-ldap-0.9.5.3-SNAPSHOT.jar

Those are all SNAPSHOTS... Aren't they supposed to be 1.0.0, except for shared ?

Alex Karasulu added a comment - 27/Oct/06 10:31 PM
Where are these SNAPSHOTS comming from? ApacheDS 1.0 should have 0 SNAPSHOTs. SOmething is strange here.

Emmanuel Lecharny added a comment - 28/Oct/06 12:16 AM
Grrrr... I was using a old version of ADS !!!


After having installed the one I get from directory web site, I tested again with Goran ldif file and configuration, and everything went fine.

Goran, could you just check that you didn't do the same mistake I did, I mean using an old version of ADS ?

Nikola Goran Cutura added a comment - 28/Oct/06 09:21 PM
Twilight zone...

I downloaded windows installer from the web site and checked it against the one I had installed - they are binary identical.

http://www.apache.org/dist/directory/apacheds/stable/1.0/1.0.0/apacheds-1.0.0-win32-setup.exe

Still, I uninstalled the old one and instelled the newly downloaded, and ...

LDIF import now seems to work (according to the logs) but I cannot connect to it. JXplorer waits for some time and then returns with 'service not available' error.

Attached are my conf and var directories (zipped). conf contains 'test.ldif' together with other config files.

I'm clueless...

NGC


Emmanuel Lecharny added a comment - 28/Oct/06 09:37 PM
Well, I have checked the logs, and it seems that you have another exceptio 5NPE), but why ???

Ok. What about installing ADS using the installer, not the exe? You have a jar file which can be launched using java -jar :
http://www.apache.org/dyn/closer.cgi/directory/apacheds/stable/1.0/1.0.0/apacheds-1.0.0-linux-i386-setup.jar

I know, this is for linux, but if you are using cygwin, I think this may work.

I'm sorry, I don't have a W$ box right now, so I can't check your installation. Anybody ?

Nikola Goran Cutura added a comment - 28/Oct/06 09:48 PM
Twilight zone, indeed...

I uninstalled what I downloaded today and installed back what I downloaded on October 6. Again, files are binary identical.

It now loads ldif file at startup and I can connect to it and verify correct behaviour.

I am totally clueless... As it is now, we can close the issue but I'd like some other users of ADS/Windows to report their experience.

Thanks for help and apologies for bothering! :-)

Emmanuel Lecharny added a comment - 28/Oct/06 10:09 PM
No problem at all !

If it's a bug, we have to fix it. If it's not a bug, at least, we have to figure out what happened, and improve the doco.

What we are going to do is to keep this JIRA opened until we found a W$ computer and try to reproduce the problem.

Is W$ mandatory in yout case ?

Nikola Goran Cutura added a comment - 28/Oct/06 10:19 PM
Windows is my current development and testing platform but final deployment is going to be on Linux. I hope I'll change my platform to Linux soon but I'm lacking time for transfer. :-)

Thanks!

Emmanuel Lecharny added a comment - 28/Oct/06 10:32 PM
What about giving Cygwin a try ? It's a pretty cool linux-like env under windows, and I'm pretty sure you will be able to install and make ADS running on it.

Emmanuel Lecharny added a comment - 25/Jan/07 03:59 PM
Temporarily closed this issue, it seems that ADS is working fine now...

Emmanuel Lecharny added a comment - 15/Feb/09 01:36 PM
closed