View previous topic :: View next topic |
Author |
Message |
Raoul_Duke l33t
Joined: 15 Dec 2002 Posts: 694 Location: Caerdydd, Wales
|
Posted: Sat Jun 12, 2004 7:22 pm Post subject: samba not starting, even with known good config |
|
|
I'm sure i'm missing something silly here.........just installed samba on my main box but it won't start. Like this:
Code: | root@trotsky samba # /etc/init.d/samba start
* samba -> start: smbd ... [ !! ]
* samba -> start: nmbd ... [ !! ]
* samba -> start: winbind ... [ !! ]
[ !! ]
root@trotsky samba #
|
Now, i've barely touched the smb.config aprt from the bits i know i need to change. In fact i've even dropped in the smb.config from my other box because in know it works.......same result.
Any ideas? _________________ www.iamthepenguin.com |
|
Back to top |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Sat Jun 12, 2004 7:50 pm Post subject: |
|
|
Anything useful in /var/log/samba/*.log? |
|
Back to top |
|
|
d3vlin Tux's lil' helper
Joined: 02 Apr 2003 Posts: 134
|
Posted: Sat Jun 12, 2004 8:00 pm Post subject: |
|
|
same problem here after upgrading to net-fs/samba 3.0.4-r
nothing particular is written to the log files in /var/log/samba/log.smbd and /var/log/samba/log.nmbd
There seems a problem in /var/log/samba/log.winbindd:
Code: |
[2004/06/12 21:55:03, 1] nsswitch/winbindd.c:main(843)
winbindd version 3.0.4 started.
Copyright The Samba Team 2000-2004
[2004/06/12 21:55:03, 0] nsswitch/winbindd_util.c:winbindd_param_init(560)
winbindd: idmap uid range missing or invalid
[2004/06/12 21:55:03, 0] nsswitch/winbindd_util.c:winbindd_param_init(561)
winbindd: cannot continue, exiting.
|
|
|
Back to top |
|
|
Raoul_Duke l33t
Joined: 15 Dec 2002 Posts: 694 Location: Caerdydd, Wales
|
Posted: Sat Jun 12, 2004 8:08 pm Post subject: |
|
|
Idd,
After a bit of playing around i noticed that samba does actually start. Although when queried it says it's not running, i can browse from my laptop in XP.
Very weird.......will play around some more _________________ www.iamthepenguin.com |
|
Back to top |
|
|
Riftwing Apprentice
Joined: 06 Oct 2002 Posts: 293
|
Posted: Sat Jun 12, 2004 11:36 pm Post subject: |
|
|
I ended up just removing winbind from /etc/conf.d/samba. _________________ Good, bad, I'm the guy with the gun. - Ash, Army of Darkness |
|
Back to top |
|
|
Merlin-TC l33t
Joined: 16 May 2003 Posts: 603 Location: Germany
|
Posted: Sun Jun 13, 2004 7:23 am Post subject: |
|
|
Same here, this just happened after I emerged a new Samba Version.
Does anyone have a clue what could be wrong?
I also get this message in the log.winbindd :
Code: |
[2004/06/13 14:01:31, 0] nsswitch/winbindd_util.c:winbindd_param_init(560)
winbindd: idmap uid range missing or invalid
[2004/06/13 14:01:31, 0] nsswitch/winbindd_util.c:winbindd_param_init(561)
winbindd: cannot continue, exiting.
|
It's the new version for sure because before it worked like a charm. |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Sun Jun 13, 2004 8:11 am Post subject: |
|
|
I haven't installed this version (I don't like messing up my system for the sake of it) but from what you have all posted it looks like they've changed the init script so that it starts winbind. In the old release winbind was started seperatley using /etc/init.d/winbind
If you didn't use winbind before then you won't need to use it now, winbind is only used when security=domain
It looks like it's the fault of this bug you might want to file a bug to see if you can get the defaults changed to smbd and nmdb on and winbindd off |
|
Back to top |
|
|
Merlin-TC l33t
Joined: 16 May 2003 Posts: 603 Location: Germany
|
Posted: Sun Jun 13, 2004 8:31 am Post subject: |
|
|
Ok, I just disabled winbind now, I just run a homenetwork so I don't need any domain controllers if that's what it's for.
Thanks again |
|
Back to top |
|
|
d3vlin Tux's lil' helper
Joined: 02 Apr 2003 Posts: 134
|
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Sun Jun 13, 2004 11:45 am Post subject: |
|
|
That does solve it but, it's only a work around.
Winbind is only any use if your samba server is a member of a windows domain. It allows you to use your domain usernames and passwords as unix usernames and passwords.
If you don't have a windows domain then you shouldn't be running winbind
The correct fix for this is to edit /etc/conf.d/samba and remove winbind from the list of daemons to start.
I have posted a bug suggesting that the default configuration should be smbd and nmbd only so that you are required to enable winbind if you need it. |
|
Back to top |
|
|
Raoul_Duke l33t
Joined: 15 Dec 2002 Posts: 694 Location: Caerdydd, Wales
|
Posted: Sun Jun 13, 2004 12:37 pm Post subject: |
|
|
nobspangle wrote: | That does solve it but, it's only a work around.
Winbind is only any use if your samba server is a member of a windows domain. It allows you to use your domain usernames and passwords as unix usernames and passwords.
If you don't have a windows domain then you shouldn't be running winbind
The correct fix for this is to edit /etc/conf.d/samba and remove winbind from the list of daemons to start.
I have posted a bug suggesting that the default configuration should be smbd and nmbd only so that you are required to enable winbind if you need it. |
Yup, that does the trick.......nice one _________________ www.iamthepenguin.com |
|
Back to top |
|
|
absinthe Retired Dev
Joined: 06 Oct 2002 Posts: 111 Location: San Francisco, CA, USA
|
Posted: Mon Jun 14, 2004 9:58 pm Post subject: |
|
|
That's not good default behavior, esp considering winbind was handled separately before. There should be some ewarns about this during the install. _________________ Gentoo Developer |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Mon Jun 14, 2004 11:10 pm Post subject: |
|
|
I emerged samba 3.0.4 today and the script has been changed, it now only starts nmbd and smbd unless you add winbind to the daemon list in /etc/conf.d/samba
However this was on my system where I use winbind and after enabling it it didn't seem to work, said it was running but it couldn't get a list of names. I have gone back to 3.0.2a I think I'll wait for it to be marked stable. |
|
Back to top |
|
|
arkhan_jg Apprentice
Joined: 18 Mar 2003 Posts: 199 Location: Dorset, UK
|
Posted: Tue Jun 15, 2004 3:06 pm Post subject: |
|
|
absinthe wrote: | That's not good default behavior, esp considering winbind was handled separately before. There should be some ewarns about this during the install. |
Absolutely. I upgraded samba to 3.0.4, and after restarting samba (winbind can get a bit cranky if upgraded and not restarted) and found the /etc/init.d/winbind script had disappeared while no pointers to /etc/conf.d/samba daemon_list were given.
Since my box does tie into an NT domain for user authentication, I couldn't login to my main account without it. I eventually worked around the problem by running winbindd manually.
I can live with winbind not being part of the default services (it's only of use for domain logins, after all) but some ewarns that the behaviour has changed would be nice, and a pointer to /etc/conf.d/samba would have saved me a fair bit of troubleshooting. Probably not a bad idea to prompt people to remove winbind from their runlevel too, and replace with samba. _________________ make menuconfig not war |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Tue Jun 15, 2004 6:09 pm Post subject: |
|
|
Hi guys, I've got a server without The version I use of Samba is 3.0.2a. I honestly don't know how it has happened but the fact is that now I that file isn't there.
I've already tried to re-emerge samba but that file hasn't been restored. Is there a way to restore it? Or could anybody post his own?
thank you _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Tue Jun 15, 2004 6:18 pm Post subject: |
|
|
If you installed samba before 3.0.4 was released then you don't need a /etc/conf.d/samba file. Now that you've re installed you probabaly will. There have been a few changes made to the 3.0.2ra ebuild today, so if you emerge sync and then emerge samba you will get the /etc/conf.d/samba file that you didn't need before but you do now. |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Thu Jun 17, 2004 6:00 pm Post subject: |
|
|
nobspangle wrote: | There have been a few changes made to the 3.0.2ra ebuild today, so if you emerge sync and then emerge samba you will get the /etc/conf.d/samba file that you didn't need before but you do now. |
Ahhh... so it hasn't been my fault...
Anyway, after an Code: | emerge sync;emerge samba | now everything work perfectly
Code: | root@POWEREDGE log # /etc/init.d/samba restart
* samba -> stop: smbd ... [ ok ]
* samba -> stop: nmbd ... [ ok ]
* samba -> start: smbd ... [ ok ]
* samba -> start: nmbd ... [ ok ] | thank U
deadhead _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
|
snowbum Tux's lil' helper
Joined: 14 Mar 2004 Posts: 127 Location: peace
|
Posted: Sat Jun 19, 2004 1:28 am Post subject: |
|
|
Indeed this is the issue with the 3.0.2 ebuild - there was no /etc/conf.d/samba file. I've re-emerged to version 3.0.2r2 and it works fine. _________________ The sun shall be turned to darkness and the moon into blood... |
|
Back to top |
|
|
Baric n00b
Joined: 10 Feb 2004 Posts: 21 Location: Hudson, NH, USA
|
Posted: Tue Jun 22, 2004 6:58 pm Post subject: |
|
|
Same problem here, I have Samba 2.x and did a world update back on 6/14 and didn't notice that Samba was no longer running til this morning (I don't use it all that often). The update brought in Samba 3.0.2. But "/etc/init.d/samba start" did nothing, although it said OK. Running smbd by hand worked just fine.
Doing an "emerge sync", then "emerge samba" fixed the problem. Thanks for the info. |
|
Back to top |
|
|
|