On 26/10/15 17:35, Harold Fines wrote:
Christian: I tried, unfortunately to no avail :(

In case this provides a clue: After boot I have to manually "systemctl restart smbd samba-ad-dc", otherwise I get:

[2015/10/26 17:35:43.091643,  0] libmapi/oc_log.c:52(oc_logv)
  MAPIPROXY server mode enabled
[2015/10/26 17:35:43.094140,  0] libmapi/oc_log.c:54(oc_logv)
Using MySQL backend for openchangedb: mysql://openchange:password@localhost/openchange [2015/10/26 17:35:43.109776, 0] mapiproxy/servers/default/emsmdb/dcesrv_exchange_emsmdb.c:1672(dcesrv_exchange_emsmdb_init)
  ===============================================================
[2015/10/26 17:35:43.110149, 0] mapiproxy/servers/default/emsmdb/dcesrv_exchange_emsmdb.c:1672(dcesrv_exchange_emsmdb_init)
  OPENCHANGE INTERNAL ERROR: pid 1182
[2015/10/26 17:35:43.110348, 0] mapiproxy/servers/default/emsmdb/dcesrv_exchange_emsmdb.c:1672(dcesrv_exchange_emsmdb_init)
  [exchange_emsmdb] Unable to initialize openchangedb
[2015/10/26 17:35:43.112247, 0] mapiproxy/libmapiproxy/fault_util.c:53(debug_print_backtrace)
  BACKTRACE: 14 stack frames:
#00 /usr/lib/x86_64-linux-gnu/libmapiproxy.so.0(debug_print_backtrace+0xa1) [0x7f993878ff38] #01 /usr/lib/x86_64-linux-gnu/libmapiproxy.so.0(openchange_abort+0x75) [0x7f99387900b7] #02 /usr/lib/x86_64-linux-gnu/openchange/dcerpc_mapiproxy_server/exchange_emsmdb.so(+0x11459) [0x7f9935a9b459] #03 /usr/lib/x86_64-linux-gnu/libmapiproxy.so.0(+0xa17b) [0x7f993877517b] #04 /usr/lib/x86_64-linux-gnu/libmapiproxy.so.0(mapiproxy_server_init+0x89) [0x7f9938775241] #05 /usr/lib/x86_64-linux-gnu/samba/dcerpc_server/dcesrv_mapiproxy.so(+0x1e157) [0x7f99389ce157] #06 /usr/lib/x86_64-linux-gnu/libdcerpc-server.so.0(dcesrv_init_context+0x97) [0x7f9943950ed7] #07 /usr/lib/x86_64-linux-gnu/samba/service/dcerpc.so(+0xc95) [0x7f9943bc7c95] #08 /usr/lib/x86_64-linux-gnu/samba/process_model/standard.so(+0x1642) [0x7f99486ae642] #09 /usr/lib/x86_64-linux-gnu/samba/libservice.so.0(task_server_startup+0x4f) [0x7f99563c500f] #10 /usr/lib/x86_64-linux-gnu/samba/libservice.so.0(server_service_startup+0x92) [0x7f99563c3cd2]
   #11 /usr/sbin/samba(+0x99fd) [0x7f99576d09fd]
#12 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f9953210b45]
   #13 /usr/sbin/samba(+0x5dee) [0x7f99576ccdee]
[2015/10/26 17:35:43.116238, 0] ../source4/rpc_server/dcerpc_server.c:1194(dcesrv_init_context) dcesrv_init_context: failed to init endpoint server = 'mapiproxy': NT_STATUS_INTERNAL_ERROR [2015/10/26 17:35:43.117175, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
  task_server_terminate: [Failed to startup dcerpc server task]
STATUS=daemon 'samba' finished starting up and ready to serve connectionssamba_terminate: Failed to startup dcerpc server task [2015/10/26 17:36:38.802556, 0] ../file_server/file_server.c:48(file_server_smbd_done)
  file_server smbd daemon exited normally
[2015/10/26 17:36:38.803751, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
  task_server_terminate: [smbd child process exited]

After "systemctl restart smbd samba-ad-dc":
[2015/10/26 17:36:40.995337,  0] libmapi/oc_log.c:52(oc_logv)
  MAPIPROXY server mode enabled
samba: setproctitle not initialized, please either call setproctitle_init() or link against libbsd-ctor.
[2015/10/26 17:36:41.005783,  0] libmapi/oc_log.c:54(oc_logv)
Using MySQL backend for openchangedb: mysql://openchange:password@localhost/openchange [2015/10/26 17:36:41.008768, 0] ../lib/util/become_daemon.c:136(daemon_ready) samba: setproctitle not initialized, please either call setproctitle_init() or link against libbsd-ctor.

I do get intermittent messages like this in log.samba:

samba: setproctitle not initialized, please either call setproctitle_init() or link against libbsd-ctor. samba: setproctitle not initialized, please either call setproctitle_init() or link against libbsd-ctor. samba: setproctitle not initialized, please either call setproctitle_init() or link against libbsd-ctor.

There is nothing in ocsmanager.log that provides any insight (I also tried enabling debug line in config, no change):

Starting server in PID 703.
serving on http://127.0.0.1:5000
2015-10-26 17:37:47,150 INFO [openchange.web.auth.NTLMAuthHandler] [worker 0] client did not pass auth cookie 2015-10-26 17:37:52,804 INFO [openchange.web.auth.NTLMAuthHandler] [worker 1] client did not pass auth cookie 2015-10-26 17:37:52,828 INFO [openchange.web.auth.NTLMAuthHandler] [worker 2] client did not pass auth cookie 2015-10-26 17:37:52,838 INFO [openchange.web.auth.NTLMAuthHandler] [worker 3] client did not pass auth cookie 2015-10-26 17:37:52,839 INFO [openchange.web.auth.NTLMAuthHandler] [worker 3] acquiring lock /var/cache/ntlmauthhandler/ntlm-127.0.0.1.lock (703) 2015-10-26 17:37:53,426 INFO [openchange.web.auth.NTLMAuthHandler] [worker 4] acquiring lock /var/cache/ntlmauthhandler/ntlm-127.0.0.1.lock (703) 2015-10-26 17:38:29,086 INFO [openchange.web.auth.NTLMAuthHandler] [worker 5] client did not pass auth cookie

Two things, you can ignore the 'setproctitle' lines, these are very common and are harmless. You should not start smbd and samba-ad-dc together, you should just start samba-ad-dc, this will start the 'samba' daemon, which will then start the 'smbd' daemon and on later versions of samba4, it will also start the 'winbindd' daemon. Note that you should never start the 'nmbd' daemon if running a Samba4 AD DC.

Rowland
--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to