Bug 496809 - Dolphin does not show shared resources from another computers on multiple LAN and virtual LAN anouncing via WSDD.
Summary: Dolphin does not show shared resources from another computers on multiple LAN...
Status: REOPENED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Samba (show other bugs)
Version: 24.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-29 01:05 UTC by Mario
Modified: 2025-04-10 20:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
smb log (2.03 KB, application/octet-stream)
2025-02-17 14:16 UTC, Mario
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mario 2024-11-29 01:05:14 UTC Comment hidden (spam)
Comment 1 Harald Sitter 2025-02-17 02:05:12 UTC Comment hidden (spam)
Comment 2 Mario 2025-02-17 14:04:03 UTC
SUMMARY
Dolphin does not show shared resources from another computers on multiple LAN and virtual LAN anouncing via WSDD.

STEPS TO REPRODUCE

Open dolphin
Go to network
Go to shared folders (SMB)
Wait for a minut and see what hosts has been discovered
OBSERVED RESULT
Devices are only discovered on a single LAN, which is typically the one associated with the default gateway.

EXPECTED RESULT
All devices on all LANs to which the device is connected must be discovered. Since the WSDD daemon shows evidence of the discovery on all interfaces.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.13-1-lts (64-bit)
Graphics Platform: X11
KDE FRAMEWORKS: 6.11
DOLPHIN VERSION: 24.12.2
LIBSMBCLIENT VERSION: 4.21.3
SAMBA VERSION: 4.21.3
HARDWARE

Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 38.6 GiB of RAM
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ASUS TUF Gaming A15 FA506QM_FA506QM
System Version: 1.0
ADDITIONAL INFORMATION

This happens with all neighboring devices, it can be Windows in its different versions or different Linux distributions.

The expected behavior is obtained in other desktop environments that use GVFS for this task.

From what I see, I am being asked for SMB logs, however, there is no problem with SMB, SMB works correctly if I enter the specific path I want to enter, the problem is with the discovery via WSDD in which in dolphin it is displayed as wsdd.discovery or something similar.
Comment 3 Mario 2025-02-17 14:16:29 UTC
Created attachment 178483 [details]
smb log
Comment 4 Harald Sitter 2025-02-17 16:27:49 UTC
[     0.311](205158)/(default) unknown: QUdpSocket::setMulticastInterface() called on a QUdpSocket when not in QUdpSocket::BoundState

this certainly sounds interesting.

