[Resolved/Workaround] Samba upgrade breakage

Issues related to applications and software problems
Post Reply
DrMikeDuke
Posts: 5
Joined: 2014/09/08 08:45:29

[Resolved/Workaround] Samba upgrade breakage

Post by DrMikeDuke » 2017/09/25 08:30:26

EDIT: This is now fixed as of samba-3.6.23-46el6_9.x86_64 :D


Hi guys,

Don't know if anyone else is experiencing this on CentOS 6.9, upgrading samba causes clients to be unable to open/read any files and all directories appear empty!

Downgrading and restarting the daemon worked for now as a workaround. Behavior is noted on Win10 and Linux clients.

The problematic version in question:

Code: Select all

 samba.x86_64 0:3.6.23-45.el6_9

Code: Select all

Linux 2.6.32-696.10.2.el6.x86_64 #1 SMP Tue Sep 12 14:33:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
extract from /etc/samba/smb.conf

Code: Select all

[global]
workgroup = WORKGROUP 
server string = Server
netbios name = Server
        fstype = Samba
        unix extensions = false 
         # Services
        disable netbios = Yes 

       min protocol = SMB2
       max protocol = SMB2

 # Logging
        log file = /var/log/samba/log.%m
        max log size = 10000
        log level = 2 winbind:3
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        nt pipe support = no
        username map = /etc/samba/username.map
        interfaces = lo eth0
        bind interfaces only = Yes
        security = user
        client lanman auth = no
        lanman Auth = no
        client plaintext auth = no
        client plaintext auth = no
        encrypt passwords = yes
        passdb backend = tdbsam
        obey pam restrictions = yes
        pam password change = no
        guest ok = no   
         hosts deny = ALL
        hosts allow = 127.0.0.1, 192.168.1.
        map to guest = Bad User
 # Performance Options
        aio read size =  16384 # 65535  # Use asynchronous I/O for writes bigger than 16KB request size
        aio write size = 16384 # Use asynchronous I/O for writes bigger than 16KB request size
        socket options = IPTOS_THROUGHPUT TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=262140 SO_RCVBUF=262140
        max connections = 0
        max xmit = 6553
        use sendfile = yes
        large readwrite = yes
        max stat cache size = 512 # Memory hog
# Performance options requiring battery backup (danger of lost data in power-loss event)
        strict sync = no 
        sync always = no 
        strict locking = no
        level2 oplocks = true
        # Deprecated:
        write cache size = 262144
        # These are defaults now anyway
        read raw = yes  
        write raw = yes 
 # Printers
        load printers = yes
        show add printer wizard = yes
        printcap name = cups
        printing = cups
        use client driver = yes
 # WINS (Windows Internet Name Service)
        wins support = no
        os level = 99
        domain master = yes
        preferred master = yes
        name resolve order = wins lmhosts host bcast
        dns proxy = no
        hostname lookups = no 

Code: Select all

===============================================================================================================================================================================================================================================================================================================================
 Package                                                                           Arch                                                               Version                                                                      Repository                                                                             Size
===============================================================================================================================================================================================================================================================================================================================
Downgrading:
 samba                                                                             x86_64                                                             3.6.23-44.el6_9                                                              centos6_x64_updates                                                             5.1 M
 samba-client                                                                      x86_64                                                             3.6.23-44.el6_9                                                              centos6_x64_updates                                                              11 M
 samba-common                                                                      x86_64                                                             3.6.23-44.el6_9                                                              centos6_x64_updates                                                              10 M
 samba-winbind                                                                     x86_64                                                             3.6.23-44.el6_9                                                              centos6_x64_updates                                                             2.2 M
 samba-winbind-clients                                                             x86_64                                                             3.6.23-44.el6_9                                                              centos6_x64_updates                                                             2.0 M

Transaction Summary
===============================================================================================================================================================================================================================================================================================================================
Downgrade     5 Package(s)

Total download size: 30 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): samba-3.6.23-44.el6_9.x86_64.rpm                                                                                                                                                                                                                                                                 | 5.1 MB     00:00     
(2/5): samba-client-3.6.23-44.el6_9.x86_64.rpm                                                                                                                                                                                                                                                          |  11 MB     00:00     
(3/5): samba-common-3.6.23-44.el6_9.x86_64.rpm                                                                                                                                                                                                                                                          |  10 MB     00:00     
(4/5): samba-winbind-3.6.23-44.el6_9.x86_64.rpm                                                                                                                                                                                                                                                         | 2.2 MB     00:00     
(5/5): samba-winbind-clients-3.6.23-44.el6_9.x86_64.rpm                                                                                                                                                                                                                                                 | 2.0 MB     00:06     
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                                                                          2.1 MB/s |  30 MB     00:14     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : samba-winbind-clients-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                               1/10 
  Installing : samba-common-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                                        2/10 
  Installing : samba-winbind-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                                       3/10 
  Installing : samba-client-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                                        4/10 
  Installing : samba-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                                               5/10 
  Cleanup    : samba-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                                               6/10 
  Cleanup    : samba-client-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                                        7/10 
  Cleanup    : samba-winbind-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                                       8/10 
  Cleanup    : samba-common-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                                        9/10 
  Cleanup    : samba-winbind-clients-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                              10/10 
  Verifying  : samba-common-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                                        1/10 
  Verifying  : samba-client-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                                        2/10 
  Verifying  : samba-winbind-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                                       3/10 
  Verifying  : samba-winbind-clients-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                               4/10 
  Verifying  : samba-3.6.23-44.el6_9.x86_64                                                                                                                                                                                                                                                                               5/10 
  Verifying  : samba-winbind-clients-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                               6/10 
  Verifying  : samba-winbind-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                                       7/10 
  Verifying  : samba-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                                               8/10 
  Verifying  : samba-client-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                                        9/10 
  Verifying  : samba-common-3.6.23-45.el6_9.x86_64                                                                                                                                                                                                                                                                       10/10 

Removed:
  samba.x86_64 0:3.6.23-45.el6_9                          samba-client.x86_64 0:3.6.23-45.el6_9                          samba-common.x86_64 0:3.6.23-45.el6_9                          samba-winbind.x86_64 0:3.6.23-45.el6_9                          samba-winbind-clients.x86_64 0:3.6.23-45.el6_9                         

Installed:
  samba.x86_64 0:3.6.23-44.el6_9                          samba-client.x86_64 0:3.6.23-44.el6_9                          samba-common.x86_64 0:3.6.23-44.el6_9                          samba-winbind.x86_64 0:3.6.23-44.el6_9                          samba-winbind-clients.x86_64 0:3.6.23-44.el6_9                         

Complete!


Any thoughts on this?

Cheers,

Mike.
Last edited by DrMikeDuke on 2018/01/28 02:07:36, edited 2 times in total.

DrMikeDuke
Posts: 5
Joined: 2014/09/08 08:45:29

Re: Samba upgrade breakage

Post by DrMikeDuke » 2018/01/25 08:57:18

An update to my old post, I've revisited this issue after a spacewalk upgrade: The issue is a known wide links bug with samba
https://bugzilla.redhat.com/show_bug.cgi?id=1495148

The workaround for now is to set "follow symlinks = yes" entirely in your smb.conf and hope that someone cares enough to backport a fix

Post Reply