SMB not loading after firmware update/Restart

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Post Reply
FiverPC
New here
Posts: 2
Joined: Fri Apr 23, 2021 3:42 am

SMB not loading after firmware update/Restart

Post by FiverPC » Fri Apr 23, 2021 4:08 am

Hello. I have a Qnap TS-869 Pro that's giving me some SMB issues after updating to 4.3.4.1652. 6x16TB Seagate Ironwolf Pro NAS drives. RAID 6.

I can access the NAS fine from the Web GUI, and I can see in the system log that it updated OK. But for some reason after the update and restart it is rebuilding the array. I didn't have bitmap enabled, so it's taking awhile. It shows every drive as "Good" except drive 4 which is "Rebuilding."

I can access the NAS from a Mac using AFP, but SMB does not appear to be loading/loaded. Looking via SSH I gathered the following info:

Code: Select all

[~] # ps -ef | grep mbd         
 3628 admin       448 S   grep mbd

[~] # smb2status

smbd (samba daemon) Version 4.4.16
smbd (samba daemon) is not running.
max protocol SMB 3 enabled.

[~] # /etc/init.d/smb.sh restart
Restarting SMB services:
Shutting down SMB services: smbd smbd-notifyd cleanupdlstat failed on directory /usr/local/samba/var/cores: Input/output error
Failed to create /usr/local/samba/var/cores for user 0 with mode 0700
Unable to setup corepath for winbindd: Input/output error
lstat failed on directory /usr/local/samba/var/cores: Input/output error
Failed to create /usr/local/samba/var/cores for user 0 with mode 0700
Unable to setup corepath for winbindd: Input/output error
 nmbd.
Shutting down winbindd services: winbindd.
rm: can't stat '/share/CACHEDEV1_DATA/.samba/cache': Input/output error
chmod: /share/CACHEDEV1_DATA/.samba/lock/msg.lock: Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mount: tmpfs: can't read superblock
chmod: /share/CACHEDEV1_DATA/.samba/lock/msg.lock: Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
mkdir: can't create directory '/share/CACHEDEV1_DATA/.samba/': Input/output error
rm: can't stat '/usr/local/samba/var/locks': Input/output error
ln: /usr/local/samba/var/locks: Input/output error
locks path was set to /share/CACHEDEV1_DATA/.locks
Shutting down winbindd services: winbindd.
Starting winbindd services:lstat failed on directory /usr/local/samba/var/cores: Input/output error
Failed to create /usr/local/samba/var/cores for user 0 with mode 0700
Unable to setup corepath for winbindd: Input/output error
lstat failed on directory /usr/local/samba/var/cores: Input/output error
Failed to create /usr/local/samba/var/cores for user 0 with mode 0700
Unable to setup corepath for winbindd: Input/output error
lstat failed on directory /usr/local/samba/var/cores: Input/output error
Failed to create /usr/local/samba/var/cores for user 0 with mode 0700
Unable to setup corepath for winbindd: Input/output error
lstat failed on directory /usr/local/samba/var/cores: Input/output error
Failed to create /usr/local/samba/var/cores for user 0 with mode 0700
Unable to setup corepath for winbindd: Input/output error
Starting SMB services:lstat failed on directory /usr/local/samba/var/cores: Input/output error
Failed to create /usr/local/samba/var/cores for user 0 with mode 0700
Unable to setup corepath for winbindd: Input/output error
lstat failed on directory /usr/local/samba/var/cores: Input/output error
Failed to create /usr/local/samba/var/cores for user 0 with mode 0700
Unable to setup corepath for winbindd: Input/output error
.
done.
[~] # ls -als /var/log/log*
12 -rw-r--r-- 1 admin administrators  8745 2021-04-22 13:59 /var/log/log.nmbd
12 -rw-r--r-- 1 admin administrators 10395 2021-04-22 13:32 /var/log/log.nmbd.old
 0 -rw-r--r-- 1 admin administrators     0 2021-04-22 09:01 /var/log/log.smbd

[~] # testparm
Load smb config files from /etc/config/smb.conf
rlimit_max: increasing rlimit_max (4096) to minimum Windows limit (16384)
WARNING: The "null passwords" option is deprecated
WARNING: The "server schannel" option is deprecated
Processing section "[printers]"
Processing section "[Web]"
Processing section "[Public]"
Processing section "[homes]"
Processing section "[Trauma]"
Processing section "[Outside]"
Processing section "[home]"
Loaded services file OK.
ERROR: lock directory /share/CACHEDEV1_DATA/.samba/lock does not exist

ERROR: state directory /share/CACHEDEV1_DATA/.samba/state does not exist

ERROR: cache directory /share/CACHEDEV1_DATA/.samba/cache does not exist

