New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4.x to 3.1.3 upgrade ( OpenDJ --> OpenDJ ): don't export `100-user.ldif` schema #440

Closed
mzico opened this Issue Jun 12, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@mzico
Contributor

mzico commented Jun 12, 2018

We don't use 100-user.ldif schema anymore, so we don't need this schema in new 3.1.3.
Using this schema in 3.1.3 prohibiting proper import in 3.1.3 with error like below:

ERROR    [12/06/2018:19:33:37 +0000] category=CORE seq=0 severity=SEVERE msg=An objectclass read from schema configuration file 77-customAttributes.ldif could not be parsed: ( 1.3.6.1.4.1.48710.1.4.101 NAME 'gluuCustomPerson' SUP top AUXILIARY MAY ( telephoneNumber $ mobile $ carLicense $ facsimileTelephoneNumber $ departmentNumber $ employeeType $ cn $ st $ manager $ street $ postOfficeBox $ employeeNumber $ preferredDeliveryMethod $ roomNumber $ secretary $ homePostalAddress $ l $ postalCode $ description $ title $ gluuPermission ) ):  RuntimeException(org.forgerock.opendj.ldap.schema.UnknownSchemaElementException: Multiple attribute types with name gluupermission exists in the schema)
[12/06/2018:19:33:39 +0000] category=EXTENSIONS seq=34 severity=WARNING msg=Could not get filesystem for directory /opt/opendj/db/userRoot: Mount point not found
[12/06/2018:19:33:39 +0000] category=EXTENSIONS seq=64 severity=WARNING msg=Could not get filesystem for directory /opt/opendj/db/userRoot: Mount point not found
[12/06/2018:19:33:40 +0000] category=TOOLS seq=68 severity=SEVERE msg=An error occurred while attempting to process the LDIF import:  ExecutionException: java.lang.RuntimeException: org.forgerock.opendj.ldap.schema.UnknownSchemaElementException: Multiple attribute types with name gluuPermission exists in the schema (FutureTask.java:122 FutureTask.java:192 OnDiskMergeImporter.java:2643 OnDiskMergeImporter.java:134 OnDiskMergeImporter.java:621 OnDiskMergeImporter.java:854 OnDiskMergeImporter.java:134 OnDiskMergeImporter.java:216 BackendImpl.java:678 ImportLDIF.java:1052 TaskTool.java:353 ImportLDIF.java:274 ImportLDIF.java:137 ImportLDIF.java:100)

ERROR    [12/06/2018:19:33:46 +0000] category=CORE seq=0 severity=SEVERE msg=An objectclass read from schema configuration file 77-customAttributes.ldif could not be parsed: ( 1.3.6.1.4.1.48710.1.4.101 NAME 'gluuCustomPerson' SUP top AUXILIARY MAY ( telephoneNumber $ mobile $ carLicense $ facsimileTelephoneNumber $ departmentNumber $ employeeType $ cn $ st $ manager $ street $ postOfficeBox $ employeeNumber $ preferredDeliveryMethod $ roomNumber $ secretary $ homePostalAddress $ l $ postalCode $ description $ title $ gluuPermission ) ):  RuntimeException(org.forgerock.opendj.ldap.schema.UnknownSchemaElementException: Multiple attribute types with name gluupermission exists in the schema)
[12/06/2018:19:33:47 +0000] category=TOOLS seq=1 severity=SEVERE msg=The specified LDIF file /root/migration/o_site.ldif cannot be read

@mzico mzico added the bug label Jun 12, 2018

@mzico mzico added this to the 3.1.4 milestone Jun 12, 2018

@mbaser

This comment has been minimized.

Collaborator

mbaser commented Jun 12, 2018

Ok, we don't need 100-user.ldif, but 2.4.4 uses that and writes custom schema created via Gluu UI attributes there. We should include them in 3.x versions, otherwise o=people won't be imported. I try to avoid multiple definitions of attributes/classes, will check again why that happened.

@mbaser

This comment has been minimized.

Collaborator

mbaser commented Jun 13, 2018

I just upgraded 2.4.4 to 3.1.3 with custom attributes created on 2.4.4. I did not faced this issue. Can you provide sample data?

@mzico

This comment has been minimized.

Contributor

mzico commented Jun 13, 2018

@mbaser : please ping me to grab data I am using; unable to share them here in public forum

@mbaser mbaser closed this in a9b901f Jun 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment