[GH-ISSUE #2303] The log time is incorrect due to the time zone #1144

Open
opened 2026-03-04 01:51:43 +03:00 by kerem · 0 comments
Owner

Originally created by @welyss on GitHub (Sep 4, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2303

Version of s3fs being used (s3fs --version)

Amazon Simple Storage Service File System V1.93 (commit:unknown) with OpenSSL
Copyright (C) 2010 Randy Rizun rrizun@gmail.com
License GPL2: GNU GPL version 2 https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Kernel information (uname -r)

3.10.0-1160.el7.x86_64

GNU/Linux Distribution, if applicable (cat /etc/os-release)

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

How to run s3fs, if applicable

[] [command line]
[y] /etc/fstab

dbbackup:/jq-mk-oracle /orabackup fuse.s3fs _netdev,allow_other,use_path_request_style,url=http://rgw-xxxxx.yyy.zzz,readwrite_timeout=3600,logfile=/tmp/s3fsfuse.log,dbglevel=info,multipart_size=50,stat_cache_expire=86400,max_stat_cache_size=1000000,compat_dir,streamupload,nomixupload,uid=1004,gid=1005 0 0

Details about issue

system timezone is: +0800

date "+%F %T %z"
2023-09-04 11:29:30 +0800
tailf /tmp/s3fsfuse.log

2023-09-04T03:36:40.020Z [INF] s3fs.cpp:s3fs_getattr(1026): [path=/]
2023-09-04T03:36:40.540Z [INF] s3fs.cpp:s3fs_destroy(4336): destroy
2023-09-04T03:36:48.376Z [CRT] s3fs_logger.cpp:LowSetLogLevel(239): change debug level from [CRT] to [INF]
2023-09-04T03:36:48.376Z [WAN] s3fs.cpp:my_fuse_opt_proc(5175): The streamupload option is not a formal option. Please note that it will change in the future.
2023-09-04T03:36:48.376Z [INF]     s3fs.cpp:set_mountpoint_attribute(4564): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777)
2023-09-04T03:36:48.378Z [INF] curl.cpp:InitMimeType(431): Loaded mime information from /etc/mime.types
2023-09-04T03:36:48.378Z [WAN] s3fs.cpp:main(5641): Setting max_dirty_data to -1 when nomixupload is enabled
2023-09-04T03:36:48.378Z [INF] fdcache_stat.cpp:CheckCacheFileStatTopDir(78): The path to cache top dir is empty, thus not need to check permission.
...

log time in s3fs is 8 hours slow, perhaps, s3fs_logger.cpp -> GetCurrentTime -> gettimeofday function 's timezone arg is not passed?

Originally created by @welyss on GitHub (Sep 4, 2023). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2303 #### Version of s3fs being used (`s3fs --version`) Amazon Simple Storage Service File System V1.93 (commit:unknown) with OpenSSL Copyright (C) 2010 Randy Rizun <rrizun@gmail.com> License GPL2: GNU GPL version 2 <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. #### Kernel information (`uname -r`) 3.10.0-1160.el7.x86_64 #### GNU/Linux Distribution, if applicable (`cat /etc/os-release`) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" #### How to run s3fs, if applicable <!-- Describe the s3fs "command line" or "/etc/fstab" entry used. --> [] [command line] [y] /etc/fstab ``` dbbackup:/jq-mk-oracle /orabackup fuse.s3fs _netdev,allow_other,use_path_request_style,url=http://rgw-xxxxx.yyy.zzz,readwrite_timeout=3600,logfile=/tmp/s3fsfuse.log,dbglevel=info,multipart_size=50,stat_cache_expire=86400,max_stat_cache_size=1000000,compat_dir,streamupload,nomixupload,uid=1004,gid=1005 0 0 ``` ### Details about issue system timezone is: +0800 ``` date "+%F %T %z" 2023-09-04 11:29:30 +0800 ``` ``` tailf /tmp/s3fsfuse.log 2023-09-04T03:36:40.020Z [INF] s3fs.cpp:s3fs_getattr(1026): [path=/] 2023-09-04T03:36:40.540Z [INF] s3fs.cpp:s3fs_destroy(4336): destroy 2023-09-04T03:36:48.376Z [CRT] s3fs_logger.cpp:LowSetLogLevel(239): change debug level from [CRT] to [INF] 2023-09-04T03:36:48.376Z [WAN] s3fs.cpp:my_fuse_opt_proc(5175): The streamupload option is not a formal option. Please note that it will change in the future. 2023-09-04T03:36:48.376Z [INF] s3fs.cpp:set_mountpoint_attribute(4564): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777) 2023-09-04T03:36:48.378Z [INF] curl.cpp:InitMimeType(431): Loaded mime information from /etc/mime.types 2023-09-04T03:36:48.378Z [WAN] s3fs.cpp:main(5641): Setting max_dirty_data to -1 when nomixupload is enabled 2023-09-04T03:36:48.378Z [INF] fdcache_stat.cpp:CheckCacheFileStatTopDir(78): The path to cache top dir is empty, thus not need to check permission. ... ``` log time in s3fs is 8 hours slow, perhaps, ***s3fs_logger.cpp*** -> ***GetCurrentTime*** -> ***gettimeofday*** function 's timezone arg is not passed?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1144
No description provided.