Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ovos-logs slice fails #227

Open
mikejgray opened this issue Feb 4, 2024 · 1 comment
Open

ovos-logs slice fails #227

mikejgray opened this issue Feb 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mikejgray
Copy link
Contributor

In the help for ovos-logs, I see:

│          ▌ 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
@JarbasAl JarbasAl added the bug Something isn't working label Feb 4, 2024
@builderjer
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants