openbmc / openbmc

OpenBMC Distribution
Other
1.81k stars 900 forks source link

ipkvm error reporting needs improvement #3611

Closed shenki closed 4 years ago

shenki commented 4 years ago

When booting openbmc master (2.8.0-dev-391-g283f4a7bb) on palmetto with a development kernel I see this:

Sep 16 07:40:35 palm8-bmc systemd[1]: Started OpenBMC ipKVM daemon.
Sep 16 07:40:36 palm8-bmc obmc-ikvm[270]: Failed to open input device
Sep 16 07:40:36 palm8-bmc obmc-ikvm[270]: Failed to open a file
Sep 16 07:40:36 palm8-bmc obmc-ikvm[270]: terminate called after throwing an instance of 'sdbusplus::xyz::openbmc_project::Common::File::Error::Open'
Sep 16 07:40:36 palm8-bmc obmc-ikvm[270]:   what():  xyz.openbmc_project.Common.File.Error.Open: Failed to open a file
Sep 16 07:40:36 palm8-bmc systemd[1]: start-ipkvm.service: Main process exited, code=killed, status=6/ABRT
Sep 16 07:40:36 palm8-bmc systemd[1]: start-ipkvm.service: Failed with result 'signal'.

I am sure that the error is due to my custom kernel and I do not need help fixing that.

I would like to see the tool report which input device it could not open (a path?).

mine260309 commented 4 years ago

Possibly the info you need is in journal, try journalctl -o json-pretty and see if there is information you need.

geissonator commented 4 years ago

Yeah, I saw this recently elsewhere, it's in the metadata of the journal message:

journalctl -o json-pretty MESSAGE="Failed to open input device"
{
        "MESSAGE" : "Failed to open input device",
        "_TRANSPORT" : "journal",
        "ERROR" : "No such file or directory",
        ...
        "PATH" : "/dev/hidg0",
        ...
}
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because no activity has occurred in the last 6 months. It will be closed if no activity occurs in the next 30 days. If this issue should not be closed please add a comment. Thank you for your understanding and contributions.

stale[bot] commented 4 years ago

This issue has been closed because no activity has occurred in the last 7 months. Please reopen if this issue should not have been closed. Thank you for your contributions.