Hi gang, I just installed version 5 of OMV and I can't get Samba to start. I keep getting this error, it's in the attached file.
I looked at the error messages but can't see what the problem is.
Any help would be appreciated.
Thanks.
Hi gang, I just installed version 5 of OMV and I can't get Samba to start. I keep getting this error, it's in the attached file.
I looked at the error messages but can't see what the problem is.
Any help would be appreciated.
Thanks.
What is the output of systemctl status smbd.service?
Hi votdev, thanks for your help and your beautiful project.
I attached the output.
Hmm, that does not contain any helpful information. Please execute journalctl -u smbd.service and post the output.
Hi votdev, thanks again for your help.
I attached the output.
Did you add anything to "Extra options" for smb? Or edit /etc/samba/smb.conf?
Hi donh, no. Extra options is empty.
Hi gang, does anybody have any idea how to fix why Samba doesn't want to start on my server?
Thanks.
Maybe if you provide more info about your hardware like x86, rpi or whatever. Also what iso or image you used. Anything else that may be relevant. Better questions get better answers.
Also you could up the log level on the smb/cifs settings page.
Hi donh, here is the information. The Samba logs are set at normal but can't get any logs to display since Samba doesn't want to start.
Hardware specs:
Motherboard: Asus PRIME-B450M-A
CPU: AMD Ryzen 3 2200G
RAM: 16G
Hard Drives:
OS: Kingston 120 Gb SSD
Data: 3 WD RED 2 Tb, 2 Hard Drives in MergeFS for data and 1 for Parity using SnapRAID
Backup: 1 WD RED 6 Tb in external USB, every evening, RSync jobs scheduled to run backups
1 Hard drive for Docker storage, 1 WD Blue 1 Tb.
Images installed in Docker, Portainer, Plex, Pi-Hole, Watchtower and Unifi-Controller
ISO Image used to build the server, openmediavault_5.3.9-amd64.iso
Just let me know what kind of information you would like to get.
Run testparm at the cli or over ssh.
Hi donh, I get this error message.
root@omv5:~# testparm
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0775 should be 0700
Unable to initialize messaging context!
Hi donh, I fixed the problem.
When I tried to run the testparm command, I got this error.
invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0775 should be 0700
So I changed the permission from the msg.sock to 0700 using this command.
chmod -R 700 /var/lib/samba/private/msg.sock
But then I got errors that these directories needed to have permissions 0755.
/var/lib/samba and /var/cache/samba.
I changed them using these commands.
chmod -R 755 /var/lib/samba
chmod -R 755 /var/cache/samba
I then reran the first command chmod -R 700 /var/lib/samba/private/msg.sock, to reset the msg.sock directory back to 0700 and then ran the testparm command and it worked.
I went back to the OMV SAMBA web page to enable it and it worked.
I hope what I did is what I was suppose to do to fix this.
Now my question is, how come the permissions were all screwed up?
Thanks for your help.
Testparm would make a nice test button on the samba settings page I think.
No No No No No. Have you seen such a button in a professional software? Not me. OMV already is testing the configuration during the deployment phase.
No idea why the permissions were wrong, maybe votdev can look into it.
Me too. But it's a local problem of the system. Problems with permissions in /var/cache can be caused by software solutions trying to reduce write activities on the root device.
No No No No No. Have you seen such a button in a professional software? Not me. OMV already is testing the configuration during the deployment phase.
Seems there was no error when saving the config. Maybe there was but it was not obvious or mentioned by the op. I don't see what would have told him to try testparm. Maybe testparm could be run on save. Then display the errors? But that might confuse people too. There may be minor warnings that don't actually break things?
Thanks
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!