-
Notifications
You must be signed in to change notification settings - Fork 99
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
Something is broken in TZ... #10
Comments
something like this might be required to define TZ in the entrypoint, still working on it.... #Change timzeone if set
[[ -n ${TZ} ]] && [[ -f /usr/share/zoneinfo/${TZ} ]] && [[ -w /etc/localtime ]] && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime
#use UTC if not
[[ ! -f /etc/localtime ]] && ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime -> #3 (comment) |
well, That should be ok, provided TZ was defined as env var.
|
Hey, could you post the error logs? These are my logs (therefore non-critical):
|
kms | mnPad: {b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x
kms | 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x
kms | 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}
kms |
kms | /usr/lib/python3.9/site-packages/tzlocal/unix.py:164: UserWarning: Can not find any timezone configuration, defaulting to UTC.
kms | warnings.warn('Can not find any timezone configuration, defaulting to UTC.')
kms | Wed, 13 Oct 2021 19:43:45 WARNING With count = 26, activated client could be detected as not genuine !
kms | Wed, 13 Oct 2021 19:43:45 INFO Machine Name: l2i4VortWdGJbbyReaK7tWrKq6jnr if /etc/localtime is not defined, you have these lines. the bash snipped should/could be added in the entrypoint when still running as root.( root privileges needed to change /etc/ content) PS: i'm always using a container to run py-kms. |
I will need to add this as a fix to the Helm chart |
I worked-around it in the base docker image. Please try the newest version and feel free to reopen this issue in case that didn't work. |
Well, it would be nice to have the TZ based on a ENV variable. |
I tried that, but any |
I have TZ ok (through env var)+ log for client on stdout. |
:) I'm already on the next point, no tz defined in python possibly... still investigating. thanks to the nice logs, it should be easy to pinpoint.
Originally posted by @edgd1er in #3 (comment)
The text was updated successfully, but these errors were encountered: