You are not logged in.

#1 2022-09-12 21:14:09

joltman
Member
From: Colorado
Registered: 2014-04-09
Posts: 12

Opening SMB Share From Gnome Files Sometimes Works

I'm receiving an error when attempting to open an SMB share on my newly installed Arch laptop (Wayland and Gnome 42.4) up to date as of last night (9/11/2022).  Sometimes I can get into the SMB share, but most of the time, I'm seeing:

Oops!  Something went wrong.
Unhandled error message:  Failed to mount Windows share: Invalid argument

It seems like if I reboot, I'm able to get in.  I've searched that error and it looks like back in March of 2022 there was an issue with smbclient and gvfs-smb.  However, those were fixed.  What's strange to me is that I'm sometimes able to access the SMB share.  For reference, the SMB share is on my TrueNAS install (TrueNAS-12.0-U8).  I'm able to access these shares correctly from a MacOS and Windows 10 machine without issue.  Also, if I have one share "mounted" in Gnome Files, I can't get another share to mount.  I am not adding these shares to the fstab.  I'm a newbie for Arch, so your patience is appreciated.  Thanks for the help!

Last edited by joltman (2022-09-12 21:14:59)

Offline

#2 2022-09-14 21:23:13

joltman
Member
From: Colorado
Registered: 2014-04-09
Posts: 12

Re: Opening SMB Share From Gnome Files Sometimes Works

So, I'm not sure what did it here to make it work, but it's now "working".  I only wanted the ability to browse SMB shares off my TrueNAS server.  I originally installed cifs-utils and gvfs-smb.  I also disabled systemd-resolved and installed and enabled avahi-daemon.service along with adding mdns to the nsswitch.conf file.  At this point is where I made the above post.  Every once in a while the shares would be browseable.  Then I installed the smbclient and samba packages.  I then followed the docs and grabbed an smb.conf file and placed it appropriately and have not edited it at all.  I also ran the "sudo smbpasswd -a user" and "-e".  I even tried enabling the winbind service.  Then shares started working.  I disabled the winbind service and rebooted and currently shares are working as expected.  The smb service is also not running.  However, I don't know what made it start working.  If it was the smbpasswd line, then that's even more confusing since that doesn't appear to be a requirement for a CLIENT scenario (at least, according to the wiki).  Does anyone have any thoughts on what the magic incantation was that made this start working?  I'm trying to put together a list of all the commands I ran and files I edited so that I can rebuild if I need to down the line somewhere.  Thanks!

Offline

#3 2022-09-14 22:03:23

joltman
Member
From: Colorado
Registered: 2014-04-09
Posts: 12

Re: Opening SMB Share From Gnome Files Sometimes Works

OK, I was wrong.  I deactivated the winbind service and then shares stopped working.  So it looks like I need the smb.conf file _and_ the winbind service for shares to work.  What's up wit dat?

Offline

Board footer

Powered by FluxBB