CIFS Fails to Start

Status
Not open for further replies.

LukeT32

Dabbler
Joined
Apr 17, 2015
Messages
13
I need to preface this thread with a noob warning when it comes to FreeNas so any assistance would be greatly appreciated.

System Specs:
FreeNAS 9.3 Stable (Latest Update)
Motherboard - Dell XPS 8300
CPU - i7-2600
RAM - 8gb non-ECC (I know, I know... using left over parts for now)
Boot Drive - Crucial BX100 120gb SSD
Power Supply - Corsair CS450M
Storage - WD Red 5 TB
WD Red 3 TB x 2 (mirrored)
Case - Antec ISK600M

Rewind approximately 1 month ago when the initial server build/FreeNAS set up. Installed FreeNAS with the two 3 TB drives and set up with AFP for my girl friends business back up. I should also state she is a photography and strictly uses Mac. I had installed a leftover 2 TB drive initially for my movies/music, but soon realized that was too small. Ordered the WD Red 5 TB and upon arrival was DOA, but that's a different story. Get the replacement 5 TB drive in and installed. Get CIFS set up and have access to both volumes (photo back up and media storage) on my Windows 8.1 based desktop. I installed the Plex plugin and create a jail. Few weeks later attempt to use Plex for the first time and download the app. I notice none of my media is present which isn't a big deal. Fast forward a few more weeks to a few nights ago. I am trying to access my FreeNAS thru windows and find it read only. I do a little googling trying to diagnose the issue and now CIFS service will not start. I am able to access the web ui with no issues, but unable to start CIFS.

Any help would be greatly appreciated! Thanks in advance.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
First, thank you for at least using the bare minimum RAM, even if the rest isn't the most ideal.

Second, you'll need to provide the exact error messages you are getting and stuff. The fact that all this stuff is or isn't working isn't to useful. The precise error messages, screenshots of the problem, etc would be useful though. ;)
 

LukeT32

Dabbler
Joined
Apr 17, 2015
Messages
13
Thanks for the quick reply.

I am using the Web UI to start the service, so I only see the "service could not be started" box in green at the top. I will attach screen shots of the settings and error.

Sharing.jpg Enable.jpg Failed.jpg Settings 1.jpg Settings 2.jpg
 
D

dlavigne

Guest
Anything in /var/log/messages when you try to start the service?
 

LukeT32

Dabbler
Joined
Apr 17, 2015
Messages
13
Anything in /var/log/messages when you try to start the service?

I apologize for the delay on the response. I installed a few new SSDs in my system in RAID and just finished loading up windows and what not.

Here is all of the log after clicking activate on the service.

Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: /sbin/sysctl -n 'kern.maxfilesperproc'
Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: zfs list -H -o mountpoint
Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: /usr/local/bin/pdbedit -d 0 -i smbpasswd:/tmp/tmpC4PN1J -s /usr/local/etc/smb4.conf -e tdbsam:/var/etc/private/passdb.tdb
Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: /usr/bin/getent passwd 'Luke'
Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: /usr/bin/getent passwd 'Abbie'
Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: /usr/local/bin/pdbedit -L
Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: /usr/local/bin/net sam rights grant Luke SeTakeOwnershipPrivilege SeBackupPrivilege SeRestorePrivilege
Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: /usr/local/bin/net sam rights grant root SeTakeOwnershipPrivilege SeBackupPrivilege SeRestorePrivilege
Apr 21 23:13:52 freenas generate_smb4_conf.py: [common.pipesubr:59] Popen()ing: /usr/local/bin/net sam rights grant Abbie SeTakeOwnershipPrivilege SeBackupPrivilege SeRestorePrivilege
Apr 21 23:13:52 freenas notifier: Importing account for Abbie...ok
Apr 21 23:13:52 freenas notifier: Importing account for Luke...ok
Apr 21 23:13:52 freenas notifier: Importing account for root...ok
Apr 21 23:13:52 freenas notifier:
Apr 21 23:13:52 freenas notifier: Granted SeTakeOwnershipPrivilege to MOVIES\Luke
Apr 21 23:13:52 freenas notifier: Granted SeBackupPrivilege to MOVIES\Luke
Apr 21 23:13:52 freenas notifier: Granted SeRestorePrivilege to MOVIES\Luke
Apr 21 23:13:52 freenas notifier:
Apr 21 23:13:52 freenas notifier: Granted SeTakeOwnershipPrivilege to MOVIES\root
Apr 21 23:13:52 freenas notifier: Granted SeBackupPrivilege to MOVIES\root
Apr 21 23:13:52 freenas notifier: Granted SeRestorePrivilege to MOVIES\root
Apr 21 23:13:52 freenas notifier:
Apr 21 23:13:52 freenas notifier: Granted SeTakeOwnershipPrivilege to MOVIES\Abbie
Apr 21 23:13:52 freenas notifier: Granted SeBackupPrivilege to MOVIES\Abbie
Apr 21 23:13:52 freenas notifier: Granted SeRestorePrivilege to MOVIES\Abbie
Apr 21 23:13:52 freenas notifier:
Apr 21 23:13:52 freenas notifier: Performing sanity check on Samba configuration: OK
Apr 21 23:13:52 freenas notifier: Starting smbd.
Apr 21 23:13:52 freenas smbd[15700]: [2015/04/21 23:13:52.974714, 0] ../source3/auth/auth_util.c:866(make_new_session_info_guest)
Apr 21 23:13:52 freenas smbd[15700]: make_server_info_info3 failed with NT_STATUS_NO_SUCH_USER
Apr 21 23:13:52 freenas smbd[15700]: [2015/04/21 23:13:52.974937, 0] ../source3/smbd/server.c:1433(main)
Apr 21 23:13:52 freenas smbd[15700]: ERROR: failed to setup guest info.
Apr 21 23:13:53 freenas kernel: <118>Apr 21 23:13:52 freenas smbd[15700]: [2015/04/21 23:13:52.974714, 0] ../source3/auth/auth_util.c:866(make_new_session_info_guest)
Apr 21 23:13:53 freenas kernel: <118>Apr 21 23:13:52 freenas smbd[15700]: make_server_info_info3 failed with NT_STATUS_NO_SUCH_USER
Apr 21 23:13:53 freenas kernel: <118>Apr 21 23:13:52 freenas smbd[15700]: [2015/04/21 23:13:52.974937, 0] ../source3/smbd/server.c:1433(main)
Apr 21 23:13:53 freenas kernel: <118>Apr 21 23:13:52 freenas smbd[15700]: ERROR: failed to setup guest info.



