Bitcoin Forum
May 09, 2024, 10:21:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: cgminer error "No servers could be used! Exiting"  (Read 10040 times)
dingojones (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 29, 2012, 10:53:46 AM
 #1

Hi,

I hope I'm not reposting a question. I'm trying to run cgminer version 2.2.0 with only cpu mining enabled. I just want to generate some namecoins.

I invoke the command as follows:

./cgminer -o http://api.bitcoin.cz:8332 -u xxx.yyy -p zzz --syslog --donation 0.5

The username and password are as displayed by the mining pool. However, I'm not able to get access to the pool. The syslog output is:

Code:
Jan 29 21:39:24 Desktop cgminer: Started cgminer 2.2.0
Jan 29 21:39:24 Desktop cgminer[10849]: Testing pool http://api.bitcoin.cz:8332
Jan 29 21:39:24 Desktop cgminer[10849]: HTTP request failed: couldn't connect to host
Jan 29 21:39:24 Desktop cgminer[10849]: Pool 0 slow/down or URL or credentials invalid
Jan 29 21:39:24 Desktop cgminer[10849]: Unable to get work from pool 0 http://api.bitcoin.cz:8332
Jan 29 21:39:24 Desktop cgminer[10849]: Pool: 0  URL: http://api.bitcoin.cz:8332  User: xxx.yyy  Password: zzz

Couple of things to note are:
  • I've had the same problem with cgminer version 2.1.2
  • The older version (2.1.2) once worked successfully (about 16 or so hours) with a different mining pool. Since then it was unsuccessful.

I'm not sure if I'm missing anything. Let me know if you need more details.

Thanks.
d
1715250098
Hero Member
*
Offline Offline

Posts: 1715250098

View Profile Personal Message (Offline)

Ignore
1715250098
Reply with quote  #2

1715250098
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
dingojones (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 30, 2012, 01:23:31 AM
 #2

Another point of interest, I entered the address (http://api.bitcoin.cz:8332) into my web browser and got a prompt for the username and password which were accepted. This at least discounts any firewall related issues and suggests perhaps something to do with libcurl maybe?

kingkoin23451
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 28, 2014, 04:05:40 AM
 #3

If you searched for "No servers could be used! Exiting" and wound up here try a couple of these things. They helped me

1. Make sure you're not including the http:// part in the guiminer host
2. After the address in the host field, do not include :3334  the colon and the number behind is is nomenclature for the port, put that number in the port line and delete the colon.
3. Make sure the username is your pool username (dot) your worker username, see any youtube tutorial on how to join a pool.
4. Do not use the default user in your guiminer, create a new miner by going to file > new miner > cg
5. Don't use a complicated password for the worker. One letter ought to do it. The letter goes through in clear text anyway. If someone wants to mine for you, let them. I actually had a super secure password for the miner, and it just wouldn't process.  Do however make a secure (different) password for what ever mining pool you join.

Hope that helps, and if it does, send me a lite coin thank you. LU97CfKNgRCVTQmShRwzKFA63fD7XLuJsc

odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
January 28, 2014, 04:37:25 AM
Last edit: January 28, 2014, 04:52:49 AM by odolvlobo
 #4

Code:
Jan 29 21:39:24 Desktop cgminer[10849]: Testing pool http://api.bitcoin.cz:8332
Jan 29 21:39:24 Desktop cgminer[10849]: HTTP request failed: couldn't connect to host

Something is wrong with the URL. I am unable to access that URL from my browser, so maybe the problem is simply that the site is down. It is also a good idea to have a backup pool to mine. If cgminer has problems with one pool, it can automatically switch to another.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
Smileyftw
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
January 28, 2014, 01:21:42 PM
 #5

put the server without http or port. So you will put api.bitcoin.cz
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!