Services Issue : "services"dead but subsys locked [SOLVED]

Issues related to applications and software problems
taliez
Posts: 40
Joined: 2013/12/02 06:32:41

Re: Services Issue : "services"dead but subsys locked

Post by taliez » 2015/08/22 05:25:16

gerald_clark wrote:CentOS doesn't support webmin.
Webmin may be installing and starting software behind CentOS's back.
You need to go to them for support now that their software is configuring your server.

thanks for the replies, ill update you guys soon
discussing this internally (dev,app team)

planning to have a clean install

thanks in advance

taliez
Posts: 40
Joined: 2013/12/02 06:32:41

Re: Services Issue : "services"dead but subsys locked

Post by taliez » 2015/08/22 15:32:05

hi all,

i managed to UPDATE the current version to

[root@server ~]# more /etc/redhat-release
CentOS release 6.7 (Final)
[root@server ~]# httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: Jul 24 2015 11:52:28
[root@server ~]# service httpd status
httpd (pid 3244) is running...
[root@server ~]# service smb restart
Shutting down SMB services: [FAILED]
Starting SMB services: [ OK ]
[root@server ~]# service smb status
smbd dead but pid file exists
[root@coesite ~]# service nmb restart
Shutting down NMB services: [FAILED]
Starting NMB services: [ OK ]
[root@server ~]# service nmb status
nmbd (pid 3703) is running...
[root@server ~]#

Samba version 3.6.23-20.el6
PID Username Group Machine
-------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------

No locked files

[root@server ~]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
idmap config * : backend = tdb
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No
[root@server ~]#



[root@server ~]# service smb status
smbd dead but pid file exists
[root@server ~]#

from /var/log/samba/smbd.log

Failed to initialize the registry: WERR_CAN_NOT_COMPLETE
[2015/08/22 20:21:02, 0] smbd/server.c:1054(main)
smbd version 3.6.23-20.el6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2015/08/22 20:21:02.299329, 0] registry/reg_init_basic.c:36(registry_init_common)
Failed to initialize the registry: WERR_CAN_NOT_COMPLETE
[2015/08/22 20:23:54, 0] smbd/server.c:1054(main)
smbd version 3.6.23-20.el6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2015/08/22 20:23:55.113762, 0] registry/reg_init_basic.c:36(registry_init_common)
Failed to initialize the registry: WERR_CAN_NOT_COMPLETE
[2015/08/22 20:29:41, 0] smbd/server.c:1054(main)
smbd version 3.6.23-20.el6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2015/08/22 20:29:41.298272, 0] registry/reg_init_basic.c:36(registry_init_common)
Failed to initialize the registry: WERR_CAN_NOT_COMPLETE
[2015/08/22 20:53:31, 0] smbd/server.c:1054(main)
smbd version 3.6.23-20.el6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2015/08/22 20:53:31.206203, 0] registry/reg_init_basic.c:36(registry_init_common)
Failed to initialize the registry: WERR_CAN_NOT_COMPLETE
[2015/08/22 23:27:21, 0] smbd/server.c:1054(main)
smbd version 3.6.23-20.el6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2015/08/22 23:27:22.137063, 0] registry/reg_init_basic.c:36(registry_init_common)
Failed to initialize the registry: WERR_CAN_NOT_COMPLETE


seems samba has issues?

taliez
Posts: 40
Joined: 2013/12/02 06:32:41

Re: Services Issue : "services"dead but subsys locked

Post by taliez » 2015/08/22 15:51:21

UPDATE : Issue SOLVED


thanks to this link :https://bugzilla.redhat.com/show_bug.cg ... &id=832732

solution was COMMENT 2

Fred Wells 2012-06-18 00:07:21 EDT
Resolved. I believe this may have occurred as a result of me initially installing samba4, then removing that and installing samba. The error I received in debug indicated invalid tdb version.

Steps to resolve:
- yum remove samba samba-common
- rm -rf /var/lib/samba
- yum install samba


root@server ~]# service httpd status
httpd (pid 3274) is running...
[root@server~]# service smb status
smbd is stopped
[root@server ~]# chkconfig smb on
[root@server ~]# chkconfig nmb on
[root@server ~]# service smb restart
Shutting down SMB services: [FAILED]
Starting SMB services: [ OK ]
[root@server ~]# service nmb restart
Shutting down NMB services: [FAILED]
Starting NMB services: [ OK ]
[root@server ~]# service smb status
smbd (pid 3507) is running...
[root@server~]# service nmb status
nmbd (pid 3534) is running...
[root@server ~]# reboot


thanks all
thanks CentOS forum

Post Reply