Bug 9488 - mkdir errors during provision, join and start of samba server
mkdir errors during provision, join and start of samba server
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: Other
4.0.0rc5
All Linux
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-10 08:18 UTC by Peter
Modified: 2012-12-10 08:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2012-12-10 08:18:47 UTC
Some directories in the target install path are not created automatically during install or run. Namely: var, var/run, var/lib.

This is why i receive errors like this:

# ./bin/samba-tool domain join dom.test DC --realm dom.test -kyes
ERROR(<type 'exceptions.OSError'>): uncaught exception - [Errno 2] No such file or directory: '/usr/local/samba/var/locks'
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 552, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1104, in join_DC
    ctx.do_join()
  File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1008, in do_join
    ctx.join_provision()
  File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 658, in join_provision
    use_ntvfs=ctx.use_ntvfs, dns_backend=ctx.dns_backend)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 1917, in provision
    os.mkdir(paths.state_dir)

# ./sbin/samba -i -M single -d2
...skipped...
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
samba version 4.0.0rc5 started.
Copyright Andrew Tridgell and the Samba Team 1992-2012
ERROR: can't open /usr/local/samba/var/run/samba.pid: Error was No such file or directory


# ./sbin/samba -i -M single -d2
...skipped...
mkdir failed on directory /usr/local/samba/var/lib/winbindd_privileged: No such file or directory
task_server_terminate: [Cannot create winbindd privileged pipe directory]
mkdir failed on directory /usr/local/samba/var/lib/ntp_signd: No such file or directory
task_server_terminate: [Cannot create NTP signd pipe directory: /usr/local/samba/var/lib/ntp_signd]


After creating this directories manually, errors are gone.