Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when trying your Container #1

Open
Magic01 opened this issue Aug 31, 2017 · 1 comment
Open

Exception when trying your Container #1

Magic01 opened this issue Aug 31, 2017 · 1 comment

Comments

@Magic01
Copy link

Magic01 commented Aug 31, 2017

Hi, found your containter in Google and tried it but when I start it, I get the following exception:

***Running /etc/my_init.d/startup.sh...

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'WGconsole.Program' threw an exception. ---> System.IO.FileNotFoundException: Could not find file "/etc/localtime"
File name: '/etc/localtime'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x7ff70795d2c0 + 0x005ed> in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) <0x7ff70795cf30 + 0x0004b> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) <0x7ff70795aa50 + 0x00034> in <filename unknown>:0
  at System.TimeZoneInfo.FindSystemTimeZoneByFileName (System.String id, System.String filepath) <0x7ff7078bbfe0 + 0x00032> in <filename unknown>:0
  at System.TimeZoneInfo.CreateLocal () <0x7ff7078ba850 + 0x00176> in <filename unknown>:0
  at System.TimeZoneInfo.get_Local () <0x7ff7078ba7c0 + 0x00025> in <filename unknown>:0
  at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc (DateTime time, System.Boolean& isAmbiguousLocalDst) <0x7ff7078bbce0 + 0x00017> in <filename unknown>:0
  at System.DateTime.get_Now () <0x7ff707764260 + 0x00046> in <filename unknown>:0
  at WGconsole.Program..cctor () <0x41430d50 + 0x00096> in <filename unknown>:0
  --- End of inner exception stack trace ---
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'WGconsole.Program' threw an exception. ---> System.IO.FileNotFoundException: Could not find file "/etc/localtime"
File name: '/etc/localtime'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x7ff70795d2c0 + 0x005ed> in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) <0x7ff70795cf30 + 0x0004b> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) <0x7ff70795aa50 + 0x00034> in <filename unknown>:0
  at System.TimeZoneInfo.FindSystemTimeZoneByFileName (System.String id, System.String filepath) <0x7ff7078bbfe0 + 0x00032> in <filename unknown>:0
  at System.TimeZoneInfo.CreateLocal () <0x7ff7078ba850 + 0x00176> in <filename unknown>:0
  at System.TimeZoneInfo.get_Local () <0x7ff7078ba7c0 + 0x00025> in <filename unknown>:0
  at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc (DateTime time, System.Boolean& isAmbiguousLocalDst) <0x7ff7078bbce0 + 0x00017> in <filename unknown>:0
  at System.DateTime.get_Now () <0x7ff707764260 + 0x00046> in <filename unknown>:0
  at WGconsole.Program..cctor () <0x41430d50 + 0x00096> in <filename unknown>:0
  --- End of inner exception stack trace ---
*** /etc/my_init.d/startup.sh failed with status 1

*** Killing all processes...
[~] #

Any idea?

@tdabasinskas
Copy link

Hi, @Magic01,

You can fix this by setting TZ environment variable with the name of a timezone (e.g. Europe/Vilnius).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants