Re: [Freeipa-users] freeipa-server on Raspberry Pi 2

2015-04-09 Thread Winfried de Heiden

  
  
Hi,
  
  Great, modifying
  /usr/lib/python2.7/site-packages/ipalib/constants.py did the
  trick! Setting startup_timeout to 600 seconds was enough :)
  After setting startup_timeout=600 in /etc/ipa/default.conf
  restarting freeipa worked well allthough it takes somewhere
  between 5 and 10 minutes
  
  Never mind, it all works now and will try if it is usable on a
  small scale @home (a few computers, a hand full of users)
  
  Thankz!
  
  Winfried
  
  

Op 07-04-15 om 11:00 schreef Martin
  Basti:


  
  I realize the default.conf is
replaced during install, pausing IPA will not help.

The easiest way is modify the source file.
ipalib/constants.py:    ('startup_timeout', 300),

The file should be in
/usr/lib/python2.7/site-packages/ipalib/constants.py
Modify file and run ipa-server-install, it should work.

HTH
Martin


On 07/04/15 10:05, Winfried de Heiden wrote:
  
  

Hi,
  
  I gave it a try, but neither ~/.ipa/default.conf or
  /etc/ipa/default.conf did work. I also tried "to fool" the
  ipa-server-install script by pausing it and wait for the CA to
  start. After "un-pausing" the script the same error occurs: "CA did not start in 300.0s"
  
  I might try to hack the services.py script but anyone got
  another suggestion?
  
  Kind regards,
  
  Winfried
  

Op 02-04-15 om 13:38 schreef Martin
  Basti:


  
  On 02/04/15 12:53, Winfried de
Heiden wrote:
  
  

Hi all,
  
  "Because I can try" I gave a shot on installing
  freeipa-server on a Raspberry Pi 2. I used Fedora 21 for
  this. Installing  looks promising, but fails somewhere
  halfway:
  

  [8/27]: starting
certificate server instance
    [error] RuntimeError: CA did not
start in 300.0s
  CA did not start in 300.0s


  and the install log will tell:
  

[root@ipa log]# tail 
/var/log/ipaserver-install.log 
    File
"/usr/lib/python2.7/site-packages/ipaserver/install/service.py",
line 279, in start
      self.service.start(instance_name,
capture_output=capture_output, wait=wait)
  
    File
"/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py",
line 229, in start
      self.wait_until_running()
  
    File
