Samba 4 provision error in recent git
klatimer at tolent.co.uk
Wed Feb 29 08:23:10 MST 2012
On 29/02/2012 15:07, Charles Tryon wrote:
> Pfffffffth! That seems to have fixed my problem with the
> samba3upgrade script too (since it's calling the provision process
> under the hood, and must pass that parameter along). Still call that
> a bug, but at least it's a reasonable workaround.
> On Wed, Feb 29, 2012 at 5:08 AM, Gianni L <slowsin at gmail.com
> <mailto:slowsin at gmail.com>> wrote:
> you have to add --targetdir=<some directory> to bypass this error
> 'cause it seems not to use the default /usr/local/samba dir during the
> I think it's definitely a little buggy in the provision script or a
> problem with the installed python.
> it happened to me too yesterday on a fresh centos 6.2 installation.
> On Wed, Feb 29, 2012 at 10:24 AM, Kev Latimer
> <klatimer at tolent.co.uk <mailto:klatimer at tolent.co.uk>> wrote:
> > On 28/02/2012 01:00, William Brown wrote:
> >>>> root at mydc:/# /usr/local/samba/sbin/**provision
> >>>> --domain=MYDOMAIN--adminpass=**password --server-role=dc
> >>>> --dns-backend=BIND9_FLATFILE
> >>>> Traceback (most recent call last):
> >>>> File "/usr/local/samba/sbin/**provision", line 262, in<module>
> >>>> useeadb=eadb, next_rid=opts.next_rid, lp=lp)
> >>>> File
> >>>> line 1663, in provision
> >>>> eadb=useeadb, lp=lp, server_services=server_**services)
> >>>> File
> >>>> line 648, in make_smbconf
> >>>> shares["sysvol"] = os.path.join(global_settings["**state
> >>>> KeyError: 'state directory'
> >> Can confirm I am getting the same error. Seems to pass make
> >> however (which is in itself a danger)
> >> Sincerely,
> >> William Brown
> >> pgp.mit.edu <http://pgp.mit.edu>
> > Checked out git this morning (4.0.0alpha19-GIT-65d42ab) and same
> error still
> > there. Anyone know a workaround? Surely people have been
> provisioning new
> > Samba4's this week :-P
> > I see there's a similar bug in Bugzilla
> > (https://bugzilla.samba.org/show_bug.cgi?id=8781) - is it worth
> me filing a
> > new bug as it's a new provision and my error is slightly different?
> > Cheers,
> > Kev
> .. Gianni .. L
> www.catartica.it <http://www.catartica.it> - Un viaggio di parole
> www.ashtower.com <http://www.ashtower.com> - La storia siamo noi
> www.blackeaglesrugby.com <http://www.blackeaglesrugby.com> - Black
> Eagles International rugby club Bressanone
> Charles Tryon
> “Risks are not to be evaluated in terms of the probability of
> success, but in terms of the value of the goal.”
> - Ralph D. Winter
Thanks Gianni, that fixes it for me too - provision completes now.
Didn't think to specify the install directory, would think that would
default to /usr/local/samba as before. I thought the error was simply
failing to create sysvol but your workaround does the job.
I've filed a bugzilla - https://bugzilla.samba.org/show_bug.cgi?id=8785
- hope it's not too superfluous.
*Tolent Construction Ltd*
5th Avenue Business Park, Team Valley
Gateshead, Tyne & Wear, NE11 0HF
Tel: +44 (0)191 4870505
Fax: +44 (0)191 4872990
Website: www.tolent.co.uk <http://www.tolent.co.uk>
This message is intended only for the use of the person(s) ('the
intended recipient(s) ') to whom it is addressed.
It may contain information which is privileged and confidential within
the meaning of applicable law.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately.
*The views expressed in this communication may not necessarily be the
views held by the Company.*
Registered office: Ravensworth House, 5th Avenue Business Park, Team
Valley, Gateshead, Tyne & Wear, NE11 0HF.
Registered in England No. 2450574
*Please note Tolent Plc monitors email sent or received. Further
communication will signify your consent to this.*
More information about the samba-technical