Bug 751625 - Samba does not work
Summary: Samba does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 16
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-06 13:38 UTC by wbiker
Modified: 2012-05-08 07:29 UTC (History)
6 users (show)

Fixed In Version: samba-3.6.5-85.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-02 20:57:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description wbiker 2011-11-06 13:38:48 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Fedora 16 Beta 3.1.0-7.fc16.x86_64 #1 SMP x86_64 GNU/Linux
Samba 3.6.1-74.fc16.x86_64

How reproducible:
Install Fedora without any Windows Manager like KDE or Gnome. 
I choose BTRFS as file system for all my partitions (/ and /boot).
Even after rebooting the system the Samba deamon does not run.

systemctl reports:
samba.service
	  Loaded: error (Reason: No such file or directory)
	  Active: inactive (dead)


Steps to Reproduce:
1. Install Fedora without any Desktop Environment and Btrfs.
2. If not already installed install Samba.
  
Actual results:
Samba is installed but not functional.

Expected results:
Working Samba

Additional info:
It seems samba is properly installed. At least smbd and nmbd are in /usr/sbin and can be started although the manual start failes:
 cat log.smbd 
[2011/11/06 14:28:35,  0] smbd/server.c:1045(main)
  smbd version 3.6.1-74.fc16 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2011/11/06 14:28:35.493615,  0] smbd/server.c:1101(main)
  standard input is not a socket, assuming -D option
[2011/11/06 14:28:38.196357,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - No such file or directory
[2011/11/06 14:28:38.196547,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2011/11/06 14:29:38.257335,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - No such file or directory
[2011/11/06 14:29:38.257523,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

Comment 1 wbiker 2011-11-06 15:57:30 UTC
Hmm, sorry. I don't have enough experience to determine what causes problems.
It seems Samba has nothing to do with my problem. Now I installed MySql and the mysqld doesn't work either. 
Probably my system is not installed correctly. Unfortunately, I have no clue what is the problem.

Comment 2 Andreas Schneider 2011-11-07 14:59:35 UTC
What does that mean "Samba does not work". What do you want to do? Which error did you get and how did you produce it.

Is smbd running? (ps aux | grep smbd)

Comment 3 wbiker 2011-11-07 17:08:04 UTC
Hello Andreas,

Hmm, obviously my English is still bad, I though I described my problem good enough.
smbd is not running and I cannot start it. Error by systemctl see above.
First I thought there is a problem with Samba, but now I know that something is wrong with my installation. I installed MySql with yum and have the same problem. mysqld is not started. systemd and systemctl respectively reports the same error as with Samba. So I think that my lack of experience causes this error. I installed Fedora without any Desktop Environment and it seems a important component is missing. I will install it again.
Sorry for the inconvenience.

Comment 4 Andreas Schneider 2011-12-09 12:36:01 UTC
Do you still see these errors or was this invalid?

Comment 5 wbiker 2011-12-10 16:16:12 UTC
Hi Andreas,

I still see this error. However, it is not only the samba service that is not started properly. The vnstat daemon is also not started properly. So, I don't have a problem with samba, it seems I have a problem with systemd.
My walkaround is to start the binaries manually without systemctl. Also, vnstat --daemon for example.

You may not accountable for systemd, but have you any glue what could the problem be?

thx,
Wolfgang

Comment 6 Matthew Hannigan 2012-04-21 02:07:36 UTC
The error message was given in the problem description.
The error message is "No such file or directory"
(would it kill systemd/samba to say what directory is missing?)

The file missing is /var/run/samba
It's on tmpfs though - so would be not there after a reboot anyway?

Comment 7 Simo Sorce 2012-04-22 13:44:45 UTC
Do you have a /etc/tmpfiles.d/samba file on your system ?
If not that is a packaging bug we should fix asap Andreas.

Comment 8 Matthew Hannigan 2012-04-23 06:16:51 UTC
Nope, no such file. Also not referenced by any rpm on my system.

Comment 9 Matthew Hannigan 2012-04-23 07:56:17 UTC
Hmm, just checked the process list and smbd is running; however:

# systemctl status samba.service
samba.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)

No nmbd process and still no /var/run/samba.
In case it matters, many smbd error messages in /var/log/messages because cups not running.

Comment 10 Fedora Update System 2012-04-23 11:58:43 UTC
samba-3.6.4-84.fc17.1 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/samba-3.6.4-84.fc17.1

Comment 11 Fedora Update System 2012-04-23 12:40:01 UTC
samba-3.6.4-84.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/samba-3.6.4-84.fc16

Comment 12 Fedora Update System 2012-04-24 03:18:42 UTC
Package samba-3.6.4-84.fc17.1:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing samba-3.6.4-84.fc17.1'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-6485/samba-3.6.4-84.fc17.1
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2012-04-30 15:01:55 UTC
samba-3.6.5-85.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/samba-3.6.5-85.fc16

Comment 14 Fedora Update System 2012-04-30 15:17:37 UTC
samba-3.6.5-85.fc17.1 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/samba-3.6.5-85.fc17.1

Comment 15 Fedora Update System 2012-05-02 20:57:21 UTC
samba-3.6.5-85.fc17.1 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2012-05-03 07:23:39 UTC
samba-3.6.5-85.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Matthew Hannigan 2012-05-08 07:29:19 UTC
I didn't get around to installing testing version but I see 3.6.5-85 has the fix.
But after updating and rebooting

# systemctl status samba.service
samba.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)
# systemctl stop samba.service
# systemctl status samba.service
samba.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)

but ...


# cat /run/smbd.pid
1245
# ps -fp 1245
UID        PID  PPID  C STIME TTY          TIME CMD
root      1245     1  0 17:08 ?        00:00:00 /usr/sbin/smbd

]# rpm -q samba
samba-3.6.5-85.fc16.x86_64


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