STEPS TO REPRODUCE 1. open Dolphin 2. click on "Network" in Places panel 3. double-click on 'Shares folders (SMB)" (Dolphin finds the server as expected) 4. double-click on the server OBSERVED RESULT Dolphin does not find the Samba shares and displays a red bar on top saying "Could not connect to host for smb://hostname.local/". Terminal says "org.kde.dolphin: could not find entry for charset= "Other encoding ()"". Dolphin finds the Samba shares as expected if I press ctrl+l and enter "smb://hostname" EXPECTED RESULT Dolphin should find the Samba shares after the last step. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.20.1 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1 ADDITIONAL INFORMATION I ran these commands... kwriteconfig5 --file kioslaverc --group SMB --key DebugLevel 10` KDE_FORK_SLAVES=1 QT_LOGGING_RULES="kf5.*=true;kf5.kio.*=true;kio_smb=true" dolphin --new-window and got this log after the steps above: KDE_FORK_SLAVES=1 QT_LOGGING_RULES="kf5.*=true;kf5.kio.*=true;kio_smb=true" dolphin --new-window qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 714, resource id: 0, major code: 20 (GetProperty), minor code: 0 INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 Using netbios name ARCH-PC. Using workgroup WORKGROUP. parsed path: fname='smb://' server='' share='' path='' options='' SMBC_check_options(): server='' share='' path='' options='' name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1> parse_nmb: packet id = 3973 nmb packet from 192.168.0.5(35072) header: id=3973 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 answers 0 char ...... hex 8000C0A80005 Got a positive name query response from 192.168.0.5 ( 192.168.0.5 ) validator failed parse_nmb: packet id = 3973 nmb packet from 192.168.0.5(35072) header: id=3973 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 answers 0 char ...... hex 8000C0A80005 Got a positive name query response from 192.168.0.5 ( ) validator failed INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 Using netbios name ARCH-PC. Using workgroup WORKGROUP. INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 Using netbios name ARCH-PC. Using workgroup WORKGROUP. name_status_find: looking up *#00 at 192.168.0.5 Opening cache file at /var/cache/samba/gencache.tdb tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied gencache_init: Opening user cache file /home/stalker/.cache/samba/gencache.tdb. namecache_status_fetch: key NBT/*#00.1D.192.168.0.5 -> WORKGROUP internal_resolve_name: looking up WORKGROUP#1d (sitename (null)) name WORKGROUP#1D found. remove_duplicate_addrs2: looking for duplicate address/port pairs found master browser WORKGROUP, 192.168.0.5 Connecting to 192.168.0.5 at port 445 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 87040 SO_RCVBUF = 131072 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 TCP_USER_TIMEOUT = 0 name_status_find: looking up *#00 at 192.168.0.5 namecache_status_fetch: key NBT/*#00.00.192.168.0.5 -> NEON-LAPTOP Connecting to 192.168.0.5 at port 445 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 87040 SO_RCVBUF = 131072 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 TCP_USER_TIMEOUT = 0 org.kde.dolphin: could not find entry for charset= "Other encoding ()" parsed path: fname='smb://neon-laptop.local/' server='neon-laptop.local' share='' path='' options='' SMBC_check_options(): server='neon-laptop.local' share='' path='' options='' smbc_stat(smb://neon-laptop.local/) Opening cache file at /var/cache/samba/gencache.tdb tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied gencache_init: Opening user cache file /home/stalker/.cache/samba/gencache.tdb. sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up neon-laptop.local#1d (sitename (null)) no entry for neon-laptop.local#1D found. resolve_hosts: not appropriate for name type <0x1d> sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up neon-laptop.local#1b (sitename (null)) no entry for neon-laptop.local#1B found. resolve_hosts: not appropriate for name type <0x1b> sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up neon-laptop.local#20 (sitename (null)) no entry for neon-laptop.local#20 found. resolve_hosts: Attempting host lookup for name neon-laptop.local<0x20> SMBC_server: server_n=[neon-laptop.local] server=[neon-laptop.local] -> server_n=[neon-laptop.local] server=[neon-laptop.local] Opening cache file at /var/cache/samba/gencache.tdb tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied gencache_init: Opening user cache file /home/stalker/.cache/samba/gencache.tdb. sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up neon-laptop.local#20 (sitename (null)) no entry for neon-laptop.local#20 found. resolve_hosts: Attempting host lookup for name neon-laptop.local<0x20> resolve_hosts: getaddrinfo failed for name neon-laptop.local [Name or service not known] resolve_hosts: getaddrinfo failed for name neon-laptop.local [Name or service not known] sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up neon-laptop.local#20 (sitename (null)) no entry for neon-laptop.local#20 found. resolve_hosts: Attempting host lookup for name neon-laptop.local<0x20> resolve_hosts: getaddrinfo failed for name neon-laptop.local [Name or service not known] map_errno_from_nt_status: 32 bit codes: code=c0000001
I can't reproduce this issue on Dolphin from git master. I can browse SMB, open my server and browser/interact with the shares. Shares are on Ubuntu 20.04.1 Can you test with KDE Neon Unstable in a VM?
Dolphin master running on neon unstable installed on another machine finds samba shares as expected. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.20.80 KDE Frameworks Version: 5.76.0 Qt Version: 5.15.0
I've just tested on KDE Neon User Edition (20.08.2 Dolphin) and can't reproduce the issue. Is there a setting on Arch in regards to SMB version requirements, etc?(In reply to Patrick Silva from comment #2) > Dolphin master running on neon unstable installed on another machine > finds samba shares as expected. > > Operating System: KDE neon Unstable Edition > KDE Plasma Version: 5.20.80 > KDE Frameworks Version: 5.76.0 > Qt Version: 5.15.0 I can even access my SMB shares on my laptop with Dolphin 20.08.2. So it must be something Arch is doing or something in a configuration that's stopping you browsing the shares. If you are able to can you show us the share names on the server. I'm wondering if the "org.kde.dolphin: could not find entry for charset= "Other encoding ()" means there's something in one of the share names that's causing an issue on Arch.
I have renamed my shares to "Share1" and "Share2", restarted smb and nmb services on server machine, but the problem persists.
99% sure your name resolution isn't correctly set up https://wiki.archlinux.org/index.php/Avahi#Hostname_resolution
(In reply to Harald Sitter from comment #5) > 99% sure your name resolution isn't correctly set up > https://wiki.archlinux.org/index.php/Avahi#Hostname_resolution You are right! Thank you very much Harald. :)
I have the same problem with the latest Neon User edition: "org.kde.dolphin: could not find entry for charset= "Other encoding ()"" There seems to be no misconfiguration, because on the same system, I can access the share with nautilus. It's strange, because I can remember, this used to work some weeks/months ago under Neon.
Same problem with latest Unstable Edition. It works on the same system with nautilus or thunar. Some details of the share: It's on a external hard-drive connected to a WDTV Live Media Player. The URL under thunar is: afp://anonymous@WDTVLive.local/DIR/ in journalctl I see: gvfsd[1940]: smbXcli_negprot_smb1_done: No compatible protocol selected by server.
neon@neon:~$ kwriteconfig5 --file kioslaverc --group SMB --key DebugLevel 10 neon@neon:~$ KDE_FORK_SLAVES=1 QT_LOGGING_RULES="kf5.*=true;kf5.kio.*=true;kio_smb=true" dolphin --new-window kf.kio.slaves.tags: tag fetch failed: "Failed to open the database" kf.kio.slaves.tags: "tags:/" list() invalid url kf.kio.core: "Could not enter folder tags:/." kf.kio.core: "Could not enter folder tags:/." Qt: Session management error: networkIdsList argument is NULL INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 Using netbios name NEON. Using workgroup WORKGROUP. parsed path: fname='smb://' server='' share='' path='' options='' SMBC_check_options(): server='' share='' path='' options='' name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1> tstream_unix_connect failed: No such file or directory nmbd not around INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 Using netbios name NEON. Using workgroup WORKGROUP. parse_nmb: packet id = 17065 nmb packet from 192.168.1.109(35072) header: id=17065 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=259200 answers 0 char .....m hex 8000C0A8016D Got a positive name query response from 192.168.1.109 ( 192.168.1.109 ) validator failed name_status_find: looking up *#00 at 192.168.1.109 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied namecache_status_fetch: no entry for NBT/*#00.1D.192.168.1.109 found. startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory tstream_unix_connect failed: No such file or directory nmbd not around parse_nmb: packet id = 6813 nmb packet from 192.168.1.109(35072) header: id=6813 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=*<00> rr_type=33 rr_class=1 ttl=0 answers 0 char .WDTVLIVE hex 07574454564C49564520202020202020 answers 10 char ...WDTVLIVE hex 000400574454564C4956452020202020 answers 20 char ...WDTVLIVE hex 2020030400574454564C495645202020 answers 30 char ....__MSBRO hex 2020202020040001025F5F4D5342524F answers 40 char WSE__....WORKGRO hex 5753455F5F02018400574F524B47524F answers 50 char UP ...WORKG hex 55502020202020201D0400574F524B47 answers 60 char ROUP ...WOR hex 524F55502020202020201E8400574F52 answers 70 char KGROUP .... hex 4B47524F555020202020202000840000 answers 80 char ................ hex 00000000000000000000000000000000 answers 90 char ................ hex 00000000000000000000000000000000 answers a0 char ............. hex 00000000000000000000000000 WDTVLIVE#00: flags = 0x04 WDTVLIVE#03: flags = 0x04 WDTVLIVE#20: flags = 0x04 __MSBROWSE__#01: flags = 0x84 WORKGROUP#1d: flags = 0x04 WORKGROUP#1e: flags = 0x84 WORKGROUP#00: flags = 0x84 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied namecache_status_store: entry NBT/*#00.1D.192.168.1.109 store failed. name_status_find: name found, name WORKGROUP ip address is 192.168.1.109 internal_resolve_name: looking up WORKGROUP#1d (sitename (null)) Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied no entry for WORKGROUP#1D found. resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d> startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory resolve_hosts: not appropriate for name type <0x1d> name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d> tstream_unix_connect failed: No such file or directory nmbd not around parse_nmb: packet id = 11222 nmb packet from 192.168.1.109(35072) header: id=11222 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=WORKGROUP<1d> rr_type=32 rr_class=1 ttl=259200 answers 0 char .....m hex 0000C0A8016D Got a positive name query response from 192.168.1.109 ( 192.168.1.109 ) remove_duplicate_addrs2: looking for duplicate address/port pairs namecache_store: storing 1 address for WORKGROUP#1d: 192.168.1.109 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied internal_resolve_name: returning 1 addresses: 192.168.1.109:0 found master browser WORKGROUP, 192.168.1.109 Connecting to 192.168.1.109 at port 445 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 87040 SO_RCVBUF = 131072 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 name_status_find: looking up *#00 at 192.168.1.109 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied namecache_status_fetch: no entry for NBT/*#00.00.192.168.1.109 found. startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory tstream_unix_connect failed: No such file or directory nmbd not around parse_nmb: packet id = 15150 nmb packet from 192.168.1.109(35072) header: id=15150 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=*<00> rr_type=33 rr_class=1 ttl=0 answers 0 char .WDTVLIVE hex 07574454564C49564520202020202020 answers 10 char ...WDTVLIVE hex 000400574454564C4956452020202020 answers 20 char ...WDTVLIVE hex 2020030400574454564C495645202020 answers 30 char ....__MSBRO hex 2020202020040001025F5F4D5342524F answers 40 char WSE__....WORKGRO hex 5753455F5F02018400574F524B47524F answers 50 char UP ...WORKG hex 55502020202020201D0400574F524B47 answers 60 char ROUP ...WOR hex 524F55502020202020201E8400574F52 answers 70 char KGROUP .... hex 4B47524F555020202020202000840000 answers 80 char ................ hex 00000000000000000000000000000000 answers 90 char ................ hex 00000000000000000000000000000000 answers a0 char ............. hex 00000000000000000000000000 WDTVLIVE#00: flags = 0x04 WDTVLIVE#03: flags = 0x04 WDTVLIVE#20: flags = 0x04 __MSBROWSE__#01: flags = 0x84 WORKGROUP#1d: flags = 0x04 WORKGROUP#1e: flags = 0x84 WORKGROUP#00: flags = 0x84 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied namecache_status_store: entry NBT/*#00.00.192.168.1.109 store failed. name_status_find: name found, name WDTVLIVE ip address is 192.168.1.109 Connecting to 192.168.1.109 at port 445 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 87040 SO_RCVBUF = 131072 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 org.kde.dolphin: could not find entry for charset= "Other encoding ()" parsed path: fname='smb://wdtvlive.local/' server='wdtvlive.local' share='' path='' options='' SMBC_check_options(): server='wdtvlive.local' share='' path='' options='' Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up wdtvlive.local#1d (sitename (null)) Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied no entry for wdtvlive.local#1D found. resolve_hosts: not appropriate for name type <0x1d> Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up wdtvlive.local#1b (sitename (null)) Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied no entry for wdtvlive.local#1B found. resolve_hosts: not appropriate for name type <0x1b> Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up wdtvlive.local#20 (sitename (null)) Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied no entry for wdtvlive.local#20 found. resolve_hosts: Attempting host lookup for name wdtvlive.local<0x20> remove_duplicate_addrs2: looking for duplicate address/port pairs namecache_store: storing 1 address for wdtvlive.local#20: 192.168.1.109 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied internal_resolve_name: returning 1 addresses: 192.168.1.109:0 SMBC_server: server_n=[wdtvlive.local] server=[wdtvlive.local] -> server_n=[wdtvlive.local] server=[wdtvlive.local] Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up wdtvlive.local#20 (sitename (null)) Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied no entry for wdtvlive.local#20 found. resolve_hosts: Attempting host lookup for name wdtvlive.local<0x20> remove_duplicate_addrs2: looking for duplicate address/port pairs namecache_store: storing 1 address for wdtvlive.local#20: 192.168.1.109 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied internal_resolve_name: returning 1 addresses: 192.168.1.109:0 Connecting to 192.168.1.109 at port 139 INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 auth_audit: 10 auth_json_audit: 10 kerberos: 10 drs_repl: 10 smb2: 10 smb2_credits: 10 dsdb_audit: 10 dsdb_json_audit: 10 dsdb_password_audit: 10 dsdb_password_json_audit: 10 dsdb_transaction_audit: 10 dsdb_transaction_json_audit: 10 dsdb_group_audit: 10 dsdb_group_json_audit: 10 Using netbios name NEON. Using workgroup WORKGROUP. smbc_stat(smb://wdtvlive.local/) SMBC_server: server_n=[wdtvlive.local] server=[wdtvlive.local] -> server_n=[wdtvlive.local] server=[wdtvlive.local] Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up wdtvlive.local#20 (sitename (null)) Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied no entry for wdtvlive.local#20 found. resolve_hosts: Attempting host lookup for name wdtvlive.local<0x20> Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 87040 SO_RCVBUF = 131072 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 remove_duplicate_addrs2: looking for duplicate address/port pairs namecache_store: storing 1 address for wdtvlive.local#20: 192.168.1.109 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied internal_resolve_name: returning 1 addresses: 192.168.1.109:0 Connecting to 192.168.1.109 at port 139 map_errno_from_nt_status: 32 bit codes: code=c000020c Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 87040 SO_RCVBUF = 131072 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 map_errno_from_nt_status: 32 bit codes: code=c000020c smbc_stat(smb://wdtvlive.local/) SMBC_server: server_n=[wdtvlive.local] server=[wdtvlive.local] -> server_n=[wdtvlive.local] server=[wdtvlive.local] Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up wdtvlive.local#20 (sitename (null)) Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied no entry for wdtvlive.local#20 found. resolve_hosts: Attempting host lookup for name wdtvlive.local<0x20> remove_duplicate_addrs2: looking for duplicate address/port pairs namecache_store: storing 1 address for wdtvlive.local#20: 192.168.1.109 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied internal_resolve_name: returning 1 addresses: 192.168.1.109:0 Connecting to 192.168.1.109 at port 139 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 87040 SO_RCVBUF = 131072 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 map_errno_from_nt_status: 32 bit codes: code=c000020c smbc_stat(smb://wdtvlive.local/) SMBC_server: server_n=[wdtvlive.local] server=[wdtvlive.local] -> server_n=[wdtvlive.local] server=[wdtvlive.local] Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied sitename_fetch: No stored sitename for realm '' internal_resolve_name: looking up wdtvlive.local#20 (sitename (null)) Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied no entry for wdtvlive.local#20 found. resolve_hosts: Attempting host lookup for name wdtvlive.local<0x20> remove_duplicate_addrs2: looking for duplicate address/port pairs namecache_store: storing 1 address for wdtvlive.local#20: 192.168.1.109 Opening cache file at /run/samba/gencache.tdb tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencache.tdb: Permission denied Opening /run/samba/gencache.tdb failed: Permission denied internal_resolve_name: returning 1 addresses: 192.168.1.109:0 Connecting to 192.168.1.109 at port 139 Socket options: SO_KEEPALIVE = 0 SO_REUSEADDR = 0 SO_BROADCAST = 0 TCP_NODELAY = 1 TCP_KEEPCNT = 9 TCP_KEEPIDLE = 7200 TCP_KEEPINTVL = 75 IPTOS_LOWDELAY = 0 IPTOS_THROUGHPUT = 0 SO_REUSEPORT = 0 SO_SNDBUF = 87040 SO_RCVBUF = 131072 SO_SNDLOWAT = 1 SO_RCVLOWAT = 1 SO_SNDTIMEO = 0 SO_RCVTIMEO = 0 TCP_QUICKACK = 1 TCP_DEFER_ACCEPT = 0 map_errno_from_nt_status: 32 bit codes: code=c000020c
neon@neon:~$ nmap 192.168.1.109 Starting Nmap 7.80 ( https://nmap.org ) at 2020-12-13 17:14 UTC Nmap scan report for WDTVLive (192.168.1.109) Host is up (0.0041s latency). Not shown: 993 closed ports PORT STATE SERVICE 80/tcp open http 139/tcp open netbios-ssn 443/tcp open https 445/tcp open microsoft-ds 548/tcp open afp 9000/tcp open cslistener 30000/tcp open ndmps Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds
(In reply to Peter Eszlari from comment #10) > neon@neon:~$ nmap 192.168.1.109 > Starting Nmap 7.80 ( https://nmap.org ) at 2020-12-13 17:14 UTC > Nmap scan report for WDTVLive (192.168.1.109) > Host is up (0.0041s latency). > Not shown: 993 closed ports > PORT STATE SERVICE > 80/tcp open http > 139/tcp open netbios-ssn > 443/tcp open https > 445/tcp open microsoft-ds > 548/tcp open afp > 9000/tcp open cslistener > 30000/tcp open ndmps > > Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds Peter this issue is in relation to SMB shares, not AFP. I'm resolving this, please create a new bug report for the AFP issue.
(In reply to Justin Zobel from comment #11) > Peter this issue is in relation to SMB shares, not AFP. I'm resolving this, > please create a new bug report for the AFP issue. AFP = https://en.wikipedia.org/wiki/Apple_Filing_Protocol ???
(In reply to Peter Eszlari from comment #12) > (In reply to Justin Zobel from comment #11) > > Peter this issue is in relation to SMB shares, not AFP. I'm resolving this, > > please create a new bug report for the AFP issue. > > AFP = https://en.wikipedia.org/wiki/Apple_Filing_Protocol ??? Yes that one. You said you were accessing in Thunar using "afp://anonymous@WDTVLive.local/DIR/" which isn't SMB so it's unrelated to this bug. It's an issue with browsing AFP shares.
(In reply to Justin Zobel from comment #13) > Yes that one. You said you were accessing in Thunar using > "afp://anonymous@WDTVLive.local/DIR/" which isn't SMB so it's unrelated to > this bug. It's an issue with browsing AFP shares. AFAIK when I used nautilus, it said "samba share" or something like this (no access to device at the moment, I have to check that again). And doesn't "445/tcp open microsoft-ds" mean, there's a samba share?
(In reply to Peter Eszlari from comment #14) > (In reply to Justin Zobel from comment #13) > > Yes that one. You said you were accessing in Thunar using > > "afp://anonymous@WDTVLive.local/DIR/" which isn't SMB so it's unrelated to > > this bug. It's an issue with browsing AFP shares. > > AFAIK when I used nautilus, it said "samba share" or something like this (no > access to device at the moment, I have to check that again). > > And doesn't "445/tcp open microsoft-ds" mean, there's a samba share? Generally yes but the AFP port is also open: 548/tcp open afp
More to the point the debug output is incomplete for some reason so it's not exactly clear what is going wrong anyway ;) Even so I'm very confident in saying that whatever the issue is it's not got anything to do with KIO. The message you get from thunar together with the fact that it then uses afp tells me that thunar also finds smb broken and then decides to fall back to afp. Specifically your log seems to have some code=c000020c mixed in which I believe should be STATUS_CONNECTION_DISCONNECTED so the client lost connection for whatever reason, that'd be a problem with either the configuration or the version of libsmbclient combined with the specific server. In any event whatever your problem is has nothing to do with this bug. Patrick's problem was a name resolution problem while your log clearly shows name resolution working "internal_resolve_name: returning 1 addresses: 192.168.1.109:0 ".
> The message you get from thunar together with the fact that it then uses afp > tells me that thunar also finds smb broken and then decides to fall back to afp. Sounds quite likely. Which means that there is some kind of bug there, even if that bug is that we should display a sensible error message to the user or fall back to SFP (lol). Either way, it's unrelated to Patrick's issue.
Created attachment 134233 [details] dolphin running under Kubuntu 18.04
I also tried it with Fedora 33 and Manjaro 20.2 -> same result. But it does work under Windows10 (identifies as "Windows NT 4.9 Server", which AFAIK means "samba") and it works under Kubuntu 18.04, so this seems to be a regression in samba/smbclient. I attached debug output from 18.04 working correctly.
OK, found the reason: samba 4.11 disabled smb1 by default: https://wiki.samba.org/index.php/Samba_4.11_Features_added/changed#SMB1_is_disabled_by_default Changing "client min protocol" in /etc/samba/smb.conf to "NT1" fixed it.
Yeah older samba versions were considered compromised so samba decided to raise the minimum version. It caught a lot of people out. But you should also see if you can raise the version of your server(s) to ensure they are secure.
(In reply to Justin Zobel from comment #21) > But you should also see if you can raise the version of your server(s) > to ensure they are secure. This is unfortunately not possible, since there seems to be no new firmware updates available for this device (Western Digital WDTV Live Media Player).
Why is this mark as resolved? I for one i am getting it on opensuse tumbleweed even though it used to work correctly. I've done the necessary changes on the Windows side, without downgrading to smb1 and set up wsdd on tumbleweed. I can see and browse my shares in tumbleweed from Windows. I cannot see or browse the shares in windows from tumbleweed using dolphin. The host name of the Windows machine does show up. When trying to open it i get a prompt for a username and password that never connects yet i can open the shares directly with smb://host/share So if this was a configuration issue on Windows side smb4k would have the same problem as dolphin and that is not the case.