[dolphin] [Bug 420188] SMB1 says connection to host is broken

2020-04-20 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=420188

--- Comment #8 from Harald Sitter  ---
Windows 7, just like SMB1 is no longer supported.
I suggest you wait for the soon to be released 20.04 version of dolphin and if
the problems with SMB3 persists file a new bug about it.

To get useful debug output you need to start dolphin like so:
`KDE_FORK_SLAVES=1 QT_LOGGING_RULES="kf5.*=true;kf5.kio.*=true;kio_smb=true"
dolphin --new-window`

Before that you could also enable libsmbclient logging by running
`kwriteconfig5 --file kioslaverc --group SMB --key DebugLevel 10`

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 420188] SMB1 says connection to host is broken

2020-04-20 Thread Jack
https://bugs.kde.org/show_bug.cgi?id=420188

--- Comment #7 from Jack  ---
I'm having another error, but this time with the SMB3 server. If I mount the
share everything is allright, but If I try to copy a file from my Manjaro
computer directly to smb://host/path/ I get the error I've attached, but not
always, and I need to manually retry every transfer (see SMB3-part1 and after
some time SMB3-part2, note the different timestamp in this step only). I would
like to point out that another PC with Windows 7 can flawlessly transfer files
with both the SMB1 and the SMB3 shares.  
Dolphin logs in stderr don't appear every time a tranfer needs a manual retry,
but this is what I get after a few manual retries:  
```
$ dolphin
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 62020, resource
id: 41943747, major code: 40 (TranslateCoords), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 8223, resource
id: 41943813, major code: 40 (TranslateCoords), minor code: 0
[...]
```

Where does this errore come from?

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 420188] SMB1 says connection to host is broken

2020-04-20 Thread Jack
https://bugs.kde.org/show_bug.cgi?id=420188

--- Comment #6 from Jack  ---
Created attachment 127709
  --> https://bugs.kde.org/attachment.cgi?id=127709=edit
SMB3-part2

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 420188] SMB1 says connection to host is broken

2020-04-20 Thread Jack
https://bugs.kde.org/show_bug.cgi?id=420188

--- Comment #5 from Jack  ---
Created attachment 127708
  --> https://bugs.kde.org/attachment.cgi?id=127708=edit
SMB3-part1

First part of the error, also I can't "retry all" if I transfer more files,
even if I can "skip all"

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 420188] SMB1 says connection to host is broken

2020-04-19 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=420188

--- Comment #4 from Harald Sitter  ---
(In reply to Nate Graham from comment #2)
> (In reply to Harald Sitter from comment #1)
> > kf5.kio.core: "Can't load /etc/samba/smb.conf - run testparm to debug it\n"
> > 
> > It seems you or your distro broke your smb config which would result in
> > defaults getting used and the samba defaults are to not speak the deprecated
> > SMB1 protocol hence you cannot talk to the router with only SMB1 support.
> Maybe we should have Dolphin show a user-comprehensible error message when
> this is the case?

Ideally yes, but, we don't know that it's an SMB1 problem. When SMB1 is
disabled libsmbc isn't allowed to talk SMB1 with the remote. A remote that only
speaks SMB1 isn't really distinguishable from a remote that has a HTTP server
run on that port for example, they both speak gibberish from libsmbc's POV.
Windows 10 has fundamentally the same problem. 
The best we could do is make the error more descriptive. Patches welcome ;) I
expect we'll also need an entire wiki page or docs page somewhere explaining
the entire mess though. Telling people that this may be because their device
only supports SMB1 isn't that useful without explaining what can be done about
it.

(In reply to Jack from comment #3)
> I have never modified or touched that file on my PC (it never existed) or
> even enabled Samba to talk with SMB1, it always worked out of the box.  

You'll want to talk to your distribution. We haven't changed anything there,
and in fact it's always been libsmbclient's defaults that decided whether or
not SMB1 is supported (it has been off by default for years now though).

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 420188] SMB1 says connection to host is broken

2020-04-17 Thread Jack
https://bugs.kde.org/show_bug.cgi?id=420188

--- Comment #3 from Jack  ---
(In reply to Harald Sitter from comment #1)
> kf5.kio.core: "Can't load /etc/samba/smb.conf - run testparm to debug it\n"
> 
> It seems you or your distro broke your smb config which would result in
> defaults getting used and the samba defaults are to not speak the deprecated
> SMB1 protocol hence you cannot talk to the router with only SMB1 support.

I have never modified or touched that file on my PC (it never existed) or even
enabled Samba to talk with SMB1, it always worked out of the box.  

I've just created a dummy file with only "server string" and "server role", now
I can't see anymore the kf5.kio errors in step 1, but the following appears in
step 2, along with the red graphical error:  

```
$ dolphin   
org.kde.dolphin: could not find entry for charset= "Other encoding ()"
```

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 420188] SMB1 says connection to host is broken

2020-04-17 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=420188

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

--- Comment #2 from Nate Graham  ---
(In reply to Harald Sitter from comment #1)
> kf5.kio.core: "Can't load /etc/samba/smb.conf - run testparm to debug it\n"
> 
> It seems you or your distro broke your smb config which would result in
> defaults getting used and the samba defaults are to not speak the deprecated
> SMB1 protocol hence you cannot talk to the router with only SMB1 support.
Maybe we should have Dolphin show a user-comprehensible error message when this
is the case?

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 420188] SMB1 says connection to host is broken

2020-04-17 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=420188

Harald Sitter  changed:

   What|Removed |Added

 CC||sit...@kde.org
 Resolution|--- |NOT A BUG
 Status|REPORTED|RESOLVED

--- Comment #1 from Harald Sitter  ---
kf5.kio.core: "Can't load /etc/samba/smb.conf - run testparm to debug it\n"

It seems you or your distro broke your smb config which would result in
defaults getting used and the samba defaults are to not speak the deprecated
SMB1 protocol hence you cannot talk to the router with only SMB1 support.

-- 
You are receiving this mail because:
You are watching all bug changes.