provision crashed with InvalidNetbiosName in guess_names(): The name ''...-...'' is not a valid NetBIOS name

Bug #1048353 reported by Logan Rosen
208
This bug affects 32 people
Affects Status Importance Assigned to Milestone
samba4 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

This occurred after installing samba4. The samba4 package failed to install.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: samba4 4.0.0~beta2+dfsg1-3
ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
Uname: Linux 3.5.0-14-generic x86_64
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
Date: Sun Sep 9 15:19:51 2012
ExecutablePath: /usr/share/samba/setup/provision
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120821)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: python /usr/share/samba/setup/provision --realm=localdomain --domain=WORKGROUP --server-role=domain\ controller --use-ntvfs
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/samba/setup/provision', '--realm=localdomain', '--domain=WORKGROUP', '--server-role=domain controller', '--use-ntvfs']
SourcePackage: samba4
Title: provision crashed with InvalidNetbiosName in guess_names(): The name ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Logan Rosen (logan) wrote :
Revision history for this message
Logan Rosen (logan) wrote :

The bug for the package installation failure for samba4 is here: Bug 1048354

tags: removed: need-duplicate-check
Changed in samba4 (Ubuntu):
importance: Undecided → Medium
Logan Rosen (logan)
visibility: private → public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba4 (Ubuntu):
status: New → Confirmed
Revision history for this message
Logan Rosen (logan) wrote :

Jelmer, I'm not sure that this is a duplicate of that bug, as it purports that the issue was fixed, but it is still occurring in 4.0.0~beta2+dfsg1-3.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

It looks like this is a slightly different bug, which has to do with the length of the NetBIOS name.

As far as I can tell it is fixed with rc2.

Changed in samba4 (Ubuntu):
status: Confirmed → Fix Released
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Logan Rosen (logan) wrote :

I am still experiencing this crash when installing the latest version of samba4 in quantal (4.0.0~beta2+dfsg1-3):

Traceback (most recent call last):
  File "/usr/share/samba/setup/provision", line 260, in <module>
    useeadb=eadb, next_rid=opts.next_rid, lp=lp, use_ntvfs=(opts.use_ntvfs))
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1692, in provision
    sitename=sitename, rootdn=rootdn)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 508, in guess_names
    raise InvalidNetbiosName(netbiosname)
samba.provision.InvalidNetbiosName: The name ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name

Changed in samba4 (Ubuntu):
status: Fix Released → Confirmed
Jelmer Vernooij (jelmer)
no longer affects: openchange
Jelmer Vernooij (jelmer)
Changed in samba4 (Ubuntu):
assignee: Jelmer Vernooij (jelmer) → nobody
Thomas Hood (jdthood)
summary: provision crashed with InvalidNetbiosName in guess_names(): The name
- ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
+ ''...-...'' is not a valid NetBIOS name
Revision history for this message
Bob Bosak (bbosak2143) wrote : Re: [Bug 1048353] Re: provision crashed with InvalidNetbiosName in guess_names(): The name ''...-...'' is not a valid NetBIOS name

I didn't want to isolate the nag altogether as to find the real culprit!
Has nothing to do with samba. All due to a zfs file system error. Has been
uninstalled. This is a new operating system I am trying to develop. Am not
a pro so have to excuse the hassle! Was run on Gnome Boxes as to isolate
the problem. Am running current OS with no hassles after zfs has been
removed!

On Thu, Jan 24, 2013 at 6:10 AM, Thomas Hood <email address hidden>wrote:

> ** Summary changed:
>
> - provision crashed with InvalidNetbiosName in guess_names(): The name
> ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
> + provision crashed with InvalidNetbiosName in guess_names(): The name
> ''...-...'' is not a valid NetBIOS name
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1097093).
> https://bugs.launchpad.net/bugs/1048353
>
> Title:
> provision crashed with InvalidNetbiosName in guess_names(): The name
> ''...-...'' is not a valid NetBIOS name
>
> Status in “samba4” package in Ubuntu:
> Confirmed
>
> Bug description:
> This occurred after installing samba4. The samba4 package failed to
> install.
>
> ProblemType: Crash
> DistroRelease: Ubuntu 12.10
> Package: samba4 4.0.0~beta2+dfsg1-3
> ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
> Uname: Linux 3.5.0-14-generic x86_64
> ApportVersion: 2.5.1-0ubuntu7
> Architecture: amd64
> Date: Sun Sep 9 15:19:51 2012
> ExecutablePath: /usr/share/samba/setup/provision
> InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64
> (20120821)
> InterpreterPath: /usr/bin/python2.7
> ProcCmdline: python /usr/share/samba/setup/provision --realm=localdomain
> --domain=WORKGROUP --server-role=domain\ controller --use-ntvfs
> ProcEnviron:
> TERM=xterm
> PATH=(custom, no user)
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> PythonArgs: ['/usr/share/samba/setup/provision', '--realm=localdomain',
> '--domain=WORKGROUP', '--server-role=domain controller', '--use-ntvfs']
> SourcePackage: samba4
> Title: provision crashed with InvalidNetbiosName in guess_names(): The
> name ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups:
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/1048353/+subscriptions
>

Revision history for this message
TheTerror (792781008-c) wrote : 回复: [Bug 1048353] Re: provision crashed with InvalidNetbiosName inguess_names(): The name ''...-...'' is not a valid NetBIOS name
Download full text (4.3 KiB)

thanks so much for your reply,i just read email,i will operate following your advise ,good night.
------ 原始邮件 ------
发件人:"Bob Bosak"<email address hidden>;
发送时间:2013年1月24日(星期四) 晚上9:07
收件人:"792781008"<email address hidden>;
主题:Re: [Bug 1048353] Re: provision crashed with InvalidNetbiosName inguess_names(): The name ''...-...'' is not a valid NetBIOS name

I didn't want to isolate the nag altogether as to find the real culprit!
Has nothing to do with samba. All due to a zfs file system error. Has been
uninstalled. This is a new operating system I am trying to develop. Am not
a pro so have to excuse the hassle! Was run on Gnome Boxes as to isolate
the problem. Am running current OS with no hassles after zfs has been
removed!

On Thu, Jan 24, 2013 at 6:10 AM, Thomas Hood <email address hidden>wrote:

> ** Summary changed:
>
> - provision crashed with InvalidNetbiosName in guess_names(): The name
> ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
> + provision crashed with InvalidNetbiosName in guess_names(): The name
> ''...-...'' is not a valid NetBIOS name
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1097093).
> https://bugs.launchpad.net/bugs/1048353
>
> Title:
> provision crashed with InvalidNetbiosName in guess_names(): The name
> ''...-...'' is not a valid NetBIOS name
>
> Status in “samba4” package in Ubuntu:
> Confirmed
>
> Bug description:
> This occurred after installing samba4. The samba4 package failed to
> install.
>
> ProblemType: Crash
> DistroRelease: Ubuntu 12.10
> Package: samba4 4.0.0~beta2+dfsg1-3
> ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
> Uname: Linux 3.5.0-14-generic x86_64
> ApportVersion: 2.5.1-0ubuntu7
> Architecture: amd64
> Date: Sun Sep 9 15:19:51 2012
> ExecutablePath: /usr/share/samba/setup/provision
> InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64
> (20120821)
> InterpreterPath: /usr/bin/python2.7
> ProcCmdline: python /usr/share/samba/setup/provision --realm=localdomain
> --domain=WORKGROUP --server-role=domain\ controller --use-ntvfs
> ProcEnviron:
> TERM=xterm
> PATH=(custom, no user)
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> PythonArgs: ['/usr/share/samba/setup/provision', '--realm=localdomain',
> '--domain=WORKGROUP', '--server-role=domain controller', '--use-ntvfs']
> SourcePackage: samba4
> Title: provision crashed with InvalidNetbiosName in guess_names(): The
> name ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups:
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/1048353/+subscriptions
>

--
You received this bug notification because you are subscribed to a
duplicate bug report (1097765).
https://bugs.launchpad.net/bugs/1048353

Title:
  provision crashed with InvalidNetbiosName in guess_names(): The name
  ''...-...'' is not a valid NetBIOS name

Status in “samba4” package in Ubuntu:
  Confirmed

Bug description:
  This occurred after install...

Read more...

Revision history for this message
TheTerror (792781008-c) wrote : 回复:[Bug 1048353] Re: provision crashed with InvalidNetbiosName inguess_names(): The name ''...-...'' is not a valid NetBIOS name

Thanks so much for your report, I am sorry to reply this email so late.I have just been traning as a embedded engineer.The training center supply's no internet for the students.We have a heavy homework to do everyday.Thanks again for your detailed solution.I will try it and wish you happy new year.

 ------------------ 原始邮件 ------------------
  发件人: "1048353"<email address hidden>;
 发送时间: 2013年1月24日(星期四) 晚上8:10
 收件人: "792781008"<email address hidden>;

 主题: [Bug 1048353] Re: provision crashed with InvalidNetbiosName inguess_names(): The name ''...-...'' is not a valid NetBIOS name

** Summary changed:

- provision crashed with InvalidNetbiosName in guess_names(): The name ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
+ provision crashed with InvalidNetbiosName in guess_names(): The name ''...-...'' is not a valid NetBIOS name

--
You received this bug notification because you are subscribed to a
duplicate bug report (1097765).
https://bugs.launchpad.net/bugs/1048353

Title:
  provision crashed with InvalidNetbiosName in guess_names(): The name
  ''...-...'' is not a valid NetBIOS name

