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

Error when running remote windows harvester #208

Closed
ronickg opened this issue May 29, 2021 · 5 comments · Fixed by #216
Closed

Error when running remote windows harvester #208

ronickg opened this issue May 29, 2021 · 5 comments · Fixed by #216
Labels
bug Something isn't working windows

Comments

@ronickg
Copy link

ronickg commented May 29, 2021

Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/farmer/chia-watchdog/chiadog/src/chia_log/log_consumer.py", line 152, in _consume_loop
if self._has_rotated(self._remote_log_path):
File "/home/farmer/chia-watchdog/chiadog/src/chia_log/log_consumer.py", line 172, in _has_rotated
self._log_size = int(stdout.readline())
ValueError: invalid literal for int() with base 10: ''

@pieterhelsen pieterhelsen added the bug Something isn't working label May 30, 2021
@pieterhelsen
Copy link
Collaborator

Do you get this error immediately on startup or when the file rotates?

@pieterhelsen
Copy link
Collaborator

It looks like Windows isn't finding your config file and as such returns an empty string trying to read the log size.
That's why it's important to know whether it occurs at startup (your config file is likely misconfigured) or during operations (the log file is rotated in such a way that the file is not available - likely just for a split second)

@ronickg
Copy link
Author

ronickg commented Jun 1, 2021

Okay, ill have a look again. But was 100 percent sure it was setup correctly.

@pieterhelsen
Copy link
Collaborator

Can you adjust the log_level in the Chiadog config to DEBUG and report back with your full config (make sure to remove any usernames/passwords) and the output from the Chiadog stdout log?

@mezzovide
Copy link
Contributor

Hi, this is the problem
#216 (comment)
Tested and PR made

@pieterhelsen pieterhelsen linked a pull request Jun 2, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants