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
Errors from local testnet scripts on MacOS #2763
Comments
I'm working on this issue. #2919 The redirect $ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Copyright (C) 2007 Free Software Foundation, Inc. |
## Issue Addressed Resolves #2763 ## Proposed Changes - Add a workflow which tests that local testnet starts successfully - Added `set` option into the scripts in order to fail fast so that we can notice errors during starting local testnet. - Fix errors on MacOS - The redirect `&>>` is supported since bash v4 but the version bundled in macOS(11.6.1) is v3. a54f119
@pkopparla #2919 has been merged into |
@ackintosh Thanks for doing this, I'll check and get back to you. |
@pkopparla, thanks! |
Hey, I just tried this out on
|
@pkopparla Which version of macOS? |
@michaelsproul It's MacOS Moneterey, v 12.0.1 |
I could reproduce the error. 💡 # Put PIDS.pid file which contains only newlines.
$ echo "" > ~/.lighthouse/local-testnet/testnet/PIDS.pid
$ ./start_local_testnet.sh
killing
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] As workaround, deleting the PIDS.pid file or running clean.sh could resolve this. $ rm ~/.lighthouse/local-testnet/testnet/PIDS.pid
# or
$ ./clean.sh |
I will file a PR to handle the issue. |
## Issue Addressed Resolves #2763 (comment) ## Proposed Changes - Skip if the line is blank. 👌
#2973 has been merged into |
@ackintosh I can confirm that the script works now. Thanks for taking time to work on this! |
Description
The script
lighthouse/scripts/local_testnet/start_local_testnet.sh
does not run and throws errors.Version
rustc 1.55.0
Lighthouse v2.0.1-fff01b2, I'm using the stable version.
Present Behaviour
The script errors out with
./start_local_testnet.sh: eval: line 73: syntax error near unexpected token '>'
Expected Behaviour
It should start a local testnet.
Steps to resolve
The problem is with line 70 of the script which is currently:
If you change this to:
then the
./start_local_testnet.sh
script will work, however the./stop_local_testnet.sh
will fail to stop the processes. The PIDS are logged incorrectly in thePIDS.pid
file within the test directory. Changing the line further tologs the correct PIDS, though there are still a few unknown PIDS being logged. I don't know if this problem occurs on other OS, but at least one other person can reproduce the problem and solution on their Mac computer.
The text was updated successfully, but these errors were encountered: