Re: [Freeipa-users] Trouble creating replica

2013-02-21 Thread Bret Wortman
Thanks for the bug link. We let the developer we thought had messed things
up out of the 4x4 cell we had stashed him in. He's still blinking from
sunlight but the doctors tell us the facial twitching will stop in a month
or two.


*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Thu, Feb 21, 2013 at 10:54 AM, Rich Megginson wrote:

>  On 02/21/2013 07:11 AM, Bret Wortman wrote:
>
> Rich,
>
>  389-ds-base-1.2.11.5-1.fc17.x86_64.
>
> The box is a DL360G8.
>
>  https://fedorahosted.org/389/ticket/518
>
>
>  *
> *
> *Bret Wortman*
>  
>  http://damascusgrp.com/ 
>  http://twitter.com/BretWortman
>
>
> On Wed, Feb 20, 2013 at 9:03 PM, Rich Megginson wrote:
>
>>  On 02/20/2013 06:43 PM, Bret Wortman wrote:
>>
>> Mine was not.
>>
>> What platform?  What version of 389-ds-base?
>>
>>
>>  —
>> Bret Wortman
>>
>>
>>  On Wed, Feb 20, 2013 at 8:16 PM, Rich Megginson wrote:
>>
>>> On 02/20/2013 06:00 PM, KodaK wrote:
>>>
>>>
>>>
>>> On Wed, Feb 20, 2013 at 8:41 AM, Bret Wortman <
>>> bret.wort...@damascusgrp.com> wrote:
>>>
 Eureka!

  Someone had deleted the contents of
 /etc/dirsrv/slapd-PKI-IPA/dse.ldif. I replaced it from a saved copy and now
 everything's working as expected.

 Thanks everyone for your contributions, patience, and indulgence. And
 for a wonderful product!


>>>  I wouldn't be too sure that someone deleted it.  A couple of weeks ago
>>> I had a crash and half of my replicas had an empty dse.ldif.  I think you
>>> and I may be hitting a bug.
>>>
>>>
>>> were these virtual machines?
>>>
>>>
>>>  --Jason
>>>
>>>
>>> ___
>>> Freeipa-users mailing 
>>> listFreeipa-users@redhat.comhttps://www.redhat.com/mailman/listinfo/freeipa-users
>>>
>>>
>>>
>>
>>
>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-21 Thread Rich Megginson

On 02/21/2013 07:11 AM, Bret Wortman wrote:

Rich,

389-ds-base-1.2.11.5-1.fc17.x86_64.

The box is a DL360G8.


https://fedorahosted.org/389/ticket/518


_
_
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Wed, Feb 20, 2013 at 9:03 PM, Rich Megginson > wrote:


On 02/20/2013 06:43 PM, Bret Wortman wrote:


Mine was not.


What platform?  What version of 389-ds-base?



—
Bret Wortman


On Wed, Feb 20, 2013 at 8:16 PM, Rich Megginson
mailto:rmegg...@redhat.com>> wrote:

On 02/20/2013 06:00 PM, KodaK wrote:



On Wed, Feb 20, 2013 at 8:41 AM, Bret Wortman
mailto:bret.wort...@damascusgrp.com>> wrote:

Eureka!

Someone had deleted the contents of
/etc/dirsrv/slapd-PKI-IPA/dse.ldif. I replaced it from a
saved copy and now everything's working as expected.

Thanks everyone for your contributions, patience, and
indulgence. And for a wonderful product!


I wouldn't be too sure that someone deleted it.  A couple of
weeks ago I had a crash and half of my replicas had an empty
dse.ldif.  I think you and I may be hitting a bug.


were these virtual machines?



--Jason


___
Freeipa-users mailing list
Freeipa-users@redhat.com  
https://www.redhat.com/mailman/listinfo/freeipa-users








___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-21 Thread Bret Wortman
Rich,

389-ds-base-1.2.11.5-1.fc17.x86_64.

The box is a DL360G8.


*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Wed, Feb 20, 2013 at 9:03 PM, Rich Megginson  wrote:

