directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: Upgrade to M12
Date Tue, 14 May 2013 07:07:15 GMT
if you didn't add any custom schema elements to your old server then you
can just delete the
schema folder present under "partitions" folder and restart the server
(keeping the remaining folders as they were)


On Tue, May 14, 2013 at 12:33 PM, Borys <sborys@gmail.com> wrote:

> Well,
>
> it does not seem to be that straight forward. I guess the schema was
> modified too for M12. Another exception thrown. How can I edit the schema ?
>
> [07:00:45] WARN [org.apache.directory.api.ldap.model.entry.DefaultEntry] -
> The attribute 'ads-replpingersleep' cannot be stored
> org.apache.directory.api.ldap.model.exception.LdapOtherException: ERR_04269
> ATTRIBUTE_TYPE for OID ads-replpingersleep does not exist!
>         at
>
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:84)
>         at
>
> org.apache.directory.server.ApacheDsService.initConfigPartition(ApacheDsService.java:289)
>         at
> org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:169)
>         at
> org.apache.directory.server.UberjarMain.start(UberjarMain.java:76)
>         at
> org.apache.directory.server.UberjarMain.main(UberjarMain.java:54)
> Caused by:
> org.apache.directory.api.ldap.model.exception.LdapNoSuchAttributeException:
> ERR_04269 ATTRIBUTE_TYPE for OID ads-replpingersleep does not exist!
>         at
>
> org.apache.directory.api.ldap.model.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:317)
>         at
>
> org.apache.directory.api.ldap.model.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:47)
>         at
>
> org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.lookupAttributeTypeRegistry(DefaultSchemaManager.java:1623)
>         at
>
> org.apache.directory.api.ldap.model.entry.DefaultEntry.<init>(DefaultEntry.java:311)
>         at
>
> org.apache.directory.server.core.partition.ldif.SingleFileLdifPartition.loadEntries(SingleFileLdifPartition.java:166)
>         at
>
> org.apache.directory.server.core.partition.ldif.SingleFileLdifPartition.doInit(SingleFileLdifPartition.java:123)
>         at
>
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:79)
>         ... 4 more
> Caused by: org.apache.directory.api.ldap.model.exception.LdapException:
> ERR_04269 ATTRIBUTE_TYPE for OID ads-replpingersleep does not exist!
>         at
>
> org.apache.directory.api.ldap.model.exception.LdapException.<init>(LdapException.java:50)
>         at
>
> org.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry.lookup(DefaultSchemaObjectRegistry.java:176)
>         at
>
> org.apache.directory.api.ldap.model.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:313)
>         ... 10 more
> [07:00:45] ERROR [org.apache.directory.server.UberjarMain] - Failed to
> start the service.
> org.apache.directory.api.ldap.model.exception.LdapOtherException: ERR_04269
> ATTRIBUTE_TYPE for OID ads-replpingersleep does not exist!
>         at
>
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:84)
>         at
>
> org.apache.directory.server.ApacheDsService.initConfigPartition(ApacheDsService.java:289)
>         at
> org.apache.directory.server.ApacheDsService.start(ApacheDsService.java:169)
>         at
> org.apache.directory.server.UberjarMain.start(UberjarMain.java:76)
>         at
> org.apache.directory.server.UberjarMain.main(UberjarMain.java:54)
> Caused by:
> org.apache.directory.api.ldap.model.exception.LdapNoSuchAttributeException:
> ERR_04269 ATTRIBUTE_TYPE for OID ads-replpingersleep does not exist!
>         at
>
> org.apache.directory.api.ldap.model.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:317)
>         at
>
> org.apache.directory.api.ldap.model.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:47)
>         at
>
> org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.lookupAttributeTypeRegistry(DefaultSchemaManager.java:1623)
>         at
>
> org.apache.directory.api.ldap.model.entry.DefaultEntry.<init>(DefaultEntry.java:311)
>         at
>
> org.apache.directory.server.core.partition.ldif.SingleFileLdifPartition.loadEntries(SingleFileLdifPartition.java:166)
>         at
>
> org.apache.directory.server.core.partition.ldif.SingleFileLdifPartition.doInit(SingleFileLdifPartition.java:123)
>         at
>
> org.apache.directory.server.core.api.partition.AbstractPartition.initialize(AbstractPartition.java:79)
>         ... 4 more
> Caused by: org.apache.directory.api.ldap.model.exception.LdapException:
> ERR_04269 ATTRIBUTE_TYPE for OID ads-replpingersleep does not exist!
>         at
>
> org.apache.directory.api.ldap.model.exception.LdapException.<init>(LdapException.java:50)
>         at
>
> org.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry.lookup(DefaultSchemaObjectRegistry.java:176)
>         at
>
> org.apache.directory.api.ldap.model.schema.registries.DefaultAttributeTypeRegistry.lookup(DefaultAttributeTypeRegistry.java:313)
>         ... 10 more
>
>
>
> On Mon, May 13, 2013 at 3:44 PM, Kiran Ayyagari <kayyagari@apache.org
> >wrote:
>
> > On Mon, May 13, 2013 at 7:04 PM, Borys <sborys@gmail.com> wrote:
> >
> > > Hi guys,
> > >
> > > How do I upgrade from M11 to M12? Replacing the jar file did not work.
> I
> > > have got an exception about missing attributes during startup.
> > >
> > ah I see,
> >
> > 1. open the config.ldif
> >
> > 2. go to the entry with the DN
> >
> ads-serverId=ldapServer,ou=servers,ads-directoryServiceId=default,ou=config
> >
> > 3. add the below like at the end of the entry
> >
> >     ads-replPingerSleep: 5
> >
> > 4. make sure you have a blank line at the end of the above LDIF entry IF
> it
> > was removed during editing
> >
> > 5. restart the server
> >
> >
> > --
> > Kiran Ayyagari
> > http://keydap.com
> >
>



-- 
Kiran Ayyagari
http://keydap.com

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