Skip to content

Weird behavior with prebuilt-scat : no logs in output file created by redirection #81

Open
@tlaurion

Description

@tlaurion

Hello there @SergiiDmytruk @krystian-hebel

Trying to get scat working to collect logs when ssh connection is closing when power states are changing.

First things first, I came to realize that scat was killed by SIGHUP, so nohup is still required.

The instructions at: https://github.com/3mdeb/openpower-coreboot-docs/edit/main/devnotes/scat/README.md

Are not working, was going to propose a PR, but even with nohup, and scat being there between ssh disconnections, there are no logs collected?

Here are my modifications to your notes:

#Download scat-prebuilt from github and copy it over talos's BMC through SSH
$ wget https://github.com/3mdeb/openpower-coreboot-docs/raw/main/devnotes/scat/prebuilt-scat
$ chmod +x prebuilt-scat
$ scp prebuilt-scat root@talos:/tmp/scat
#Otherwise build and scp scat to /tmp/scat
$ ssh root@talos
#Run scat through nohup so that it is detached from SSH's TTY and can resist disconnects
#Uncompressed output for normal log trace without a debug build
$ nohup /tmp/scat > /tmp/boot-log &
#Compressed output for builds with debugging information when requested
$ nohup /tmp/scat | gzip > /tmp/boot-log.gz &

But neither scat compressed nor uncompressed boot-log output is being produced, neither by hostboot (flash vpnor) or coreboot+heads. The log file stays at file size of 0 bytes.

Of course, obmc-util-client works and outputs on console. But the whole goal of scat was to capture logs when obmc-util-client could not.

Can you replicate with prebuilt-scat ?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions