wa2c / cifs-documents-provider

CIFS Documents Provider
MIT License
291 stars 25 forks source link

"Connection failed" when connecting to nas with SMB2 - no apparent activity #10

Closed whitty closed 2 years ago

whitty commented 3 years ago

This may be a duplicate of #8, but I didn't want to hijack it.

I originally had SMB1 for my NAS - but was able to update it via a plug in.

I can browse the shares as anonymous (to avoid possible password mishaps)

smbclient -L //192.168.1.15 -U "%"
    Sharename       Type      Comment
    ---------       ----      -------
    IPC$            IPC       IPC Service (nas)
    video           Disk      
    photos          Disk      
    music           Disk            
SMB1 disabled -- no workgroup available

I can see on the nas's SMB logs that activity is occurring. If I do password authentication I also see that in the log (eg NT_STATUS_WRONG_PASSWORD or succeeded). So I'm convinced the NAS is responding OK.

However when I configure a connection in CIFS Documents Provider:

There's no indication of SMBD activity in the nas's SMB logs, so it feels like no connection was attempted.

I tried to download the APK you referenced, but it returns a 404.

Do I understand #8 correctly - is the current version of CIFS provided refusing to talk to SMB2 devices? Is that what the extra APK was?

wa2c commented 3 years ago

Please tell me you environment. ( MT1300 ? )

whitty commented 3 years ago

Sorry:

The smbclient calls that worked above were made on ubuntu 20.04 - to the same device, I can see the logs on the NAS show messages when smbclient browses, but I see nothing when using "Check connection" or the "Folder browser" in CIFS document provider.

Let me know if there is any more information you need.

wa2c commented 2 years ago

@whitty I released 1.4.0 beta test version on Google Play. I think this version solves the problem. Can you try this and see if it has been fixed?

whitty commented 2 years ago

No change in behaviour - is there somewhere I can get debug info to send?

wa2c commented 2 years ago

@whitty I released 1.4.0 new beta test version on Google Play. It is improved some problems.

whitty commented 2 years ago

Thanks - I installed the latest update

  1. thanks for adding the error code to the toast notification - that helped a lot - I could check connection by doing anonymous and showing I got an auth error, before
  2. I was now able to complete the connection and can use the connection in other app.

Looks good ;)