Kyrodan / KeeAnywhere

A cloud storage provider plugin for KeePass Password Safe
https://keeanywhere.de
MIT License
707 stars 87 forks source link

[v2.0.0Beta] Issues and interim builds #252

Closed AndersKlinting closed 3 years ago

AndersKlinting commented 3 years ago

Trying to connect to recent dropbox fil: image

Trying to add a DropBox connection throws an exception

image

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.Exception: No unused port found! at KeeAnywhere.OAuth2.OidcSystemBrowser..ctor(Int32 minPort, Int32 maxPort) at KeeAnywhere.StorageProviders.Dropbox.DropboxStorageConfigurator.d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KeeAnywhere.StorageProviders.StorageService.d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KeeAnywhere.UIService.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KeeAnywhere.Forms.SettingsForm.d__a.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.7.3740.0 built by: NET472REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass Assembly Version: 2.47.0.21109 Win32 Version: 2.47.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe

System Assembly Version: 4.0.0.0 Win32 Version: 4.7.3640.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.3690.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.3630.0 built by: NET472REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.3760.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

KeeAnywhere Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/Users/ank/AppData/Local/KeePass/PluginCache/yGc0tcQbfoxooujoUC0L/KeeAnywhere.dll

System.Net.Http.Primitives Assembly Version: 4.2.29.0 Win32 Version: 4.2.29.0 CodeBase: file:///C:/Users/ank/AppData/Local/KeePass/PluginCache/yGc0tcQbfoxooujoUC0L/System.Net.Http.Primitives.DLL

Newtonsoft.Json Assembly Version: 12.0.0.0 Win32 Version: 12.0.3.23909 CodeBase: file:///C:/Users/ank/AppData/Local/KeePass/PluginCache/yGc0tcQbfoxooujoUC0L/Newtonsoft.Json.DLL

Microsoft.Graph.Core Assembly Version: 1.19.0.0 Win32 Version: 1.19.0.0 CodeBase: file:///C:/Users/ank/AppData/Local/KeePass/PluginCache/yGc0tcQbfoxooujoUC0L/Microsoft.Graph.Core.DLL

System.Numerics Assembly Version: 4.0.0.0 Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.7.3620.0 built by: NET472REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.7.3710.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.Security Assembly Version: 4.0.0.0 Win32 Version: 4.7.3701.0 built by: NET472REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

KeePass.XmlSerializers Assembly Version: 2.47.0.21109 Win32 Version: 2.47.0.21109 CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL

Dropbox.Api Assembly Version: 6.0.1.0 Win32 Version: 6.0.1.0 CodeBase: file:///C:/Users/ank/AppData/Local/KeePass/PluginCache/yGc0tcQbfoxooujoUC0L/Dropbox.Api.DLL

netstandard Assembly Version: 2.0.0.0 Win32 Version: 4.7.3190.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll

IdentityModel.OidcClient Assembly Version: 3.0.0.0 Win32 Version: 3.1.2.0 CodeBase: file:///C:/Users/ank/AppData/Local/KeePass/PluginCache/yGc0tcQbfoxooujoUC0L/IdentityModel.OidcClient.DLL

System.Net.Http Assembly Version: 4.0.0.0 Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

Kyrodan commented 3 years ago

Closing this here because let's disuss this here: #237

Kyrodan commented 3 years ago

Sorry let's reopen it and call thi sthread "2.0.0 Beta Issues"

Kyrodan commented 3 years ago

New Build

Sumup of fixes so far:

Known issues:

This is beta software and may not work as expected KeeAnywhere-2.0.0-unstable-20210212.plgx.zip

Please try this build and report back.

Kyrodan commented 3 years ago

@AndersKlinting

Trying to connect to recent dropbox fil: image

Trying to add a DropBox connection throws an exception

image

Is it the same with Google Drive? Can you post the output of netstat -a -n -p TCP?

AndersKlinting commented 3 years ago

Thanks for looking into this.

I just tried the latest beta - with same sad results: "No unused port found!"

the output of "netstat -a -n -p TCP": netstat.txt

Kyrodan commented 3 years ago

@AndersKlinting Hmm, could you repeat the netstat command but without -p TCP? Only links with Port 50001 to 50005 matter.

AndersKlinting commented 3 years ago

@Kyrodan the result of

netstat -a -n | findstr ":5000"

is empty

vossim commented 3 years ago

Hi, tried the pre-built binary, but can't get it to work under linux, it complains about "A newer .NET Framework is required.". I couldn't find the source for these builds, so wasn't able to do a quick build with some updated values.

Kyrodan commented 3 years ago

@vossim Okay, the source is in master branch of this repository. It can quickly be build using the build.cmd (but without proper API-Keys). If you have any improvements, just let me know or create a PR.

I recently changed a small thing for PLGX creation, but am not sure whether this helps. .Net 4.6.1 is a minimum requirement now - don't know how it looks like with mono :-/

Attached is a newly created full package containing PLGX and DLL-Distribution. dist-20210215.zip

AndersKlinting commented 3 years ago

Additional info... hopefully it can be of use. I tried debugging with dnSpy and it appears that

The process cannot access the file because it is being used by another process at System.Net.HttpListener.AddAllPrefixes() at System.Net.HttpListener.Start()"

is this a problem of the port - or is the information written to a file which is locked?

Kyrodan commented 3 years ago

Hey @AndersKlinting

it is not a file that is locked. It's just the System that does not allow you to open a port on your localhost (or to be more precise: on 127.0.0.1). That's why I asked several times, whether this also happens also with Google Drive (because the range is much larger there). You just need to add a Google Drive account - it's not important, whether you really have a Google Drive account or not. If Google Drive will also fail, then we have another problem: why can ports 50001 - 500005 (or another range) not be opened at your computer? So please try Google Drive and wait until success or timeout: it may probe several thousand ports.

If Goolge Drive succeeds: Can you just try to use a port nearer at 50000 (+/- 20) within the mentioned code? Or should I switch to another range? Or to e.g. 3 ranges in different "regions"?

I can extend the range (as written in another reply somewhere), but I have to register each single port at Dropbox API-Console. So I can do it for 20, 30 ports or something like that, but not for e.g. 5000 :-/

Dropbox has very limited "interpretation" of the OAuth2-Standard for Desktop Apps. They inofficially support OpenID Connect, but do not support the required nonce-field in Auth URL. So Dropbox can not use a standard-library for OAuth, so I have to do experiments here.

Regards, Daniel

AndersKlinting commented 3 years ago

Google Drive works - image

And OneDrive also works for me.

But if I narrow the port interval to 50001-50005 for Google Drive (as it is for for DropBox), I get the "No modules found!" exception.

So maybe a larger range or alternative ranges could be helpful (to me at least :) )

gringette commented 3 years ago

same for me. Google Drive and OneDrive is working fine, but DropBox do not find any unused ports

Kyrodan commented 3 years ago

@gringette @AndersKlinting okay, I will add some other ports shortly and let you test it.

Kyrodan commented 3 years ago

New Build

Fixes since last build:

Known issues:

This is beta software and may not work as expected dist-20210217.zip (Contains PLGX and DLL Builds - prefer using PLGX)

Please try this build and report back. @gringette @AndersKlinting @JTK66

gringette commented 3 years ago

I can confirm that this version now is working very well with Dropbox. I was able to create the account in the KeeAnywhere Settings and "save to cloud drive" was working, too.

Thank you so much for your work! Gringette

JTK66 commented 3 years ago

Unfortunately I keep getting the "no unused port found" error, both with dropbox and google drive...

Il giorno mer 17 feb 2021 alle ore 09:50 Daniel Bölts < notifications@github.com> ha scritto:

New Build

Fixes since last build:

  • Dropbox: Authorization using external browser
    • added more ranges for local ports: 49306-49315, 49996-50005, 63900-63910
  • HiDrive: start reimplemting account-authorization => WIP currently broken!

Known issues:

  • Now proxy support

This is beta software and may not work as expected dist-20210217.zip https://github.com/Kyrodan/KeeAnywhere/files/5994398/dist-20210217.zip (Contains PLGX and DLL Builds - prefer using PLGX)

Please try this build and report back. @gringette https://github.com/gringette @AndersKlinting https://github.com/AndersKlinting @JTK66 https://github.com/JTK66

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Kyrodan/KeeAnywhere/issues/252#issuecomment-780402692, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASYO3K2W2OSEWTDINT7PDODS7N7ONANCNFSM4XQUQZ3Q .

Kyrodan commented 3 years ago

@JTK66 if even Google Drive not works, then I think I can't do anything for you. It seems that something is preventing to let KeeAnywhere open a port. Maybe a firewall, another security tool or something like that - Windows Firewall does not block it by default.

mark3206 commented 3 years ago

Hi, installed dist-20210217.zip yesterday, successfully tested it with Dropbox, but couldn't get a connection going to OneDrive. I suspect because I typed an incorrect password. Anyway, today I tried to do a "Check" of the OneDrive entry created yesterday and it took me to the mslogin screen and I entered the password. I think the browser gave me a success message but the plugin did not. (unfortunatly I wasn't paying enough attention!) I then "Remove"d the OneDrive entry and and went through the "Add" option again and this time, success. I suppose I could have repeatedly type the wrong password for the OneDrive account, but I wonder if its possible the new code is not updating a bad password correctly?

Kyrodan commented 3 years ago

@mark3206 Improving user handling is still on my list, yes. Maybe I can do something in this direction. Currently there is no good error handling.

mark3206 commented 3 years ago

Thanks for the response.

Kyrodan commented 3 years ago

New Build

Fixes since last build:

Known issues:

This is beta software and may not work as expected dist-20210218.zip (Contains PLGX and DLL Builds - prefer using PLGX)

Please try this build and report back. @spacedee

AndersKlinting commented 3 years ago

thank you - just tried the plugin from dist-20210218.zip and it works fine with Dropbox

sillo01 commented 3 years ago

Upgraded to KeePass 2.47. Dropbox sync is working good. Thanks for all your work.

sillo01 commented 3 years ago

@Kyrodan you may want to take a look at the Oauth PKCE extension, Dropbox supports it. May be you already did. It requires the users to enter an authorization code into the client. It might simplify your code base. In the other hand, your implementation is really cool, it´s really simple for the end user. I did some experimenting in python.

Kyrodan commented 3 years ago

@sillo01 I already use PKCE. From my understanding it is mainly to improve security and not to just let the user copy a "code" and paste it in the apps "code window". What you describe is mainly an implementation for limited clients, like TV's and is not supported by all providers.

Nevertheless: I think I have a good working solution.

tisaire commented 3 years ago

Hi, I've tested dist-20210218.zip and works for me with google drive, thanks a lot!

Kyrodan commented 3 years ago

New Build

Fixes since last build:

Known issues:

This is beta software and may not work as expected dist-20210219.zip

(Contains PLGX and DLL Builds - prefer using PLGX)

Please try this build and report back.

JTK66 commented 3 years ago

Hi, I went back to v.1.5.1.0 and was able to add my one drive account and migrated to it my db, so at last I'm back to normality. Before reverting to this, I tried other cloud storages supported by the plug in but some were not free, some have closed down the subscriptions and others were not supported by keepass android version. Even one drive was giving me the same damned "no unused ports found" issue. I'm not using other security tools but avast antivirus free and windows firewall, so I have no idea of what is suddenly preventing KeeAnywhere from opening a port... I was wondering if you plan to implement Mega cloud support in the next future, in case I start having problems with one drive I could resort to my account there. Thanks a lot for trying to help me, I really appreciate it.

Il giorno gio 18 feb 2021 alle ore 10:00 Daniel Bölts < notifications@github.com> ha scritto:

@JTK66 https://github.com/JTK66 if even Google Drive not works, then I think I can't do anything for you. It seems that something is preventing to let KeeAnywhere open a port. Maybe a firewall, another security tool or something like that - Windows Firewall does not block it by default.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Kyrodan/KeeAnywhere/issues/252#issuecomment-781191862, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASYO3K5GDIKGJGBMTA25POLS7TJMRANCNFSM4XQUQZ3Q .

dae3 commented 3 years ago

@Kyrodan I had the "No ports found!" problem until dist-202010219.

The cause was Windows "administered port exclusions". See https://stackoverflow.com/questions/58216537/what-is-administered-port-exclusions-in-windows-10 for a good summary.

The excluded ports are not in use so they don't appear to netstat and similar tools.

On my system:

⚡  C:\..\system32  netsh int ip show excludedportrange tcp

Protocol tcp Port Exclusion Ranges

Start Port    End Port
----------    --------
      5357        5357
     49726       49825
     49826       49925
     50000       50059     *
     50060       50159
     50160       50259
     50260       50359
     50360       50459
     50460       50559
     50781       50880
     50881       50980
     50981       51080
     51081       51180
     51181       51280
     51281       51380
     51381       51480
     51574       51673
     51674       51773

