SMB not starting 11.2 U5

lagadin

Cadet
Joined
Jan 22, 2019
Messages
2
Hello I ran into this issue after installing MineOS today and rebooting my freenas server after. SMB did not start automatically and manually trying to start the service just says SMB failed to start. Really new to Freenas so I have no idea what I'm doing.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Hello I ran into this issue after installing MineOS today and rebooting my freenas server after. SMB did not start automatically and manually trying to start the service just says SMB failed to start. Really new to Freenas so I have no idea what I'm doing.
What happens if you start smbd in an interactive session with debugging turned up. smbd -d 3 -i? What output do you see on the screen?
 
Joined
Jul 18, 2019
Messages
6
Hello, I've the same issue. The output of the command smbd -d 3 -i is:

Code:
smbd version 4.9.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2018
uid=0 gid=0 euid=0 egid=0
lp_load_ex: refreshing parameters
Initialising global parameters
Processing section "[global]"
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
lp_load_ex: refreshing parameters
Initialising global parameters
Processing section "[global]"
Processing section "[Backups]"
Processing section "[Dokumente]"
Processing section "[Fotos]"
Processing section "[Videos]"
adding IPC service
added interface bge1 ip=192.168.178.44 bcast=192.168.178.255 netmask=255.255.255.0
loaded services
INFO: Profiling support unavailable in this build.
tdb(/var/db/samba4/registry.tdb): tdb_oob len 526024 beyond eof at 421888
tdb(/var/db/samba4/registry.tdb): transaction_read: failed at off=526000 len=24
tdb(/var/db/samba4/registry.tdb): tdb_transaction_commit: transaction error pending
transaction_commit failed
Failed to initialize data in registry!
exit_daemon: daemon failed to start: Samba cannot init registry, error code 13
 
Joined
Jul 18, 2019
Messages
6
This is the output:

Code:
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[Backups]"
Processing section "[Dokumente]"
Processing section "[Fotos]"
Processing section "[Videos]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
        aio max threads = 2
        deadtime = 15
        disable spoolss = Yes
        dns proxy = No
        dos charset = CP437
        hostname lookups = Yes
        kernel change notify = No
        lm announce = Yes
        load printers = No
        logging = file
        max log size = 51200
        max open files = 469685
        nsupdate command = /usr/local/bin/samba-nsupdate -g
        obey pam restrictions = Yes
        printcap name = /dev/null
        security = USER
        server min protocol = SMB2_02
        server role = standalone server
        server string = FreeNAS Server
        time server = Yes
        username map = /usr/local/etc/smbusers
        idmap config *: range = 90000001-100000000
        idmap config * : backend = tdb
        acl allow execute always = Yes
        create mask = 0666
        directory mask = 0777
        directory name cache size = 0
        dos filemode = Yes
        strict locking = No


[Backups]
        aio write size = 0
        path = "/mnt/RAID-Z1/Backups"
        read only = No
        veto files = /.snapshot/.windows/.mac/.zfs/
        vfs objects = zfs_space zfsacl streams_xattr
        zfsacl:acesort = dontcare
        nfs4:chown = true
        nfs4:acedup = merge
        nfs4:mode = special


[Dokumente]
        aio write size = 0
        path = "/mnt/RAID-Z1/Dokumente"
        read only = No
        veto files = /.snapshot/.windows/.mac/.zfs/
        vfs objects = zfs_space zfsacl streams_xattr
        zfsacl:acesort = dontcare
        nfs4:chown = true
        nfs4:acedup = merge
        nfs4:mode = special


[Fotos]
        aio write size = 0
        path = "/mnt/RAID-Z1/Fotos"
        read only = No
        veto files = /.snapshot/.windows/.mac/.zfs/
        vfs objects = zfs_space zfsacl streams_xattr
        zfsacl:acesort = dontcare
        nfs4:chown = true
        nfs4:acedup = merge
        nfs4:mode = special


[Videos]
        aio write size = 0
        path = "/mnt/RAID-Z1/Videos"
        read only = No
        veto files = /.snapshot/.windows/.mac/.zfs/
        vfs objects = zfs_space zfsacl streams_xattr
        zfsacl:acesort = dontcare
        nfs4:chown = true
        nfs4:acedup = merge
        nfs4:mode = special


That's my first steps on Freenas. I've imported the pool from a OpenMediaVault installation.
 
Joined
Jul 18, 2019
Messages
6
This solution works. Thank you.
This was a fresh installation. I don't know why the file can be corrupt.
 
Top