Cant access CIFS share after upgrade to 9.3

Status
Not open for further replies.

lapenr

Cadet
Joined
Jun 10, 2014
Messages
6
Upgraded to
FreeNAS-9.3-STABLE-201502142001
from 9.2.1.8


CIFS service will not start.

Where to start?
 
D

dlavigne

Guest
Read /var/log/messages to find the error. If the answer isn't obvious from the log, post it as well as the contents of /usr/local/etc/smb4.conf.
 

lapenr

Cadet
Joined
Jun 10, 2014
Messages
6
Read /var/log/messages:

[root@Rendellsham] ~# grep -i error /var/log/messages
Feb 16 10:04:32 Rendellsham manage.py: [freeadmin.navtree:604] An error occurred while unserializing from http://192.168.1.144/plugins/plexmediaserver/1/_s/treemenu: No JSON object could be decoded
Feb 16 10:10:33 Rendellsham ipmi0: KCS error: 5f
Feb 16 10:10:36 Rendellsham ipmi0: KCS error: 5f
Feb 16 10:10:39 Rendellsham ipmi0: KCS error: 5f
Feb 16 12:10:30 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 12:20:11 Rendellsham manage.py: [freeadmin.navtree:604] An error occurred while unserializing from http://192.168.1.144/plugins/plexmediaserver/1/_s/treemenu: No JSON object could be decoded
Feb 16 12:24:29 Rendellsham notifier: chmod: /mnt/Rendellsham_Vol_1/Media/Photos/@UNFILED/MCL Photos/Meredith's Room/Ryan's Birthday_files/error_circle.png: Operation not permitted
Feb 16 12:24:50 Rendellsham notifier: chmod: /mnt/Rendellsham_Vol_1/Documents/Household/User Manuals Warranties/Norton 360 errors.doc: Operation not permitted
Feb 16 12:30:56 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 12:31:02 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 12:31:25 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 12:31:33 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 12:32:57 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 12:33:11 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 12:38:38 Rendellsham manage.py: [freeadmin.navtree:604] An error occurred while unserializing from http://192.168.1.144/plugins/plexmediaserver/1/_s/treemenu: No JSON object could be decoded
Feb 16 13:00:27 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 13:01:16 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 13:01:24 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 13:01:31 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 16 13:30:10 Rendellsham notifier: chmod: /mnt/Rendellsham_Vol_1/Media/Photos/@UNFILED/MCL Photos/Meredith's Room/Ryan's Birthday_files/error_circle.png: Operation not permitted
Feb 16 13:30:31 Rendellsham notifier: chmod: /mnt/Rendellsham_Vol_1/Documents/Household/User Manuals Warranties/Norton 360 errors.doc: Operation not permitted
Feb 16 13:30:42 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'

for some reason , i dont see the smb4.conf in /usr/local/etc/


[root@Rendellsham] ~# ls /usr/local/etc/
./ periodic/
../ perl5_version
CORBA/ pkg/
PROFTPD-MIB.txt pkg.conf.sample
X11/ proftpd/
afp.conf proftpd.conf
afp.conf.dist proftpd.conf.sample
apache24/ rc.d/
avahi/ rsync/
bash_completion.d/ rsyncd.conf
collectd.conf samba.gdb*
collectd.conf.sample sasldb2.db
dbus-1/ scl.conf
dbus-session.conf.netatalk scl.conf.sample
dconf/ scponly/
default/ screenrc
devd/ smartd.conf
extmap.conf smartd.conf.sample
extmap.conf.dist smartd_warning.d/
fonts/ smartd_warning.sh*
gconf/ smbldap-tools/
gnome/ snmpd.conf
gnome-vfs-2.0/ sound/
gnome.subr sssd/
grub.d/ sudoers
inadyn-mt/ sudoers.d/
inadyn-mt.conf sudoers.sample
ldap.conf.dist syslog-ng.conf
man.d/ syslog-ng.conf.dist
mateconf/ syslog-ng.conf.freenas
mke2fs.conf syslog-ng.conf.sample
mke2fs.conf.dist trafshow
mtools.conf trafshow.dist
mtools.conf.sample vfs/
mtree/ warden.conf
nginx/ wardenrc*
nut/ wgetpaste.conf.sample
openldap/ wgetpaste.d/
pam.d/ wgetrc.sample
patterndb.d/ xdg/
[root@Rendellsham] ~#


not quite sure what I am looking for at this point
 

lapenr

Cadet
Joined
Jun 10, 2014
Messages
6
no log.smbd file exists...

[root@Rendellsham] ~# ls /var/log/samba4/
./ log.nmbd.old* log.wb-RENDELLSHAM*
../ log.smbd* log.winbindd*
log.nmbd* log.wb-BUILTIN* log.winbindd-idmap*


Running testparm...

[root@Rendellsham] ~# testparm
Load smb config files from /usr/local/etc/smb4.conf
params.c:OpenConfFile() - Unable to open configuration file "/usr/local/etc/smb4.conf":
No such file or directory
Error loading services.


ideas?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
What exactly happens when you click "Services" -> "Control Services" - "CIFS"?
I believe the smb4.conf file should be automatically generated on boot, even if CIFS is turned off. There should be several entries beginning with "generate smb4_conf.py" in /var/log/messages. Look for messages regarding that.
It is possible that something went wrong in the upgrade process. If all else fails, try a fresh install on a different USB stick.
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
I'm getting different errors


