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

Running the ps ax command from kurtosis shell truncates lines to 80 characters #2381

Open
winksaville opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working cli For bugs relating to the CLI papercut

Comments

@winksaville
Copy link

What's your CLI version?

0.88.16

Description & steps to reproduce

I was running the example ethereum-package setup from reth private-testnet .

I then ran:

wink@fwlaptop 24-04-16T20:37:33.589Z:~/kurtosis-pn1-reth-lighthouse
$ kt service shell dazzling-geyser el-1-reth-lighthouse 
Found bash on container; creating bash shell...
root@a51f74e560d0:/# ps ax
    PID TTY      STAT   TIME COMMAND
      1 ?        Ss     0:00 /sbin/docker-init -- sh -c reth init --datadir=/dat
      7 ?        S      0:00 sh -c reth init --datadir=/data/reth/execution-data
     15 ?        Sl     6:12 reth node -vvv --datadir=/data/reth/execution-data 
    878 pts/0    Ss     0:00 sh -c if command -v 'bash' > /dev/null; then ..echo
    884 pts/0    S      0:00 bash
    887 pts/0    R+     0:00 ps ax
root@a51f74e560d0:/# 

And you can see the output of the ps ax command is truncated to 80 characters.

Desired behavior

The output should not be truncated, a work-around was to redirect the output to cat then I can see all of the output:

root@a51f74e560d0:/# ps ax | cat
    PID TTY      STAT   TIME COMMAND
      1 ?        Ss     0:00 /sbin/docker-init -- sh -c reth init --datadir=/data/reth/execution-data --chain=/network-configs/network-configs/genesis.json && reth node -vvv --datadir=/data/reth/execution-data --chain=/network-configs/network-configs/genesis.json --http --http.port=8545 --http.addr=0.0.0.0 --http.corsdomain=* --http.api=admin,net,eth,web3,debug,trace --ws --ws.addr=0.0.0.0 --ws.port=8546 --ws.api=net,eth --ws.origins=* --nat=extip:172.16.4.11 --authrpc.port=8551 --authrpc.jwtsecret=/jwt/jwtsecret --authrpc.addr=0.0.0.0 --metrics=0.0.0.0:9001
      7 ?        S      0:00 sh -c reth init --datadir=/data/reth/execution-data --chain=/network-configs/network-configs/genesis.json && reth node -vvv --datadir=/data/reth/execution-data --chain=/network-configs/network-configs/genesis.json --http --http.port=8545 --http.addr=0.0.0.0 --http.corsdomain=* --http.api=admin,net,eth,web3,debug,trace --ws --ws.addr=0.0.0.0 --ws.port=8546 --ws.api=net,eth --ws.origins=* --nat=extip:172.16.4.11 --authrpc.port=8551 --authrpc.jwtsecret=/jwt/jwtsecret --authrpc.addr=0.0.0.0 --metrics=0.0.0.0:9001
     15 ?        Sl     6:16 reth node -vvv --datadir=/data/reth/execution-data --chain=/network-configs/network-configs/genesis.json --http --http.port=8545 --http.addr=0.0.0.0 --http.corsdomain=* --http.api=admin,net,eth,web3,debug,trace --ws --ws.addr=0.0.0.0 --ws.port=8546 --ws.api=net,eth --ws.origins=* --nat=extip:172.16.4.11 --authrpc.port=8551 --authrpc.jwtsecret=/jwt/jwtsecret --authrpc.addr=0.0.0.0 --metrics=0.0.0.0:9001
    878 pts/0    Ss     0:00 sh -c if command -v 'bash' > /dev/null; then ..echo "Found bash on container; creating bash shell..."; bash;         else  ..echo "No bash found on container; dropping down to sh shell..."; sh;  .fi
    884 pts/0    S      0:00 bash
    924 pts/0    R+     0:00 ps ax
    925 pts/0    S+     0:00 cat
root@a51f74e560d0:/# 

What is the severity of this bug?

Papercut; this bug is frustrating, but I have a workaround.

What area of the product does this pertain to?

CLI: the Command Line Interface

@winksaville winksaville added the bug Something isn't working label Apr 16, 2024
@github-actions github-actions bot added cli For bugs relating to the CLI papercut labels Apr 16, 2024
@tedim52
Copy link
Contributor

tedim52 commented Apr 18, 2024

Thanks for filing this @winksaville !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli For bugs relating to the CLI papercut
Projects
None yet
Development

No branches or pull requests

2 participants