0

Stellar's utility ("Stellar_Core_Commander") is a tool used to deterministically create snapshots of the SQL DB by running a set of stellar operations. Its written in ruby. To run it, you need to install the relevant Gem file and run:

scc -r <a commands file>

however, its throwing an exception:

Traceback (most recent call last):
4: from /var/lib/postgresql/.rbenv/versions/2.5.0/bin/scc:23:in `<main>'
3: from /var/lib/postgresql/.rbenv/versions/2.5.0/bin/scc:23:in `load'
2: from 

/var/lib/postgresql/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/stellar_core_commander-0.0.12/bin/scc:135:in `<top (required)>'
    1: from /var/lib/postgresql/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/stellar_core_commander-0.0.12/bin/scc:71:in `run'
/var/lib/postgresql/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/stellar_core_commander-0.0.12/bin/scc:110:in `make_commander': undefined method `mktmpdir' for Dir:Class (NoMethodError)
Did you mean?  mkdir

how do I fix this?

0

As it turns out, this is a known issue that was solved recently but the updated Gem file was not (yet) published. see: https://github.com/stellar/stellar_core_commander/issues/99

a workaround for this is to provide the --destination flag (see the issue above).

  • note: rather than install the gem (as suggested in the readme) its better to build the gem locally with rake build;rake publish; that way you're getting the most updated code for the SCC. – FuzzyAmi Apr 16 at 7:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.