Feb 17 13:30:58 freenas notifier: Traceback (most recent call last):
Feb 17 13:30:58 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 1194, in
Feb 17 13:30:58 freenas notifier: main()
Feb 17 13:30:58 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 1152, in main
Feb 17 13:30:58 freenas notifier: smb4_setup()
Feb 17 13:30:58 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 929, in smb4_setup
Feb 17 13:30:58 freenas notifier: os.chmod("/var/log/samba4", 0755)
Feb 17 13:30:58 freenas notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 17 13:30:58 freenas notifier: winbindd not running? (check /winbindd.pid).
Feb 17 13:30:58 freenas notifier: smbd not running? (check /smbd.pid).
Feb 17 13:30:58 freenas notifier: nmbd not running? (check /nmbd.pid).
Feb 17 13:31:08 freenas notifier: Traceback (most recent call last):
Feb 17 13:31:08 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 1194, in
Feb 17 13:31:08 freenas notifier: main()
Feb 17 13:31:08 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 1152, in main
Feb 17 13:31:08 freenas notifier: smb4_setup()
Feb 17 13:31:08 freenas notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 929, in smb4_setup
Feb 17 13:31:08 freenas notifier: os.chmod("/var/log/samba4", 0755)
Feb 17 13:31:08 freenas notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 17 13:31:08 freenas notifier: winbindd not running? (check /winbindd.pid).
Feb 17 13:31:08 freenas notifier: smbd not running? (check /smbd.pid).
Feb 17 13:31:08 freenas notifier: nmbd not running? (check /nmbd.pid).
Feb 17 13:31:08 freenas notifier: Performing sanity check on Samba configuration: FAILED
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Have you ever changed permission on your pools root dataset and marked the recursive box? These two log messages give me the impression your permissions on your .system dataset are foobared.

Code:
Feb 17 13:30:58 freenas notifier: os.chmod("/var/log/samba4", 0755)
Feb 17 13:30:58 freenas notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
Have you ever changed permission on your pools root dataset and marked the recursive box? These two log messages give me the impression your permissions on your .system dataset are foobared.

Code:
Feb 17 13:30:58 freenas notifier: os.chmod("/var/log/samba4", 0755)
Feb 17 13:30:58 freenas notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Possibly

I'm installing to a new stick and hopefully I can fix it that way?

(The number of users on this system = 1 i.e. me.)

I use the freenas box as a media tank using RAIDZ2, for my mediacentre PCs
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
Tried to use new disk but I think I've screwed up royally

all my data is (I think) stored at the /mnt/big level but now I can't see it - with either stick

volume manager show that the space is in use, but I can't access it any help?
 

lapenr

Cadet
Joined
Jun 10, 2014
Messages
6
What exactly happens when you click "Services" -> "Control Services" - "CIFS"?
I believe the smb4.conf file should be automatically generated on boot, even if CIFS is turned off. There should be several entries beginning with "generate smb4_conf.py" in /var/log/messages. Look for messages regarding that.
It is possible that something went wrong in the upgrade process. If all else fails, try a fresh install on a different USB stick.

I get the prompt after a 5 sec time out...

upload_2015-2-19_7-13-10.png


I get these messages after :

Feb 19 09:25:46 Rendellsham notifier: Traceback (most recent call last):
Feb 19 09:25:46 Rendellsham notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 1194, in <module>
Feb 19 09:25:46 Rendellsham notifier: main()
Feb 19 09:25:46 Rendellsham notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 1152, in main
Feb 19 09:25:46 Rendellsham notifier: smb4_setup()
Feb 19 09:25:46 Rendellsham notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 929, in smb4_setup
Feb 19 09:25:46 Rendellsham notifier: os.chmod("/var/log/samba4", 0755)
Feb 19 09:25:46 Rendellsham notifier: OSError: [Errno 1] Operation not permitted: '/var/log/samba4'
Feb 19 09:25:46 Rendellsham notifier: winbindd not running? (check /winbindd.pid).
Feb 19 09:25:46 Rendellsham notifier: smbd not running? (check /smbd.pid).
Feb 19 09:25:46 Rendellsham notifier: nmbd not running? (check /nmbd.pid).
Feb 19 09:25:46 Rendellsham notifier: Performing sanity check on Samba configuration: FAILED


I've tried re installing the upgrade and rebooting - no luck
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
had the same problem (looks like my reply has gone)

the problem is that some has gone wrong in the permission set on the .system dataset - it appears 9.3 patch doesn't like it. I ran a scrub on the system and got my data back via root and recreated the the system
 

lapenr

Cadet
Joined
Jun 10, 2014
Messages
6
when you say "got my data back via root and recreated the the system.." does that mean you blew away the OS drive and rebuilt the whole system or were you able to keep all the data on the Vol ?

trying to avoid the former option , I can back up my data through a linux machine but will take me a while .

Let me know either way- thanks !
.Rich
 

Alister

Explorer
Joined
Sep 18, 2011
Messages
52
when you say "got my data back via root and recreated the the system.." does that mean you blew away the OS drive and rebuilt the whole system or were you able to keep all the data on the Vol ?

trying to avoid the former option , I can back up my data through a linux machine but will take me a while .

Let me know either way- thanks !
.Rich


What I ending up doing is (I think)

new freenas stick clean install
scrub the volume - to completion
recreate the share
user ID id normally use no access
root had access - copy and delete
moved the 6TB of data off the system

rebuilt the system from 9.3 clean
created ZFS RAIDZ2 Big
created ZFS dataset big
created ZFS data set huge
shared huge

Previous I had just had big shared as huge - this is where the issue lay - I'm almost certain that was the scenario. I'm guessing it was tolerated but "not allowed"/not good practice.
 
Status
Not open for further replies.
Top