Bitcoin Forum

Local => Español (Spanish) => Topic started by: marcosfx on October 22, 2013, 10:24:06 AM



Title: SOLUCIONADO Problemas con la sincronización de los bloques
Post by: marcosfx on October 22, 2013, 10:24:06 AM
He compilado el cliente de bitcoin, litecoin y feathercoin, en linux, sin qt, simplemente para manejarlos desde la linea de comandos.

Lo he hecho en un servidor, con cuatro nucleos, que sirve un puñado de webs, y tiene la carga muy baja.

He sincronizado bien litecoin y feathercoin, pero con bitcoin tengo problemas, tarda unos 30 segundos o algo menos en añadir cada bloque, lo que significa que tardaría como 2 meses, aun así está parado en el bloque 258354 desde hace unos dos días, y no avanza. ¿Se habrá corrompido o algo la cadena de bloques? ¿es normal que tarde tanto?




Title: Re: Problemas con la sincronización de los bloques
Post by: dserrano5 on October 22, 2013, 10:36:40 AM
¿Hay algo raro en el log? ¿Has probado a pararlo ('bitcoind stop') y darle otra vez?


Title: Re: Problemas con la sincronización de los bloques
Post by: marcosfx on October 22, 2013, 11:30:38 AM
¿Hay algo raro en el log? ¿Has probado a pararlo ('bitcoind stop') y darle otra vez?

En el log todo parece raro, lo he parado y arrancado varias veces, incluso lo he dejado un par de días sin hacer nada por si era un ataque o algo así.

Del log lo que me parece más intersante lo copio aquí:

ERROR: ConnectInputs() : 4704788d9b mapTransactions prev not found 4bbe6168c8
ERROR: AcceptToMemoryPool() : ConnectInputs failed 4704788d9b
storing orphan tx 4704788d9b
received: tx (1341 bytes)
ERROR: ConnectInputs() : 70e2fcdb0a mapTransactions prev not found 01be544881
ERROR: AcceptToMemoryPool() : ConnectInputs failed 70e2fcdb0a
storing orphan tx 70e2fcdb0a
received: tx (619 bytes)
ERROR: ConnectInputs() : af45822249 mapTransactions prev not found 31367f45c8
ERROR: AcceptToMemoryPool() : ConnectInputs failed af45822249
storing orphan tx af45822249
received: tx (257 bytes)
ERROR: ConnectInputs() : a72269279d mapTransactions prev not found 571c17ac3d
ERROR: AcceptToMemoryPool() : ConnectInputs failed a72269279d



  got inventory: tx af4582224933e60c4185  have
  got inventory: tx 0f3b6cd26444bbc13e41  new
askfor tx 0f3b6cd26444bbc13e41   1382373353000114
  got inventory: tx 07d4c78bdd209ad06704  new
askfor tx 07d4c78bdd209ad06704   1382373593000115
  got inventory: tx eb8c50dba9c2e1cb45b1  new


ERROR: ConnectInputs() : 80313e5542 mapTransactions prev not found 5b9621ca07
ERROR: AcceptToMemoryPool() : ConnectInputs failed 80313e5542
storing orphan tx 80313e5542
received: inv (37 bytes)
  got inventory: tx 511569e013c4fc899b34  have
received: tx (295 bytes)
ERROR: ConnectInputs() : e03cb7de6d mapTransactions prev not found 7308009016
ERROR: AcceptToMemoryPool() : ConnectInputs failed e03cb7de6d
storing orphan tx e03cb7de6d
received: tx (258 bytes)
ERROR: ConnectInputs() : 1c0c9eeff5 mapTransactions prev not found b68fc5304f
ERROR: AcceptToMemoryPool() : ConnectInputs failed 1c0c9eeff5
storing orphan tx 1c0c9eeff5
received: inv (37 bytes)
  got inventory: tx 80313e55426460072082  have



received: tx (259 bytes)
ERROR: ConnectInputs() : 76cd744a8b mapTransactions prev not found 2c956250a0
ERROR: AcceptToMemoryPool() : ConnectInputs failed 76cd744a8b
storing orphan tx 76cd744a8b
received: tx (225 bytes)
ERROR: ConnectInputs() : cb3a6c54a7 mapTransactions prev not found 29b53bc80b
ERROR: AcceptToMemoryPool() : ConnectInputs failed cb3a6c54a7
storing orphan tx cb3a6c54a7
received: tx (521 bytes)
ERROR: ConnectInputs() : 8dc280aabc mapTransactions prev not found 7c7e3ce942
ERROR: AcceptToMemoryPool() : ConnectInputs failed 8dc280aabc
storing orphan tx 8dc280aabc
received: tx (226 bytes)
ERROR: ConnectInputs() : 1dd76a649f mapTransactions prev not found 0b14c1933d
ERROR: AcceptToMemoryPool() : ConnectInputs failed 1dd76a649f


accepted connection 5.9.245.121:29389
accepted connection 5.9.30.207:16115
accepted connection 46.4.64.21:23667
accepted connection 144.76.70.73:32526


************************
EXCEPTION: 11DbException       
Db::put: Cannot allocate memory       
bitcoin in ProcessMessage()       

ProcessMessage(block, 31591 bytes) FAILED
received: block (36135 bytes)
received block 00000000000000236500
REORGANIZE
socket closed
disconnecting node 180.141.74.183:46544
socket no message in first 60 seconds, 1 0
socket no message in first 60 seconds, 1 0
socket no message in first 60 seconds, 1 0
socket no message in first 60 seconds, 1 0
socket no message in first 60 seconds, 1 0
disconnecting node 88.198.41.74:12616
disconnecting node 5.9.245.121:29389
disconnecting node 5.9.30.207:16115
disconnecting node 46.4.64.21:23667


Title: Re: Problemas con la sincronización de los bloques
Post by: dserrano5 on October 22, 2013, 11:50:59 AM
EXCEPTION: 11DbException       
Db::put: Cannot allocate memory     

No te llega la RAM. ¿Vas con 256 Mb o algo así?


Title: Re: Problemas con la sincronización de los bloques
Post by: marcosfx on October 22, 2013, 11:56:44 AM
EXCEPTION: 11DbException       
Db::put: Cannot allocate memory     

No te llega la RAM. ¿Vas con 256 Mb o algo así?

2 GB de RAM y 3 de Swap, tengo libres 2GB en swap, y bitcoin me está comiendo el 20% de la memoria, voy a ampliar el swap a ver si con eso sirve


Title: Re: Problemas con la sincronización de los bloques
Post by: dserrano5 on October 22, 2013, 01:27:30 PM
2 GB de RAM y 3 de Swap, tengo libres 2GB en swap, y bitcoin me está comiendo el 20% de la memoria, voy a ampliar el swap a ver si con eso sirve

Ah es cierto, que se trataba de un servidor.

Aumentar el swap no te va a hacer nada. Me huele a corrupción de datos en algún punto. Prueba con un wallet nuevo (si no lo es ya) y/o bajarte por torrent el bootstrap.dat de jgarzik y volver a empezar.


Title: Re: SOLUCIONADO Problemas con la sincronización de los bloques
Post by: marcosfx on October 22, 2013, 08:42:14 PM
Me he dado cuenta que tenía instalada una versión desde un paquete para mi distribución, concretamente la 0.2 0.3, he compilado la ultima versión, y he añadido un bootstrap.dat (gracias dserrano5) que me he bajado de algún sitio con los primeros 190.000 bloques. Lo he arrancado de nuevo y ha empezado a sincronizar a unos 10 bloques por segundo sin problemas.