<p>I had similar issue and i switched to sgminer, even cgminer is good option but personally i used sgminer with same setting as yours, and everything is working fine in my case</p>

CC BY-SA 3.0
2018-02-28T10:02:44.493Z
(c/s)gminer  is easy to configure and easy to setup as well
Parishilan Rayamajhi
CC BY-SA 3.0
2018-02-28T15:16:35.643Z
all these support scrypt?
pbu
CC BY-SA 3.0
2018-03-06T07:55:08.653Z
ya they supprot scrypt and they are very easy to use and configure as well
Parishilan Rayamajhi
CC BY-SA 3.0
2018-02-28T10:01:43.463Z
2018-02-28T10:01:43.463Z
Parishilan Rayamajhi
<p>I have cloned litecoin to make my own altcoin for fun and i want to solo mine the new coin using cpuminer on mainnet. I have compiled and installed cpu miner in my Mac OSX and i am running the altcoin daemon and opened the port as well.</p>

<pre><code>./src/altcoind -daemon
</code></pre>

<p>When i run cpuminer i get this error.</p>

<pre><code>./minerd -o http://127.0.0.1:26201 -O litecoinrpc:9eac7ba52764a6d42aa48386e8f435f8 -a scrypt --no-longpoll --no-getwork --no-stratum --coinbase-addr=xxxxxx

[2018-02-27 17:55:48] Binding thread 2 to cpu 2
[2018-02-27 17:55:48] Binding thread 0 to cpu 0
[2018-02-27 17:55:48] Binding thread 1 to cpu 1
[2018-02-27 17:55:48] Binding thread 4 to cpu 4
[2018-02-27 17:55:48] Binding thread 3 to cpu 3
[2018-02-27 17:55:48] Binding thread 5 to cpu 5
[2018-02-27 17:55:48] 8 miner threads started, using 'scrypt' algorithm.
[2018-02-27 17:55:48] Binding thread 6 to cpu 6
[2018-02-27 17:55:48] Binding thread 7 to cpu 7
[2018-02-27 17:55:48] HTTP request failed: Failed to connect to 127.0.0.1 port 26201: Connection refused
[2018-02-27 17:55:48] json_rpc_call failed, retry after 30 seconds
</code></pre>

<p>Here is my altcoin.conf</p>

<pre><code>rpcuser=litecoinrpc
rpcpassword=xxxxxx
rpcport=262012
rpcallowip=127.0.0.1
server=1
gen=1
listen=1
</code></pre>

<p>Why is cpuminer not working?</p>

<p>Another attempt: I changed the conf file removing port</p>

<pre><code>rpcuser=litecoinrpc
rpcpassword=xxxx
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
</code></pre>

<p>and now it seems to connect to the port but i receive, empty reply from server</p>

<pre><code>[2018-02-27 18:23:11] Binding thread 4 to cpu 4
[2018-02-27 18:23:11] Binding thread 5 to cpu 5
[2018-02-27 18:23:11] Binding thread 6 to cpu 6
[2018-02-27 18:23:11] 8 miner threads started, using 'scrypt' algorithm.
[2018-02-27 18:23:11] Binding thread 7 to cpu 7
[2018-02-27 18:23:11] HTTP request failed: Empty reply from server
[2018-02-27 18:23:11] json_rpc_call failed, retry after 30 seconds
</code></pre>

<p>Any help or advise is much appreciated.</p>

CC BY-SA 4.0
2018-06-20T20:13:12.147Z
your node should be connected to others
Badr Bellaj
<altcoin><miner-configuration><cpuminer>
Altcoin solo mining issue with Cpuminer
pbu
# Altcoin solo mining issue with Cpuminer

(Asked by: username_0 on 2018-02-27)

I have cloned litecoin to make my own altcoin for fun and i want to solo mine the new coin using cpuminer on mainnet. I have compiled and installed cpu miner in my Mac OSX and i am running the altcoin daemon and opened the port as well.

```
./src/altcoind -daemon

```

When i run cpuminer i get this error.

```
./minerd -o http://127.0.0.1:26201 -O litecoinrpc:9eac7ba52764a6d42aa48386e8f435f8 -a scrypt --no-longpoll --no-getwork --no-stratum --coinbase-addr=xxxxxx

[2018-02-27 17:55:48] Binding thread 2 to cpu 2
[2018-02-27 17:55:48] Binding thread 0 to cpu 0
[2018-02-27 17:55:48] Binding thread 1 to cpu 1
[2018-02-27 17:55:48] Binding thread 4 to cpu 4
[2018-02-27 17:55:48] Binding thread 3 to cpu 3
[2018-02-27 17:55:48] Binding thread 5 to cpu 5
[2018-02-27 17:55:48] 8 miner threads started, using 'scrypt' algorithm.
[2018-02-27 17:55:48] Binding thread 6 to cpu 6
[2018-02-27 17:55:48] Binding thread 7 to cpu 7
[2018-02-27 17:55:48] HTTP request failed: Failed to connect to 127.0.0.1 port 26201: Connection refused
[2018-02-27 17:55:48] json_rpc_call failed, retry after 30 seconds

```

Here is my altcoin.conf

```
rpcuser=litecoinrpc
rpcpassword=xxxxxx
rpcport=262012
rpcallowip=127.0.0.1
server=1
gen=1
listen=1

```

Why is cpuminer not working?

Another attempt: I changed the conf file removing port

```
rpcuser=litecoinrpc
rpcpassword=xxxx
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1

```

and now it seems to connect to the port but i receive, empty reply from server

```
[2018-02-27 18:23:11] Binding thread 4 to cpu 4
[2018-02-27 18:23:11] Binding thread 5 to cpu 5
[2018-02-27 18:23:11] Binding thread 6 to cpu 6
[2018-02-27 18:23:11] 8 miner threads started, using 'scrypt' algorithm.
[2018-02-27 18:23:11] Binding thread 7 to cpu 7
[2018-02-27 18:23:11] HTTP request failed: Empty reply from server
[2018-02-27 18:23:11] json_rpc_call failed, retry after 30 seconds

```

Any help or advise is much appreciated.

**Tags:** altcoin, miner-configuration, cpuminer

> **Comments:**
> **username_1**: your node should be connected to others  

---

## 1 answers

### Answer by username_2 on 2018-02-28. Score: 2 | Accepted answer

I had similar issue and i switched to sgminer, even cgminer is good option but personally i used sgminer with same setting as yours, and everything is working fine in my case

> **Comments:**
> **username_2**: (c/s)gminer  is easy to configure and easy to setup as well  
> **username_0**: all these support scrypt?  
> **username_2**: ya they supprot scrypt and they are very easy to use and configure as well  

---