"/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py",
line 223, in wait_until_running
      raise RuntimeError('CA did not
start in %ss' % timeout)
  
  2015-04-02T09:58:36Z DEBUG The
ipa-server-install command failed, exception:
RuntimeError: CA did not start in 300.0s


  I 'm wondering if this is a timing issue... Of course the
  Pi2 tends to be slow and no wonder starting things will
  takes "some time"... (Yep, I 'm trying to move tons of
  stones using only a 2CV car...) The catalina log (that's
  the CA (Tomcat) log right?)
  tells it needs some more time to start:
  

[root@ipa pki-tomcat]# tail
/var/log/pki/pki-tomcat/catalina.2015-04-02.log 
  Apr 02, 2015 11:59:20 AM
org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deployment of configuration
descriptor
/etc/pki/pki-tomcat/Catalina/localhost/ROOT.xml has
finished in 84,815 ms
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["http-bio-8080"]
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["http-bio-8443"]
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["ajp-bio-127.0.0.1-8009"]
  Apr 02, 2015 11:59:20 AM
org.apache.catalina.startup.Catalina start
  INFO: Server startup in 355603 ms
  

Anyone got an idea how to set the time
  out for 

Re: [Freeipa-users] freeipa-server on Raspberry Pi 2

2015-04-07 Thread Winfried de Heiden

  
  
Hi,
  
  I gave it a try, but neither ~/.ipa/default.conf or
  /etc/ipa/default.conf did work. I also tried "to fool" the
  ipa-server-install script by pausing it and wait for the CA to
  start. After "un-pausing" the script the same error occurs: "CA did not start in 300.0s"
  
  I might try to hack the services.py script but anyone got another
  suggestion?
  
  Kind regards,
  
  Winfried
  

Op 02-04-15 om 13:38 schreef Martin
  Basti:


  
  On 02/04/15 12:53, Winfried de Heiden
wrote:
  
  

Hi all,
  
  "Because I can try" I gave a shot on installing freeipa-server
  on a Raspberry Pi 2. I used Fedora 21 for this. Installing 
  looks promising, but fails somewhere halfway:
  

  [8/27]: starting certificate
server instance
    [error] RuntimeError: CA did not start
in 300.0s
  CA did not start in 300.0s


  and the install log will tell:
  

[root@ipa log]# tail 
/var/log/ipaserver-install.log 
    File
"/usr/lib/python2.7/site-packages/ipaserver/install/service.py",
line 279, in start
      self.service.start(instance_name,
capture_output=capture_output, wait=wait)
  
    File
"/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py",
line 229, in start
      self.wait_until_running()
  
    File
"/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py",
line 223, in wait_until_running
      raise RuntimeError('CA did not start
in %ss' % timeout)
  
  2015-04-02T09:58:36Z DEBUG The
ipa-server-install command failed, exception: RuntimeError:
CA did not start in 300.0s


  I 'm wondering if this is a timing issue... Of course the Pi2
  tends to be slow and no wonder starting things will takes
  "some time"... (Yep, I 'm trying to move tons of stones using
  only a 2CV car...) The catalina log (that's the CA (Tomcat)
  log right?)
  tells it needs some more time to start:
  

[root@ipa pki-tomcat]# tail
/var/log/pki/pki-tomcat/catalina.2015-04-02.log 
  Apr 02, 2015 11:59:20 AM
org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deployment of configuration
descriptor /etc/pki/pki-tomcat/Catalina/localhost/ROOT.xml
has finished in 84,815 ms
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["http-bio-8080"]
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["http-bio-8443"]
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["ajp-bio-127.0.0.1-8009"]
  Apr 02, 2015 11:59:20 AM
org.apache.catalina.startup.Catalina start
  INFO: Server startup in 355603 ms
  

Anyone got an idea how to set the time out
  for the CA to start to 10 or 15 minuten? Any other sugestion
  what is causing this problem? (no, I am not upgrading from an
  older version, this is a fresh install)

  Kind regards,
  
  Winfried
  
  
 


  
  Hello,
  you can try:
  
  https://www.redhat.com/archives/freeipa-users/2015-April/msg00076.html
  
  
  
  -- 
Martin Basti


  


-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Re: [Freeipa-users] freeipa-server on Raspberry Pi 2

2015-04-07 Thread Martin Basti
I realize the default.conf is replaced during install, pausing IPA will 
not help.


The easiest way is modify the source file.
ipalib/constants.py:('startup_timeout', 300),

The file should be in /usr/lib/python2.7/site-packages/ipalib/constants.py
Modify file and run ipa-server-install, it should work.

HTH
Martin


On 07/04/15 10:05, Winfried de Heiden wrote:

Hi,

I gave it a try, but neither ~/.ipa/default.conf or 
/etc/ipa/default.conf did work. I also tried to fool the 
ipa-server-install script by pausing it and wait for the CA to start. 
After un-pausing the script the same error occurs: CA did not start 
in 300.0s


I might try to hack the services.py script but anyone got another 
suggestion?


Kind regards,

Winfried

Op 02-04-15 om 13:38 schreef Martin Basti:

On 02/04/15 12:53, Winfried de Heiden wrote:

Hi all,

Because I can try I gave a shot on installing freeipa-server on a 
Raspberry Pi 2. I used Fedora 21 for this. Installing  looks 
promising, but fails somewhere halfway:


  [8/27]: starting certificate server instance
  [error] RuntimeError: CA did not start in 300.0s
CA did not start in 300.0s


and the install log will tell:

[root@ipa log]# tail /var/log/ipaserver-install.log
  File
/usr/lib/python2.7/site-packages/ipaserver/install/service.py,
line 279, in start
self.service.start(instance_name,
capture_output=capture_output, wait=wait)

  File
/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py,
line 229, in start
self.wait_until_running()

  File
/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py,
line 223, in wait_until_running
raise RuntimeError('CA did not start in %ss' % timeout)

2015-04-02T09:58:36Z DEBUG The ipa-server-install command
failed, exception: RuntimeError: CA did not start in 300.0s


I 'm wondering if this is a timing issue... Of course the Pi2 tends 
to be slow and no wonder starting things will takes some time... 
(Yep, I 'm trying to move tons of stones using only a 2CV car...) 
The catalina log (that's the CA (Tomcat) log right?)

tells it needs some more time to start:

[root@ipa pki-tomcat]# tail
/var/log/pki/pki-tomcat/catalina.2015-04-02.log
Apr 02, 2015 11:59:20 AM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deployment of configuration descriptor
/etc/pki/pki-tomcat/Catalina/localhost/ROOT.xml has finished in
84,815 ms
Apr 02, 2015 11:59:20 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-8080]
Apr 02, 2015 11:59:20 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-8443]
Apr 02, 2015 11:59:20 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-bio-127.0.0.1-8009]
Apr 02, 2015 11:59:20 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 355603 ms

Anyone got an idea how to set the time out for the CA to start to 10 
or 15 minuten? Any other sugestion what is causing this problem? 
(no, I am not upgrading from an older version, this is a fresh install)


Kind regards,

Winfried





Hello,
you can try:

https://www.redhat.com/archives/freeipa-users/2015-April/msg00076.html



--
Martin Basti





--
Martin Basti

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Re: [Freeipa-users] freeipa-server on Raspberry Pi 2

2015-04-02 Thread Martin Basti

On 02/04/15 12:53, Winfried de Heiden wrote:

Hi all,

Because I can try I gave a shot on installing freeipa-server on a 
Raspberry Pi 2. I used Fedora 21 for this. Installing looks promising, 
but fails somewhere halfway:


  [8/27]: starting certificate server instance
  [error] RuntimeError: CA did not start in 300.0s
CA did not start in 300.0s


and the install log will tell:

[root@ipa log]# tail /var/log/ipaserver-install.log
  File
/usr/lib/python2.7/site-packages/ipaserver/install/service.py,
line 279, in start
self.service.start(instance_name,
capture_output=capture_output, wait=wait)

  File
/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py,
line 229, in start
self.wait_until_running()

  File
/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py,
line 223, in wait_until_running
raise RuntimeError('CA did not start in %ss' % timeout)

2015-04-02T09:58:36Z DEBUG The ipa-server-install command failed,
exception: RuntimeError: CA did not start in 300.0s


I 'm wondering if this is a timing issue... Of course the Pi2 tends to 
be slow and no wonder starting things will takes some time... (Yep, 
I 'm trying to move tons of stones using only a 2CV car...) The 
catalina log (that's the CA (Tomcat) log right?)

tells it needs some more time to start:

[root@ipa pki-tomcat]# tail
/var/log/pki/pki-tomcat/catalina.2015-04-02.log
Apr 02, 2015 11:59:20 AM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deployment of configuration descriptor
/etc/pki/pki-tomcat/Catalina/localhost/ROOT.xml has finished in
84,815 ms
Apr 02, 2015 11:59:20 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-8080]
Apr 02, 2015 11:59:20 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-8443]
Apr 02, 2015 11:59:20 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-bio-127.0.0.1-8009]
Apr 02, 2015 11:59:20 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 355603 ms

Anyone got an idea how to set the time out for the CA to start to 10 
or 15 minuten? Any other sugestion what is causing this problem? (no, 
I am not upgrading from an older version, this is a fresh install)


Kind regards,

Winfried





Hello,
you can try:

https://www.redhat.com/archives/freeipa-users/2015-April/msg00076.html



--
Martin Basti

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

[Freeipa-users] freeipa-server on Raspberry Pi 2

2015-04-02 Thread Winfried de Heiden

  
  
Hi all,
  
  "Because I can try" I gave a shot on installing freeipa-server on
  a Raspberry Pi 2. I used Fedora 21 for this. Installing  looks
  promising, but fails somewhere halfway:
  

  [8/27]: starting certificate
server instance
    [error] RuntimeError: CA did not start in
300.0s
  CA did not start in 300.0s


  and the install log will tell:
  

[root@ipa log]# tail 
/var/log/ipaserver-install.log 
    File
"/usr/lib/python2.7/site-packages/ipaserver/install/service.py",
line 279, in start
      self.service.start(instance_name,
capture_output=capture_output, wait=wait)
  
    File
"/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py",
line 229, in start
      self.wait_until_running()
  
    File
"/usr/lib/python2.7/site-packages/ipaplatform/redhat/services.py",
line 223, in wait_until_running
      raise RuntimeError('CA did not start in
%ss' % timeout)
  
  2015-04-02T09:58:36Z DEBUG The
ipa-server-install command failed, exception: RuntimeError: CA
did not start in 300.0s


  I 'm wondering if this is a timing issue... Of course the Pi2
  tends to be slow and no wonder starting things will takes "some
  time"... (Yep, I 'm trying to move tons of stones using only a 2CV
  car...) The catalina log (that's the CA (Tomcat) log right?)
  tells it needs some more time to start:
  

[root@ipa pki-tomcat]# tail
/var/log/pki/pki-tomcat/catalina.2015-04-02.log 
  Apr 02, 2015 11:59:20 AM
org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deployment of configuration descriptor
/etc/pki/pki-tomcat/Catalina/localhost/ROOT.xml has finished in
84,815 ms
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["http-bio-8080"]
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["http-bio-8443"]
  Apr 02, 2015 11:59:20 AM
org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler
["ajp-bio-127.0.0.1-8009"]
  Apr 02, 2015 11:59:20 AM
org.apache.catalina.startup.Catalina start
  INFO: Server startup in 355603 ms
  

Anyone got an idea how to set the time out for
  the CA to start to 10 or 15 minuten? Any other sugestion what is
  causing this problem? (no, I am not upgrading from an older
  version, this is a fresh install)

  Kind regards,
  
  Winfried
  
  

  


-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project