If I do a printenv on my iMac, in a default terminal session, I get:
$ printenv
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/cn/vsn822092lqdlp8g6psy47380000gn/T/
TERM_PROGRAM_VERSION=433
TERM_SESSION_ID=19553C23-52E7-4FF7-94DD-1CB7A4044607
USER=jameslampert
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Ntl3FrYsJh/Listeners
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
PWD=/Users/jameslampert
LANG=en_US.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=1
HOME=/Users/jameslampert
LOGNAME=jameslampert
DISPLAY=/private/tmp/com.apple.launchd.az2lAJ6Q0G/org.macosforge.xquartz:0
_=/usr/bin/printenv
If I do it in “/bin/zsh -f -d,” I get:
% printenv
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/cn/vsn822092lqdlp8g6psy47380000gn/T/
TERM_PROGRAM_VERSION=433
TERM_SESSION_ID=19553C23-52E7-4FF7-94DD-1CB7A4044607
USER=jameslampert
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Ntl3FrYsJh/Listeners
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
PWD=/Users/jameslampert
LANG=en_US.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=2
HOME=/Users/jameslampert
LOGNAME=jameslampert
DISPLAY=/private/tmp/com.apple.launchd.az2lAJ6Q0G/org.macosforge.xquartz:0
OLDPWD=/Users/jameslampert
_=/usr/bin/printenv
On the “Project Mini,” printenv in a default terminal session (zsh here) gets (user name redacted):
% printenv
TMPDIR=/var/folders/dr/qngm024x5112b02k3srg7hp40000gn/T/
XPC_FLAGS=0x0
TERM_PROGRAM_VERSION=433
LANG=en_US.UTF-8
TERM_PROGRAM=Apple_Terminal
XPC_SERVICE_NAME=0
TERM_SESSION_ID=EF6A72A4-2F95-4423-891B-DBC6AFBE7D2C
TERM=xterm-256color
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.xzvjexmKqL/Listeners
SHELL=/bin/zsh
HOME=/Users/<REDACTED>
LOGNAME=<REDACTED>
USER=<REDACTED>
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
SHLVL=1
PWD=/Users/<REDACTED>
OLDPWD=/Users/<REDACTED>
_=/usr/bin/printenv
while in Bash, it returns:
$ printenv
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/zsh
TERM=xterm-256color
TMPDIR=/var/folders/dr/qngm024x5112b02k3srg7hp40000gn/T/
TERM_PROGRAM_VERSION=433
TERM_SESSION_ID=EF6A72A4-2F95-4423-891B-DBC6AFBE7D2C
USER=<REDACTED>
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.xzvjexmKqL/Listeners
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
_=/usr/bin/printenv
PWD=/Users/<REDACTED>
LANG=en_US.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=2
HOME=/Users/<REDACTED>
LOGNAME=<REDACTED>
Update
I hadn’t noticed that “sandbox/sandbox” was a shell script. That means it can be tinkered with.
The line where it’s blowing up is
INDEXER_VERSION=$(dc exec indexer cmd/algorand-indexer/algorand-indexer -v) && echo ${INDEXER_VERSION} || curl -s "localhost:8980/health?pretty"
Can somebody explain the line?
If I comment out the line, then I get (using my default of Bash):
$ ./sandbox up testnet
Starting sandbox for: testnet
see sandbox.log for detailed progress, or use -v.
* started!
algod version
12885032963
3.2.3.stable [rel/stable] (commit #d2289a52)
go-algorand is licensed with AGPLv3.0
source code available at https://github.com/algorand/go-algorand
Postgres version
postgres (PostgreSQL) 13.5
algod - goal node status
Last committed block: 19268274
Time since last block: 3.6s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19268275
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Genesis hash: SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=
indexer - health
Indexer disabled for this configuration.
Starting fast-catchup with catchpoint: 19280000#VRGPXH3UQ2HI7TLNMHVBEIWFXKBP4PMK63K34HEQDCX47RKI7WEQ
Last committed block: 19268274
Time since last block: 5.4s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19268275
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
Last committed block: 19268274
Time since last block: 6.0s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19268275
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
Last committed block: 19268274
Time since last block: 6.5s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19268275
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
Last committed block: 19268274
Time since last block: 7.0s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19268275
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
Last committed block: 19268274
Time since last block: 7.6s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19268275
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
Last committed block: 19268274
Time since last block: 8.1s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19268275
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
Last committed block: 19268274
Time since last block: 8.6s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19268275
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
and so on ad nauseum, with no status bar, and with the individual reports scrolling up the terminal window, rather than overwriting each other in the terminal window, which is what I was getting before in “/bin/zsh -f -d,” which also looks very much like what “lawlesskane” is seeing in another thread.
Eventually, the “Sync Time” stops incrementing, and resets to zero:
. . .
Last committed block: 19283709
Time since last block: 3.8s
Sync Time: 759.4s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19283710
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
Last committed block: 19283710
Time since last block: 0.1s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19283711
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
Last committed block: 19283710
Time since last block: 0.6s
Sync Time: 0.0s
Last consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: https://github.com/algorandfoundation/specs/tree/bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 19283711
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: testnet-v1.0
Processing accounts: : [ ] [0/1000] 0%
. . .
but the reports continue to scroll up the terminal window. Based on my experiences of yesterday, I’m guessing that when that happens, I can ctrl-c out, and use the sandbox node.