Keepass2 and ubuntu 12.10 not working

  • mogliii

    mogliii - 2012-11-09

    I cannot create new, or open existing kdbx (v2) database files with Ubuntu 12.10 (2.19 from repository and 2.20 as portable)

    When opening existing ones, I get the error message documented here:

    When creating a new database file without key, only password, keepass2 just disappears, and the following trace is given to stdout.

    This worked in Ubuntu 12.04.

    Is this a mono or a keepass2 issue?

    $ keepass2
    Error loading UIA bridge (UiaDbusBridge, Version=, Culture=neutral, PublicKeyToken=f4ceacb585d99812): System.IO.FileNotFoundException: Could not load file or assembly 'UiaDbusBridge, Version=, Culture=neutral, PublicKeyToken=f4ceacb585d99812' or one of its dependencies. The system cannot find the file specified.
    File name: 'UiaDbusBridge, Version=, Culture=neutral, PublicKeyToken=f4ceacb585d99812'
      at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000] in <filename unknown>:0 
      at System.AppDomain.Load (System.String assemblyString) [0x00000] in <filename unknown>:0 
      at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string)
      at System.Reflection.Assembly.Load (System.String assemblyString) [0x00000] in <filename unknown>:0 
      at System.Windows.Automation.Provider.BridgeManager.GetAutomationBridge (System.String bridgeAssemblyName) [0x00000] in <filename unknown>:0 
    System.ArgumentNullException: Argument cannot be null.
    Parameter name: pwKey
      at KeePassLib.PwDatabase.New (KeePassLib.Serialization.IOConnectionInfo ioConnection, KeePassLib.Keys.CompositeKey pwKey) [0x00000] in <filename unknown>:0 
      at KeePass.Forms.MainForm.OnFileNew (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
      at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
      at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.ToolStripButton.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.ToolStripItem.HandleClick (Int32 mouse_clicks, System.EventArgs e) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, ToolStripItemEventType met) [0x00000] in <filename unknown>:0 
      at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:FireEvent (System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
      at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
      at KeePass.UI.CustomToolStripEx.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
      at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
  • Julian Taylor

    Julian Taylor - 2012-11-09

    you could try resetting your configuration, maybe there is an issue with it.
    in a terminal do:
    mv ~/.config/KeePass/KeePass.config.xml ~/.config/KeePass/KeePass.config.xml.bak
    and start keepass again

    if that fixes the issue can you please file a bug and attach the configuration file (after checking if there is something confidential in there)

  • mogliii

    mogliii - 2012-11-10

    Moving the config file did not solve the problem.

    Also, the trace before  is shown before I create or open a kdbx file.

  • Julian Taylor

    Julian Taylor - 2012-11-11

    do you have any uia libraries installed? those tend to be broken
    if installed remove libmono-uia-winforms1.0-cil and libmono-uia-atkbridge1.0-cil

    • Krotow

      Krotow - 2013-11-19

      I can confirm this. Same problem on Linux Mint 15 / 64bit. KeePass 2.21 and 2.24, Mono (Debian Always crashed on master password enter (i use numbers and diacritic symbols in password too), until i removed Mono UIA libraries. So if one has same UIA/WinForms related problem, run

      sudo apt-get remove libmono-uia-winforms1.0-cil libmono-uia-atkbridge1.0-cil

      in console and enjoy KeePass 2.x on Linux :)

      Will hope for UIA fix from Mono Team soon.

      Last edit: Krotow 2013-11-19

Log in to post a comment.