* - Administered port exclusions.
 ⚡  C:\..\system32  netstat -at

Active Connections

  Proto  Local Address          Foreign Address        State           Offload State

  TCP    0.0.0.0:135            DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:445            DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:2179           DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:5040           DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:5357           DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:7680           DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:17500          DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:49664          DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:49665          DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:49666          DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:49667          DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:49668          DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    0.0.0.0:49669          DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    127.0.0.1:843          DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    127.0.0.1:3352         DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    127.0.0.1:5965         DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    127.0.0.1:17600        DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    127.0.0.1:49306        DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    127.0.0.1:51528        kubernetes:51529       ESTABLISHED     InHost
  TCP    127.0.0.1:51529        kubernetes:51528       ESTABLISHED     InHost
  TCP    127.0.0.1:51538        kubernetes:51539       ESTABLISHED     InHost
  TCP    127.0.0.1:51539        kubernetes:51538       ESTABLISHED     InHost
  TCP    127.0.0.1:51540        DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    172.17.94.65:139       DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    172.17.134.1:139       DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    192.168.56.1:139       DESKTOP-URRFT3N:0      LISTENING       InHost
  TCP    192.168.142.115:139    DESKTOP-URRFT3N:0      LISTENING       InHost

Having Hyper-V installed seems to create a large block of excluded ports, and they can change after reboots.

vossim commented 3 years ago

At the moment still issues with versions in Linux, both with the plgx and the DLL.

kwehrle commented 3 years ago

Hi @Kyrodan,

tested the 2.0 beta (dist-20210219.zip) with KeePass 2.47 (64-bit, german) and IONOS/Profitbricks S3-compatible service - it works like a charm! :)

Great work and thank you!

Knut

wanderleihuttel commented 3 years ago

Hello guys.

I'm running KeeAnyWhere-1.6.0 with my password in Dropbox fine. I've tried to test KeeAnyWhee-2.0.0-beta (20210219) and I can't connect with the same account.

Only works If I use 1.6.0 version.

The error that I've receiveid is below:

[Window Title]
KeePass

[Content]
dropbox:///MyAccount/KeepPassSafe/KeepPassSafe.kdbx (mypersonaladdress@gmail.com)

Failed to load specified file!

Exception during a request from the WebClient.

[OK] [Choose different server credentials]

I've checked if my >NET Framework was up to date and is ok. I followed this post from microsoft, and returned true. https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

(Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").Release -ge 394802

I wanted to try Wasabi cause @Kyrodan asked to me for testing.

Kyrodan commented 3 years ago

@wanderleihuttel Please delete your Dropbox Account in KeeAnywhere Settings and re-create it from scratch with v2.0.0-beta

wanderleihuttel commented 3 years ago

Hello @Kyrodan! I've re-create the settings as you mentioned above and it worked even S3 Wasabi account.

JTK66 commented 3 years ago

Hi, I'm currently using release 20210219 and to my surprise now I do not get anymore the "no unused ports found" error, but I'm back to the previous "unsupported / insecure browser" problem. I'm using my onedrive account but cannot add google drive or dropbox. My netframeworks are updated and I didn't change a thing in my pc, nevertheless the situation has changed. Do you have any suggestions?

Kyrodan commented 3 years ago

@JTK66

Hi, I'm currently using release 20210219 and to my surprise now I do not get anymore the "no unused ports found" error, but I'm back to the previous "unsupported / insecure browser" problem. I'm using my onedrive account but cannot add google drive or dropbox. My netframeworks are updated and I didn't change a thing in my pc, nevertheless the situation has changed. Do you have any suggestions?

Hmm, are you sure you were using the 2.0-unstable? The error you mention is not possible with that release, because it uses your system browser.

JTK66 commented 3 years ago

Hi, yes, I'm sure I'm using the 2.0 unstable, as you can see in the image below: [image: immagine.png]

Nevertheless it tells me either to upgrade or change the browser when I try to add a Dropbox or Gdrive account: [image: immagine.png]

Il giorno sab 13 mar 2021 alle ore 10:36 Daniel Bölts < @.***> ha scritto:

@JTK66 https://github.com/JTK66

Hi, I'm currently using release 20210219 and to my surprise now I do not get anymore the "no unused ports found" error, but I'm back to the previous "unsupported / insecure browser" problem. I'm using my onedrive account but cannot add google drive or dropbox. My netframeworks are updated and I didn't change a thing in my pc, nevertheless the situation has changed. Do you have any suggestions?

Hmm, are you sure you were using the 2.0-unstable? The error you mention is not possible with that release, because it uses your system browser.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Kyrodan/KeeAnywhere/issues/252#issuecomment-798031986, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASYO3KZJ3M76C6FM6UJEVXLTDMW23ANCNFSM4XQUQZ3Q .

JTK66 commented 3 years ago

I forgot to tell you my o.s. is Windows 8.1 (updated) and my default browser is FF. I also tried to set Chrome as default to no avail.

Il giorno sab 13 mar 2021 alle ore 10:36 Daniel Bölts < @.***> ha scritto:

@JTK66 https://github.com/JTK66

Hi, I'm currently using release 20210219 and to my surprise now I do not get anymore the "no unused ports found" error, but I'm back to the previous "unsupported / insecure browser" problem. I'm using my onedrive account but cannot add google drive or dropbox. My netframeworks are updated and I didn't change a thing in my pc, nevertheless the situation has changed. Do you have any suggestions?

Hmm, are you sure you were using the 2.0-unstable? The error you mention is not possible with that release, because it uses your system browser.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Kyrodan/KeeAnywhere/issues/252#issuecomment-798031986, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASYO3KZJ3M76C6FM6UJEVXLTDMW23ANCNFSM4XQUQZ3Q .

Rubydesic commented 3 years ago

Will you upload the source code for the v2.0 beta to master or a new branch?

Kyrodan commented 3 years ago

It is already in branch master.

Rubydesic @.***> schrieb am Mi., 17. März 2021, 17:41:

Will you upload the source code for the v2.0 beta to master or a new branch?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Kyrodan/KeeAnywhere/issues/252#issuecomment-801235968, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACWW2SGGJCMVM7MN3VLSVDTEDLU7ANCNFSM4XQUQZ3Q .

Coasie commented 3 years ago

used dist-20210219.zip last night on 2 different Win10 PCs with KeePass 2.47 to regain dropbox access, worked fine. Thanks for the beta and keeping it updated.

TitoRifle commented 3 years ago

** image I get this error I am on the 2021029 version See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** Dropbox.Api.OAuth2Exception: invalid_request at Dropbox.Api.DropboxOAuth2Helper.d7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KeeAnywhere.StorageProviders.Dropbox.DropboxStorageConfigurator.d1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KeeAnywhere.StorageProviders.StorageService.d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KeeAnywhere.UIService.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KeeAnywhere.Forms.SettingsForm.d__a.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass Assembly Version: 2.47.0.21109 Win32 Version: 2.47.0.0 CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePass.exe

System Assembly Version: 4.0.0.0 Win32 Version: 4.8.4200.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.8.4220.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

KeeAnywhere Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/KeeAnywhere.dll

System.Net.Http.Primitives Assembly Version: 4.2.29.0 Win32 Version: 4.2.29.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/System.Net.Http.Primitives.DLL

Newtonsoft.Json Assembly Version: 12.0.0.0 Win32 Version: 12.0.3.23909 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Newtonsoft.Json.DLL

Microsoft.Graph.Core Assembly Version: 1.24.0.0 Win32 Version: 1.24.0.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Microsoft.Graph.Core.DLL

IdentityModel.OidcClient Assembly Version: 3.0.0.0 Win32 Version: 3.1.2.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/IdentityModel.OidcClient.DLL

Box.V2 Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Box.V2.DLL

Google.Apis.Core Assembly Version: 1.49.0.0 Win32 Version: 1.49.0.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Google.Apis.Core.DLL

CredentialManagement Assembly Version: 1.0.2.0 Win32 Version: 1.0.2 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/CredentialManagement.DLL

IdentityModel Assembly Version: 4.1.0.0 Win32 Version: 4.1.0.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/IdentityModel.DLL

AWSSDK.Core Assembly Version: 3.3.0.0 Win32 Version: 3.5.2.5 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/AWSSDK.Core.DLL

AWSSDK.S3 Assembly Version: 3.3.0.0 Win32 Version: 3.5.8.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/AWSSDK.S3.DLL

Microsoft.Azure.Storage.Common Assembly Version: 11.2.2.0 Win32 Version: 11.2.2.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Microsoft.Azure.Storage.Common.DLL

Microsoft.Azure.Storage.Blob Assembly Version: 11.2.2.0 Win32 Version: 11.2.2 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Microsoft.Azure.Storage.Blob.DLL

Microsoft.Azure.Storage.File Assembly Version: 11.2.2.0 Win32 Version: 11.2.2 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Microsoft.Azure.Storage.File.DLL

System.Net.Http Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

Dropbox.Api Assembly Version: 6.0.1.0 Win32 Version: 6.0.1.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Dropbox.Api.DLL

netstandard Assembly Version: 2.0.0.0 Win32 Version: 4.8.4084.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll

Google.Apis.Auth Assembly Version: 1.49.0.0 Win32 Version: 1.49.0.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Google.Apis.Auth.DLL

Google.Apis.Drive.v3 Assembly Version: 1.49.0.2201 Win32 Version: 1.49.0.2201 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Google.Apis.Drive.v3.DLL

Google.Apis Assembly Version: 1.49.0.0 Win32 Version: 1.49.0.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Google.Apis.DLL

Kyrodan.HiDrive Assembly Version: 0.2.0.0 Win32 Version: 0.2.0.43 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Kyrodan.HiDrive.DLL

Microsoft.Graph Assembly Version: 3.24.0.0 Win32 Version: 3.24.0.0 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/MgWt3Hv2KaRGnjs0fEGP/Microsoft.Graph.DLL

System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Security Assembly Version: 4.0.0.0 Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

System.Runtime Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll

System.Threading.Tasks Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Threading.Tasks/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Threading.Tasks.dll

System.Numerics Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

KeePassSync Assembly Version: 6.0.10.1 Win32 Version: 6.0.10.1 CodeBase: file:///C:/Users/Omar/AppData/Local/KeePass/PluginCache/j3xTm6oF52BZ6ob34siP/KeePassSync.dll

System.Web.Services Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

KeePass.XmlSerializers Assembly Version: 2.47.0.21109 Win32 Version: 2.47.0.21109 CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

**

TheOpalium commented 3 years ago

Hello! Long time user of KeeAnywhere here. Love your work, Kyrodan!

I'm running into a strange issue when using the new S3-compatible feature. In my case I'm connecting it to Google Cloud Storage's S3-compatible endpoint (not Google Drive) since there is no native option for that. Connecting the account, opening the database and using it all works fine. Attempting to save it, however, brings up the following cryptic errors:

KeePass_EkjT2jCkfC

I have confirmed that this is not a permissions issue - doing the same operation (overwriting the remote file) with a different program (in this case I used Cyberduck) works perfectly fine.

Any idea what this might be? And do let me know if you need any more information. Many thanks!

P.S. is native support for GCS in KeeAnywhere planned/possible? There's support for AWS and Azure, but GCP was left out... 😢

hstracker90 commented 3 years ago

I was able to restore access to my keepass file on Google Drive with the 20210217 beta version. I cannot find the 20210219 beta, is it linked anywhere? But never mind, now that it works again I can wait for the release of v2.0. Thank you very much for providing this great software and this fix.

ArtyoZ commented 3 years ago

I was able to restore access to my keepass file on Google Drive with the 20210217 beta version. I cannot find the 20210219 beta, is it linked anywhere? But never mind, now that it works again I can wait for the release of v2.0. Thank you very much for providing this great software and this fix.

Do as shown below keeanywhere

gab commented 3 years ago

I tried dist-20210219.zip - when trying to access a Dropbox or Google Drive account it crashes Keepass with the "no unused port" message others have reported. Windows 7 x64 Ultimate, firewall is Eset Internet Security and I tested with it on and off. Other software I use can freely start local web servers that I can access through my browser, and my firewall never caused a problem with that.

However, running Keepass as admin allows me to bypass the "no unused port" problem and authenticate successfully.

vovodroid commented 3 years ago

I have the same issue, but dist-20210219 works for me without run as admin, thanks.

Kyrodan commented 3 years ago

Releases v2.0.0 today.

Eugenii10 commented 3 years ago

Hello! Plugin of version 2.0.3 still requires KeePass software to be run as administrator to add GoogleDrive account on Windows 7 (version 6.1 build 7601 SP1). Otherwise "no unused port" error is shown, and no browser window is opened. I think that workaround should be described on the main page or on the installation instructions/issues pages.

Btw, thanks for the plugin!