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

[defect]: Can't set timezone properly using official docker image #5314

Closed
masscream opened this issue Apr 15, 2024 · 2 comments
Closed

[defect]: Can't set timezone properly using official docker image #5314

masscream opened this issue Apr 15, 2024 · 2 comments
Labels
defect category: a defect or misbehaviour

Comments

@masscream
Copy link

What type of defect/bug is this?

Unexpected behaviour (obvious or verified by project member)

How can the issue be reproduced?

Simply run the server and make some auth attempts, it does not matter if successful or not, more that matters is, if it prints the attempt time into the log.
Check the log, the event times are not correct (depending on your timezone, mine is Europe/Prague).

Tried:

  • docker variable -e TZ=Europe/Prague
  • mounting /etc/timezone to the container with the correct TZ

both did not work

The whole container as I use it.

docker run \
  -d \
  -t \
  --net bridge \
  --ip 10.0.10.9 \
  --name freeradius \
  --restart always \
  -p 1812-1813:1812-1813/udp \
  -v /media/AppData/volumes/freeradius_volume/_data/etc-freeradius:/etc/freeradius \
  -v /media/AppData/volumes/freeradius_volume/_data/var-log-freeradius:/var/log/freeradius \
  -v /media/AppData/Temp:/tmp \
freeradius/freeradius-server

Log output from the FreeRADIUS daemon

root@docker:~# date
Mon Apr 15 08:41:06 AM CEST 2024
root@docker:~# docker ps | grep freeradius
e942725c2c60   freeradius/freeradius-server             "/docker-entrypoint.…"   9 minutes ago   Up 9 minutes           0.0.0.0:1812-1813->1812-1813/udp, :::1812-1813->1812-1813/udp                                                                                                                                                                                                                                  freeradius
root@docker:~# docker exec -it e942725c2c60 bash
root@e942725c2c60:/# date
Mon Apr 15 06:41:31 UTC 2024
root@e942725c2c60:/# cat /etc/timezone
Europe/Prague

Relevant log output from client utilities

No response

Backtrace from LLDB or GDB

No response

@masscream masscream added the defect category: a defect or misbehaviour label Apr 15, 2024
@masscream
Copy link
Author

masscream commented Apr 16, 2024

Yes, this is the first thing I tried, by setting the -e TZ=Europe/Prague. Even with this variable, the time is still in UTC. For other containers, this works smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect category: a defect or misbehaviour
Projects
None yet
Development

No branches or pull requests

2 participants