│ ▌ Examples: │
│ ▌ ovos-logs slice # Slice all logs from service start up until now │
However, when executing that command:
(.venv) ovos@raspOvos:~ $ ovos-logs slice
Traceback (most recent call last):
File "/home/ovos/.venv/bin/ovos-logs", line 8, in <module>
sys.exit(ovos_logs())
^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/rich_click/rich_command.py", line 126, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_utils/log_parser.py", line 367, in slice
logfile = os.path.join(path, f"{service}.log")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen posixpath>", line 76, in join
TypeError: expected str, bytes or os.PathLike object, not NoneType
I have the same error with ovos-logs reduce with raspOVOS. I think it is because it is looking at ~/.local/state/mycroft for the logs, and they are system links there. It does not seem to like that.
In the help for ovos-logs, I see:
However, when executing that command: