Today ever since i power up my NAS running OMV, i do not seem to be able to connect to my samba shares from anywhere. My laptop cannot connect, my android phones, nothing. I can connect via web ui to the static ip i have set, and it remains the same, i can connect to the ftp server and see the smb shares from there, but cannot for the life of me access the smb shares directly. I disabled and reenabled the smb service from omv, (applies each time of course) i've reset user accounts, prexeisting and even tried with brand new user credentials, powered off, and rebooted the machine, and for the life of me i cannot connect. I repeat, i can connect to the ftp and see samba from there and to webui from same ip, but access smb directly fails. Seriously wasted all my day trying to fix this and coming up short
SMB not working anymore freaking out over here
-
- OMV 3.x
- therock003
-
-
SMB is a bitch sometimes. What do your logs tell you?
-
Nothing useful, they seem to be spammed with some rrdc error. I googled this and someone suggests an rtc module whatever that is
-
-
Nothing in the samba log? Did you change anything prior to this issue occurring? Are your shares configured as browseable? (I assume you're trying to browse to the share). Have you tried using hostname and IP address to reach the share? (if IP works, you have a dns issue)
-
Shares are of course online, mounted and browseable. Which logs are you refering to. Besides NAS running omv my laptop is running windows. I previously could connect to shares by mapping them as network drives. Now i cannot do that. How do i reach the shares with the jsotname ip method? Im novice in that matter and dont have the nesecary experience. Please tell me which command i should run from either windows or linux console
-
There are logs for samba itself located at /var/log/samba/
suppose the name of your server is "nas" and it has IP 192.168.0.5
if DNS is working you could simply hit your windows key and type "\\nas" and hit enter to open the samba shares. If your dns is broken, you could type "\\192.168.0.5" instead, and it should still work.
-
-
Well none work so...
I can browse the shares via ftp and remote ssh with putty using my ip, but \\hostname and \\ip do not work
What logs do you want my to paste here
-
Some good information here: https://www.samba.org/samba/docs/using_samba/ch12.html
See testing info at the bottom specifically.
-
before i start reading material found this which feels similar to my issue
The guy complains that he changed somethin on the fstab whuch is what i also did yesterday as well. Could a line on the fstab have caused this?
-
-
The logging of samba is off by default. https://forum.openmediavault.o…s-samba-Trouble-shooting/ shows how to enable them.
Don't know what you changed in fstab but that would be the first thing to look at.
-
The logging of samba is off by default. https://forum.openmediavault.o…s-samba-Trouble-shooting/ shows how to enable them.
Don't know what you changed in fstab but that would be the first thing to look at.
There is a removable drive that checked for errors at startup and when it was not mounted it nagged me that drive was not fout and had a one and a half minute waiting period ooking to be found. So i removed that line entry from the stab so as not to check for it. But i feel this is harmless. It was an empty test drive, it did not have any files inside and of course no shares or anything at all
I re-enter the line in fstab, added noauto so it does not automount to check it at bot, but i did not include some of the lines the other drives have like some weird entries that appear (user_xattr,noexec,usrjquota=aquota.user,gr....)
Could this seriously be it? Why would samba service care that i removed this one line
-
Can you guys please help me fix my fstab
I also found a tmpfs entry that might be wrong
I changed it to tmpfs /tmp tmpfs rw,size=1G,noexec,nodev,nosuid 0 0
which i took from here
But it did nothing for me still
Please i have no samba access. Im dying over here
-
-
I am not sure why smb would be be broken but you should make a backup before modifying files like that. Yes I have learned that the hard way too. You could have just commented the line out also.
Did you enable logging? What does it say?
-
What does systemctl status smbd show?
root@openmediavault:~# systemctl status smbd
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: active (running) since Sun 2017-12-31 19:12:50 MST; 1 weeks 3 days ago
CGroup: /system.slice/smbd.service
└─3666 /usr/sbin/smbd -DDec 31 19:12:50 openmediavault smbd[3652]: Starting SMB/CIFS daemon: smbd.
Dec 31 19:12:50 openmediavault systemd[1]: Started LSB: start Samba SMB/CIFS....
Dec 31 19:22:38 openmediavault systemd[1]: Reloading LSB: start Samba SMB/CI....
Dec 31 19:22:38 openmediavault smbd[4797]: Reloading /etc/samba/smb.conf: smbd.
Dec 31 19:22:38 openmediavault systemd[1]: Reloaded LSB: start Samba SMB/CIF....
Jan 08 07:35:03 openmediavault systemd[1]: Reloading LSB: start Samba SMB/CI....
Jan 08 07:35:03 openmediavault smbd[20344]: Reloading /etc/samba/smb.conf: smbd.
Jan 08 07:35:03 openmediavault systemd[1]: Reloaded LSB: start Samba SMB/CIF....
Hint: Some lines were ellipsized, use -l to show in full.
root@openmediavault:~# -
Here is nmbd as well.
Im uploadign pictures so you can see the color that gets embolden. Not sure i like all that red lines.
I set smb to full log, but the file seems empty
-
-
Backup /etc/samba/smb.conf . Does the shares section refer to the removed drive? If so remove it from web ui.
-
No it does not. And i never made a share there either. It must be the tmpfs entry of the fstab causing the problem
-
Mine looks like this.
tmpfs /tmp tmpfs defaults 0 0
-
-
Is it before or after the closing openmediavault arguments?
-
I don't think order is important.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=6aebdd7f-bd8a-44bd-8284-4268b40043e8 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=0c80dc38-2e5b-44e9-8ee0-ccae580f66b6 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
tmpfs /tmp tmpfs defaults 0 0
# >>> [openmediavault]
/dev/disk/by-label/15TB
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!