How to make Dolphin to access SMB share again?

I am using Dolphin to access my fritz box’s NAS SMB share.
This usually works by simply typing smb://fritz.box/fritz.nas into Dolphin’s location bar.
After entering the password, I am connected and can work with the share.

But then – I guess related to stupid clicking/browsing in Dolphin’s SMB’s hierarchy – Dolphin simply throws
“The file or folder smb://fritz.box/fritz.nas does not exist.”
having not even asked me for the password and stubbornly refuses to access my share anymore.

Looks like something got stuck. Maybe I can convince Dolphin to forget everything about the share and start again from scratch?

The share is still existing (confirmed via smbclient) and mountable (confirmed via mount.smb3 and mount.cifs).

Any ideas what’s wrong with Dolphin?
(Same on TW, BTW)

Can you confirm what shares are shown via smbclient?

smbclient -L //fritz.box -U <username>

Nothing is wrong with Dolphin, use smb://fritz.box/FRITZ.NAS

Also, check that ‘kio-extras5’ package is installed.

Yes, as I said, the shares are visible and mountable via command line.

That’s what I did to access it the first time.
I think I got it messed up afterwards by trying to browse via Remote: Network > Shared Folders (SMB) (or by simply typing smb://).
Sometimes this happened when going up from smb://fritz.box/FRITZ.NAS and then later clicking on FRITZ.NAS folder

(And, yes, kio-extra5 is installed, either)

Anyhow, can I see what’s happening in the background? Didn’t notice a verbose switch for Dolphin.

Maybe this?

Jul 11 23:08:37 localhost.localdomain kioslave5[9290]: Qt: Session management error: networkIdsList argument is NULL

I know that. The idea is that you share the output so that we can see the shares (by name) for ourselves.

Trust, but verify :wink:
There you go

chris@localhost:~> smbclient -L //fritz.box -U chris 
Password for [WORKGROUP\chris]: 

        Sharename       Type      Comment 
        ---------       ----      ------- 
        IPC$            IPC       IPC Service 
        FRITZ.NAS       Disk      FRITZ!Box 
SMB1 disabled -- no workgroup available



What happens if you just enter the following into dolphin? (ie without the share explicitly listed)

smb://fritz.box/

or

smb:chris@//fritz.box

This may be of help…
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/Debugging_IOSlaves/Debugging_kio_smb

On host erlangen “Dolphin Sidebar > Network > Shared Folders” would open smb://fritz.box and access folder FRITZ.NAS This didn’t work on host 6700K. Running “rsync -a erlangen:/etc/samba/smb.conf /etc/samba/smb.conf” fixed this. Dolphin on host 6700K now readily opens share smb://fritz.box/FRITZ.NAS

**6700K:~ #** cat /etc/samba/smb.conf     
# smb.conf is the main Samba configuration file. You find a full commented 
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the 
# samba-doc package is installed. 
[global] 
        workgroup = WORKGROUP 
        passdb backend = tdbsam 
        printing = cups 
        printcap name = cups 
        printcap cache time = 750 
        cups options = raw 
        map to guest = Bad User 
        logon path = \\%L\profiles\.msprofile 
        logon home = \\%L\%U\.9xprofile 
        logon drive = P: 
        usershare allow guests = Yes 
client min protocol = CORE 
[homes] 
        comment = Home Directories 
        valid users = %S, %D%w%S 
        browseable = No 
        read only = No 
        inherit acls = Yes 
[profiles] 
        comment = Network Profiles Service 
        path = %H 
        read only = No 
        store dos attributes = Yes 
        create mask = 0600 
        directory mask = 0700 
[users] 
        comment = All users 
        path = /home 
        read only = No 
        inherit acls = Yes 
        veto files = /aquota.user/groups/shares/ 
[groups] 
        comment = All groups 
        path = /home/groups 
        read only = No 
        inherit acls = Yes 
[printers] 
        comment = All Printers 
        path = /var/tmp 
        printable = Yes 
        create mask = 0600 
        browseable = No 
[print$] 
        comment = Printer Drivers 
        path = /var/lib/samba/drivers 
        write list = @ntadmin root 
        force group = ntadmin 
        create mask = 0664 
        directory mask = 0775 
**6700K:~ #** smbclient -U ftpuser -L fritz.box 
Password for [WORKGROUP\ftpuser]: 

        Sharename       Type      Comment 
        ---------       ----      ------- 
        FRITZ.NAS       Disk       
        IPC$            IPC       IPC Service (FRITZ!Box) 
Reconnecting with SMB1 for workgroup listing. 

        Server               Comment 
        ---------            ------- 

        Workgroup            Master 
        ---------            ------- 
**6700K:~ #** 

chris@localhost:~> export KDE_FORK_SLAVES=1

chris@localhost:~> export QT_MESSAGE_PATTERN='%{time process}](%{pid})/(%{category}) %{function}: %{message}' 
chris@localhost:~> export QT_LOGGING_RULES='log_kio_smb=true' 
chris@localhost:~> dolphin --new-window smb://fritz.box 
     0.000](10882)/(kf.kio.core) unknown: "The file or folder smb://fritz.box/ does not exist." 
    22.305](10882)/(kf.kio.core) unknown: "The file or folder smb://fritz.box/FRITZ.NAS does not exist." 
    30.670](10882)/(kf.kio.core) unknown: "The file or folder smb://chris@fritz.box/ does not exist." 
    43.150](10882)/(kf.kio.core) unknown: "The file or folder smb://chris@fritz.box/FRITZ.NAS does not exist."

I also tried all suggested smb:// combinations mentioned above.

Heck, Dolphin does not even try to send any package out to the destination:


[FONT=monospace]**localhost:/home/chris #** tcpdump -p dst fritz.box and port 445              
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode 
listening on wlan0, link-type EN10MB (Ethernet), snapshot length 262144 bytes


That’s why I think that something got stuck.

Update: did the test on a new user profile, but the same result. So no user related issue…
[/FONT]

The same failure even if you try by IP address?

FWIW, I’m using Leap 15.4, but with KDE repos (KDE Plasma Version: 5.25.2, KDE Frameworks Version: 5.96.0, Qt Version: 5.15.5).

Yep. dolphin --new-window smb://fritz.box results in the following:

**erlangen:~ #** tcpdump -p dst fritz.box and port 445   
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode 
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 
08:33:24.476642 IP6 erlangen.fritz.box.47204 > fritz.box.microsoft-ds: Flags [P.], seq 1358121529:1358121621, ack 1468200190, win 501, options [nop,nop,TS val 2648931010 ecr 1397612629], length 92 
08:33:24.477671 IP6 erlangen.fritz.box.47204 > fritz.box.microsoft-ds: Flags .], ack 40, win 501, options [nop,nop,TS val 2648931011 ecr 1397619485], length 0 
08:33:24.477694 IP6 erlangen.fritz.box.47204 > fritz.box.microsoft-ds: Flags [P.], seq 92:194, ack 40, win 501, options [nop,nop,TS val 2648931011 ecr 1397619485], length 102 
08:33:24.478419 IP6 erlangen.fritz.box.47204 > fritz.box.microsoft-ds: Flags .], ack 79, win 501, options [nop,nop,TS val 2648931011 ecr 1397619485], length 0 
08:33:25.291318 IP6 erlangen.fritz.box.34916 > fritz.box.microsoft-ds: Flags [S], seq 3495782853, win 64800, options [mss 1440,sackOK,TS val 2648931824 ecr 0,nop,wscale 7], length 0 
08:33:25.291669 IP6 erlangen.fritz.box.34916 > fritz.box.microsoft-ds: Flags .], ack 123794095, win 507, options [nop,nop,TS val 2648931825 ecr 1397619567], length 0 
08:33:25.291710 IP6 erlangen.fritz.box.34916 > fritz.box.microsoft-ds: Flags [P.], seq 0:216, ack 1, win 507, options [nop,nop,TS val 2648931825 ecr 1397619567], length 216 
08:33:25.529344 IP6 erlangen.fritz.box.34916 > fritz.box.microsoft-ds: Flags .], ack 132, win 506, options [nop,nop,TS val 2648932062 ecr 1397619590], length 0 
08:33:25.529714 IP6 erlangen.fritz.box.34916 > fritz.box.microsoft-ds: Flags [P.], seq 216:376, ack 132, win 506, options [nop,nop,TS val 2648932063 ecr 1397619590], length 160

Your network is rotten.

That’s how I can get it working again: navigate to
System Settings > Network: Settings > Windows Shares
and enter default user name and password.

Now I am thinking if a recent update changed this behavior. Indeed, I got recent updates affecting plasma and smbclient


