OpenVZ Forum


Home » General » Support » samba: no entropy gathering module detected
samba: no entropy gathering module detected [message #32757] Thu, 28 August 2008 09:39 Go to next message
whity is currently offline  whity
Messages: 5
Registered: July 2007
Location: Switzerland
Junior Member
Hello,

I have to install a samba server on a newly created VE. But if i try to start samba i get this error message in smb.log:
[2008/08/28 11:12:31, 0] smbd/server.c:main(948)
  smbd version 3.0.28-1.el5_2.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2007
Fatal: no entropy gathering module detected

I found a forum entry back in November 2006 where the kernel was the problem.
So, i updated my kernel this morning from 2.6.18-53.1.19.el5.028stab053.14 to 2.6.18-92.1.1.el5.028stab057.2 in the hope that this fixes the problem. But it does not.

HN and VE are both fully up to date CentOS 5.2 machines.

VE:
samba-3.0.28-1.el5_2.1
samba-common-3.0.28-1.el5_2.1

HN:
ovzkernel-2.6.18-92.1.1.el5.028stab057.2
vzctl-lib-3.0.22-1
vzctl-3.0.22-1
vzquota-3.0.11-1

The HN has /dev/urandom and /dev/random, but the VE only has /dev/random. Don't know if this may is the problem. Tried to create the node manually and rebooted the VE, but did not helped either.

Any other ideas?

Thanks
Urs
Re: samba: no entropy gathering module detected [message #32758 is a reply to message #32757] Thu, 28 August 2008 10:02 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


Tried to create the node manually and rebooted the VE, but did not helped either.


How did you do that?
The best way to do it is doing via vzctl:
(man vzctl : Device access management)

Could you strace "start samba" program to find out what does it complain about.
http://wiki.openvz.org/Stracing_a_program
Re: samba: no entropy gathering module detected [message #32759 is a reply to message #32758] Thu, 28 August 2008 10:45 Go to previous messageGo to next message
whity is currently offline  whity
Messages: 5
Registered: July 2007
Location: Switzerland
Junior Member
I've attached two straces.

"strace.out.before" contains the strace without existing /dev/random.

"strace.out.after" contains the strace with the /dev/random created over vzctl. After starting smbd the process stays hanging at 100% cpu load.
Re: samba: no entropy gathering module detected [message #32761 is a reply to message #32759] Thu, 28 August 2008 13:06 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

try to remove urandom inside VE:
# rm -f /dev/urandom


and then create it from HN via vzctl.

Please, tell what OStemplate do you use!
Re: samba: no entropy gathering module detected [message #32791 is a reply to message #32757] Fri, 29 August 2008 09:40 Go to previous messageGo to next message
whity is currently offline  whity
Messages: 5
Registered: July 2007
Location: Switzerland
Junior Member
That works.

I use a OStemplate i built myself some time ago at the very beginning of my openVZ use.

Thanks
Urs
Re: samba: no entropy gathering module detected [message #33092 is a reply to message #32791] Mon, 22 September 2008 13:07 Go to previous messageGo to next message
luisdev is currently offline  luisdev
Messages: 11
Registered: July 2008
Junior Member
I had to remove and then recreate the /dev/random device, too.
Re: samba: no entropy gathering module detected [message #34251 is a reply to message #32757] Wed, 17 December 2008 07:44 Go to previous message
digidax is currently offline  digidax
Messages: 30
Registered: March 2008
Member
Same problem but fixed with additional device random

vzctl exec VEID /sbin/MAKEDEV urandom
vzctl exec VEID /sbin/MAKEDEV random


In this template are both devices missed.
VE created based on centos-5-x86_64-default-5.2-20081210

Bug generated in Bugzilla.

best regards
Frank
Previous Topic: Fedora 10 "yum install * " (conflicts with file)
Next Topic: Hidden process for init (PID 1)?
Goto Forum:
  


Current Time: Fri May 03 18:13:22 GMT 2024

Total time taken to generate the page: 0.01728 seconds