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

Python3 Syslog TypeError #112

Open
mrcyberguy opened this issue Jan 3, 2022 · 0 comments
Open

Python3 Syslog TypeError #112

mrcyberguy opened this issue Jan 3, 2022 · 0 comments

Comments

@mrcyberguy
Copy link

sudo python3 restart_server.py

a bytes-like object is required, not 'str'
[*] 2022-01-03 13:55:39: Restarting Artillery Server...
Traceback (most recent call last):
File "restart_server.py", line 20, in
write_log("Restarting the Artillery Server process...",1)
File "/var/artillery/src/core.py", line 955, in write_log
syslog(alert, alerttype)
File "/var/artillery/src/core.py", line 911, in syslog
syslog_send(syslogmsg, host=remote_syslog, port=remote_port)
File "/var/artillery/src/core.py", line 901, in syslog_send
sock.sendto(data, (host, port))
TypeError: a bytes-like object is required, not 'str'

occurs after specifying a remote host for syslog and attempting to run restart_server.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant