Project

General

Profile

Bug #9151

CIFS will not start

Added by Nate Bergey over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
John Hixson
Category:
OS
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I had CIFS up and running beautifully for months on my NAS server (in my college dorm). Recently, I was experimenting with link aggregations and giving my NAS a static IP on the network. The whole time CIFS was still running and working after powering on and off. When cleaning a filter on the server itself, I bumped the power cable shutting the NAS down. I really don't think this power off was harmful, but am including it here in case that could have caused the issue. When I powered back on CIFS did not start automatically and I was unable to turn it on using the "switch" in Services. I get a message saying CIFS unable to start after a few seconds. I Was running an older version of FreeNAS so I made the switch to 9.3-STABLE thinking maybe the update would fix the issue. After installing and uploading my old config, I tried again to start CIFS but it wouldn't start. I restored to the factory settings to see if I could simply get CIFS to start (after adding a share) but it still wouldn't start. I also re-installed freenas without loading my config, but CIFS wouldn't start.

At one point I started my NAS after my school break and CIFS started on bootup, but I still couldn't connect to the windows share. I am now wondering if any of my schools network settings could be interfering with CIFS? I don't have the NAS on the schools domain and I'm simply trying to acess the NAS through the mapped IP address.

Associated revisions

Revision 6be5198b (diff)
Added by John Hixson over 5 years ago

chmod /var/db/samba4 to 0755 to make it very happy Ticket: #9151

Revision e9ca889a (diff)
Added by John Hixson over 5 years ago

chmod /var/db/samba4 to 0755 to make it very happy Ticket: #9151 (cherry picked from commit 6be5198b4adddf8b66f34eef8ce7b79ff098634c)

Revision e13b6f40 (diff)
Added by John Hixson over 5 years ago

chmod /var/db/samba4 to 0755 to make it very happy Ticket: #9151 (cherry picked from commit 6be5198b4adddf8b66f34eef8ce7b79ff098634c)

History

#1 Updated by Nate Bergey over 5 years ago

  • File ixdiagnose.tgz added

#2 Updated by John Hixson over 5 years ago

  • Status changed from Unscreened to 15
  • Target version set to Unspecified

This sticks out in the logs:

Apr 10 10:43:36 Bucky notifier: Performing sanity check on Samba configuration: FAILED

Can you run "testparm" from the CLI and see what it says?

#3 Updated by Nate Bergey over 5 years ago

Running testparm from the Shell Gave me:

[root@Bucky ~]# testparm
Load smb config files from /usr/local/etc/smb4.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Barracuda]"
Loaded services file OK.
WARNING: lock directory /var/db/samba4 should have permissions 0755 for browsing
to work
WARNING: state directory /var/db/samba4 should have permissions 0755 for browsin
g to work
WARNING: cache directory /var/db/samba4 should have permissions 0755 for browsin
g to work
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

*END OF SHELL OUTPUT *

Did I managed to lock root out of /var/db/samba4?? I've been changing permissions of my Datasets, but only through the FreeNAS GUI and on my Volume. What's the next step here? Thanks so much!!

#4 Updated by John Hixson over 5 years ago

well, the scripts that generate the samba configuration change the permissions to be correct. Why are you changing the permissions? That is why it's not starting ;-)

#5 Updated by Nate Bergey over 5 years ago

I'm only changing the permissions on Datasets I created on the volume. I have multiple accounts each with access to different folders, but that shouldn't interfere with samba right? /var/db/samba4 isn't part of any of my datasets that I can see on the GUI. What permissions would I need to change so root has access to /var/db/samba4? Just not exactly sure how I go about fixing the issue.

#6 Updated by John Hixson over 5 years ago

Okay. Well, is CIFS starting for you or not? Clearly your permissions but modified, but the samba startup scripts should fix that. Do this:

service ix-pre-samba start
service samba_server onerestart

Does samba start? If it doesn't, paste any errors to this ticket.

#7 Updated by Nate Bergey over 5 years ago

Nope, CIFS still doesn't start.

[root@Bucky ~]# service ix-pre-samba start
Importing account for devbergey...ok
Importing account for dmoy333...ok
Importing account for icybergey...ok

Granted SeTakeOwnershipPrivilege to FREENAS\devbergey
Granted SeBackupPrivilege to FREENAS\devbergey
Granted SeRestorePrivilege to FREENAS\devbergey

Granted SeTakeOwnershipPrivilege to FREENAS\dmoy333
Granted SeBackupPrivilege to FREENAS\dmoy333
Granted SeRestorePrivilege to FREENAS\dmoy333

Granted SeTakeOwnershipPrivilege to FREENAS\icybergey
Granted SeBackupPrivilege to FREENAS\icybergey
Granted SeRestorePrivilege to FREENAS\icybergey

[root@Bucky ~]# service samba_server onerestart
Performing sanity check on Samba configuration: FAILED

[root@Bucky ~]#

#8 Updated by John Hixson over 5 years ago

Nate Bergey wrote:

Nope, CIFS still doesn't start.

[root@Bucky ~]# service ix-pre-samba start
Importing account for devbergey...ok
Importing account for dmoy333...ok
Importing account for icybergey...ok

Granted SeTakeOwnershipPrivilege to FREENAS\devbergey
Granted SeBackupPrivilege to FREENAS\devbergey
Granted SeRestorePrivilege to FREENAS\devbergey

Granted SeTakeOwnershipPrivilege to FREENAS\dmoy333
Granted SeBackupPrivilege to FREENAS\dmoy333
Granted SeRestorePrivilege to FREENAS\dmoy333

Granted SeTakeOwnershipPrivilege to FREENAS\icybergey
Granted SeBackupPrivilege to FREENAS\icybergey
Granted SeRestorePrivilege to FREENAS\icybergey

[root@Bucky ~]# service samba_server onerestart
Performing sanity check on Samba configuration: FAILED

[root@Bucky ~]#

It might seem silly to ask again, but can you once again run "testparm" from the command line and post the results here?

#9 Updated by John Hixson over 5 years ago

Also, can you do this:

ls -ld /var/db/samba4/

getfacl /var/db/samba4/

and post results here?

#10 Updated by Nate Bergey over 5 years ago

[root@Bucky ~]# ls ld /var/db/samba4/
drwxrwx--
4 root Admin 27 Apr 1 14:15 /var/db/samba4/
[root@Bucky ~]# getfacl /var/db/samba4/
  1. file: /var/db/samba4/
  2. owner: root
  3. group: Admin
    owner@:rwxp--aARWcCos:------:allow
    group@:rwxp--a-R-c--s:------:allow
    everyone@:------a-R-c--s:------:allow
    [root@Bucky ~]#

#11 Updated by Nate Bergey over 5 years ago

[root@Bucky ~]# testparm
Load smb config files from /usr/local/etc/smb4.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Barracuda]"
Loaded services file OK.
WARNING: lock directory /var/db/samba4 should have permissions 0755 for browsing
to work
WARNING: state directory /var/db/samba4 should have permissions 0755 for browsin
g to work
WARNING: cache directory /var/db/samba4 should have permissions 0755 for browsin
g to work
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

#12 Updated by John Hixson over 5 years ago

Do this:

chown -R root:wheel /var/db/samba4

Then try starting samba again

#13 Updated by Nate Bergey over 5 years ago

[root@Bucky ~]# chown -R root:wheel /var/db/samba4
[root@Bucky ~]# service ix-pre-samba start
Importing account for devbergey...ok
Importing account for dmoy333...ok
Importing account for icybergey...ok

Granted SeTakeOwnershipPrivilege to FREENAS\devbergey
Granted SeBackupPrivilege to FREENAS\devbergey
Granted SeRestorePrivilege to FREENAS\devbergey

