Приветствую. Имею роутер с entware. Хочу запустить WebDAV, в репозитории есть пакет alaya. Сервер запускается норм, даже работает, но мобильные клиенты не хотят к нему конектится из-за того, что время на сервере неверное, оно отстаёт на несколько часов.
12:49:08 ~[1]: strace alaya
execve("/opt/sbin/alaya", ["alaya"], 0x7fb3f200 /* 19 vars */) = 0
brk(NULL) = 0x8d8000
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x778cd000
access("/opt/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt/lib/tls/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/opt/lib/tls", 0x7fdeadb0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/opt/lib/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\240\351\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=502424, ...}) = 0
mmap2(NULL, 566840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x77814000
mprotect(0x77888000, 61440, PROT_NONE) = 0
mmap2(0x77897000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x73000) = 0x77897000
close(3) = 0
openat(AT_FDCWD, "/opt/lib/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\0\31\4\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=2183432, ...}) = 0
mmap2(NULL, 2262868, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x775eb000
mprotect(0x777e9000, 61440, PROT_NONE) = 0
mmap2(0x777f8000, 98304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1fd000) = 0x777f8000
mmap2(0x77810000, 14164, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x77810000
close(3) = 0
openat(AT_FDCWD, "/opt/lib/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\360\t\0\0004\0\0\0"..., 512) = 512
_llseek(3, 1148, [1148], SEEK_SET) = 0
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\3\0\0\0\2\0\0\0\0\0\0\0", 32) = 32
fstat64(3, {st_mode=S_IFREG|0755, st_size=39780, ...}) = 0
mmap2(NULL, 262700, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x775aa000
mprotect(0x775b3000, 61440, PROT_NONE) = 0
mmap2(0x775c2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x775c2000
mmap2(0x775c4000, 156204, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x775c4000
close(3) = 0
openat(AT_FDCWD, "/opt/lib/libpam.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\360\33\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=57892, ...}) = 0
mmap2(NULL, 119456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7758c000
mprotect(0x77599000, 65536, PROT_NONE) = 0
mmap2(0x775a9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x775a9000
close(3) = 0
openat(AT_FDCWD, "/opt/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\320\26\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=92072, ...}) = 0
mmap2(NULL, 152096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x77566000
mprotect(0x7757b000, 65536, PROT_NONE) = 0
mmap2(0x7758b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7758b000
close(3) = 0
openat(AT_FDCWD, "/opt/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\20(\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=94236, ...}) = 0
mmap2(NULL, 152704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x77540000
mprotect(0x77556000, 61440, PROT_NONE) = 0
mmap2(0x77565000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x77565000
mprotect(0x7fdeb000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(3) = 0
openat(AT_FDCWD, "/opt/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0T\315\1\0004\0\0\0"..., 512) = 512
_llseek(3, 26116, [26116], SEEK_SET) = 0
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\3\0\0\0\2\0\0\0\0\0\0\0", 32) = 32
fstat64(3, {st_mode=S_IFREG|0755, st_size=1672960, ...}) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x778cb000
mmap2(NULL, 1646736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x773ad000
mprotect(0x77527000, 61440, PROT_NONE) = 0
mmap2(0x77536000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x179000) = 0x77536000
mmap2(0x7753d000, 8336, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7753d000
close(3) = 0
openat(AT_FDCWD, "/opt/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\200\v\0\0004\0\0\0"..., 512) = 512
_llseek(3, 1188, [1188], SEEK_SET) = 0
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\3\0\0\0\2\0\0\0\0\0\0\0", 32) = 32
fstat64(3, {st_mode=S_IFREG|0755, st_size=14816, ...}) = 0
mmap2(NULL, 78048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x77399000
mprotect(0x7739c000, 61440, PROT_NONE) = 0
mmap2(0x773ab000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x773ab000
close(3) = 0
openat(AT_FDCWD, "/opt/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\240T\0\0004\0\0\0"..., 512) = 512
_llseek(3, 6340, [6340], SEEK_SET) = 0
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\3\0\0\0\2\0\0\0\0\0\0\0", 32) = 32
fstat64(3, {st_mode=S_IFREG|0755, st_size=123056, ...}) = 0
mmap2(NULL, 185392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7736b000
mprotect(0x77386000, 61440, PROT_NONE) = 0
mmap2(0x77395000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x77395000
mmap2(0x77397000, 5168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x77397000
close(3) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x778c9000
set_thread_area(0x778d04a0) = 0
mprotect(0x77536000, 16384, PROT_READ) = 0
mprotect(0x77395000, 4096, PROT_READ) = 0
mprotect(0x773ab000, 4096, PROT_READ) = 0
mprotect(0x775c2000, 4096, PROT_READ) = 0
mprotect(0x778d2000, 4096, PROT_READ) = 0
set_tid_address(0x778c9078) = 8682
set_robust_list(0x778c9080, 12) = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7736fe68, sa_mask=[], sa_flags=SA_SIGINFO}, NULL, 16) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7736ff6c, sa_mask=[], sa_flags=SA_RESTART|SA_SIGINFO}, NULL, 16) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 16) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=2147483647}) = 0
brk(NULL) = 0x8d8000
brk(0x8f9000) = 0x8f9000
time(NULL) = 1644922159 (2022-02-15T12:49:19+0200)
openat(AT_FDCWD, "/opt/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1493, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1493, ...}) = 0
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\17\0\0\0\0"..., 4096) = 1493
_llseek(3, -7, [1486], SEEK_CUR) = 0
read(3, "\nEET-2\n", 4096) = 7
close(3) = 0
getpriority(PRIO_PROCESS, 0) = 20
setpriority(PRIO_PROCESS, 0, 10) = 0
getpriority(PRIO_PROCESS, 0) = 10
time(NULL) = 1644922159 (2022-02-15T12:49:19+0200)
stat64("/share/zoneinfo/EET", 0x7fdeb4d0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/share/zoneinfo/EET", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getpid() = 8682
time(NULL) = 1644922159 (2022-02-15T12:49:19+0200)
uname({sysname="Linux", nodename="Kor", ...}) = 0
openat(AT_FDCWD, "/dev/urandom", O_RDONLY|O_LARGEFILE) = 3
read(3, "\264O\241\217\177\376P\2364T\370\364\224y6Q\256\17\254\246@\231\217\244=\4mQ[\343\234M", 32) = 32
close(3) = 0
openat(AT_FDCWD, "/opt/etc/alaya.conf", O_RDONLY|O_LARGEFILE) = 3
stat64("/opt/etc/alaya.conf", {st_mode=S_IFREG|0600, st_size=5581, ...}) = 0
fcntl64(3, F_GETFL) = 0x2000 (flags O_RDONLY|O_LARGEFILE)
fcntl64(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
fcntl64(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
read(3, "\n# default user/group for cgi-sc"..., 8192) = 5581
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4) = 0
openat(AT_FDCWD, "/opt/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=282, ...}) = 0
read(4, "passwd: files\nshadow: fi"..., 4096) = 282
read(4, "", 4096) = 0
close(4) = 0
openat(AT_FDCWD, "/opt/lib/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\200\34\0\0004\0\0\0"..., 512) = 512
_llseek(4, 2512, [2512], SEEK_SET) = 0
read(4, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\3\0\0\0\2\0\0\0\0\0\0\0", 32) = 32
fstat64(4, {st_mode=S_IFREG|0755, st_size=53956, ...}) = 0
mmap2(NULL, 140192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x77348000
mprotect(0x77354000, 61440, PROT_NONE) = 0
mmap2(0x77363000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xb000) = 0x77363000
mmap2(0x77365000, 21408, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x77365000
close(4) = 0
mprotect(0x77363000, 4096, PROT_READ) = 0
openat(AT_FDCWD, "/opt/etc/group", O_RDONLY|O_CLOEXEC) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=36, ...}) = 0
read(4, "root:*:0:root\nnobody:*:65534:nob"..., 4096) = 36
read(4, "", 4096) = 0
close(4) = 0
access("/opt/sbin/zip", F_OK) = -1 ENOENT (No such file or directory)
access("/opt/bin/zip", F_OK) = -1 ENOENT (No such file or directory)
access("/opt/usr/sbin/zip", F_OK) = -1 ENOENT (No such file or directory)
access("/opt/usr/bin/zip", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/sbin/zip", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/bin/zip", F_OK) = -1 ENOENT (No such file or directory)
access("/sbin/zip", F_OK) = -1 ENOENT (No such file or directory)
access("/bin/zip", F_OK) = -1 ENOENT (No such file or directory)
access("/opt/sbin/tar", F_OK) = -1 ENOENT (No such file or directory)
access("/opt/bin/tar", F_OK) = 0
access("/opt/sbin/tar", F_OK) = -1 ENOENT (No such file or directory)
access("/opt/bin/tar", F_OK) = 0
read(3, "", 8192) = 0
close(3) = 0
getpid() = 8682
mkdir("/opt", 0770) = -1 EEXIST (File exists)
mkdir("/opt/var", 0770) = -1 EEXIST (File exists)
mkdir("/opt/var/log", 0770) = -1 EEXIST (File exists)
openat(AT_FDCWD, "/opt/var/log/alaya.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0600) = 3
lstat64("/opt/var/log/alaya.log", {st_mode=S_IFREG|0600, st_size=239813, ...}) = 0
_llseek(3, 0, [239813], SEEK_END) = 0
_llseek(3, 0, [239813], SEEK_END) = 0
getpid() = 8682
fstat64(3, {st_mode=S_IFREG|0600, st_size=239813, ...}) = 0
getpid() = 8682
fstat64(3, {st_mode=S_IFREG|0600, st_size=239813, ...}) = 0
getpid() = 8682
getuid() = 0
_newselect(4, NULL, [3], NULL, {tv_sec=30, tv_usec=0}) = 1 (out [3], left {tv_sec=29, tv_usec=999993})
write(3, "2022/02/15 10:49:19 [8682] user="..., 107) = 107
prlimit64(0, RLIMIT_AS, NULL, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
prlimit64(0, RLIMIT_AS, {rlim_cur=50000000, rlim_max=RLIM64_INFINITY}, NULL) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
prlimit64(0, RLIMIT_STACK, {rlim_cur=50000000, rlim_max=RLIM64_INFINITY}, NULL) = 0
close(3) = 0
mkdir("/opt", 0770) = -1 EEXIST (File exists)
mkdir("/opt/var", 0770) = -1 EEXIST (File exists)
mkdir("/opt/var/log", 0770) = -1 EEXIST (File exists)
openat(AT_FDCWD, "/opt/var/log/alaya.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0600) = 3
lstat64("/opt/var/log/alaya.log", {st_mode=S_IFREG|0600, st_size=239920, ...}) = 0
_llseek(3, 0, [239920], SEEK_END) = 0
_llseek(3, 0, [239920], SEEK_END) = 0
getpid() = 8682
fstat64(3, {st_mode=S_IFREG|0600, st_size=239920, ...}) = 0
getpid() = 8682
fstat64(3, {st_mode=S_IFREG|0600, st_size=239920, ...}) = 0
getpid() = 8682
_newselect(4, NULL, [3], NULL, {tv_sec=30, tv_usec=0}) = 1 (out [3], left {tv_sec=29, tv_usec=999988})
flock(3, LOCK_EX) = 0
write(3, "2022/02/15 10:49:19.737 [8682] A"..., 71) = 71
flock(3, LOCK_UN) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x422040, sa_mask=[RT_77 RT_78 RT_80 RT_81 RT_83 RT_84 RT_88 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], sa_flags=SA_RESTART}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 16) = 0
rt_sigaction(SIGHUP, {sa_handler=0x422040, sa_mask=[RT_77 RT_78 RT_80 RT_81 RT_83 RT_84 RT_88 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], sa_flags=SA_RESTART}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 16) = 0
rt_sigaction(SIGCHLD, {sa_handler=0x422040, sa_mask=[RT_69 RT_72 RT_74 RT_78 RT_80 RT_81 RT_82 RT_83 RT_87], sa_flags=SA_RESTART}, {sa_handler=SIG_DFL, sa_mask=[RT_77 RT_78 RT_80 RT_81 RT_83 RT_84 RT_88 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], sa_flags=0}, 16) = 0
openat(AT_FDCWD, "/etc/mime.types", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 4
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(4, {sa_family=AF_INET, sin_port=htons(8083), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
listen(4, 10) = 0
setsockopt(4, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x778c9078) = 8683
exit_group(0) = ?
+++ exited with 0 +++
Вопрос в том, почему время на сервере неправильное и главное как это исправить? Саму программу можно запустить с параметром -tz <часовой пояс>, но результата он не имеет никакого.