And I see the last line stats it's unable to set up the "Guest Account," which can be seen in the screenshots in the previous post as my user account. Once again thanks for helping out a newbie.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
What's with the idmap range you have configured? Is that something you changed?

Did you create all the users under the user tab? Does Luke exist?
 

LukeT32

Dabbler
Joined
Apr 17, 2015
Messages
13
What's with the idmap range you have configured? Is that something you changed?

Did you create all the users under the user tab? Does Luke exist?

Luke exist. I'll attach a screenshot of the users list.

The idmap range I did not change. What should it be?
 

Attachments

  • Users.jpg
    Users.jpg
    468.8 KB · Views: 258

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Do you have multiple pools on this box? And you shouldn't be sharing out the root of these pools. You need to make datasets for each media type you want to share.
 

LukeT32

Dabbler
Joined
Apr 17, 2015
Messages
13
Do you have multiple pools on this box? And you shouldn't be sharing out the root of these pools. You need to make datasets for each media type you want to share.

I have two pools. The photo back up pool used with the the AFP does not have a dataset and works just fine our iMac here at home. The second pool which I use for my Plex Media Server has a dataset, which is also the pool I want to share with my PC so I can continue to add movies to it. So based on that information the one with a data set is the one that isn't working properly/allowing CIFS to run. I did change my default directory on the Luke user account to the Movies folder within the data set based on your reply.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Which pool has your .system dataset?

What permissions are you using?

Are you using home shares or just normal shares?
 

LukeT32

Dabbler
Joined
Apr 17, 2015
Messages
13
Which pool has your .system dataset?

What permissions are you using?

Are you using home shares or just normal shares?

Sorry all of those questions are above my pay grade. :)

The only dataset I created was for the Plex Media server.

To my knowledge I haven't changed any of the permissions from default. I also tried activating the service with the "use default permissions" box checked and also unchecked with no luck.

I also have no idea what the difference is between home and normal shares. I did notice it gives you the option to choose between making the share a "home share" or not, I once again tried running the service with it checked and unchecked and no luck.
 

LukeT32

Dabbler
Joined
Apr 17, 2015
Messages
13
I am able to start the service if I make the default user nobody. It will allow me start it and have read only access with no credentials required.....
 

jlpellet

Patron
Joined
Mar 21, 2012
Messages
287
I hope the following ideas help. I found, by default, FreeNAS establishes a default dataset with the same name as the pool. In 9.3, I strongly recommended that a new dataset be used for shares rather than the default, which can result in problems. Also, I suggest in the CIFS & share configurations, if you plan to use a guest account for access, ensure "allow guest account" is checked & edit the dataset permissions to "guest" for owner & group. It seems likely to me that the user accessing the share is not the "owner" which could generate the read-only issue. That is, the CIFS user, share owner, & the accessing user should match.
 
Status
Not open for further replies.
Top