View previous topic :: View next topic |
Author |
Message |
pubecon Guru
Joined: 03 Mar 2003 Posts: 342 Location: Glasgow, Scotland
|
Posted: Mon Mar 08, 2004 6:32 pm Post subject: starting and stopping samba |
|
|
with samba-2.2.8a AND 3.0.1-r1
Code: | /etc/init.d/samba start |
goes fine, apparently and gives me an "OK", yet nothing is started!
so when I get to /etc/init.d/samba stop I inevitably get
Code: | * Stopping samba...
start-stop-daemon: warning: failed to kill 16323: No such process
start-stop-daemon: warning: failed to kill 16325: No such process [ !! ] |
(for various pids)
I have emerge -C and re-emerged to noavail. I really need the shares for my office, please help! |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 08, 2004 7:07 pm Post subject: Re: starting and stopping samba |
|
|
pubecon wrote: | with samba-2.2.8a AND 3.0.1-r1
Code: | /etc/init.d/samba start |
goes fine, apparently and gives me an "OK", yet nothing is started! |
Then you have config errors, run
to see what it says.
pubecon wrote: | I really need the shares for my office, please help! |
That's purile - it's your responsibility, don't shove it at other people. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
pubecon Guru
Joined: 03 Mar 2003 Posts: 342 Location: Glasgow, Scotland
|
Posted: Mon Mar 08, 2004 8:20 pm Post subject: |
|
|
yes, you are quite right
(I was going for a plea than for any type of shoving. For that I am not only apologetic but am, of course, MOST grateful for your speed reply!
The situation isn't really as dire as I would perhaps have you believe, things are redirected to another server for the minute but in the heat of the moment my desperation surfaced badly. A lesson hard learnt on forum etiquette I feel...)
anyway,
testparm was actually one of the first things I tried. the only error found is Code: | WARNING: You have some share names that are longer than 8 chars
These may give errors while browsing or may not be accessible
to some older clients
|
and as the majority of the workstations run win2k I was none to concerned with this. Is this perhaps my mistake? |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 08, 2004 8:26 pm Post subject: |
|
|
Hokay, let's go the hog
- how did you verify that samba hasn't started ?
- what do the samba logs say about it ?
It isn't the easiest of logs to read, but do it anyway...
The only answers (if any) will be in there.
And it could be a stupid thing, like being enabled in xinetd.
(That means xinetd has the ports in use and it can't start.)
EDIT: samba is actually one of the most versatile and flexible daemons around - you never ever need to restart it, it will re-read its config every minute or so. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
pubecon Guru
Joined: 03 Mar 2003 Posts: 342 Location: Glasgow, Scotland
|
Posted: Mon Mar 08, 2004 8:55 pm Post subject: |
|
|
adaptr wrote: | EDIT: samba is actually one of the most versatile and flexible daemons around - you never ever need to restart it, it will re-read its config every minute or so. |
wow! that is damned handy to know.
I was verifying that it wasn't started by the absence of smbd and nmbd from ps -A
after many moves of alternative smb.conf possibilities [the original being as a pdc - which caused win2k to bsod - and the second just being for a workgroup]
so... (/var/log/)
samba/log.smbd has the very exciting
Code: | [2004/03/08 15:36:26, 0] smbd/server.c:main(747)
smbd version 3.0.2a started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2004/03/08 15:36:26, 0] smbd/server.c:main(781)
standard input is not a socket, assuming -D option
[2004/03/08 15:36:38, 1] smbd/service.c:make_connection_snum(705)
dell-windows205 (192.168.16.32) connect to service Profiles initially as user root (uid=0, gid=0) (pid 28544)
[2004/03/08 15:37:55, 0] lib/access.c:check_access(328)
Denied connection from (203.218.46.220)
[2004/03/08 15:37:55, 1] smbd/process.c:process_smb(883)
Connection denied from 203.218.46.220
[2004/03/08 15:43:58, 0] lib/util_sock.c:read_socket_data(342)
read_socket_data: recv failure for 4. Error = Connection reset by peer
[2004/03/08 15:43:58, 1] smbd/service.c:close_cnum(887)
dell-windows205 (192.168.16.32) closed connection to service Profiles
[2004/03/08 15:55:24, 0] lib/access.c:check_access(328)
Denied connection from (212.179.212.112)
[2004/03/08 15:55:24, 1] smbd/process.c:process_smb(883)
Connection denied from 212.179.212.112 |
while samba/log.nmbd has the intriguing
Code: | Samba name server SERVER is now a local master browser for workgroup CTU on subnet 192.168.16.2
*****
[2004/03/08 15:36:49, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
***** | repeated
aha! and at last, some errors. meaty samba.log:
Code: | [2004/03/08 17:48:17, 0] lib/interface.c:load_interfaces(216)
WARNING: no network interfaces found
[2004/03/08 17:48:17, 0] passdb/secrets.c:secrets_init(44)
Failed to open /etc/samba/private/secrets.tdb
[2004/03/08 17:48:17, 0] smbd/server.c:main(835)
standard input is not a socket, assuming -D option
[2004/03/08 17:48:17, 0] passdb/machine_sid.c:pdb_generate_sam_sid(163)
pdb_generate_sam_sid: Failed to store generated machine SID.
[2004/03/08 17:48:17, 0] smbd/server.c:main(877)
ERROR: Samba cannot create a SAM SID.
[2004/03/08 18:11:02, 0] lib/interface.c:load_interfaces(216)
WARNING: no network interfaces found
[2004/03/08 18:11:02, 0] smbd/server.c:main(835)
standard input is not a socket, assuming -D option
[2004/03/08 18:11:02, 0] lib/util_sock.c:open_socket_in(804)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
[2004/03/08 18:11:11, 0] lib/interface.c:load_interfaces(216)
WARNING: no network interfaces found
[2004/03/08 18:11:11, 0] smbd/server.c:main(835)
standard input is not a socket, assuming -D option
[2004/03/08 18:11:11, 0] lib/util_sock.c:open_socket_in(804)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
[2004/03/08 18:11:53, 0] lib/interface.c:load_interfaces(216)
WARNING: no network interfaces found
[2004/03/08 18:11:53, 0] smbd/server.c:main(835)
standard input is not a socket, assuming -D option
[2004/03/08 18:11:53, 0] lib/util_sock.c:open_socket_in(804)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
[2004/03/08 18:20:42, 0] lib/interface.c:load_interfaces(216)
WARNING: no network interfaces found
[2004/03/08 18:20:42, 0] smbd/server.c:main(835)
standard input is not a socket, assuming -D option
[2004/03/08 18:20:42, 0] lib/util_sock.c:open_socket_in(804)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
|
I know it's a lengthy post, I'll edit out the non-essentials if ever this gets resolved. cheers for the suggestion. the logs, somehow, evaded my eyes after foo hours staring radiating my brain with a crt monitor. As I mentioned, I did have it working impressively for a while as a pdc but all the win2k clients bsod-ed! Still to go from that to nothing is a tad soul destroying... |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 08, 2004 9:08 pm Post subject: |
|
|
As I said: it may already be running through (x)inetd, in which case the ports will be in use.
What does
tell you ?
For xinetd, check /etc/inetd.conf and /etc/xinetd.d/s(a)mb(a) _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
pubecon Guru
Joined: 03 Mar 2003 Posts: 342 Location: Glasgow, Scotland
|
Posted: Mon Mar 08, 2004 9:21 pm Post subject: |
|
|
I've been having trouble with vmware virtual machines and I'm now starting to wonder if they're related as netstat -ltp reveals Code: | Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 172.16.156.:netbios-ssn *:* LISTEN 28272/vmware-smbd
tcp 0 0 *:imap2 *:* LISTEN 462/couriertcpd
tcp 0 0 *:www *:* LISTEN 5944/apache2 |
I've not been xinetd-ing sot eh /etc/xinetd.conf is (what I imagine to be the default) Code: | # Sample configuration file for xinetd
defaults
{
only_from = localhost
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d |
with nothing samba-y in /etc/xinet.d
after repeated samba zaps and starts i now see I have nmbd running. whoever said "doing the same thing over and over again and expecting different results is a sign of madness"...was right! cos I feel I'm going slightly crazy |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 08, 2004 9:24 pm Post subject: |
|
|
The samba ports are in use - so it can't start.
Simple, no ? _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
pubecon Guru
Joined: 03 Mar 2003 Posts: 342 Location: Glasgow, Scotland
|
Posted: Mon Mar 08, 2004 9:24 pm Post subject: |
|
|
aha! killing the vmware-smbd has solved the problem!
the intermittent nature of it was what was getting me...mystery solved!
thankyou! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|