libqt5-qtwebengine-5.15.10-bp154.2.3.2.x86_64 Mon 11 Jul 2022 12:12:29 AM CEST 
samba-python3-4.15.7+git.376.dd43aca9ab2-150400.3.5.3.x86_64 Mon 11 Jul 2022 12:12:23 AM CEST 
openSUSE-release-ftp-15.4-lp154.166.1.x86_64  Mon 11 Jul 2022 12:12:23 AM CEST 
openSUSE-release-appliance-custom-15.4-lp154.166.1.x86_64 Mon 11 Jul 2022 12:12:23 AM CEST 
openSUSE-release-15.4-lp154.166.1.x86_64      Mon 11 Jul 2022 12:12:23 AM CEST 
samba-ad-dc-libs-4.15.7+git.376.dd43aca9ab2-150400.3.5.3.x86_64 Mon 11 Jul 2022 12:12:22 AM CEST 
libsamba-policy0-python3-4.15.7+git.376.dd43aca9ab2-150400.3.5.3.x86_64 Mon 11 Jul 2022 12:12:22 AM CEST 
samba-4.15.7+git.376.dd43aca9ab2-150400.3.5.3.x86_64 Mon 11 Jul 2022 12:12:21 AM CEST  
samba-libs-python3-4.15.7+git.376.dd43aca9ab2-150400.3.5.3.x86_64 Mon 11 Jul 2022 12:12:20 AM CEST 
samba-libs-4.15.7+git.376.dd43aca9ab2-150400.3.5.3.x86_64 Mon 11 Jul 2022 12:12:20 AM CEST 
libMagickWand-7_Q16HDRI6-7.0.7.34-150200.10.31.1.x86_64 Mon 11 Jul 2022 12:12:20 AM CEST 
libMagickWand-7_Q16HDRI10-7.1.0.9-150400.6.3.1.x86_64 Mon 11 Jul 2022 12:12:20 AM CEST 
libcurl4-7.79.1-150400.5.3.1.x86_64           Mon 11 Jul 2022 12:12:20 AM CEST  
ImageMagick-7.1.0.9-150400.6.3.1.x86_64       Mon 11 Jul 2022 12:12:20 AM CEST 
curl-7.79.1-150400.5.3.1.x86_64               Mon 11 Jul 2022 12:12:20 AM CEST 
samba-client-libs-4.15.7+git.376.dd43aca9ab2-150400.3.5.3.x86_64 Mon 11 Jul 2022 12:12:19 AM CEST 
samba-client-4.15.7+git.376.dd43aca9ab2-150400.3.5.3.x86_64 Mon 11 Jul 2022 12:12:19 AM CEST 
python3-ldb-2.4.2-150400.4.3.11.x86_64        Mon 11 Jul 2022 12:12:19 AM CEST  
libMagickCore-7_Q16HDRI6-7.0.7.34-150200.10.31.1.x86_64 Mon 11 Jul 2022 12:12:18 AM CEST 
libMagickCore-7_Q16HDRI10-7.1.0.9-150400.6.3.1.x86_64 Mon 11 Jul 2022 12:12:18 AM CEST 
expat-2.4.4-150400.3.6.9.x86_64               Mon 11 Jul 2022 12:12:18 AM CEST 
xen-libs-4.16.1_04-150400.4.5.2.x86_64        Mon 11 Jul 2022 12:12:17 AM CEST 
openssl-1_1-1.1.1l-150400.7.7.1.x86_64        Mon 11 Jul 2022 12:12:17 AM CEST 
libopenssl1_1-1.1.1l-150400.7.7.1.x86_64      Mon 11 Jul 2022 12:12:17 AM CEST  
libldb2-2.4.2-150400.4.3.11.x86_64            Mon 11 Jul 2022 12:12:17 AM CEST 
libfwupdplugin1-1.5.8-150300.3.5.1.x86_64     Mon 11 Jul 2022 12:12:16 AM CEST  
libexpat1-2.4.4-150400.3.6.9.x86_64           Mon 11 Jul 2022 12:12:16 AM CEST 
MozillaFirefox-91.11.0-150200.152.48.1.x86_64 Mon 11 Jul 2022 12:12:15 AM CEST 
plasma5-session-wayland-5.24.4-bp154.2.3.1.x86_64 Mon 11 Jul 2022 12:12:08 AM CEST 
plasma5-desktop-lang-5.24.4-bp154.2.3.2.noarch Mon 11 Jul 2022 12:12:08 AM CEST 
ImageMagick-config-7-SUSE-7.1.0.9-150400.6.3.1.x86_64 Mon 11 Jul 2022 12:12:08 AM CEST 
plasma5-session-5.24.4-bp154.2.3.1.noarch     Mon 11 Jul 2022 12:12:07 AM CEST  
plasma5-desktop-emojier-5.24.4-bp154.2.3.2.x86_64 Mon 11 Jul 2022 12:12:07 AM CEST 
plasma5-desktop-5.24.4-bp154.2.3.2.x86_64     Mon 11 Jul 2022 12:12:06 AM CEST 
plasma5-workspace-lang-5.24.4-bp154.2.3.1.noarch Mon 11 Jul 2022 12:12:05 AM CEST 
plasma5-workspace-5.24.4-bp154.2.3.1.x86_64   Mon 11 Jul 2022 12:12:03 AM CEST 
xembedsniproxy-5.24.4-bp154.2.3.1.x86_64      Mon 11 Jul 2022 12:12:01 AM CEST  
plasma5-workspace-libs-5.24.4-bp154.2.3.1.x86_64 Mon 11 Jul 2022 12:12:01 AM CEST 
gmenudbusmenuproxy-5.24.4-bp154.2.3.1.x86_64  Mon 11 Jul 2022 12:12:01 AM CEST