Invalid combination of parameters for service Outside. Level II oplocks can only be set if oplocks are also set.

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
	server string = 
	workgroup = NAS
	local master = No
	preferred master = No
	smb2 leases = Yes
	max log size = 10
	cache directory = /share/CACHEDEV1_DATA/.samba/cache
	lock directory = /share/CACHEDEV1_DATA/.samba/lock
	pid directory = /var/lock
	state directory = /share/CACHEDEV1_DATA/.samba/state
	printcap cache time = 0
	printcap name = /etc/printcap
	show add printer wizard = No
	min receivefile size = 256
	name resolve order = host bcast
	unix extensions = No
	conn log = Yes
	enhance acl v1 = Yes
	guest account = guest
	map to guest = Bad User
	null passwords = Yes
	passdb backend = smbpasswd
	security = USER
	server signing = No
	smb passwd file = /etc/config/smbpasswd
	username map = /etc/config/smbusers
	deadtime = 10
	socket options = TCP_NODELAY SO_KEEPALIVE
	template homedir = /share/homes/DOMAIN=%D/%U
	winbind enum groups = Yes
	winbind enum users = Yes
	winbind expand groups = 1
	winbind scan trusted domains = No
	dns proxy = No
	fruit:veto_appledouble = no
	fruit:nfs_aces = no
	streams_depot:check_valid = no
	streams_depot:delete_lost = yes
	idmap config * : backend = tdb
	delete veto files = Yes
	map archive = No
	map readonly = no
	store dos attributes = Yes
	veto files = /.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@__thumb/.@__desc/:2e*/.@__qini/.Qsync/.@upload_cache/.qsync/.qsync_sn/.@qsys/.streams/.digest/
	kernel share modes = No
	posix locking = No
	wide links = Yes
	acl allow execute always = Yes
	create mask = 0777
	directory mask = 0777
	force unknown acl user = Yes
	invalid users = guest
	use sendfile = Yes
	vfs objects = catia fruit qnap_macea streams_depot


[printers]
	path = /var/spool/smb
	browseable = No
	printable = Yes
	use client driver = Yes
	guest ok = Yes


[Web]
	comment = System default share
	path = /share/CACHEDEV1_DATA/Web
	browseable = No
	aio read size on sequential = 4097
	recycle bin = Yes
	guest ok = Yes
	inherit permissions = Yes
	smb encrypt = No
	valid users = root
	strict allocate = Yes
	streams_depot:check_valid = yes


[Public]
	comment = System default share
	path = /share/CACHEDEV1_DATA/Public
	browseable = No
	aio read size on sequential = 4097
	recycle bin = Yes
	guest ok = Yes
	inherit permissions = Yes
	read list = Test
	smb encrypt = No
	valid users = root Test
	strict allocate = Yes
	streams_depot:check_valid = yes


[homes]
	comment = System default share
	path = /share/CACHEDEV1_DATA/homes
	browseable = No
	recycle bin = Yes
	guest ok = Yes
	inherit permissions = Yes
	smb encrypt = No
	valid users = root


[Trauma]
	path = /share/CACHEDEV1_DATA/Trauma
	aio read size on sequential = 4097
	recycle bin = Yes
	guest ok = Yes
	inherit permissions = Yes
	smb encrypt = No
	valid users = root admin Staff @administrators @everyone
	write list = admin Staff @administrators @everyone
	strict allocate = Yes
	streams_depot:check_valid = yes


[Outside]
	path = /share/CACHEDEV1_DATA/Outside
	oplocks = No
	aio read size on sequential = 4097
	guest ok = Yes
	inherit permissions = Yes
	invalid users = Staff guest
	smb encrypt = No
	valid users = root admin Test @administrators @everyone
	write list = admin Test @administrators @everyone
	strict allocate = Yes
	streams_depot:check_valid = yes


[home]
	comment = Home
	path = %H
	root preexec = /sbin/create_home -u '%q'
	inherit permissions = Yes
	read list = %u
	read only = No
	valid users = %u
	write list = %u

Any idea's what's up, or if I need to add more information, what I need to gather to help diagnose the problem?

Thanks in advance.

itteam
Getting the hang of things
Posts: 77
Joined: Thu Jul 25, 2013 1:25 am

Re: SMB not loading after firmware update/Restart

Post by itteam » Fri Apr 23, 2021 5:18 pm

Me too - rebuilding the raid group after the April update (though SMB is running):

viewtopic.php?f=73&t=160904
[ TS-873U-RP @HQ ][ TS-220 + TS-221 +TS-419 U II @Satellite branches ] [ TS-212P + HS453-DX @Home ]

Post Reply

Return to “File Sharing”