I think we'll need detailed steps on how to replicate your setup though.
Comment 5 Mario 2025-02-17 18:08:21 UTC
(In reply to Harald Sitter from comment #4)
> [     0.311](205158)/(default) unknown: QUdpSocket::setMulticastInterface()
> called on a QUdpSocket when not in QUdpSocket::BoundState
> 
> this certainly sounds interesting.
> 
> I think we'll need detailed steps on how to replicate your setup though.

What kind of additional steps do you need?
Comment 6 Harald Sitter 2025-02-18 12:03:19 UTC
As many as  you can think of. Most notably how to replicate your multiple LAN setup.
Comment 7 Mario 2025-02-18 12:21:51 UTC
(In reply to Harald Sitter from comment #6)
> As many as  you can think of. Most notably how to replicate your multiple
> LAN setup.

You can use virt-manager for create LANs using libvirt, ubridge, etc. I have two LANs created with this way.

What Linux distro are you using?
Comment 8 Harald Sitter 2025-02-18 12:23:57 UTC
(In reply to Mario from comment #7)
> (In reply to Harald Sitter from comment #6)
> > As many as  you can think of. Most notably how to replicate your multiple
> > LAN setup.
> 
> You can use virt-manager for create LANs using libvirt, ubridge, etc. I have
> two LANs created with this way.
> 
> What Linux distro are you using?

KDE Linux. Distro doesn't really matter though, we just need steps to replicate the setup if they target a specific distro that's fine too.
Comment 9 Mario 2025-02-18 12:36:57 UTC
(In reply to Harald Sitter from comment #8)
> (In reply to Mario from comment #7)
> > (In reply to Harald Sitter from comment #6)
> > > As many as  you can think of. Most notably how to replicate your multiple
> > > LAN setup.
> > 
> > You can use virt-manager for create LANs using libvirt, ubridge, etc. I have
> > two LANs created with this way.
> > 
> > What Linux distro are you using?
> 
> KDE Linux. Distro doesn't really matter though, we just need steps to
> replicate the setup if they target a specific distro that's fine too.

Well, I understand that's ubuntu based distro, so:

sudo apt install virt-manager
sudo systemct enable --now libvirtd
sudo virt-manager
Select qemu/kvm and click on edit
Go to connection details
Go to virtual networks
Create one or more virtual networks
Finally, create VMs using that virtual adapters.
Comment 10 Harald Sitter 2025-02-18 15:57:06 UTC
What's the configuration for the virtual networks?
Comment 11 Mario 2025-02-18 16:18:14 UTC
(In reply to Harald Sitter from comment #10)
> What's the configuration for the virtual networks?

There is a default virtual network called default and its device name is virbr0, you can create other as open network NAT or routed and get the same error.

In my case I tested with routed, open and default virtual network.
Comment 12 Bug Janitor Service 2025-02-18 17:38:48 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/409
Comment 13 Harald Sitter 2025-02-24 13:39:18 UTC
Git commit 9e4d726b293bb0e5c87916a37a54d68b81e89a2f by Harald Sitter.
Committed on 24/02/2025 at 13:27.
Pushed by sitter into branch 'master'.

smb: start WSDResolver's client before sending messages

otherwise the messages may end up not getting sent because the socket is
not bound.

M  +1    -0    smb/wsdiscoverer.cpp

https://invent.kde.org/network/kio-extras/-/commit/9e4d726b293bb0e5c87916a37a54d68b81e89a2f
Comment 14 Harald Sitter 2025-02-24 13:54:22 UTC
Git commit 74128f082dda8b001774a119685a8da189739dd0 by Harald Sitter.
Committed on 24/02/2025 at 13:39.
Pushed by sitter into branch 'release/24.12'.

smb: start WSDResolver's client before sending messages

otherwise the messages may end up not getting sent because the socket is
not bound.


(cherry picked from commit 9e4d726b293bb0e5c87916a37a54d68b81e89a2f)

Co-authored-by: Harald Sitter <sitter@kde.org>

M  +1    -0    smb/wsdiscoverer.cpp

https://invent.kde.org/network/kio-extras/-/commit/74128f082dda8b001774a119685a8da189739dd0
Comment 15 Mario 2025-03-06 19:32:40 UTC
Hello Harald, today I updated to kio-extra 24.12.3 and get same error, I can't watch any device.

export KDE_FORK_SLAVES=1                                                           
export QT_MESSAGE_PATTERN='[%{time process}](%{pid})/(%{category}) %{function}: %{message}'
export QT_LOGGING_RULES='kf.kio.workers.smb=true;log_kio_smb=true'
dolphin --new-window smb://
[     0.000](4842)/(kf.kio.workers.smb) unknown: auth_initialize_smbc
[     0.000](4842)/(kf.kio.workers.smb) unknown: Setting debug level to: 0
[     0.000](4842)/(kf.kio.workers.smb) unknown: Using libsmbclient library version QVersionNumber(4.21.4)
[     0.000](4842)/(kf.kio.workers.smb) unknown: QUrl("smb://")
[     0.000](4842)/(kf.kio.workers.smb) unknown: checkURL  QUrl("smb://")
[     0.000](4842)/(kf.kio.workers.smb) unknown: updateCache  ""
[     0.000](4842)/(kf.kio.workers.smb) unknown: Adding modern discovery (dnssd/wsdiscovery)
[     0.023](4842)/(kf.kio.workers.smb) unknown: Modern discovery set up.
[     0.023](4842)/(kf.kio.workers.smb) unknown: Starting discovery.
[     0.000](4845)/(kf.kio.workers.smb) unknown: auth_initialize_smbc
[     0.000](4845)/(kf.kio.workers.smb) unknown: Setting debug level to: 0
[     0.000](4845)/(kf.kio.workers.smb) unknown: Using libsmbclient library version QVersionNumber(4.21.4)
[     0.000](4845)/(kf.kio.workers.smb) unknown: QUrl("smb://")
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
[     0.302](4842)/(kf.kio.workers.smb) unknown: open "smb://" url-type: 1 dirfd: 10000 errNum: 0
[     0.302](4842)/(kf.kio.workers.smb) unknown: smbc_readdir 
[     0.302](4842)/(kf.kio.workers.smb) unknown: done with smbc
[     9.871](4842)/(kf.kio.workers.smb) unknown: Discovery finished.
[     9.878](4842)/(kf.kio.workers.smb) unknown: QUrl("smb://")
[     9.878](4842)/(kf.kio.workers.smb) unknown: checkURL  QUrl("smb://")
[     9.879](4842)/(kf.kio.workers.smb) unknown: updateCache  ""
Comment 16 Mario 2025-04-10 20:35:04 UTC
Hello, is there some news?