samba doesn't start with sane config, can't connect to itself

Bug #458671 reported by Mathieu Trudel-Lapierre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu AMI Testing
Invalid
Undecided
Unassigned

Bug Description

Testing the AMI RC image for EC2. At testcase ec2_014.

Samba was just cleanly installed using 'sudo apt-get update && sudo tasksel --section server' and selecting 'Samba server'.

It seems that the testcase fails with NT_STATUS_UNSUCCESSFUL when the system's samba client tries to connect to the server running on the same system:

ubuntu@ip-10-251-105-239:~$ smbtree
Enter ubuntu's password:
WORKGROUP
 \\IP-10-251-105-23 ip-10-251-105-239 server (Samba, Ubuntu)
cli_start_connection: failed to connect to IP-10-251-105-23<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL

Additionally, on startup of smbd, it seems that something else is holding the socket/address that samba is expecting. Here is an excerpt of /var/log/samba/log.smbd right after 'sudo /etc/init.d/winbind stop; sudo /etc/init.d/samba restart':

[2009/10/23 00:55:11, 0] smbd/server.c:1068(main)
  smbd version 3.4.0 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/10/23 00:55:11, 0] smbd/server.c:456(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2009/10/23 00:55:11, 0] smbd/server.c:456(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use

And log.nmbd:

[2009/10/23 00:55:11, 0] nmbd/nmbd.c:854(main)
  nmbd version 3.4.0 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/10/23 00:55:11, 0] nmbd/nmbd_nameregister.c:491(register_name)
  register_name: NetBIOS name IP-10-251-105-239 is too long. Truncating to IP-10-251-105-2
[2009/10/23 00:55:11, 0] nmbd/nmbd_nameregister.c:491(register_name)
  register_name: NetBIOS name IP-10-251-105-239 is too long. Truncating to IP-10-251-105-2
[2009/10/23 00:55:11, 0] nmbd/nmbd_nameregister.c:491(register_name)
  register_name: NetBIOS name IP-10-251-105-239 is too long. Truncating to IP-10-251-105-2
[2009/10/23 00:55:34, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
  *****

  Samba name server IP-10-251-105-239 is now a local master browser for workgroup WORKGROUP on subnet 10.251.105.239

  *****

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I seem to no longer be having this issue on a newly created image as of today, using ami-8d0eede4. I'm marking this invalid and attributing the issue to an error on my part... Sorry for the false positive.

Changed in ubuntu-ami-testing:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.