Skip to Content.
Sympa Menu

comanage-users - Re: [comanage-users] [External]Re: LDAP Source debugging

Subject: COmanage Users List

List archive

Re: [comanage-users] [External]Re: LDAP Source debugging


Chronological Thread 
  • From: "Daniels, John" <>
  • To: Scott Koranda <>
  • Cc: "" <>
  • Subject: Re: [comanage-users] [External]Re: LDAP Source debugging
  • Date: Tue, 15 Mar 2022 16:22:43 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chop.edu; dmarc=pass action=none header.from=chop.edu; dkim=pass header.d=chop.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t86dsWJTqK/iQKkbddJ2qxHf8RPxQZjBftswA43e8xI=; b=cYgtF0OdthsgXAFDrNtrd9CyU9mlZgoOde7ORrc2Xh7oUSlf8LWhp1AnhoT1bgNeRmXK8PxgAIU5xr8NTvzsGdB5Y2BKVaM195vHg/QIcDfmS30IVbNxIaVzQDISoJ1Jsg8UNiasZHMQCOV5pQHZHzOIF8aB6DCk0rzmZrCgT2PeKzs/95y09zj9P6IYPjCBonTdMQyRiGBSKNm4KNuNhU6Jne8XUrtXRpLT7RRdb2S7g28ZzIuESR8xEBj6O/etc6CKx5wNtwR44SulWgt0u1ko+L3zb/e6KlIaB+7WRjMdr7Lf/GbXe7G9ucwYBmKrMQLVOxQUJPkkQdZor8E+fQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SVivyvfd5v0mg6baQad8zboUfgMH1ygCMKj/bE7nT2BJLa1OVyLdyuNSCfldtYvdGnV1VewvosbnMfYLe2GD6M8PSjsHxYlY/yYdQ20VyEHL0c3ou0iHdXtQeMdNF/JWyak7ysS9fUxxj/d+9Z9ps+96glOsNvuZWmKfyQInL0DOTc30CaXOc9WZBZSpAfieRc/8UZuhPJ257nG3TXWlzlhTDpW0R0QuSGKvb6cCKuAb1l2RPFZyJbBEB90bKBvQAbt7NZH/I0nfxGbyq4/CNvMDClyS5AN0yGMP9DqXu9wADf2xXCiqP6PXTwlPoGLtJDkwLDNWyv6WLBlpI529sQ==

Thanks for the quick reply.

Going through your steps...
I seem to have hit an issue on the database schema. I'm sure this worked when
it was initially installed.. This is a new install, no upgrades or anything
like that.
Any way to see what it's failing to update?

su -c "./Console/cake database -v" apache

Welcome to CakePHP v2.10.24 Console
---------------------------------------------------------------
App : app
Path: /srv/comanage/comanage-registry-4.0.1/app/
---------------------------------------------------------------
Loading schema from file
/srv/comanage/comanage-registry-4.0.1/app//Config/Schema/schema.xml...
This may take a few minutes for large datasets, please do not interrupt.
Possibly failed to update database schema
Loading schema from file
/srv/comanage/comanage-registry-4.0.1/app//Plugin/CoreApi/Config/Schema/schema.xml...
This may take a few minutes for large datasets, please do not interrupt.
Possibly failed to update database schema
No schema found for CoreJob
No schema found for DefaultNormalizer
Loading schema from file
/srv/comanage/comanage-registry-4.0.1/app//Plugin/EnvSource/Config/Schema/schema.xml...
This may take a few minutes for large datasets, please do not interrupt.
Possibly failed to update database schema
Loading schema from file
/srv/comanage/comanage-registry-4.0.1/app//Plugin/GrouperProvisioner/Config/Schema/schema.xml...
This may take a few minutes for large datasets, please do not interrupt.
Possibly failed to update database schema
Loading schema from file
/srv/comanage/comanage-registry-4.0.1/app//Plugin/LdapProvisioner/Config/Schema/schema.xml...
This may take a few minutes for large datasets, please do not interrupt.
Possibly failed to update database schema
Loading schema from file
/srv/comanage/comanage-registry-4.0.1/local//Plugin/LdapSource/Config/Schema/schema.xml...
This may take a few minutes for large datasets, please do not interrupt.
Possibly failed to update database schema
No schema found for Linkable
Loading schema from file
/srv/comanage/comanage-registry-4.0.1/app//Plugin/OrcidSource/Config/Schema/schema.xml...
This may take a few minutes for large datasets, please do not interrupt.
Possibly failed to update database schema
Loading schema from file
/srv/comanage/comanage-registry-4.0.1/app//Plugin/SshKeyAuthenticator/Config/Schema/schema.xml...
This may take a few minutes for large datasets, please do not interrupt.
Possibly failed to update database schema


Thanks again,
-John

--
John Daniels
Principal Systems Engineer
Children's Hospital of Philadelphia Research Institute


On 3/15/22, 12:02 PM, "Scott Koranda" <> wrote:

[You don't often get email from . Learn why this is
important at http://aka.ms/LearnAboutSenderIdentification.]

Hi John,

Here is how I would start:

- Clear the cache that CakePHP saves for models. I like to do it by
changing to the tmp directory you set up during install [1]
and doing

find ./cache -type f -delete

- Next make sure the database schema is up to date after you "installed"
the LdapSource plugin by doing

cd .../app
./Console/cake database

I usually run that as root because I am in a hurry. If you want to run
it as the web server user (httpd or www-data) you will probably need
to use su or sudo.

- Clear the cache again, especially if you ran the previous command as
root:

cd .../tmp/
find ./cache -type f -delete

- Now try again for a single source record. Do you get the same error?

If so the "saveAssociated" is caused when some model related to the
OrgIdentity cannot be saved. It is often an Identifier that cannot be
saved, probably because it already exists and is attached to an object.
Is that the case?

I know these are simple steps. Can you try them and if you are still
having the issue let us know and we can dig further.

Thanks,

Scott

> How do I go about debugging the LDAP Source Plugin?
> I have it setup and I can view inventory on the org identity source.
The records I view from there look right. (Only thing off might be that
‘source record’ is empty, unclear if that’s normal from this view..)
> When I go to ‘add new org identity from source’ and I get a UI error of
“Database save failed: OrgIdentity saveAssociated”
> I have tried increasing to debug in core.php and viewing the php logs
in the tmpdir and in my php-fpm logs. Nothing shows up. Beyond that, I’ve
injected some debug lines into the Plugin and the OrIdentitySource from the
model, but I can’t seem to track anything down.. The resulting org identity
object seems valid.
> Running 4.0.1 with php 7.2.
>
> Thanks,
> John
>
>
> --
> John Daniels
> Principal Systems Engineer
> Children's Hospital of Philadelphia Research Institute
>
>
** This email originated from an EXTERNAL sender to CHOP. Proceed with
caution when replying, opening attachments, or clicking links. Do not
disclose your CHOP credentials, employee information, or protected health
information to a potential hacker**.





Archive powered by MHonArc 2.6.24.

Top of Page