SOLVED Can Not Start Cifs Service

Status
Not open for further replies.

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
Beforehand I had a complicated setup where every folder needed permissions tied to root. I destroyed datasets and starting from scratch in where I have a media folder with no login required and subfolders within that mainly used for Plex. After going thru the motions I have run into some roadblocks
I am unable to start the Cifs Service specifically.
Service Could not be started error messages
I have tried some of the commands listed in this post but still not working correctly
https://bugs.pcbsd.org/issues/4194
specifically the zfs destroy commands listed
I am a noob and any assistance would be most appreciated.
Contents of root directory listed below.


[root@FreeNas ~]#
[root@FreeNas ~]# zfs list
NAME USED AVAIL REFER MOUNTPOINT
Masterpool 1.40G 15.3T 203K /mnt/Masterpool
Masterpool/.system 80.5M 15.3T 77.6M legacy
Masterpool/.system/configs-2fa742ae30da433ca735af52bcb65edb 418K 15.3T 418K legacy
Masterpool/.system/cores 1.29M 15.3T 1.29M legacy
Masterpool/.system/rrd-2fa742ae30da433ca735af52bcb65edb 140K 15.3T 140K legacy
Masterpool/.system/samba4 523K 15.3T 523K legacy
Masterpool/.system/syslog-2fa742ae30da433ca735af52bcb65edb 575K 15.3T 575K legacy
Masterpool/jails 1.32G 15.3T 221K /mnt/Masterpool/jails
Masterpool/jails/.warden-template-pluginjail 497M 15.3T 496M /mnt/Masterpool/jails/.warden-template-pluginjail
Masterpool/jails/couchpotato_1 195M 15.3T 687M /mnt/Masterpool/jails/couchpotato_1
Masterpool/jails/lazylibrarian_1 161M 15.3T 654M /mnt/Masterpool/jails/lazylibrarian_1
Masterpool/jails/plexmediaserver_1 380M 15.3T 873M /mnt/Masterpool/jails/plexmediaserver_1
Masterpool/jails/transmission_1 114M 15.3T 606M /mnt/Masterpool/jails/transmission_1
Masterpool/media 140K 15.3T 140K /mnt/Masterpool/media
freenas-boot 525M 57.1G 31K none
freenas-boot/ROOT 517M 57.1G 25K none
freenas-boot/ROOT/Initial-Install 1K 57.1G 512M legacy
freenas-boot/ROOT/default 517M 57.1G 514M legacy
freenas-boot/grub 6.79M 57.1G 6.79M legacy
[root@FreeNas ~]# ^C
[root@FreeNas ~]#
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
What error message do you get in /var/log/messages when you start cifs? Running that destroy command probably made things worse and you might have to just start over.
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
Extracted Var Log and Debug Messages
Listed below is output that looks relevant

MESSAGES
Feb 14 22:54:27 FreeNas manage.py: [common.pipesubr:71] Popen()ing: zfs list -H -o mountpoint,name
Feb 15 00:00:00 FreeNas syslog-ng[1782]: Configuration reload request received, reloading configuration;
Feb 15 03:06:07 FreeNas find_alias_for_smtplib.py: [common.system:210] Failed to send email: [Errno 65] No route to host
Feb 15 03:47:04 FreeNas update_check.py: [common.system:210] Failed to send email: [Errno 65] No route to host
Feb 16 00:00:00 FreeNas syslog-ng[1782]: Configuration reload request received, reloading configuration;
Feb 16 03:47:03 FreeNas update_check.py: [common.system:210] Failed to send email: [Errno 65] No route to host
Feb 16 22:09:49 FreeNas notifier: Failed to open /var/db/samba4/private/secrets.tdb
Feb 16 22:09:49 FreeNas notifier: Failed to open /var/db/samba4/private/secrets.tdb
Feb 17 07:46:53 FreeNas notifier: Starting smbd.
Feb 17 07:46:53 FreeNas smbd[11842]: [2016/02/17 07:46:53.341201, 0] ../source3/auth/auth_util.c:866(make_new_session_info_guest)
Feb 17 07:46:53 FreeNas smbd[11842]: make_server_info_info3 failed with NT_STATUS_NO_SUCH_USER
Feb 17 07:46:53 FreeNas smbd[11842]: [2016/02/17 07:46:53.341364, 0] ../source3/smbd/server.c:1433(main)
Feb 17 07:46:53 FreeNas smbd[11842]: ERROR: failed to setup guest info.

Debugs
Feb 17 07:48:03 FreeNas manage.py: [middleware.notifier:177] Executing: /usr/sbin/service ix-pre-samba quietstart
Feb 17 07:48:04 FreeNas generate_smb4_conf.py: [middleware.notifier:214] Popen()ing: /sbin/zfs list -H -o name -t volume,filesystem
Feb 17 07:48:04 FreeNas generate_smb4_conf.py: [middleware.notifier:214] Popen()ing: /usr/local/bin/net groupmap list
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:191] Executed: /usr/sbin/service ix-pre-samba quietstart -> 0
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:177] Executing: /usr/sbin/service samba_server quietstart
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:191] Executed: /usr/sbin/service samba_server quietstart -> 0
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:177] Executing: /usr/sbin/service ix-post-samba quietstart
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:191] Executed: /usr/sbin/service ix-post-samba quietstart -> 0
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:214] Popen()ing: /bin/pgrep -F /var/run/samba/smbd.pid smbd
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Extracted Var Log and Debug Messages
Listed below is output that looks relevant

MESSAGES
Feb 14 22:54:27 FreeNas manage.py: [common.pipesubr:71] Popen()ing: zfs list -H -o mountpoint,name
Feb 15 00:00:00 FreeNas syslog-ng[1782]: Configuration reload request received, reloading configuration;
Feb 15 03:06:07 FreeNas find_alias_for_smtplib.py: [common.system:210] Failed to send email: [Errno 65] No route to host
Feb 15 03:47:04 FreeNas update_check.py: [common.system:210] Failed to send email: [Errno 65] No route to host
Feb 16 00:00:00 FreeNas syslog-ng[1782]: Configuration reload request received, reloading configuration;
Feb 16 03:47:03 FreeNas update_check.py: [common.system:210] Failed to send email: [Errno 65] No route to host
Feb 16 22:09:49 FreeNas notifier: Failed to open /var/db/samba4/private/secrets.tdb
Feb 16 22:09:49 FreeNas notifier: Failed to open /var/db/samba4/private/secrets.tdb
Feb 17 07:46:53 FreeNas notifier: Starting smbd.
Feb 17 07:46:53 FreeNas smbd[11842]: [2016/02/17 07:46:53.341201, 0] ../source3/auth/auth_util.c:866(make_new_session_info_guest)
Feb 17 07:46:53 FreeNas smbd[11842]: make_server_info_info3 failed with NT_STATUS_NO_SUCH_USER
Feb 17 07:46:53 FreeNas smbd[11842]: [2016/02/17 07:46:53.341364, 0] ../source3/smbd/server.c:1433(main)
Feb 17 07:46:53 FreeNas smbd[11842]: ERROR: failed to setup guest info.

Debugs
Feb 17 07:48:03 FreeNas manage.py: [middleware.notifier:177] Executing: /usr/sbin/service ix-pre-samba quietstart
Feb 17 07:48:04 FreeNas generate_smb4_conf.py: [middleware.notifier:214] Popen()ing: /sbin/zfs list -H -o name -t volume,filesystem
Feb 17 07:48:04 FreeNas generate_smb4_conf.py: [middleware.notifier:214] Popen()ing: /usr/local/bin/net groupmap list
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:191] Executed: /usr/sbin/service ix-pre-samba quietstart -> 0
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:177] Executing: /usr/sbin/service samba_server quietstart
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:191] Executed: /usr/sbin/service samba_server quietstart -> 0
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:177] Executing: /usr/sbin/service ix-post-samba quietstart
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:191] Executed: /usr/sbin/service ix-post-samba quietstart -> 0
Feb 17 07:48:04 FreeNas manage.py: [middleware.notifier:214] Popen()ing: /bin/pgrep -F /var/run/samba/smbd.pid smbd
Run "testparm" from the CLI and post full output.
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
[root@FreeNas ~]# testparm
Load smb config files from /usr/local/etc/smb4.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Media]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
idmap config * : backend = tdb
acl allow execute always = Yes
create mask = 0666
directory mask = 0777
ea support = Yes
directory name cache size = 0
kernel change notify = No
store dos attributes = Yes
strict locking = No
dos filemode = Yes

