You are not logged in.

#1 2024-12-31 00:26:25

Matombo
Member
Registered: 2020-11-18
Posts: 6

KDE Dolphin Samba issue

Hi,
so when I go in Dolphin to "Network -> Shared Fodlers (SMB)" the samba server in my network are correctly displayed, but when I select one of them to see the shares on that server I get the error: "Could not connect to host for smb://<server_name>.local/"
Connecting to the server using its ip adress works just fine, also from dolphin.
Connecting to the server from my laptop with a different distro and the same KDE version 6.2.4 (a little bit older kde frameworks version 6.9.0 vs 6.8.0) also works fine.
So I suspect I overlooked something when setting up the PC. Maybe there is some optional dependency for the dolphin network gui stuff to work that I missed?
Sadly I don't know where to start looking, already searched the troubleshooting section of the wiki for both samba and dolphin, but couldn't find my error there.

Last edited by Matombo (2024-12-31 00:28:45)

Offline

#2 2024-12-31 02:27:17

soh3ee
Member
Registered: 2024-12-31
Posts: 2

Re: KDE Dolphin Samba issue

Hi!

It sounds like you're experiencing an issue similar to this this Reddit post.

u/HanFox (Reddit) wrote:

In System Settings look for Windows Shares. It should ask for a username and password.

Put anything in (I currently have user:a/pass:b).

Close Dolphin. Re-open and try your shares again.

Can you try that and report back?

Offline

#3 2024-12-31 09:12:02

Matombo
Member
Registered: 2020-11-18
Posts: 6

Re: KDE Dolphin Samba issue

Thanks for offering help ^^

I don't have that setting. Could be an optional kcm or something that no longer exists in plasma 6.2 (that post is talking about 5.24 and 5.25).

Offline

#4 2025-01-01 19:58:15

soh3ee
Member
Registered: 2024-12-31
Posts: 2

Re: KDE Dolphin Samba issue

Hi!

Sorry for the oversight; are you able to ping the SMB server using the hostname? You said the IP address works just fine, but if you're not able to hit the SMB server by pinging nor with Dolphin, it sounds like it could be a DNS issue. Could you try making an entry in your /etc/hosts file? This should tell your computer to map a specific IP address with a hostname. It should be something like:

{IP address} {hostname}

Offline

#5 2025-01-06 18:45:39

gark
Member
Registered: 2025-01-06
Posts: 1

Re: KDE Dolphin Samba issue

Hi
Same issue here!

At fresh install of Arch KDE, install samba using arch Wiki, i couldn't access to samba via Dolphin, it redirects to smb://<server_name>.local/ and get "Could not connect to server"
But if i type smb://<server_name>, it llogin to shared folders, and the same with smb://IP/

The steps i followed:

sudo pacman -S samba kdenetwork-filesharing avahi
sudo nano /etc/samba/smb.conf     -- with ArchWiki sample, modifying workgroup
sudo systemctl enable smb nmb
sudo systemctl start smb nmb
sudo systemctl enable avahi-daemon.service
sudo systemctl start avahi-daemon.service

sudo mkdir /var/lib/samba/usershares
sudo groupadd -R sambashare
sudo chown root:sambashare /var/lib/samba/usershares
sudo chmod 1770 /var/lib/samba/usershares
sudo nano /etc/samba/smb.conf      --- adding usershares parameters from ArchWiki
sudo systemctl restart smb nmb
testparm                                            ---> no issues here

sudo gpasswd sambashare -a $USER

sudo nano /etc/nsswitch.conf       ---> adding wins for netbios for windows shares

In System > Settings > Network there are only WiFi and Networks; Firewall ( i've not install any ); Proxy and Connection settings
But nothing about "Windows Shares"

KDE Dolphin always redirects to .local where it fails lo load server content, and only it's possible to access without .local or via IP

Offline

#6 2025-02-22 11:39:30

tt__dd
Member
Registered: 2024-08-24
Posts: 3

Re: KDE Dolphin Samba issue

Ever figure this out? "Windows Shares" is missing for me as well.....

Offline

#7 2025-02-24 18:18:05

shmakky
Member
Registered: 2012-11-24
Posts: 16

Re: KDE Dolphin Samba issue

Hello!

It's a dns problem. When you enable avahi and when you install and configure nss-mdns package, smb://somehostname.local will be resolved normally.
Adding hostnames to /etc/hosts is only workaround, not solution.
See and check this ArchWiki page:

Avahi ArchWiki

Offline

Board footer

Powered by FluxBB