You are not logged in.

#1 2015-04-25 22:30:14

Sanctanimus
Member
Registered: 2015-01-11
Posts: 31

[SOLVED] Keepass Issue

I'm not quite sure what this error signifies, but I can't find it when I search it online.

An exception was thrown by the type initializer for KeePassLib.PwDefs
KeePass
  at KeePass.UI.PwDocument..ctor () [0x00000] in <filename unknown>:0 
  at KeePass.UI.DocumentManagerEx..ctor () [0x00000] in <filename unknown>:0 
  at KeePass.Forms.MainForm..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) KeePass.Forms.MainForm:.ctor ()
  at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Void .ctor()


Inner:
Exception of type 'System.TimeZoneNotFoundException' was thrown.
mscorlib
  at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0 
  at System.CurrentSystemTimeZone.GetUtcOffset (DateTime time) [0x00000] in <filename unknown>:0 
  at System.TimeZone.GetLocalTimeDiff (DateTime time) [0x00000] in <filename unknown>:0 
  at System.DateTime.get_Now () [0x00000] in <filename unknown>:0 
  at KeePassLib.PwDefs..cctor () [0x00000] in <filename unknown>:0 
System.TimeZoneInfo get_Local()

Any help would be appreciated!

Last edited by Sanctanimus (2015-04-29 20:55:07)

Offline

#2 2015-04-27 20:55:12

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: [SOLVED] Keepass Issue

Does KeePass still run after this? What does "ls -l /etc/localtime" say?


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2015-04-28 21:30:29

JonnyRobbie
Member
Registered: 2015-04-28
Posts: 170

Re: [SOLVED] Keepass Issue

I can confirm. I was about to create a new thread about this when I noticed this one.

Starting KeePass throws this error dialog:

2Z0jiDg.png

That extended report is here:

An exception was thrown by the type initializer for KeePassLib.PwDefs
KeePass
  at KeePass.UI.PwDocument..ctor () [0x00000] in <filename unknown>:0 
  at KeePass.UI.DocumentManagerEx..ctor () [0x00000] in <filename unknown>:0 
  at KeePass.Forms.MainForm..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) KeePass.Forms.MainForm:.ctor ()
  at KeePass.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
Void .ctor()

Inner:
Exception of type 'System.TimeZoneNotFoundException' was thrown.
mscorlib
  at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0 
  at System.CurrentSystemTimeZone.GetUtcOffset (DateTime time) [0x00000] in <filename unknown>:0 
  at System.TimeZone.GetLocalTimeDiff (DateTime time) [0x00000] in <filename unknown>:0 
  at System.DateTime.get_Now () [0x00000] in <filename unknown>:0 
  at KeePassLib.PwDefs..cctor () [0x00000] in <filename unknown>:0 
System.TimeZoneInfo get_Local()
# uname -mrs
Linux 3.19.3-3-ARCH x86_64
$ ls -l /etc/localtime
-rw-r--r-- 1 root root 0 Apr 27 13:44 /etc/localtime

when running via konsole, it just shows a gtk warning:

$ keepass

(process:1613): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
$ sudo pacman -Q keepass
keepass 2.28-2

Last edited by JonnyRobbie (2015-04-28 21:31:55)

Offline

#4 2015-04-29 08:01:11

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: [SOLVED] Keepass Issue

/etc/localtime is supposed to be a symbolic link to a timezone in /usr/share/zoneinfo ...

Also, check your locale "echo $LANG"


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2015-04-29 09:44:35

JonnyRobbie
Member
Registered: 2015-04-28
Posts: 170

Re: [SOLVED] Keepass Issue

Thank you. It would seem that I made a mistake setting this timezone symlink during installation. Setting it anew properly seems to have worked.

Offline

#6 2015-04-29 20:54:55

Sanctanimus
Member
Registered: 2015-01-11
Posts: 31

Re: [SOLVED] Keepass Issue

After reading through the comments, I was able to see what the issue was. I had made a typo when running my initial "ln -s /usr/share/zoneinfo/Zone/SubZone /etc/localtime".

Offline

Board footer

Powered by FluxBB