lcoin icon indicating copy to clipboard operation
lcoin copied to clipboard

warning: remote HEAD refers to nonexistent ref, unable to checkout.

Open geekz opened this issue 8 years ago • 7 comments

lcoingitissue

When i git clone, i am getting this error. for Lcoin.

geekz avatar Jun 28 '17 18:06 geekz

When you clone a repo, the default branch is master but it doesn't exist on that repo. You can select the litecoin branch using git clone http://github.com/bcoin-org/lcoin.git --branch litecoin in the mean time before a master branch exists...

Also, if you only want to install lcoin, you don't need to clone the source, just npm install -g lcoin --production as long as you have already installed all dependencies.

checksum0 avatar Jun 28 '17 19:06 checksum0

Awesome. can you please help me with another issue?

murali@server:~/lcoin$ lcoin
[info] (chain) Chain is loading.
[info] (chain) Checkpoints are enabled.
[info] (chain) Coin cache is enabled.
[info] (chaindb) Opening ChainDB...
[error] (node) IO error: lock /home/murali/.lcoin/chain.ldb/LOCK: Resource temporarily unavailable
/home/murali/lcoin/lib/utils/co.js:345
    throw err;
    ^

Error: IO error: lock /home/murali/.lcoin/chain.ldb/LOCK: Resource temporarily u navailable
    at Error (native)
murali@server:~/lcoin$
```
`

geekz avatar Jun 28 '17 19:06 geekz

Look like your node can't attain an actual lock on the leveldb directory. I'd try to delete the database and ensure the lcoin has the necessary permission needed to write there and restart.

If it still happen starting from scratch with correct permission, I'd raise another issue specific to this.

checksum0 avatar Jun 28 '17 20:06 checksum0

This issue was solved, should be closed now.

cronopio avatar Oct 04 '17 14:10 cronopio

Still fail here. Default branch still inexistant and instruction not updated to include --branch switch. Yes, it's only a warning but that git command clone an empty repo.

lcoin

checksum0 avatar Oct 04 '17 15:10 checksum0

@checksum0 do you think adding --branch litecoin to the readme could solve the issue? I can submit a PR updating the readme.

cronopio avatar Oct 06 '17 16:10 cronopio

Submitted https://github.com/bcoin-org/lcoin/pull/9

cronopio avatar Oct 06 '17 16:10 cronopio