obdiag version 2.5
admin@ubuntu:~/oceanbase-diagnostic-tool$ ./obdiag gather log --scope observer --since 1h
gather_log start ...
gather log from_time: 2024-11-14 08:43:43, to_time: 2024-11-14 09:44:43
[ERROR] command failed. Please contact OceanBase community. e: invalid literal for int() with base 10: "ls: cannot access '/tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443.zip': No such file or directory"
Trace ID: e13baef4-a229-11ef-9b76-c62cc4bad044
If you want to view detailed obdiag logs, please run: ./obdiag display-trace e13baef4-a229-11ef-9b76-c62cc4bad044
admin@ubuntu:~/oceanbase-diagnostic-tool$ ls -ltr /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443.zip
ls: cannot access '/tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443.zip': No such file or directory
admin@ubuntu:~/oceanbase-diagnostic-tool$ ./obdiag display-trace e13baef4-a229-11ef-9b76-c62cc4bad044
[2024-11-14 09:43:42.814] [DEBUG] - cmd: ./obdiag gather log
[2024-11-14 09:43:42.814] [DEBUG] - opts: {'inner_config': None, 'from': None, 'to': None, 'since': '1h', 'scope': 'observer', 'grep': None, 'encrypt': 'false', 'store_dir': './', 'temp_dir': '/tmp', 'c': '/home/admin/.obdiag/config.yml', 'config': None, 'redact': ''}
[2024-11-14 09:43:42.815] [DEBUG] - mkdir /home/admin/oceanbase-diagnostic-tool/conf/inner_config.yml
[2024-11-14 09:43:42.828] [DEBUG] - mkdir /home/admin/.obdiag/config.yml
[2024-11-14 09:43:42.842] [INFO] gather_log start ...
[2024-11-14 09:43:43.162] [INFO] gather log from_time: 2024-11-14 08:43:43, to_time: 2024-11-14 09:44:43
[2024-11-14 09:43:43.162] [DEBUG] - mkdir ./obdiag_gather_pack_20241114094343
[2024-11-14 09:43:43.163] [DEBUG] - Use ./obdiag_gather_pack_20241114094343 as pack dir.
[2024-11-14 09:43:43.385] [DEBUG] - Execute Shell command on server 10.18.18.64:mkdir -p /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443
[2024-11-14 09:43:43.442] [DEBUG] - Execute Shell command on server 10.18.18.64:ls -1 -F /home/admin/observer/log |grep observer | awk -F '/' '{print $NF}'
[2024-11-14 09:43:43.492] [DEBUG] - get log file name list, from time 2024-11-14 08:43:43, to time 2024-11-14 09:44:43, log dir /home/admin/observer/log, log files observer.log
[2024-11-14 09:43:43.492] [DEBUG] observer.log.20241114085010780
[2024-11-14 09:43:43.492] [DEBUG] observer.log.20241114090318008
[2024-11-14 09:43:43.493] [DEBUG] observer.log.20241114091817090
[2024-11-14 09:43:43.493] [DEBUG] observer.log.20241114093255899
[2024-11-14 09:43:43.493] [DEBUG] observer.log.wf
[2024-11-14 09:43:43.493] [DEBUG] - Execute Shell command on server 10.18.18.64:head -n 1 /home/admin/observer/log/observer.log && tail -n 1 /home/admin/observer/log/observer.log
[2024-11-14 09:43:43.539] [DEBUG] - The log file observer.log starts at 2024-11-14 09:32:55 ends at 2024-11-14 09:43:43
[2024-11-14 09:43:43.539] [DEBUG] - to_time_str 2024-11-14 09:44:43 from_time_str 2024-11-14 08:43:43
[2024-11-14 09:43:43.540] [DEBUG] - Execute Shell command on server 10.18.18.64:head -n 1 /home/admin/observer/log/observer.log.20241114085010780
[2024-11-14 09:43:43.586] [DEBUG] - Execute Shell command on server 10.18.18.64:head -n 1 /home/admin/observer/log/observer.log.wf && tail -n 1 /home/admin/observer/log/observer.log.wf
[2024-11-14 09:43:43.635] [DEBUG] - The log file observer.log.wf starts at 2024-06-14 20:37:37 ends at 2024-11-14 09:32:55
[2024-11-14 09:43:43.635] [DEBUG] - to_time_str 2024-11-14 09:44:43 from_time_str 2024-11-14 08:43:43
[2024-11-14 09:43:43.635] [DEBUG] - Find the qualified log file ['observer.log', 'observer.log.20241114085010780', 'observer.log.20241114090318008', 'observer.log.20241114091817090', 'observer.log.20241114093255899', 'observer.log.wf'] on Server [remote_10.18.18.64], wait for the next step
[2024-11-14 09:43:43.636] [DEBUG] - copy files, run cmd = [cp -p /home/admin/observer/log/observer.log /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log ]
[2024-11-14 09:43:43.636] [DEBUG] - Execute Shell command on server 10.18.18.64:cp -p /home/admin/observer/log/observer.log /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log
[2024-11-14 09:43:43.980] [DEBUG] - copy files, run cmd = [cp -p /home/admin/observer/log/observer.log.20241114085010780 /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.20241114085010780 ]
[2024-11-14 09:43:43.980] [DEBUG] - Execute Shell command on server 10.18.18.64:cp -p /home/admin/observer/log/observer.log.20241114085010780 /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.20241114085010780
[2024-11-14 09:43:44.329] [DEBUG] - copy files, run cmd = [cp -p /home/admin/observer/log/observer.log.20241114090318008 /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.20241114090318008 ]
[2024-11-14 09:43:44.329] [DEBUG] - Execute Shell command on server 10.18.18.64:cp -p /home/admin/observer/log/observer.log.20241114090318008 /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.20241114090318008
[2024-11-14 09:43:44.690] [DEBUG] - copy files, run cmd = [cp -p /home/admin/observer/log/observer.log.20241114091817090 /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.20241114091817090 ]
[2024-11-14 09:43:44.690] [DEBUG] - Execute Shell command on server 10.18.18.64:cp -p /home/admin/observer/log/observer.log.20241114091817090 /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.20241114091817090
[2024-11-14 09:43:45.050] [DEBUG] - copy files, run cmd = [cp -p /home/admin/observer/log/observer.log.20241114093255899 /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.20241114093255899 ]
[2024-11-14 09:43:45.050] [DEBUG] - Execute Shell command on server 10.18.18.64:cp -p /home/admin/observer/log/observer.log.20241114093255899 /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.20241114093255899
[2024-11-14 09:43:45.396] [DEBUG] - copy files, run cmd = [cp -p /home/admin/observer/log/observer.log.wf /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.wf ]
[2024-11-14 09:43:45.397] [DEBUG] - Execute Shell command on server 10.18.18.64:cp -p /home/admin/observer/log/observer.log.wf /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443/observer.log.wf
[2024-11-14 09:43:45.451] [DEBUG] - Execute Shell command on server 10.18.18.64:find /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443 -name '*' -type f -size 0c | xargs -n 1 rm -f
[2024-11-14 09:43:45.501] [DEBUG] - Execute Shell command on server 10.18.18.64:ls -A /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443|wc -w
[2024-11-14 09:43:45.556] [INFO] [ip: remote_10.18.18.64] zip observer log start
[2024-11-14 09:43:45.557] [DEBUG] - Execute Shell command on server 10.18.18.64:cd /tmp && zip ob_log_remote_10.18.18.64_20241114084343_20241114094443.zip -rm ob_log_remote_10.18.18.64_20241114084343_20241114094443
[2024-11-14 09:43:45.688] [DEBUG] - Execute Shell command on server 10.18.18.64:ls -nl /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443.zip | awk '{print $5}'
[2024-11-14 09:43:45.696] [ERROR] command failed. Please contact OceanBase community. e: **invalid literal for int() with base 10: "ls: cannot access '/tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443.zip': No such file or directory"**
[2024-11-14 09:43:45.697] [INFO] Trace ID: e13baef4-a229-11ef-9b76-c62cc4bad044
[2024-11-14 09:43:45.697] [INFO] If you want to view detailed obdiag logs, please run: ./obdiag display-trace e13baef4-a229-11ef-9b76-c62cc4bad044
on 10.18.18.64:
admin@ubuntu:~$ ls -ltr /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443
total 1299344
-rw-r--r-- 1 admin admin 268435543 Nov 14 08:50 observer.log.20241114085010780
-rw-r--r-- 1 admin admin 268435677 Nov 14 09:03 observer.log.20241114090318008
-rw-r--r-- 1 admin admin 268435773 Nov 14 09:18 observer.log.20241114091817090
-rw-r--r-- 1 admin admin 268435687 Nov 14 09:32 observer.log.20241114093255899
-rw-r--r-- 1 admin admin 3073155 Nov 14 09:32 observer.log.wf
-rw-r--r-- 1 admin admin 253673072 Nov 14 09:43 observer.log
admin@ubuntu:~$
admin@ubuntu:~$
admin@ubuntu:~$ ls -ltr /tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443.zip
ls: cannot access '/tmp/ob_log_remote_10.18.18.64_20241114084343_20241114094443.zip': No such file or directory
admin@ubuntu:~$
admin@ubuntu:~$
admin@ubuntu:~$