Closed Michalski-Piotr closed 11 months ago
Hello, I noticed this issue depends on log set for analysis:
$ wlsanalytics --debug --traceback soa range o2c
SERVER FILES SIZE [GB] MIN MAX
soa_server1 102 6.62 2023-05-09 11:48:01 2023-10-11 12:07:22
soa_server2 51 2.93 2023-10-09 06:59:50 2023-10-11 12:08:53
soa_server3 51 3.39 2023-10-08 16:19:52 2023-10-11 12:09:34
soa_server4 51 2.98 2023-10-09 03:36:38 2023-10-11 12:10:20
soa_server5 51 3.51 2023-10-08 14:44:29 2023-10-11 12:11:06
wlsanalytics --debug --traceback soa range aabc
ERROR: '<' not supported between instances of 'NoneType' and 'datetime.datetime'
---
Traceback (most recent call last):
File "/u01/oracle/.local/lib/python3.11/site-packages/wls_analytics/commands/click_ext.py", line 51, in invoke
click.core.Group.invoke(self, ctx)
File "/u01/oracle/.local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/u01/oracle/.local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/u01/oracle/.local/lib/python3.11/site-packages/wls_analytics/commands/click_ext.py", line 103, in invoke
return super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "/u01/oracle/.local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/u01/oracle/.local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/u01/oracle/.local/lib/python3.11/site-packages/wls_analytics/commands/log.py", line 79, in range
if range_item["min"] is None or first < range_item["min"]:
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'NoneType' and 'datetime.datetime'
---
Regards, Piotr
Hello, log set to reproduce has been uploaded to the test machine:
[oracle@k8s-registry data]$ pwd
/home/oracle/wlsanalytics/data
[oracle@k8s-registry data]$ ls -l aabc_20231011_logs.tar.gz
-rw-r--r-- 1 oracle oinstall 2005493783 Oct 11 13:05 aabc_20231011_logs.tar.gz
Regards, Piotr
This problem is caused by the date time format that the out log uses which is different to the one used by other out logs. Not sure why this one is different but in any case the app should check for this error and ignore it. So there should not be any such failure but only a warning. Will fix this.
This has been fixed in f14081aa8b5ace0f4a25420262fbb04c7723713d.
There was one more issue related to this one when parsing log entries. This was also fixed in https://github.com/ailog-analytics/wls-analytics/commit/b9764741db4bc96edd5cf104d6b490569cf06c67.
Fixed in release v0.3.2: https://pypi.org/project/wls-analytics/
Hi , there is following error with v0.3.1 https://github.com/ailog-analytics/wls-analytics/releases/tag/v0.3.1
It was working in the past in 0.2 version:
Regards, Piotr Michalski