[Samba] ERROR: failed to setup profiling

Csorba Róbert csorbarobert at darabanth.com
Mon Feb 24 10:17:31 UTC 2020


Hello,

I found what cause the problem.My samba data directory was sysmlinked a 
separated partition.

I created by the following command:ln -s /SAMBA_AD/SAMBA /var/lib/samba

These steps helped me out.

  * stop samba and named systemd units
  * remove the symlink
  * copy the samba files
  * umount /SAMBA_AD/
  * edit fstab and mount the separated partition directly to
    /var/lib/samba path
      o before ->*/dev/mapper/centos-SAMBA_AD****/SAMBA_AD/SAMBA**ext4
        user_xattr,acl 1 2*
      o after -> */dev/mapper/centos-SAMBA_AD **/var/lib/sambaext4
        user_xattr,acl 1 2*
  * mount -a


After that, I successfully updated my samba ad environment to version 
4.10.12.

Now everything works fine.:)

Best

Robet

2020. 02. 11. 7:51 keltezéssel, Csorba Róbert via samba írta:
> Hi,
>
> After I have updated my SAMBA AD environment from version 4.9.18 to 
> version 4.10.12 on my secondary server the program is unable to start 
> and displays the following error message:"ERROR:failed to setup 
> profiling".
>
> The testparm result didn't print any warning or error.
>
> System details:
>
> CentOS Linux release 7.7.1908 (Core) with kernel 
> 3.10.0-1062.9.1.el7.x86_64
>
> smb.conf
>
> [global]
>         netbios name = DC2
>         realm = MYREALM.TLD
>         server role = active directory domain controller
>         server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, 
> drepl, winbindd, ntp_signd, kcc, dnsupdate
>         workgroup = MYREALM
>         idmap_ldb:use rfc2307 = yes
>         log level = 4
>
> [netlogon]
>         path = /var/lib/samba/sysvol/myrealm.tld/scripts
>         read only = No
>
> [sysvol]
>         path = /var/lib/samba/sysvol
>         read only = No
>
>
> log.smbd file
>
> [2020/01/30 16:45:06.817319,  2, pid=1770, effective(0, 0), real(0, 
> 0)] ../../source3/lib/interface.c:345(add_interface)
>   added interface enp3s0 ip=192.168.0.14 bcast=192.168.0.255 
> netmask=255.255.255.0
> [2020/01/30 16:45:06.817356,  3, pid=1770, effective(0, 0), real(0, 
> 0)] ../../source3/smbd/server.c:1857(main)
>   loaded services
> [2020/01/30 16:45:06.817370,  5, pid=1770, effective(0, 0), real(0, 
> 0)] ../../source3/lib/util_names.c:152(init_names)
>   Netbios name list:-
>   my_netbios_names[0]="DC2"
> [2020/01/30 16:45:06.817425,  0, pid=1770, effective(0, 0), real(0, 
> 0)] ../../source3/smbd/server.c:1862(main)
>   ERROR: failed to setup profiling
>
> If you need any further information please let me know.
>
> Do you have any idea what did cause the error?
>
> Yours Sincerely
>
> Robert Csorba
>


More information about the samba mailing list