You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fortress@directory.apache.org by Luis Carmona <lc...@openpartner.cl.INVALID> on 2019/04/17 19:42:28 UTC
apacheds won't start after installing Fortress
Hi,
I'm having problems to start using Fortress solution.
I follow every single step, with no errors, enabliing Fortress on top of a brand new apacheds.
Everything goes ok, even I can see the results of the installation and tests steps in Apache Directory Studio.
But when I restart the servicce, apacheds doesn't start anymore, throwing the next error messages in logs
[01:10:24] ERROR [org.apache.directory.api.ldap.model.entry.DefaultAttribute] - ERR_13215_VALUE_EXPECT_STRING The value is expected to be a String
[01:10:24] ERROR [org.apache.directory.api.ldap.schema.loader.LdifSchemaLoader] - ERR_16009_LDIF_LOAD_FAIL Failed to load schema LDIF file cn=fortress.ldif
org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException: ERR_13215_VALUE_EXPECT_STRING The value is expected to be a String
I've read it is something related to a wrong creatorName, but given all this is donde by the installer, I have no chance to avoid the creatorName it uses. The creatorName in the file cn=fortress.ldif appears in a lot of files, I changed it only in the cn=fortress.ldif file to test, but made no difference, apacheds don't start up.
Please any tip will be precciated.
Regards and thanks in advance.
LC
Re: apacheds won't start after installing Fortress
Posted by Shawn McKinney <sm...@apache.org>.
Hello Luis, welcome to our little project. :-)
> On Apr 22, 2019, at 12:08 PM, Luis Carmona <lc...@openpartner.cl.INVALID> wrote:
>
> thanks for your responses. I've tryed every combination I could, and the only one that compiled perfectly and is working is the Docker Image of Fortress and LDAP, now I will start to try to add REALM and TOMCAT.
OK, thanks for letting us know. For the record, we should be albe to get you onto either of the supported servers, apacheDS or OpenLDAP, but the docker image is fine for now.
>
> On Apr 22, 2019, at 12:08 PM, Luis Carmona <lc...@openpartner.cl.INVALID> wrote:
>
> My final goal is to put fortress to be the Authentication & Authorization system for the platforms we sell as SAAS, reachable by API Rest by the way. So now that it is working, I need to homologate my need of roles and privileges to the way fortress understand things.
>
> Is there any reading for that, I mean to stablish my roles, privileges, and users on Fortress ?
>
We call that process 'role engineering'. Here's a place to start:
https://iamfortress.net/2015/03/05/the-seven-steps-of-role-engineering/
Keep the questions coming!
—Shawn
Re: apacheds won't start after installing Fortress
Posted by Luis Carmona <lc...@openpartner.cl.INVALID>.
Hi all,
thanks for your responses. I've tryed every combination I could, and the only one that compiled perfectly and is working is the Docker Image of Fortress and LDAP, now I will start to try to add REALM and TOMCAT.
My final goal is to put fortress to be the Authentication & Authorization system for the platforms we sell as SAAS, reachable by API Rest by the way. So now that it is working, I need to homologate my need of roles and privileges to the way fortress understand things.
Is there any reading for that, I mean to stablish my roles, privileges, and users on Fortress ?
Thanks in advance,
LC
----- Original Message -----
From: "Shawn McKinney" <sm...@apache.org>
To: "fortress" <fo...@directory.apache.org>
Sent: Friday, April 19, 2019 10:51:02 AM
Subject: Re: apacheds won't start after installing Fortress
> On Apr 19, 2019, at 2:26 AM, Emmanuel Lécharny <el...@gmail.com> wrote:
>
> then you should be good to go.
>
> Or wait one more day so that MINA get released.
If the intent is a test ride, one of the docker images would buy time until the next release of apacheDS.
https://github.com/apache/directory-fortress-core/blob/master/README-QUICKSTART-DOCKER-APACHEDS.md
—Shawn
Re: apacheds won't start after installing Fortress
Posted by Shawn McKinney <sm...@apache.org>.
> On Apr 19, 2019, at 2:26 AM, Emmanuel Lécharny <el...@gmail.com> wrote:
>
> then you should be good to go.
>
> Or wait one more day so that MINA get released.
If the intent is a test ride, one of the docker images would buy time until the next release of apacheDS.
https://github.com/apache/directory-fortress-core/blob/master/README-QUICKSTART-DOCKER-APACHEDS.md
—Shawn
Re: apacheds won't start after installing Fortress
Posted by Emmanuel Lécharny <el...@gmail.com>.
On 19/04/2019 09:03, Stefan Seelmann wrote:
> Hi Luis,
>
> I'm afraid you have to wait a bit, the master build is currently broken
> and requires mina 2.1.2 is released, which should happen soonish.
Yeah, my bad, I started to use a non-release MINA package. The vote is
currently on, and should be completed tonite.
If you want, you may get the MINA packages on
https://dist.apache.org/repos/dist/dev/mina/mina/2.1.2/
As it has to be deployed on your local Maven repository, you can grab
the source and build it
$ tar xzpf apache-mina-2.1.2-src.tar.gz
<https://dist.apache.org/repos/dist/dev/mina/mina/2.1.2/apache-mina-2.1.2-src.tar.gz>
$ cd apache-mina
$ mvn clean install -DskipTests
then you should be good to go.
Or wait one more day so that MINA get released.
Re: apacheds won't start after installing Fortress
Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
Hi Luis,
I'm afraid you have to wait a bit, the master build is currently broken
and requires mina 2.1.2 is released, which should happen soonish.
Kind Regards,
Stefan
On 4/19/19 2:37 AM, Luis Carmona wrote:
>
> Hi Emmanuel,
>
> that didin't work either. It failed the building of the LDAP API itself, with these errors
>
>
> [WARNING] The POM for org.apache.mina:mina-core:jar:2.1.2-SNAPSHOT is missing, no dependency information available
> Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/apache/mina/mina-core/2.1.2-SNAPSHOT/mina-core-2.1.2-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Directory LDAP API .......................... SUCCESS [ 19.124 s]
> [INFO] Apache Directory LDAP API I18n ..................... SUCCESS [ 2.659 s]
> [INFO] Apache Directory LDAP API Utilities ................ SUCCESS [ 2.488 s]
> [INFO] Apache Directory API ASN.1 Parent .................. SUCCESS [ 0.151 s]
> [INFO] Apache Directory API ASN.1 API ..................... SUCCESS [ 1.182 s]
> [INFO] Apache Directory API ASN.1 BER ..................... SUCCESS [ 1.913 s]
> [INFO] Apache Directory LDAP API Parent ................... SUCCESS [ 0.142 s]
> [INFO] Apache Directory LDAP API Model .................... FAILURE [ 2.460 s]
> [INFO] Apache Directory LDAP API Codec Parent ............. SKIPPED
> [INFO] Apache Directory LDAP API Codec Core ............... SKIPPED
> ...
>
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 31.336 s
> [INFO] Finished at: 2019-04-18T21:30:58-03:00
> [INFO] Final Memory: 51M/558M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project api-ldap-model: Could not resolve dependencies for project org.apache.directory.api:api-ldap-model:bundle:2.0.0.AM3-SNAPSHOT: Could not find artifact org.apache.mina:mina-core:jar:2.1.2-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots) -> [Help 1]
>
>
> Regards,
>
> LC
>
>
>
>
>
> Ah, sorry, you also need to build the LDAP API before building the server:
>
> $ git clone https://gitbox.apache.org/repos/asf/directory-ldap-api.git
>
> $ cd directory-ldap-api
>
> $ mvn clean install -DskipTests
>
Re: apacheds won't start after installing Fortress
Posted by Luis Carmona <lc...@openpartner.cl.INVALID>.
Hi Emmanuel,
that didin't work either. It failed the building of the LDAP API itself, with these errors
[WARNING] The POM for org.apache.mina:mina-core:jar:2.1.2-SNAPSHOT is missing, no dependency information available
Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/apache/mina/mina-core/2.1.2-SNAPSHOT/mina-core-2.1.2-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Directory LDAP API .......................... SUCCESS [ 19.124 s]
[INFO] Apache Directory LDAP API I18n ..................... SUCCESS [ 2.659 s]
[INFO] Apache Directory LDAP API Utilities ................ SUCCESS [ 2.488 s]
[INFO] Apache Directory API ASN.1 Parent .................. SUCCESS [ 0.151 s]
[INFO] Apache Directory API ASN.1 API ..................... SUCCESS [ 1.182 s]
[INFO] Apache Directory API ASN.1 BER ..................... SUCCESS [ 1.913 s]
[INFO] Apache Directory LDAP API Parent ................... SUCCESS [ 0.142 s]
[INFO] Apache Directory LDAP API Model .................... FAILURE [ 2.460 s]
[INFO] Apache Directory LDAP API Codec Parent ............. SKIPPED
[INFO] Apache Directory LDAP API Codec Core ............... SKIPPED
...
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.336 s
[INFO] Finished at: 2019-04-18T21:30:58-03:00
[INFO] Final Memory: 51M/558M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project api-ldap-model: Could not resolve dependencies for project org.apache.directory.api:api-ldap-model:bundle:2.0.0.AM3-SNAPSHOT: Could not find artifact org.apache.mina:mina-core:jar:2.1.2-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots) -> [Help 1]
Regards,
LC
Ah, sorry, you also need to build the LDAP API before building the server:
$ git clone https://gitbox.apache.org/repos/asf/directory-ldap-api.git
$ cd directory-ldap-api
$ mvn clean install -DskipTests
Re: apacheds won't start after installing Fortress
Posted by Emmanuel Lécharny <el...@gmail.com>.
On 18/04/2019 03:21, Luis Carmona wrote:
> HI Emmanuel,
>
> thanks for your response. Followed your instructions, and in step 3 (mvn clean install -DskipTests), compilation falls with error:
>
>
> [INFO] ApacheDS ........................................... SUCCESS [ 2.982 s]
> [INFO] ApacheDS I18n ...................................... SUCCESS [ 2.288 s]
> [INFO] ApacheDS Core Constants ............................ SUCCESS [ 0.303 s]
> [INFO] ApacheDS Core API .................................. FAILURE [ 0.087 s]
> ...
> [ERROR] Failed to execute goal on project apacheds-core-api: Could not resolve dependencies for project org.apache.directory.server:apacheds-core-api:bundle:2.0.0.AM26-SNAPSHOT: Failure to find org.apache.mina:mina-core:jar:2.1.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
Ah, sorry, you also need to build the LDAP API before building the server:
$ git clone https://gitbox.apache.org/repos/asf/directory-ldap-api.git
$ cd directory-ldap-api
$ mvn clean install -DskipTests
Re: apacheds won't start after installing Fortress
Posted by Luis Carmona <lc...@openpartner.cl.INVALID>.
HI Emmanuel,
thanks for your response. Followed your instructions, and in step 3 (mvn clean install -DskipTests), compilation falls with error:
[INFO] ApacheDS ........................................... SUCCESS [ 2.982 s]
[INFO] ApacheDS I18n ...................................... SUCCESS [ 2.288 s]
[INFO] ApacheDS Core Constants ............................ SUCCESS [ 0.303 s]
[INFO] ApacheDS Core API .................................. FAILURE [ 0.087 s]
...
[ERROR] Failed to execute goal on project apacheds-core-api: Could not resolve dependencies for project org.apache.directory.server:apacheds-core-api:bundle:2.0.0.AM26-SNAPSHOT: Failure to find org.apache.mina:mina-core:jar:2.1.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
What else can I do ?
If I install fortress on top of OpenLDAP, everything should go well ?
Regards,
LC
----- Original Message -----
From: "Emmanuel Lécharny" <el...@gmail.com>
To: "fortress" <fo...@directory.apache.org>
Sent: Wednesday, April 17, 2019 5:52:55 PM
Subject: Re: apacheds won't start after installing Fortress
Hi,
this is an ApacheDS bug. It has been solved in the latest ApacheDS
version which is not yet released.
You can build ApacheDS from trunk :
$ git clone https://gitbox.apache.org/repos/asf/directory-server.git $ cd
directory-server $ mvn clean install -DskipTests and run the installer :
$ cd installers $ mvn clean install -Pinstallers
the installer for your platform can be find in target/installers
On 17/04/2019 21:42, Luis Carmona wrote:
> Hi,
>
> I'm having problems to start using Fortress solution.
>
> I follow every single step, with no errors, enabliing Fortress on top of a brand new apacheds.
>
> Everything goes ok, even I can see the results of the installation and tests steps in Apache Directory Studio.
>
> But when I restart the servicce, apacheds doesn't start anymore, throwing the next error messages in logs
>
> [01:10:24] ERROR [org.apache.directory.api.ldap.model.entry.DefaultAttribute] - ERR_13215_VALUE_EXPECT_STRING The value is expected to be a String
> [01:10:24] ERROR [org.apache.directory.api.ldap.schema.loader.LdifSchemaLoader] - ERR_16009_LDIF_LOAD_FAIL Failed to load schema LDIF file cn=fortress.ldif
> org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException: ERR_13215_VALUE_EXPECT_STRING The value is expected to be a String
>
> I've read it is something related to a wrong creatorName, but given all this is donde by the installer, I have no chance to avoid the creatorName it uses. The creatorName in the file cn=fortress.ldif appears in a lot of files, I changed it only in the cn=fortress.ldif file to test, but made no difference, apacheds don't start up.
>
> Please any tip will be precciated.
>
> Regards and thanks in advance.
>
> LC
>
Re: apacheds won't start after installing Fortress
Posted by Emmanuel Lécharny <el...@gmail.com>.
Hi,
this is an ApacheDS bug. It has been solved in the latest ApacheDS
version which is not yet released.
You can build ApacheDS from trunk :
$ git clone https://gitbox.apache.org/repos/asf/directory-server.git $ cd
directory-server $ mvn clean install -DskipTests and run the installer :
$ cd installers $ mvn clean install -Pinstallers
the installer for your platform can be find in target/installers
On 17/04/2019 21:42, Luis Carmona wrote:
> Hi,
>
> I'm having problems to start using Fortress solution.
>
> I follow every single step, with no errors, enabliing Fortress on top of a brand new apacheds.
>
> Everything goes ok, even I can see the results of the installation and tests steps in Apache Directory Studio.
>
> But when I restart the servicce, apacheds doesn't start anymore, throwing the next error messages in logs
>
> [01:10:24] ERROR [org.apache.directory.api.ldap.model.entry.DefaultAttribute] - ERR_13215_VALUE_EXPECT_STRING The value is expected to be a String
> [01:10:24] ERROR [org.apache.directory.api.ldap.schema.loader.LdifSchemaLoader] - ERR_16009_LDIF_LOAD_FAIL Failed to load schema LDIF file cn=fortress.ldif
> org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException: ERR_13215_VALUE_EXPECT_STRING The value is expected to be a String
>
> I've read it is something related to a wrong creatorName, but given all this is donde by the installer, I have no chance to avoid the creatorName it uses. The creatorName in the file cn=fortress.ldif appears in a lot of files, I changed it only in the cn=fortress.ldif file to test, but made no difference, apacheds don't start up.
>
> Please any tip will be precciated.
>
> Regards and thanks in advance.
>
> LC
>