Granted SeTakeOwnershipPrivilege to FREENAS\dmoy333
Granted SeBackupPrivilege to FREENAS\dmoy333
Granted SeRestorePrivilege to FREENAS\dmoy333

Granted SeTakeOwnershipPrivilege to FREENAS\icybergey
Granted SeBackupPrivilege to FREENAS\icybergey
Granted SeRestorePrivilege to FREENAS\icybergey

[root@Bucky ~]# service samba_server onerestart
Performing sanity check on Samba configuration: FAILED

#14 Updated by John Hixson over 5 years ago

Nate Bergey wrote:

[root@Bucky ~]# chown -R root:wheel /var/db/samba4
[root@Bucky ~]# service ix-pre-samba start
Importing account for devbergey...ok
Importing account for dmoy333...ok
Importing account for icybergey...ok

Granted SeTakeOwnershipPrivilege to FREENAS\devbergey
Granted SeBackupPrivilege to FREENAS\devbergey
Granted SeRestorePrivilege to FREENAS\devbergey

Granted SeTakeOwnershipPrivilege to FREENAS\dmoy333
Granted SeBackupPrivilege to FREENAS\dmoy333
Granted SeRestorePrivilege to FREENAS\dmoy333

Granted SeTakeOwnershipPrivilege to FREENAS\icybergey
Granted SeBackupPrivilege to FREENAS\icybergey
Granted SeRestorePrivilege to FREENAS\icybergey

[root@Bucky ~]# service samba_server onerestart
Performing sanity check on Samba configuration: FAILED

Okay. At this point I would like to take a look at your system. Are you available for a teamviewer session?

#15 Updated by Nate Bergey over 5 years ago

Yes, but I have a crazy school schedule this next week with way too much to do... Can we do it towards the end of the week? Thursday sometime?

#16 Updated by John Hixson over 5 years ago

Nate Bergey wrote:

Yes, but I have a crazy school schedule this next week with way too much to do... Can we do it towards the end of the week? Thursday sometime?

Sure. I am available right now though, and I don't imagine it would take very long. Let me know what works for you and we will schedule something. What timezone?

#17 Updated by John Hixson over 5 years ago

Thursday is probably fine, I just need to know what timezone you are in and your availability.

#18 Updated by John Hixson over 5 years ago

Do you have a time/timezone for me yet? ;-)

#19 Updated by Nate Bergey over 5 years ago

Sorry John, I've been super busy working on my Z-buffering program (from scratch in C++) for my graphics class and it is due at midnight (in 30 mins - I'm in EST). Are you free anytime from 1-5pm EST? I can do 7-11pm EST or we could do later too? Take your pick of times, or let me know if you want to try Friday sometime. I really appreciate your help!

#20 Updated by John Hixson over 5 years ago

Nate Bergey wrote:

Sorry John, I've been super busy working on my Z-buffering program (from scratch in C++) for my graphics class and it is due at midnight (in 30 mins - I'm in EST). Are you free anytime from 1-5pm EST? I can do 7-11pm EST or we could do later too? Take your pick of times, or let me know if you want to try Friday sometime. I really appreciate your help!

7-11 EST is better. So, let's say 7pm EST?

#21 Updated by Nate Bergey over 5 years ago

7 PM EST it is! Should I post my email here so I can send you the team-viewer info?

#22 Updated by John Hixson over 5 years ago

Hi Nate, I was on a session that ran over. I am available now. Please email me at with your teamviewer info.

#23 Updated by Nate Bergey over 5 years ago

Just sent my info :)

#24 Updated by John Hixson over 5 years ago

So the problem here was /var/db/samba4 needed to have 0755 permissions. I'm going to fix this right now.

#25 Updated by John Hixson over 5 years ago

  • Status changed from 15 to Ready For Release

I fixed the issue and I contributed code to fix it in the future.

#26 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Ready For Release to Resolved

#27 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

#28 Updated by Dru Lavigne almost 3 years ago

  • File deleted (ixdiagnose.tgz)

Also available in: Atom PDF