[Media]
path = /mnt/Masterpool/media
read only = No
guest only = Yes
guest ok = Yes
hosts allow = 192.168.0.130/24
veto files = /.snapshot/.windows/.mac/.zfs/
vfs objects = zfs_space, zfsacl, aio_pthread, streams_xattr
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
[global]
server max protocol = SMB2
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 15
max log size = 51200
max open files = 936686
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
getwd cache = yes
guest account = Media
map to guest = Bad User
obey pam restrictions = yes
directory name cache size = 0
kernel change notify = no
panic action = /usr/local/libexec/samba/samba-backtrace
nsupdate command = /usr/local/bin/samba-nsupdate -g
server string = FreeNAS Server
ea support = yes
store dos attributes = yes
lm announce = yes
hostname lookups = yes
time server = yes
null passwords = yes
acl allow execute always = true
acl check permissions = true
dos filemode = yes
multicast dns register = yes
domain logons = no
local master = yes
idmap config *: backend = tdb
idmap config *: range = 90000001-100000000
server role = standalone
netbios name = FREENAS
workgroup = WORKGROUP
security = user
pid directory = /var/run/samba
create mask = 0666
directory mask = 0777
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 2


[Media]
path = /mnt/Masterpool/media
printable = no
veto files = /.snapshot/.windows/.mac/.zfs/
writeable = yes
browseable = yes
vfs objects = zfs_space zfsacl aio_pthread streams_xattr
hide dot files = yes
hosts allow = 192.168.0.130/24
guest ok = yes
guest only = yes
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = true
zfsacl:acesort = dontcare
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
Window got cutoff earlier sorry

Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
dos charset = CP437
server string = FreeNAS Server
server role = standalone server
map to guest = Bad User
null passwords = Yes
obey pam restrictions = Yes
guest account = Media
max log size = 51200
server max protocol = SMB2
time server = Yes
deadtime = 15
max open files = 936686
hostname lookups = Yes
load printers = No
printcap name = /dev/null
disable spoolss = Yes
lm announce = Yes
dns proxy = No
pid directory = /var/run/samba
panic action = /usr/local/libexec/samba/samba-backtrace
nsupdate command = /usr/local/bin/samba-nsupdate -g
idmap config *: range = 90000001-100000000
idmap config * : backend = tdb
acl allow execute always = Yes
create mask = 0666
directory mask = 0777
ea support = Yes
directory name cache size = 0
kernel change notify = No
store dos attributes = Yes
strict locking = No
dos filemode = Yes

[Media]
path = /mnt/Masterpool/media
read only = No
guest only = Yes
guest ok = Yes
hosts allow = 192.168.0.130/24
veto files = /.snapshot/.windows/.mac/.zfs/
vfs objects = zfs_space, zfsacl, aio_pthread, streams_xattr
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
yes

[root@FreeNas ~]# getent passwd

daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
!
!
!
Media:*:816:1001:Media:/mnt/Masterpool/media:/bin/csh
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
yes

[root@FreeNas ~]# getent passwd

daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
!
!
!
Media:*:816:1001:Media:/mnt/Masterpool/media:/bin/csh
I believe that output indicates that you checked the box "disable password login". Uncheck that box, set a password for the "Media" user, then restart the CIFS service.
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
Followed the steps listed
Unchecked the disable password login
Set a password for Media User
Restarted Cifs Service
Still the same error message
Rebooted Machine
Followed the same steps and still no improvement
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Followed the steps listed
Unchecked the disable password login
Set a password for Media User
Restarted Cifs Service
Still the same error message
Rebooted Machine
Followed the same steps and still no improvement

