samba.x.eliezer613 at spamgourmet.com
2019-Feb-20 14:58 UTC
[Samba] Samba won't start on Centos 7 built from tarball
Hi, not having much luck getting samba 4.8.3 to start on a CentOS 7.6 VM.... used samba-4.8.3.tar.gz ./configure make make install samba-tool domain provision --use-rfc2307 --interactive In /etc/samba there is one file, smb.conf with content of: # Global parameters [global] dns forwarder = 192.168.25.1 netbios name = DC1 realm = DC1.INTERNAL server role = active directory domain controller workgroup = REDACTED idmap_ldb:use rfc2307 = yes [netlogon] path = /var/lib/samba/sysvol/dc1.internal/scripts read only = No [sysvol] path = /var/lib/samba/sysvol read only = No service samba start fails # journalctl -xe Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module schema_load initialization failed : Operations error Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.069992, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module dsdb_notification initialization failed : Operations error Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.070024, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module rootdse initialization failed : Operations error Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.070053, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module samba_dsdb initialization failed : Operations error Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.070081, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) Feb 20 09:47:57 dc1.internal samba[23330]: ldb: Unable to load modules for /var/lib/samba/private/sam.ldb: schema_load_init: dsdb_get_schema failed Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.084584, 0] ../source4/smbd/server.c:638(binary_smbd_main) Feb 20 09:47:57 dc1.internal samba[23330]: binary_smbd_main: samba: using 'standard' process model Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.085333, 0] ../source4/smbd/service.c:112(server_service_startup) Feb 20 09:47:57 dc1.internal samba[23330]: server_service_startup: Failed to start service 'rpc' - NT_STATUS_INVALID_SYSTEM_SERVICE Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.085585, 0] ../lib/util/become_daemon.c:124(exit_daemon) Feb 20 09:47:57 dc1.internal samba[23330]: exit_daemon: STATUS=daemon failed to start: Samba failed to start services, error code -1073741796 Feb 20 09:47:57 dc1.internal systemd[1]: samba.service never wrote its PID file. Failing. Feb 20 09:47:57 dc1.internal systemd[1]: Failed to start Samba AD Daemon. -- Subject: Unit samba.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit samba.service has failed. -- -- The result is failed. Feb 20 09:47:57 dc1.internal systemd[1]: Unit samba.service entered failed state. Feb 20 09:47:57 dc1.internal systemd[1]: samba.service failed. Feb 20 09:47:57 dc1.internal polkitd[2565]: Unregistered Authentication Agent for unix-process:23313:110714198 (system bus name :1.998, object path /org/fr Feb 20 09:48:02 dc1.internal polkitd[2565]: Registered Authentication Agent for unix-process:23335:110714706 (system bus name :1.999 [/usr/bin/pkttyagent - Feb 20 09:48:02 dc1.internal polkitd[2565]: Unregistered Authentication Agent for unix-process:23335:110714706 (system bus name :1.999, object path /org/fr Thanks!
Am 20.02.19 um 15:58 schrieb samba.x.eliezer613--- via samba:> Hi, not having much luck getting samba 4.8.3 to start on a CentOS 7.6 VM.... > > used samba-4.8.3.tar.gz > ./configure > make > make install > samba-tool domain provision --use-rfc2307 --interactive > > In /etc/samba there is one file, smb.conf with content of: > # Global parameters > [global] > dns forwarder = 192.168.25.1 > netbios name = DC1 > realm = DC1.INTERNAL > server role = active directory domain controller > workgroup = REDACTED > idmap_ldb:use rfc2307 = yes > > [netlogon] > path = /var/lib/samba/sysvol/dc1.internal/scripts > read only = No > > [sysvol] > path = /var/lib/samba/sysvol > read only = No > > service samba start fails > > # journalctl -xe > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module schema_load > initialization failed : Operations error > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.069992, > 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module > dsdb_notification initialization failed : Operations error > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.070024, > 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module rootdse > initialization failed : Operations error > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.070053, > 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module samba_dsdb > initialization failed : Operations error > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.070081, > 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: Unable to load modules > for /var/lib/samba/private/sam.ldb: schema_load_init: dsdb_get_schema failed > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.084584, > 0] ../source4/smbd/server.c:638(binary_smbd_main) > Feb 20 09:47:57 dc1.internal samba[23330]: binary_smbd_main: samba: > using 'standard' process model > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.085333, > 0] ../source4/smbd/service.c:112(server_service_startup) > Feb 20 09:47:57 dc1.internal samba[23330]: server_service_startup: > Failed to start service 'rpc' - NT_STATUS_INVALID_SYSTEM_SERVICE > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.085585, > 0] ../lib/util/become_daemon.c:124(exit_daemon) > Feb 20 09:47:57 dc1.internal samba[23330]: exit_daemon: STATUS=daemon > failed to start: Samba failed to start services, error code -1073741796 > Feb 20 09:47:57 dc1.internal systemd[1]: samba.service never wrote its > PID file. Failing. > Feb 20 09:47:57 dc1.internal systemd[1]: Failed to start Samba AD Daemon. > -- Subject: Unit samba.service has failed > -- Defined-By: systemd > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- > -- Unit samba.service has failed. > -- > -- The result is failed. > Feb 20 09:47:57 dc1.internal systemd[1]: Unit samba.service entered > failed state. > Feb 20 09:47:57 dc1.internal systemd[1]: samba.service failed. > Feb 20 09:47:57 dc1.internal polkitd[2565]: Unregistered Authentication > Agent for unix-process:23313:110714198 (system bus name :1.998, object > path /org/fr > Feb 20 09:48:02 dc1.internal polkitd[2565]: Registered Authentication > Agent for unix-process:23335:110714706 (system bus name :1.999 > [/usr/bin/pkttyagent - > Feb 20 09:48:02 dc1.internal polkitd[2565]: Unregistered Authentication > Agent for unix-process:23335:110714706 (system bus name :1.999, object > path /org/fr > > Thanks!Hi, did you create a systemd service file? https://wiki.samba.org/index.php/Managing_the_Samba_AD_DC_Service_Using_Systemd
Rowland Penny
2019-Feb-20 15:07 UTC
[Samba] Samba won't start on Centos 7 built from tarball
On Wed, 20 Feb 2019 09:58:02 -0500 "samba.x.eliezer613--- via samba" <samba at lists.samba.org> wrote:> Hi, not having much luck getting samba 4.8.3 to start on a CentOS 7.6 > VM.... > > used samba-4.8.3.tar.gz > ./configure > make > make installSo everything will be in /usr/local/samba> samba-tool domain provision --use-rfc2307 --interactive > > In /etc/samba there is one file, smb.conf with content of:What about the one in /usr/local/samba/etc ?> # Global parameters > [global] > dns forwarder = 192.168.25.1 > netbios name = DC1 > realm = DC1.INTERNAL > server role = active directory domain controller > workgroup = REDACTED > idmap_ldb:use rfc2307 = yes > > [netlogon] > path = /var/lib/samba/sysvol/dc1.internal/scripts > read only = No > > [sysvol] > path = /var/lib/samba/sysvol > read only = No > > service samba start failsHave you altered the binary path in the systemd service file and are you using the correct service file ?> > # journalctl -xe > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module schema_load > initialization failed : Operations error > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > 09:47:57.069992, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug)Wrong lib, did you set up PATH ?> Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module > dsdb_notification initialization failed : Operations error > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > 09:47:57.070024, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module rootdse > initialization failed : Operations error > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > 09:47:57.070053, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module samba_dsdb > initialization failed : Operations error > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > 09:47:57.070081, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: Unable to load > modules for /var/lib/samba/private/sam.ldb: schema_load_init: > dsdb_get_schema failed Feb 20 09:47:57 dc1.internal samba[23330]: > [2019/02/20 09:47:57.084584, > 0] ../source4/smbd/server.c:638(binary_smbd_main) Feb 20 09:47:57 > dc1.internal samba[23330]: binary_smbd_main: samba: using > 'standard' process model Feb 20 09:47:57 dc1.internal samba[23330]: > [2019/02/20 09:47:57.085333, > 0] ../source4/smbd/service.c:112(server_service_startup) Feb 20 > 09:47:57 dc1.internal samba[23330]: server_service_startup: Failed > to start service 'rpc' - NT_STATUS_INVALID_SYSTEM_SERVICE Feb 20 > 09:47:57 dc1.internal samba[23330]: [2019/02/20 09:47:57.085585, > 0] ../lib/util/become_daemon.c:124(exit_daemon) Feb 20 09:47:57 > dc1.internal samba[23330]: exit_daemon: STATUS=daemon failed to > start: Samba failed to start services, error code -1073741796 Feb 20 > 09:47:57 dc1.internal systemd[1]: samba.service never wrote its PID > file. Failing. Feb 20 09:47:57 dc1.internal systemd[1]: Failed to > start Samba AD Daemon. -- Subject: Unit samba.service has failed > -- Defined-By: systemd > -- Support: > http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- > -- Unit samba.service has failed. > -- > -- The result is failed. > Feb 20 09:47:57 dc1.internal systemd[1]: Unit samba.service entered > failed state. > Feb 20 09:47:57 dc1.internal systemd[1]: samba.service failed. > Feb 20 09:47:57 dc1.internal polkitd[2565]: Unregistered > Authentication Agent for unix-process:23313:110714198 (system bus > name :1.998, object path /org/fr > Feb 20 09:48:02 dc1.internal polkitd[2565]: Registered Authentication > Agent for unix-process:23335:110714706 (system bus name :1.999 > [/usr/bin/pkttyagent - > Feb 20 09:48:02 dc1.internal polkitd[2565]: Unregistered > Authentication Agent for unix-process:23335:110714706 (system bus > name :1.999, object path /org/fr > > Thanks!
Rowland Penny
2019-Feb-20 15:34 UTC
[Samba] Samba won't start on Centos 7 built from tarball
On Wed, 20 Feb 2019 16:01:21 +0100 "J. Echter via samba" <samba at lists.samba.org> wrote:> Am 20.02.19 um 15:58 schrieb samba.x.eliezer613--- via samba: > > Hi, not having much luck getting samba 4.8.3 to start on a CentOS > > 7.6 VM.... > > > > used samba-4.8.3.tar.gz > > ./configure > > make > > make install > > samba-tool domain provision --use-rfc2307 --interactive > > > > In /etc/samba there is one file, smb.conf with content of: > > # Global parameters > > [global] > > dns forwarder = 192.168.25.1 > > netbios name = DC1 > > realm = DC1.INTERNAL > > server role = active directory domain controller > > workgroup = REDACTED > > idmap_ldb:use rfc2307 = yes > > > > [netlogon] > > path = /var/lib/samba/sysvol/dc1.internal/scripts > > read only = No > > > > [sysvol] > > path = /var/lib/samba/sysvol > > read only = No > > > > service samba start fails > > > > # journalctl -xe > > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module schema_load > > initialization failed : Operations error > > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > > 09:47:57.069992, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module > > dsdb_notification initialization failed : Operations error > > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > > 09:47:57.070024, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module rootdse > > initialization failed : Operations error > > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > > 09:47:57.070053, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: module samba_dsdb > > initialization failed : Operations error > > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > > 09:47:57.070081, 0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug) > > Feb 20 09:47:57 dc1.internal samba[23330]: ldb: Unable to load > > modules for /var/lib/samba/private/sam.ldb: schema_load_init: > > dsdb_get_schema failed Feb 20 09:47:57 dc1.internal samba[23330]: > > [2019/02/20 09:47:57.084584, > > 0] ../source4/smbd/server.c:638(binary_smbd_main) Feb 20 09:47:57 > > dc1.internal samba[23330]: binary_smbd_main: samba: using > > 'standard' process model Feb 20 09:47:57 dc1.internal samba[23330]: > > [2019/02/20 09:47:57.085333, > > 0] ../source4/smbd/service.c:112(server_service_startup) Feb 20 > > 09:47:57 dc1.internal samba[23330]: server_service_startup: > > Failed to start service 'rpc' - NT_STATUS_INVALID_SYSTEM_SERVICE > > Feb 20 09:47:57 dc1.internal samba[23330]: [2019/02/20 > > 09:47:57.085585, 0] ../lib/util/become_daemon.c:124(exit_daemon) > > Feb 20 09:47:57 dc1.internal samba[23330]: exit_daemon: > > STATUS=daemon failed to start: Samba failed to start services, > > error code -1073741796 Feb 20 09:47:57 dc1.internal systemd[1]: > > samba.service never wrote its PID file. Failing. Feb 20 09:47:57 > > dc1.internal systemd[1]: Failed to start Samba AD Daemon. -- > > Subject: Unit samba.service has failed -- Defined-By: systemd > > -- Support: > > http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- > > -- Unit samba.service has failed. > > -- > > -- The result is failed. > > Feb 20 09:47:57 dc1.internal systemd[1]: Unit samba.service entered > > failed state. > > Feb 20 09:47:57 dc1.internal systemd[1]: samba.service failed. > > Feb 20 09:47:57 dc1.internal polkitd[2565]: Unregistered > > Authentication Agent for unix-process:23313:110714198 (system bus > > name :1.998, object path /org/fr > > Feb 20 09:48:02 dc1.internal polkitd[2565]: Registered > > Authentication Agent for unix-process:23335:110714706 (system bus > > name :1.999 [/usr/bin/pkttyagent - > > Feb 20 09:48:02 dc1.internal polkitd[2565]: Unregistered > > Authentication Agent for unix-process:23335:110714706 (system bus > > name :1.999, object path /org/fr > > > > Thanks! > > Hi, > > did you create a systemd service file? > > https://wiki.samba.org/index.php/Managing_the_Samba_AD_DC_Service_Using_Systemd > >That is a possibility, but the main problem with building Samba yourself via ./configure etc, is that it doesn't integrate with anything on the Distro. Ideally you would remove any distro Samba packages, but this normally wants to remove a lot of other packages as well, even more if you are running a GUI. That is one reason why I suggested switching distro. Rowland
Reasonably Related Threads
- Samba won't start on Centos 7 built from tarball
- polkit helper timeout and defunct pkla-check-authorization processes on CentOS 7.3
- Samba AD/DC crashed again, third time in as many months
- Samba AD/DC crashed again, third time in as many months
- Samba AD/DC crashed again, third time in as many months