Status in “samba4” package in Ubuntu:
  Confirmed

Bug description:
  This occurred after installing samba4. The samba4 package failed to
  install.

  ProblemType: Crash
  DistroRelease: Ubuntu 12.10
  Package: samba4 4.0.0~beta2+dfsg1-3
  ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
  Uname: Linux 3.5.0-14-generic x86_64
  ApportVersion: 2.5.1-0ubuntu7
  Architecture: amd64
  Date: Sun Sep 9 15:19:51 2012
  ExecutablePath: /usr/share/samba/setup/provision
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120821)
  InterpreterPath: /usr/bin/python2.7
  ProcCmdline: python /usr/share/samba/setup/provision --realm=localdomain --domain=WORKGROUP --server-role=domain\ controller --use-ntvfs
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/share/samba/setup/provision', '--realm=localdomain', '--domain=WORKGROUP', '--server-role=domain controller', '--use-ntvfs']
  SourcePackage: samba4
  Title: provision crashed with InvalidNetbiosName in guess_names(): The name ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/1048353/+subscriptions

Revision history for this message
Eric Teeter (teetere) wrote :

I found two work arounds:

1: is to reprovision samba 4 which allows you to change the NetBios Domain name:

or

2: go in to the file and manually change the domain name

in my case example full domain name example.home

hope this helps those that have this problem

Revision history for this message
Vincent Gerris (vgerris) wrote :

I still have this problem when installing on ubuntu 12.04 LTS.
@Eric which file is 'the file' ?

Revision history for this message
Vincent Gerris (vgerris) wrote :

by the way it is Ubuntu Server 12.04 LTS 64 bit on virtual box.
the output:
Setting up samba4 (4.0.1+dfsg1-1) ...
hostname: Name or service not known
ERROR(<class 'samba.provision.InvalidNetbiosName'>): uncaught exception - The name ''UBUNTU-VM-MAC'' is not a valid NetBIOS name

Revision history for this message
Vincent Gerris (vgerris) wrote :

I found a workaround.
In my case the issue was the hostname containing dashes - and/or be longer than 15 characters.
Remove the dashes from your hostname and hosts file, reboot and samba4 should start.
I tried to reinstall then and run into the next bug, which is a password not complex enough error.
It's pretty broken.

Revision history for this message
TheTerror (792781008-c) wrote : Reply:[Bug 1048353] Re: provision crashed with InvalidNetbiosName inguess_names(): The name ''...-...'' is not a valid NetBIOS name

Thanks for your reply.First I must say sorry.I have not check this email for a long time.And that ubuntu trouble - -also I have forgotten it for a long time.But still you reply for the question.Thanks very much.

 ------------------ 原始邮件 ------------------
  发件人: "Bug 1048353"<email address hidden>;
 发送时间: 2013年8月16日(星期五) 晚上10:00
 收件人: "dear hj"<email address hidden>;

 主题: [Bug 1048353] Re: provision crashed with InvalidNetbiosName inguess_names(): The name ''...-...'' is not a valid NetBIOS name

I found a workaround.
In my case the issue was the hostname containing dashes - and/or be longer than 15 characters.
Remove the dashes from your hostname and hosts file, reboot and samba4 should start.
I tried to reinstall then and run into the next bug, which is a password not complex enough error.
It's pretty broken.

--
You received this bug notification because you are subscribed to a
duplicate bug report (1097765).
https://bugs.launchpad.net/bugs/1048353

Title:
  provision crashed with InvalidNetbiosName in guess_names(): The name
  ''...-...'' is not a valid NetBIOS name

Status in “samba4” package in Ubuntu:
  Confirmed

Bug description:
  This occurred after installing samba4. The samba4 package failed to
  install.

  ProblemType: Crash
  DistroRelease: Ubuntu 12.10
  Package: samba4 4.0.0~beta2+dfsg1-3
  ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
  Uname: Linux 3.5.0-14-generic x86_64
  ApportVersion: 2.5.1-0ubuntu7
  Architecture: amd64
  Date: Sun Sep 9 15:19:51 2012
  ExecutablePath: /usr/share/samba/setup/provision
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120821)
  InterpreterPath: /usr/bin/python2.7
  ProcCmdline: python /usr/share/samba/setup/provision --realm=localdomain --domain=WORKGROUP --server-role=domain\ controller --use-ntvfs
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/share/samba/setup/provision', '--realm=localdomain', '--domain=WORKGROUP', '--server-role=domain controller', '--use-ntvfs']
  SourcePackage: samba4
  Title: provision crashed with InvalidNetbiosName in guess_names(): The name ''LOGAN-VIRTUALBOX'' is not a valid NetBIOS name
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/1048353/+subscriptions
.

Revision history for this message
Acellam Guy (abiccel) wrote :

I found a work around on this do the following:

sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo apt-get install samba4

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.