You are not logged in.

#1 2012-02-22 18:48:55

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Samba and Sound Issues

With the latest updates I have a weird issue with my daemons.

I've added samba to rc.conf and alsa/pulse audio not even in my rc.conf but still starts by it self.

First my Samba v3.6.3 issue. The problem with it I have is that I receive "failed (Error NT_STATUS_CONNECTION_REFUSED)" right after the system boots and I try to access samba shares on the box. One way to fix it is only restarting samba with sudo rc.d restart samba

The other thing is my alsa/pulseaudio its not even in rc.conf and there daemons start by them self. The issue is that until I stop both alsa with sudo rc.d stop alsa and pulse audio with pulseaudio --kill my audio is muted and not working.

Now all of this happened after all of the latest updates. I did not have this issue before.


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#2 2012-02-22 19:08:46

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: Samba and Sound Issues

So until I do this following;

sudo rc.d restart samba
sudo rc.d stop alsa
pulseaudio --kill

both samba and audio not working.

Weird but true in my case.

So here is what I've done so far as a workaround.

1. Disabled alsa in rc.conf
  DAEMONS=( !alsa )

2. Disabled PulseAudio under "Settings" => "Session and Startup" in "Application Autostart" tab.

3. Added "sudo rc.d restart samba" in my .bash_profile


But still strange that I have this issues in the first place. Might need to do fresh install again to make sure this is not some thing I've done.

Last edited by TuxLyn (2012-02-22 20:15:55)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#3 2012-02-23 10:54:12

gerald82
Member
From: The known universe
Registered: 2011-03-25
Posts: 83

Re: Samba and Sound Issues

I am sure these two problems are not related.
I have the same issue with Samba, but no other problem that I know of.

I did some googeling and it seems it is a problem with the smb.conf (unlike one would suppose, since simply restarting the daemon fixes it). People solved it by writing a new (minimalistic) smb.conf.
Can't tell what exactly causes the problem though.

The only error message in log.smbd is about cups, which is not configured at all on my box.
log.nmbd seems to be clear, no errors in there.

Offline

#4 2012-02-23 11:29:45

gerald82
Member
From: The known universe
Registered: 2011-03-25
Posts: 83

Re: Samba and Sound Issues

Just stumbled over this thread.
There, Gcool suggests to to check the daemons line in rc.conf.

Maybe that does it for you, TuxLyn?

On my machine, I use networkmanager, so the line in rc.d looks like this:

DAEMONS=(syslog-ng acpid laptop-mode dbus networkmanager netfs crond samba bluetooth)

The problem does occur with that. Any suggestions?

Last edited by gerald82 (2012-02-23 11:30:21)

Offline

#5 2012-03-15 20:36:04

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: Samba and Sound Issues

I have this: DAEMONS=(syslog-ng dbus network samba vnstat iptables crond)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#6 2012-03-15 22:27:33

gerald82
Member
From: The known universe
Registered: 2011-03-25
Posts: 83

Re: Samba and Sound Issues

mkay, since being reminded of the problem, I've found a solution.

As discovered before, the problem is probably caused due to unfinished loading of the network daemon.
I use networkmanager, but nevermind.
I added a line to /etc/rc.d/samba. It now looks as follows:

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
[ -f /etc/conf.d/samba ] && . /etc/conf.d/samba

[ -z "$SAMBA_DAEMONS" ] && SAMBA_DAEMONS=(smbd nmbd)

case "$1" in
        start)
                rc=0
                stat_busy "Starting Samba Server"
                sleep 5
                if [ ! -x /var/run/samba ] ; then
                        install -m755 -d /var/run/samba
                fi
# -- snip-snap, I'm sparing the rest out, as there is nothing changed anyway --

I only added the "sleep 5" line, everything else is as from the Arch repos.

In order to avoid additional boot time, I also set the samba daemon to load in background. And as I was at it, I set a few other services to load in background as I saw fit (but most certainly wouldn't contribute to this topic). My new DAEMONS line in rc.conf is this:

DAEMONS=(syslog-ng acpid laptop-mode dbus networkmanager netfs @crond @samba @bluetooth)

If anyone can confirm this to be a solution not only on my box, I will gladly add it to the wiki.

Offline

#7 2012-03-15 22:53:36

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: Samba and Sound Issues

@gerald82, thank you will try it. I did not think of that smile

EDIT: I can confirm it, this worked for samba.

Last edited by TuxLyn (2012-03-15 23:06:02)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

Board footer

Powered by FluxBB