>  On 02/20/2013 06:43 PM, Bret Wortman wrote:
>
> Mine was not.
>
> What platform?  What version of 389-ds-base?
>
>
>  —
> Bret Wortman
>
>
>  On Wed, Feb 20, 2013 at 8:16 PM, Rich Megginson wrote:
>
>> On 02/20/2013 06:00 PM, KodaK wrote:
>>
>>
>>
>> On Wed, Feb 20, 2013 at 8:41 AM, Bret Wortman <
>> bret.wort...@damascusgrp.com> wrote:
>>
>>> Eureka!
>>>
>>>  Someone had deleted the contents of
>>> /etc/dirsrv/slapd-PKI-IPA/dse.ldif. I replaced it from a saved copy and now
>>> everything's working as expected.
>>>
>>> Thanks everyone for your contributions, patience, and indulgence. And
>>> for a wonderful product!
>>>
>>>
>>  I wouldn't be too sure that someone deleted it.  A couple of weeks ago
>> I had a crash and half of my replicas had an empty dse.ldif.  I think you
>> and I may be hitting a bug.
>>
>>
>> were these virtual machines?
>>
>>
>>  --Jason
>>
>>
>> ___
>> Freeipa-users mailing 
>> listFreeipa-users@redhat.comhttps://www.redhat.com/mailman/listinfo/freeipa-users
>>
>>
>>
>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Rich Megginson

On 02/20/2013 06:43 PM, Bret Wortman wrote:


Mine was not.


What platform?  What version of 389-ds-base?


—
Bret Wortman


On Wed, Feb 20, 2013 at 8:16 PM, Rich Megginson > wrote:


On 02/20/2013 06:00 PM, KodaK wrote:



On Wed, Feb 20, 2013 at 8:41 AM, Bret Wortman
mailto:bret.wort...@damascusgrp.com>> wrote:

Eureka!

Someone had deleted the contents of
/etc/dirsrv/slapd-PKI-IPA/dse.ldif. I replaced it from a
saved copy and now everything's working as expected.

Thanks everyone for your contributions, patience, and
indulgence. And for a wonderful product!


I wouldn't be too sure that someone deleted it.  A couple of
weeks ago I had a crash and half of my replicas had an empty
dse.ldif.  I think you and I may be hitting a bug.


were these virtual machines?



--Jason


___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users





___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Bret Wortman
Mine was not. 
—
Bret Wortman

On Wed, Feb 20, 2013 at 8:16 PM, Rich Megginson 
wrote:

> On 02/20/2013 06:00 PM, KodaK wrote:
>>
>>
>> On Wed, Feb 20, 2013 at 8:41 AM, Bret Wortman 
>> mailto:bret.wort...@damascusgrp.com>> 
>> wrote:
>>
>> Eureka!
>>
>> Someone had deleted the contents of
>> /etc/dirsrv/slapd-PKI-IPA/dse.ldif. I replaced it from a saved
>> copy and now everything's working as expected.
>>
>> Thanks everyone for your contributions, patience, and indulgence.
>> And for a wonderful product!
>>
>>
>> I wouldn't be too sure that someone deleted it.  A couple of weeks ago 
>> I had a crash and half of my replicas had an empty dse.ldif.  I think 
>> you and I may be hitting a bug.
> were these virtual machines?
>>
>> --Jason
>>
>>
>> ___
>> Freeipa-users mailing list
>> Freeipa-users@redhat.com
>> https://www.redhat.com/mailman/listinfo/freeipa-users___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Rich Megginson

On 02/20/2013 06:00 PM, KodaK wrote:



On Wed, Feb 20, 2013 at 8:41 AM, Bret Wortman 
mailto:bret.wort...@damascusgrp.com>> 
wrote:


Eureka!

Someone had deleted the contents of
/etc/dirsrv/slapd-PKI-IPA/dse.ldif. I replaced it from a saved
copy and now everything's working as expected.

Thanks everyone for your contributions, patience, and indulgence.
And for a wonderful product!


I wouldn't be too sure that someone deleted it.  A couple of weeks ago 
I had a crash and half of my replicas had an empty dse.ldif.  I think 
you and I may be hitting a bug.


were these virtual machines?



--Jason


___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread KodaK
On Wed, Feb 20, 2013 at 8:41 AM, Bret Wortman
wrote:

> Eureka!
>
> Someone had deleted the contents of /etc/dirsrv/slapd-PKI-IPA/dse.ldif. I
> replaced it from a saved copy and now everything's working as expected.
>
> Thanks everyone for your contributions, patience, and indulgence. And for
> a wonderful product!
>
>
I wouldn't be too sure that someone deleted it.  A couple of weeks ago I
had a crash and half of my replicas had an empty dse.ldif.  I think you and
I may be hitting a bug.

--Jason
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Bret Wortman
I'm running 2.2.0-1.fc17.x86_64

And FWIW, the replica data file I was able to create after this just
installed successfully on the new host.



*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Wed, Feb 20, 2013 at 9:47 AM, Rob Crittenden  wrote:

> Bret Wortman wrote:
>
>> Eureka!
>>
>> Someone had deleted the contents of /etc/dirsrv/slapd-PKI-IPA/dse.**ldif.
>> I replaced it from a saved copy and now everything's working as expected.
>>
>> Thanks everyone for your contributions, patience, and indulgence. And
>> for a wonderful product!
>>
>
> Glad you're up and running again.
>
> I'm curious, what version are you running?
>
> rob
>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Rob Crittenden

Bret Wortman wrote:

Eureka!

Someone had deleted the contents of /etc/dirsrv/slapd-PKI-IPA/dse.ldif.
I replaced it from a saved copy and now everything's working as expected.

Thanks everyone for your contributions, patience, and indulgence. And
for a wonderful product!


Glad you're up and running again.

I'm curious, what version are you running?

rob

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread John Dennis

On 02/20/2013 08:43 AM, Bret Wortman wrote:
> [root@oldmaster]# pkicontrol start ca PKI-IPA

PKI-IPA is an invalid 'pki-ca' instance
[root@oldmaster]#

Is there another, preferred way to start it?


pkiconsole is used to monitor/configure your instance, it's a GUI 
application. Perhaps it can also be used to start/stop instances but 
I've never seen it used that way and we don't use pkiconsole at all.


Normally the pki-ca instance is controlled using the same service 
commands for any other daemon. Some of this has been in flux so the 
details may depend on your exact OS. If you don't provide a specific 
instance to start/stop then the service command will apply the action to 
all your instances, usaully this is fine as usaully you only have one 
instance.


As for debugging what is going on. pki-ca is a tomcat instance. You need 
to locate it's log files under /var/log depending on the release it can 
be named slightly differently but it should be obvious. You need to 
understand how a tomcat instance starts, again this depends on the 
release. Early start up messages will be written to catalina.out, those 
are tomcat specific messages, if you have problems opening sockets (for 
instance bad certs) it should show up in this file. Once tomcat hands 
control over to the application (i.e. pki-ca) you will see messages in 
the "debug" file located under the /var/log/pki-ca (or whatever, depends 
on the release) directory. As I said it should be easy to find. Look in 
that file for obvious problems.


HTH,

I forget the exact version you're running on which OS. If the above is 
not specific enough we can get the dogtag folks to jump in.


--
John Dennis 

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Bret Wortman
Eureka!

Someone had deleted the contents of /etc/dirsrv/slapd-PKI-IPA/dse.ldif. I
replaced it from a saved copy and now everything's working as expected.

Thanks everyone for your contributions, patience, and indulgence. And for a
wonderful product!


*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Wed, Feb 20, 2013 at 9:34 AM, Bret Wortman
wrote:

> I think this keeps coming back to the fact that ldap isn't listening on
> 7389 for some reason. When I try to *really* manually start pki-ca like
> this, it complains about ldap before dying:
>
> # sudo -u pkiuser -s /usr/lib/jvm/jre/bin/java -classpath
> :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
> -Dcatalina.base=/var/lib/pki-ca -Dcatalina.home=/usr/share/tomcat6
> -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp
> -Djava.util.logging.config.file=/var/lib/pki-ca/conf/logging.properties
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> org.apache.catalina.startup.Bootstrap start
> :
> :
> Could not connect to LDAP server host oldmaster.my.com port 7389 Error
> netscape.ldap.LDAPException: failed to connect to server ldap://
> oldmaster.my.com:7389 (91)
> [root@oldmaster]#
>
> This bears out what I see in /var/log/pki-ca/catalina.out too.
>
>
>
> *
> *
> *Bret Wortman*
> 
> http://damascusgrp.com/ 
> http://twitter.com/BretWortman
>
>
> On Wed, Feb 20, 2013 at 8:43 AM, Bret Wortman <
> bret.wort...@damascusgrp.com> wrote:
>
>> On Wed, Feb 20, 2013 at 8:40 AM, Simo Sorce  wrote:
>>
>>> On Wed, 2013-02-20 at 08:08 -0500, Bret Wortman wrote:
>>> > Digging further into my logs this morning, I've discovered that
>>> > there's no new entries in /var/log/dirsrv/slapd-PKI-IPA since Feb 5
>>> > either. How can I tell why this isn't
>>> > running? /var/log/dirsrv/slapd-MY-COM is getting updated and logged
>>> > to, it's just the PKI piece that seems to be dead.
>>> >
>>> >
>>> > Nothing in /etc/pki-ca has changed since last year, and the last
>>> > updates to /var/lib/dirsrv/slapd-PKI-IPA/db or changelogs occurred on
>>> > Feb 5. I just can't tell what that change was
>>>
>>> What error do you get if you try to start it ?
>>>
>>
>> [root@oldmaster]# pkicontrol start ca PKI-IPA
>> PKI-IPA is an invalid 'pki-ca' instance
>> [root@oldmaster]#
>>
>> Is there another, preferred way to start it?
>>
>>
>>
>>> >
>>> > Would a key change or certificate change have affected this?
>>>
>>> An expired CA cert might cause the server to stop, but then you would
>>> see expired certs all over and also the main IPA instance would not
>>> start.
>>> >
>>> > Worst case, if I do something like this:
>>> >
>>> >
>>> > # ipa-server-install -U --uninstall
>>> > # ipa-server-install
>>> >
>>> You will completely obliterate all your data.
>>>
>>> > will I lose the hosts, policies & users I already have configured?
>>> > Does this stand a chance of getting me back up to where I can clone
>>> > this box and get healthy again?
>>> >
>>> Healthy will be, but with no data, don't do it. (and I suggest you make
>>> a full backup just in case)
>>>
>>> Simo.
>>>
>>> --
>>> Simo Sorce * Red Hat, Inc * New York
>>>
>>>
>>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Bret Wortman
I think this keeps coming back to the fact that ldap isn't listening on
7389 for some reason. When I try to *really* manually start pki-ca like
this, it complains about ldap before dying:

# sudo -u pkiuser -s /usr/lib/jvm/jre/bin/java -classpath
:/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
-Dcatalina.base=/var/lib/pki-ca -Dcatalina.home=/usr/share/tomcat6
-Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp
-Djava.util.logging.config.file=/var/lib/pki-ca/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
org.apache.catalina.startup.Bootstrap start
:
:
Could not connect to LDAP server host oldmaster.my.com port 7389 Error
netscape.ldap.LDAPException: failed to connect to server ldap://
oldmaster.my.com:7389 (91)
[root@oldmaster]#

This bears out what I see in /var/log/pki-ca/catalina.out too.



*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Wed, Feb 20, 2013 at 8:43 AM, Bret Wortman
wrote:

> On Wed, Feb 20, 2013 at 8:40 AM, Simo Sorce  wrote:
>
>> On Wed, 2013-02-20 at 08:08 -0500, Bret Wortman wrote:
>> > Digging further into my logs this morning, I've discovered that
>> > there's no new entries in /var/log/dirsrv/slapd-PKI-IPA since Feb 5
>> > either. How can I tell why this isn't
>> > running? /var/log/dirsrv/slapd-MY-COM is getting updated and logged
>> > to, it's just the PKI piece that seems to be dead.
>> >
>> >
>> > Nothing in /etc/pki-ca has changed since last year, and the last
>> > updates to /var/lib/dirsrv/slapd-PKI-IPA/db or changelogs occurred on
>> > Feb 5. I just can't tell what that change was
>>
>> What error do you get if you try to start it ?
>>
>
> [root@oldmaster]# pkicontrol start ca PKI-IPA
> PKI-IPA is an invalid 'pki-ca' instance
> [root@oldmaster]#
>
> Is there another, preferred way to start it?
>
>
>
>> >
>> > Would a key change or certificate change have affected this?
>>
>> An expired CA cert might cause the server to stop, but then you would
>> see expired certs all over and also the main IPA instance would not
>> start.
>> >
>> > Worst case, if I do something like this:
>> >
>> >
>> > # ipa-server-install -U --uninstall
>> > # ipa-server-install
>> >
>> You will completely obliterate all your data.
>>
>> > will I lose the hosts, policies & users I already have configured?
>> > Does this stand a chance of getting me back up to where I can clone
>> > this box and get healthy again?
>> >
>> Healthy will be, but with no data, don't do it. (and I suggest you make
>> a full backup just in case)
>>
>> Simo.
>>
>> --
>> Simo Sorce * Red Hat, Inc * New York
>>
>>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Bret Wortman
On Wed, Feb 20, 2013 at 8:40 AM, Simo Sorce  wrote:

> On Wed, 2013-02-20 at 08:08 -0500, Bret Wortman wrote:
> > Digging further into my logs this morning, I've discovered that
> > there's no new entries in /var/log/dirsrv/slapd-PKI-IPA since Feb 5
> > either. How can I tell why this isn't
> > running? /var/log/dirsrv/slapd-MY-COM is getting updated and logged
> > to, it's just the PKI piece that seems to be dead.
> >
> >
> > Nothing in /etc/pki-ca has changed since last year, and the last
> > updates to /var/lib/dirsrv/slapd-PKI-IPA/db or changelogs occurred on
> > Feb 5. I just can't tell what that change was
>
> What error do you get if you try to start it ?
>

[root@oldmaster]# pkicontrol start ca PKI-IPA
PKI-IPA is an invalid 'pki-ca' instance
[root@oldmaster]#

Is there another, preferred way to start it?



> >
> > Would a key change or certificate change have affected this?
>
> An expired CA cert might cause the server to stop, but then you would
> see expired certs all over and also the main IPA instance would not
> start.
> >
> > Worst case, if I do something like this:
> >
> >
> > # ipa-server-install -U --uninstall
> > # ipa-server-install
> >
> You will completely obliterate all your data.
>
> > will I lose the hosts, policies & users I already have configured?
> > Does this stand a chance of getting me back up to where I can clone
> > this box and get healthy again?
> >
> Healthy will be, but with no data, don't do it. (and I suggest you make
> a full backup just in case)
>
> Simo.
>
> --
> Simo Sorce * Red Hat, Inc * New York
>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Simo Sorce
On Wed, 2013-02-20 at 08:08 -0500, Bret Wortman wrote:
> Digging further into my logs this morning, I've discovered that
> there's no new entries in /var/log/dirsrv/slapd-PKI-IPA since Feb 5
> either. How can I tell why this isn't
> running? /var/log/dirsrv/slapd-MY-COM is getting updated and logged
> to, it's just the PKI piece that seems to be dead.
> 
> 
> Nothing in /etc/pki-ca has changed since last year, and the last
> updates to /var/lib/dirsrv/slapd-PKI-IPA/db or changelogs occurred on
> Feb 5. I just can't tell what that change was

What error do you get if you try to start it ?
> 
> Would a key change or certificate change have affected this?

An expired CA cert might cause the server to stop, but then you would
see expired certs all over and also the main IPA instance would not
start.
> 
> Worst case, if I do something like this:
> 
> 
> # ipa-server-install -U --uninstall
> # ipa-server-install
> 
You will completely obliterate all your data.

> will I lose the hosts, policies & users I already have configured?
> Does this stand a chance of getting me back up to where I can clone
> this box and get healthy again?
> 
Healthy will be, but with no data, don't do it. (and I suggest you make
a full backup just in case)

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Bret Wortman
And just in case this is informative:

[root@oldmaster]# pkicontrol start ca PKI-IPA
PKI-IPA is an invalid 'pki-ca' instance
[root@oldmaster]#


*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Wed, Feb 20, 2013 at 8:08 AM, Bret Wortman
wrote:

> Digging further into my logs this morning, I've discovered that there's no
> new entries in /var/log/dirsrv/slapd-PKI-IPA since Feb 5 either. How can I
> tell why this isn't running? /var/log/dirsrv/slapd-MY-COM is getting
> updated and logged to, it's just the PKI piece that seems to be dead.
>
> Nothing in /etc/pki-ca has changed since last year, and the last updates
> to /var/lib/dirsrv/slapd-PKI-IPA/db or changelogs occurred on Feb 5. I just
> can't tell what that change was
>
> Would a key change or certificate change have affected this?
>
> Worst case, if I do something like this:
>
> # ipa-server-install -U --uninstall
> # ipa-server-install
>
> will I lose the hosts, policies & users I already have configured? Does
> this stand a chance of getting me back up to where I can clone this box and
> get healthy again?
>
>
> *
> *
> *Bret Wortman*
> 
> http://damascusgrp.com/ 
> http://twitter.com/BretWortman
>
>
> On Tue, Feb 19, 2013 at 2:01 PM, Bret Wortman <
> bret.wort...@damascusgrp.com> wrote:
>
>> No, can't telnet to 7389 or 9444 either one:
>>
>> [root@ipamaster]# telnet oldmaster.my.com 7389
>> Trying 10.0.0.42...
>> telnet: connect to address 10.0.0.42: COnnection refused
>> [root@ipamaster]#
>>
>> I do note that I only have packages called dogtag-*-theme installed:
>>
>> [root@oldmaster]# yum list "*dogtag*"
>> Loaded plugins: lnagpacks, presto, refresh-packagekit
>> Installed Packages
>> dogtag-pki-ca-theme.noarch  9.0.11-1.fc17
>>  @fedora
>> dogtag-pki-common-theme.noarch  9.0.11-1.fc17
>>  @fedora
>> Available Packages
>> dogtag-pki.noarch   9.0.0-13.fc17
>>  @fedora
>> :
>>
>> I also noticed that, according to /var/log/pki-ca/catalina.out and
>> /var/log/pki-ca/debug, this hasn't successfully run since 05-Feb. And no,
>> I'm not sure what happened on that day to change things, but I'm trying to
>> find out. (At least, I assume this logdir relates to dogtag)
>>
>>
>>
>> *
>> *
>> *Bret Wortman*
>> 
>> http://damascusgrp.com/ 
>> http://twitter.com/BretWortman
>>
>>
>> On Tue, Feb 19, 2013 at 1:26 PM, Rob Crittenden wrote:
>>
>>> Natxo Asenjo wrote:
>>>
 On Tue, Feb 19, 2013 at 5:58 PM, Bret Wortman
 >>> >
 wrote:

 Digging a bit deeper, I found this in /var/log/pki-ca/catalina.out:

 :
 Could not connect to LDAP server host oldmaster.my.com
  port 7389 Error

 netscape.ldap.LDAPException: failed to connect to server
 ldap://oldmaster.my.com:7389  (91)


 This certainly appears to be a problem, but everyone's
 authenticating against oldmaster just fine. Thoughts, anyone?


 can you connect to that port (7389) on oldmaster.my.com
  from the other replica? (try telnetting to
 the
 port: telnet oldmaster.my.com  7389)