Check /var/log/samba4/log.smbd for error messages.
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
Error message highlighted in red shows up often

[2016/02/17 11:56:10, 0] ../source3/smbd/server.c:1189(main)
smbd version 4.1.21 started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
[2016/02/17 11:56:10, 2] ../source3/lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2016/02/17 11:56:10, 2] ../source3/lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2016/02/17 11:56:10.241284, 2] ../source3/param/loadparm.c:3585(do_section)
Processing section "[Media]"
[2016/02/17 11:56:10.241647, 2] ../source3/lib/interface.c:341(add_interface)
added interface igb0 ip=192.168.0.150 bcast=192.168.0.255 netmask=255.255.255.128
[2016/02/17 11:56:10.242802, 2] ../source3/passdb/pdb_interface.c:159(make_pdb_method_name)
No builtin backend found, trying to load plugin
[2016/02/17 11:56:10.243238, 2] ../lib/util/modules.c:196(do_smb_load_module)
Module 'tdbsam' loaded
[2016/02/17 11:56:10.246230, 0] ../source3/auth/auth_util.c:866(make_new_session_info_guest)
make_server_info_info3 failed with NT_STATUS_NO_SUCH_USER
[2016/02/17 11:56:10.246398, 0] ../source3/smbd/server.c:1433(main)
ERROR: failed to setup guest info.
[2016/02/17 12:10:25, 0] ../source3/smbd/server.c:1189(main)
smbd version 4.1.21 started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
[2016/02/17 12:10:25, 2] ../source3/lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2016/02/17 12:10:25, 2] ../source3/lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2016/02/17 12:10:25.447805, 2] ../source3/param/loadparm.c:3585(do_section)
Processing section "[Media]"
[2016/02/17 12:10:25.448175, 2] ../source3/lib/interface.c:341(add_interface)
added interface igb0 ip=192.168.0.150 bcast=192.168.0.255 netmask=255.255.255.128
[2016/02/17 12:10:25.449707, 2] ../source3/passdb/pdb_interface.c:159(make_pdb_method_name)
No builtin backend found, trying to load plugin
[2016/02/17 12:10:25.450184, 2] ../lib/util/modules.c:196(do_smb_load_module)
Module 'tdbsam' loaded
[2016/02/17 12:10:25.485507, 0] ../source3/auth/auth_util.c:866(make_new_session_info_guest)
make_server_info_info3 failed with NT_STATUS_NO_SUCH_USER
[2016/02/17 12:10:25.485691, 0] ../source3/smbd/server.c:1433(main)
ERROR: failed to setup guest info.
 

M H

Explorer
Joined
Sep 16, 2013
Messages
98
Are you sure that you haven't changed the permissions on your system dataset? If that's the case, you may want to try destroying the .system dataset via CLI and let FreeNAS regenerate.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Are you sure that you haven't changed the permissions on your system dataset? If that's the case, you may want to try destroying the .system dataset via CLI and let FreeNAS regenerate.
It's a bit hard at this point to tell what has / hasn't happened in the past. It might be a good idea to just save the config, reinstall freenas, and upload the config back.
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
Was able to delete the config. Created everything over from scratch
Able to enable CIFS and going thru the motions of installing Plex. I have a windows and mac environment
And need to setup CIFS to allow me to upload/files to the FreeNAS box. Unfortunately, I am not able to browse to the dataset i have created that has Guest Access Allowed etc. I am browsing from another Windows Machine and when I enter the freenas ip for a folder search I get nothing
 

Attachments

  • CIFS Share.PNG
    CIFS Share.PNG
    55.5 KB · Views: 339
Last edited:

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
???
 

RemyZ

Contributor
Joined
Dec 15, 2015
Messages
154
Original Problem is resolved just cant create a guest share folder for use with Plex
 
Status
Not open for further replies.
Top