Will snap back to older versions and see if it works there…

Update:
Yes, it must be related to recent updates. I started with older snapshot and things worked as expected: a username/password dialogue appeared after entering smb://fritz.box.

Ran “zypper update” on Leap 15.4, rebooted and tried both:

**Leap-15-4:~ #** smbclient -L fritz.box    
Password for [WORKGROUP\root]: 
Failed to resolve credential cache 'DIR:/run/user/0/krb5cc'! (No credentials cache found) 
Anonymous login successful 

        Sharename       Type      Comment 
        ---------       ----      ------- 
        FRITZ.NAS       Disk       
        IPC$            IPC       IPC Service (FRITZ!Box) 
Reconnecting with SMB1 for workgroup listing. 
Failed to resolve credential cache 'DIR:/run/user/0/krb5cc'! (No credentials cache found) 
Anonymous login successful 

        Server               Comment 
        ---------            ------- 

        Workgroup            Master 
        ---------            ------- 
**Leap-15-4:~ #**

dolphin --new-window smb://fritz.box readily opens the share. Needed to add the bold line:

[FONT=monospace]**Leap-15-4:~ #** cat /etc/samba/smb.conf      
# smb.conf is the main Samba configuration file. You find a full commented 
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the 
# samba-doc package is installed. 
[global] 
        workgroup = WORKGROUP 
        passdb backend = tdbsam 
        printing = cups 
        printcap name = cups 
        printcap cache time = 750 
        cups options = raw 
        map to guest = Bad User 
        logon path = \\%L\profiles\.msprofile 
        logon home = \\%L\%U\.9xprofile 
        logon drive = P: 
        usershare allow guests = Yes 
**        client min protocol = CORE  **
[homes] 
        comment = Home Directories 
        valid users = %S, %D%w%S 
        browseable = No 
        read only = No 
        inherit acls = Yes 
[profiles] 
        comment = Network Profiles Service 
        path = %H 
        read only = No 
        store dos attributes = Yes 
        create mask = 0600 
        directory mask = 0700 
[users] 
        comment = All users 
        path = /home 
        read only = No 
        inherit acls = Yes 
        veto files = /aquota.user/groups/shares/ 
[groups] 
        comment = All groups 
        path = /home/groups 
        read only = No 
        inherit acls = Yes 
[printers] 
        comment = All Printers 
        path = /var/tmp 
        printable = Yes 
        create mask = 0600 
        browseable = No 
[print$] 
        comment = Printer Drivers 
        path = /var/lib/samba/drivers 
        write list = @ntadmin root 
        force group = ntadmin 
        create mask = 0664 
        directory mask = 0775 
**Leap-15-4:~ #**[/FONT]

That is nonsense.

1 Like

That is good to know.

Will snap back to older versions and see if it works there…

Update:
Yes, it must be related to recent updates. I started with older snapshot and things worked as expected: a username/password dialogue appeared after entering smb://fritz.box.

Ok, interesting find. You could just move to using the newer KDE environment perhaps.
https://en.opensuse.org/SDB:KDE_repositories

Found the following while searching the net, though not 100% sure if this is related to my issue:
https://bugs.kde.org/show_bug.cgi?id=453090

But the workaround (adding a (dummy) username/password in System Settings > Network Settings > Settings > Windows Shares) was also mentioned:
https://www.reddit.com/r/kde/comments/vkgis9/dolphin_the_file_or_folder_smbservernamelocal/?utm_source=share&utm_medium=web2x&context=3

Yes, I had seen that report recently while researching similar samba issue.