>>>
>>> 7389 is port in the 389-ds instance used by dogtag. Is the instance
>>> running on oldmaster?
>>>
>>> It isn't used for authentication which is why you aren't seeing problems
>>> with clients.
>>>
>>> rob
>>>
>>> __**_
>>> Freeipa-users mailing list
>>> Freeipa-users@redhat.com
>>> https://www.redhat.com/**mailman/listinfo/freeipa-users
>>>
>>
>>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-20 Thread Bret Wortman
Digging further into my logs this morning, I've discovered that there's no
new entries in /var/log/dirsrv/slapd-PKI-IPA since Feb 5 either. How can I
tell why this isn't running? /var/log/dirsrv/slapd-MY-COM is getting
updated and logged to, it's just the PKI piece that seems to be dead.

Nothing in /etc/pki-ca has changed since last year, and the last updates to
/var/lib/dirsrv/slapd-PKI-IPA/db or changelogs occurred on Feb 5. I just
can't tell what that change was

Would a key change or certificate change have affected this?

Worst case, if I do something like this:

# ipa-server-install -U --uninstall
# ipa-server-install

will I lose the hosts, policies & users I already have configured? Does
this stand a chance of getting me back up to where I can clone this box and
get healthy again?


*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Tue, Feb 19, 2013 at 2:01 PM, Bret Wortman
wrote:

> No, can't telnet to 7389 or 9444 either one:
>
> [root@ipamaster]# telnet oldmaster.my.com 7389
> Trying 10.0.0.42...
> telnet: connect to address 10.0.0.42: COnnection refused
> [root@ipamaster]#
>
> I do note that I only have packages called dogtag-*-theme installed:
>
> [root@oldmaster]# yum list "*dogtag*"
> Loaded plugins: lnagpacks, presto, refresh-packagekit
> Installed Packages
> dogtag-pki-ca-theme.noarch  9.0.11-1.fc17
>  @fedora
> dogtag-pki-common-theme.noarch  9.0.11-1.fc17
>  @fedora
> Available Packages
> dogtag-pki.noarch   9.0.0-13.fc17
>  @fedora
> :
>
> I also noticed that, according to /var/log/pki-ca/catalina.out and
> /var/log/pki-ca/debug, this hasn't successfully run since 05-Feb. And no,
> I'm not sure what happened on that day to change things, but I'm trying to
> find out. (At least, I assume this logdir relates to dogtag)
>
>
>
> *
> *
> *Bret Wortman*
> 
> http://damascusgrp.com/ 
> http://twitter.com/BretWortman
>
>
> On Tue, Feb 19, 2013 at 1:26 PM, Rob Crittenden wrote:
>
>> Natxo Asenjo wrote:
>>
>>> On Tue, Feb 19, 2013 at 5:58 PM, Bret Wortman
>>> >> >
>>> wrote:
>>>
>>> Digging a bit deeper, I found this in /var/log/pki-ca/catalina.out:
>>>
>>> :
>>> Could not connect to LDAP server host oldmaster.my.com
>>>  port 7389 Error
>>>
>>> netscape.ldap.LDAPException: failed to connect to server
>>> ldap://oldmaster.my.com:7389  (91)
>>>
>>>
>>> This certainly appears to be a problem, but everyone's
>>> authenticating against oldmaster just fine. Thoughts, anyone?
>>>
>>>
>>> can you connect to that port (7389) on oldmaster.my.com
>>>  from the other replica? (try telnetting to the
>>> port: telnet oldmaster.my.com  7389)
>>>
>>
>> 7389 is port in the 389-ds instance used by dogtag. Is the instance
>> running on oldmaster?
>>
>> It isn't used for authentication which is why you aren't seeing problems
>> with clients.
>>
>> rob
>>
>> __**_
>> Freeipa-users mailing list
>> Freeipa-users@redhat.com
>> https://www.redhat.com/**mailman/listinfo/freeipa-users
>>
>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-19 Thread Bret Wortman
No, can't telnet to 7389 or 9444 either one:

[root@ipamaster]# telnet oldmaster.my.com 7389
Trying 10.0.0.42...
telnet: connect to address 10.0.0.42: COnnection refused
[root@ipamaster]#

I do note that I only have packages called dogtag-*-theme installed:

[root@oldmaster]# yum list "*dogtag*"
Loaded plugins: lnagpacks, presto, refresh-packagekit
Installed Packages
dogtag-pki-ca-theme.noarch  9.0.11-1.fc17
 @fedora
dogtag-pki-common-theme.noarch  9.0.11-1.fc17
 @fedora
Available Packages
dogtag-pki.noarch   9.0.0-13.fc17
 @fedora
:

I also noticed that, according to /var/log/pki-ca/catalina.out and
/var/log/pki-ca/debug, this hasn't successfully run since 05-Feb. And no,
I'm not sure what happened on that day to change things, but I'm trying to
find out. (At least, I assume this logdir relates to dogtag)



*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Tue, Feb 19, 2013 at 1:26 PM, Rob Crittenden  wrote:

> Natxo Asenjo wrote:
>
>> On Tue, Feb 19, 2013 at 5:58 PM, Bret Wortman
>> > >
>> wrote:
>>
>> Digging a bit deeper, I found this in /var/log/pki-ca/catalina.out:
>>
>> :
>> Could not connect to LDAP server host oldmaster.my.com
>>  port 7389 Error
>>
>> netscape.ldap.LDAPException: failed to connect to server
>> ldap://oldmaster.my.com:7389  (91)
>>
>>
>> This certainly appears to be a problem, but everyone's
>> authenticating against oldmaster just fine. Thoughts, anyone?
>>
>>
>> can you connect to that port (7389) on oldmaster.my.com
>>  from the other replica? (try telnetting to the
>> port: telnet oldmaster.my.com  7389)
>>
>
> 7389 is port in the 389-ds instance used by dogtag. Is the instance
> running on oldmaster?
>
> It isn't used for authentication which is why you aren't seeing problems
> with clients.
>
> rob
>
> __**_
> Freeipa-users mailing list
> Freeipa-users@redhat.com
> https://www.redhat.com/**mailman/listinfo/freeipa-users
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-19 Thread Rob Crittenden

Natxo Asenjo wrote:

On Tue, Feb 19, 2013 at 5:58 PM, Bret Wortman
mailto:bret.wort...@damascusgrp.com>> wrote:

Digging a bit deeper, I found this in /var/log/pki-ca/catalina.out:

:
Could not connect to LDAP server host oldmaster.my.com
 port 7389 Error
netscape.ldap.LDAPException: failed to connect to server
ldap://oldmaster.my.com:7389  (91)

This certainly appears to be a problem, but everyone's
authenticating against oldmaster just fine. Thoughts, anyone?


can you connect to that port (7389) on oldmaster.my.com
 from the other replica? (try telnetting to the
port: telnet oldmaster.my.com  7389)


7389 is port in the 389-ds instance used by dogtag. Is the instance 
running on oldmaster?


It isn't used for authentication which is why you aren't seeing problems 
with clients.


rob

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] Trouble creating replica

2013-02-19 Thread Natxo Asenjo
On Tue, Feb 19, 2013 at 5:58 PM, Bret Wortman
wrote:

> Digging a bit deeper, I found this in /var/log/pki-ca/catalina.out:
>
> :
> Could not connect to LDAP server host oldmaster.my.com port 7389 Error
> netscape.ldap.LDAPException: failed to connect to server ldap://
> oldmaster.my.com:7389 (91)
>
> This certainly appears to be a problem, but everyone's authenticating
> against oldmaster just fine. Thoughts, anyone?
>
>
can you connect to that port (7389) on oldmaster.my.com from the other
replica? (try telnetting to the port: telnet oldmaster.my.com 7389)
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-19 Thread Bret Wortman
Digging a bit deeper, I found this in /var/log/pki-ca/catalina.out:

:
Could not connect to LDAP server host oldmaster.my.com port 7389 Error
netscape.ldap.LDAPException: failed to connect to server ldap://
oldmaster.my.com:7389 (91)
Feb 19, 2013 11:46:50 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
:
:

This certainly appears to be a problem, but everyone's authenticating
against oldmaster just fine. Thoughts, anyone?


*
*
*Bret Wortman*

http://damascusgrp.com/ 
http://twitter.com/BretWortman


On Tue, Feb 19, 2013 at 11:07 AM, Bret Wortman  wrote:

> Does anyone have an idea why I can't connect, or why this service isn't
> running on my freeipa instance? It used to be, because I've created a
> replica in the past
>
>
> *
> *
> *Bret Wortman*
> 
> http://damascusgrp.com/ 
> http://twitter.com/BretWortman
>
>
> On Tue, Feb 19, 2013 at 9:08 AM, John Dennis  wrote:
>
>> On 02/19/2013 06:58 AM, Bret Wortman wrote:
>>
>>> I have a server running freeipa and I want to migrate it to a new host.
>>> I had thought that the easiest way might be to create a replica and load
>>> that onto the new host, but this is proving problematic:
>>>
>>> # ipa-replica-prepare ipamaster.my.com 
>>>
>>> --ip-address 10.0.0.46
>>> Directory Manager (existing master) password:
>>>
>>> Preparing replica for ipamaster.my.com  from
>>> oldmaster.my.com 
>>>
>>> Creating SSL certificate for the Directory Server
>>> preparation of replica failed: cannot connect to
>>> 'https://oldmaster.my.com:**9444/ca/ee/ca/**profileSubmitSSLClient':
>>> [Errno
>>> -5985] Cannot resolve oldmaster.my.com  using
>>>
>>> family PR_AF_INET6
>>>
>>> And then a stack trace follows.
>>>
>>> # netstat -rn | grep 9444
>>> # lsof -i:9444
>>> #
>>> _
>>> _
>>> I've also tried connecting to that URL via Firefox without success. It's
>>> just not listening there. What do I need to check? Someone else is
>>> running some apps (redmine and others) using Passenger on that server as
>>> well; could it be obscuring the port somehow?
>>>
>>> We're not running IPV6, so I'm not sure why it's being referenced
>>>
>>
>> I can't comment on why you can't connect but I can explain the error
>> message. It's an internal mistake, if we can't connect we try another
>> address family, that logic is incorrect and I thought we had fixed in this
>> ticket 
>> https://fedorahosted.org/**freeipa/ticket/2695,
>> but apparently we didn't. Anyway the error message is a red herring, your
>> connection problems lie elsewhere.
>>
>> --
>> John Dennis 
>>
>> Looking to carve out IT costs?
>> www.redhat.com/carveoutcosts/
>>
>
>
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] Trouble creating replica

2013-02-19 Thread John Dennis

On 02/19/2013 06:58 AM, Bret Wortman wrote:

I have a server running freeipa and I want to migrate it to a new host.
I had thought that the easiest way might be to create a replica and load
that onto the new host, but this is proving problematic:

# ipa-replica-prepare ipamaster.my.com 
--ip-address 10.0.0.46
Directory Manager (existing master) password:

Preparing replica for ipamaster.my.com  from
oldmaster.my.com 
Creating SSL certificate for the Directory Server
preparation of replica failed: cannot connect to
'https://oldmaster.my.com:9444/ca/ee/ca/profileSubmitSSLClient': [Errno
-5985] Cannot resolve oldmaster.my.com  using
family PR_AF_INET6

And then a stack trace follows.

# netstat -rn | grep 9444
# lsof -i:9444
#
_
_
I've also tried connecting to that URL via Firefox without success. It's
just not listening there. What do I need to check? Someone else is
running some apps (redmine and others) using Passenger on that server as
well; could it be obscuring the port somehow?

We're not running IPV6, so I'm not sure why it's being referenced


I can't comment on why you can't connect but I can explain the error 
message. It's an internal mistake, if we can't connect we try another 
address family, that logic is incorrect and I thought we had fixed in 
this ticket https://fedorahosted.org/freeipa/ticket/2695, but apparently 
we didn't. Anyway the error message is a red herring, your connection 
problems lie elsewhere.


--
John Dennis 

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users