RHV Log Collector shows "write() argument must be str, not None" message

Solution Verified - Updated -


The RHV Log Collector shows the following ERROR message

ERROR: Failed to collect logs from host.internal; write() argument must be str, not None

In the debug output is possible to see the following

2022-01-08 11:51:47::DEBUG::__main__::274::root:: STDERR(b"/bin/ls: cannot open directory '/rhev/data-center/mnt/share:_data/test/ova': Permission denied\n")
2022-01-08 11:51:47::ERROR::__main__::901::root:: Failed to collect logs from: host.internal; write() argument must be str, not None
2022-01-08 11:51:47::DEBUG::__main__::225::root:: Traceback (most recent call last):
2022-01-08 11:51:47::DEBUG::__main__::225::root::   File "/usr/lib/python3.6/site-packages/ovirt_log_collector/__main__.py", line 881, in run
2022-01-08 11:51:47::DEBUG::__main__::225::root::     f.write(stdout)
2022-01-08 11:51:47::DEBUG::__main__::225::root:: TypeError: write() argument must be str, not None


Red Hat Virtualization 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content