Bug 832732 - smbd fails to start on F17 x86_64 after downgrade from samba4
Summary: smbd fails to start on F17 x86_64 after downgrade from samba4
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alexander Bokovoy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-16 21:52 UTC by Fred Wells
Modified: 2013-01-30 09:17 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-30 09:17:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fred Wells 2012-06-16 21:52:06 UTC
Description of problem:

smbd fails to start on F17 x86_64

Version-Release number of selected component (if applicable):

kernel   3.4.0-1.fc17.x86_64
samba.x86_64   2:3.6.5-86.fc17.1

How reproducible:

Every time

Steps to Reproduce:
1. Enable the service - systemctl enable smb.service
2. Reboot System
3. Check the status - systemctl status smb.service
  
Actual results:

Output form "systemctl status smb.service":

smb.service - Samba SMB Daemon
          Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled)
          Active: failed (Result: exit-code) since Sat, 16 Jun 2012 11:29:38 -0500; 5h 18min ago
         Process: 1060 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=0/SUCCESS)
        Main PID: 1107 (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/smb.service

Jun 16 11:29:38 mypc1 smbd[1060]: [2012/06/16 11:29:38.641351,  0] smbd/server.c:1107(main)
Jun 16 11:29:38 mypc1 smbd[1107]: [2012/06/16 11:29:38.966179,  0] registry/reg_init_basic...mon)
Jun 16 11:29:38 mypc1 smbd[1107]: Failed to initialize the registry: WERR_CAN_NOT_COMPLETE


Expected results:

Expect smbd to be running and status to show Active instead of failed.

Additional info:

Comment 1 Fred Wells 2012-06-16 22:03:12 UTC
Just confirmed that it works fine on identical F17 i686 system - same kernel/samba versions.

Comment 2 Fred Wells 2012-06-18 04:07:21 UTC
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

Comment 3 Alexander Bokovoy 2012-06-18 06:14:56 UTC
If you have installed samba4 and then downgraded to samba3, see bug 829694 comment 8. 

Please keep this bug open as we'll use it to provide README.Samba4-Samba3.downgrade with instructions on how to behave in such cases.

Comment 4 Alexander Bokovoy 2012-06-18 06:16:09 UTC
I'm changing bug title to reflect documentation fix.

Comment 5 Fred Wells 2012-06-18 13:25:28 UTC
I suppose this affects not only x86_64, but i686 downgrades as well.  Although I can't confirm that, since I never downgraded there.

Comment 6 Andreas Schneider 2013-01-30 09:17:47 UTC
Alexander, we NEVER supported downgrades in Samba! The same applies here.


Note You need to log in before you can comment on or make changes to this bug.