Matcher rest-api not starting


#1

config

Matcher settings

matcher {
# Enable/disable matcher
enable = yes

# Matcher's account address
# account = ""

# Matcher REST API bind address
bind-address = "127.0.0.1"

# Matcher REST API port
port = 6886

}

log trace

INFO c.w.Application$ - Starting…
Feb 12 16:51:50 wavesServer waves[3385]: INFO a.event.slf4j.Slf4jLogger - Slf4jLogger started
Feb 12 16:51:50 wavesServer waves[3385]: INFO c.w.Application$ - Waves v0.15.5 Blockchain Id: W
Feb 12 16:51:54 wavesServer waves[3385]: INFO c.w.n.PeerDatabaseImpl - Loaded 72 known peer(s) from peers.dat
Feb 12 16:51:54 wavesServer waves[3385]: WARN c.w.matcher.Matcher$ - Error starting matcher
Feb 12 16:51:54 wavesServer waves[3385]: java.util.NoSuchElementException: next on empty iterator
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.Iterator$$anon$2.next(Iterator.scala:37)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.Iterator$$anon$2.next(Iterator.scala:35)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.IndexedSeqLike$Elements.next(IndexedSeqLike.scala:59)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.IterableLike.head(IterableLike.scala:105)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.IterableLike.head$(IterableLike.scala:104)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.mutable.ArrayOps$ofByte.scala$collection$IndexedSeqOptimized$$super$head(ArrayOps.scala:206)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.IndexedSeqOptimized.head(IndexedSeqOptimized.scala:125)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.IndexedSeqOptimized.head$(IndexedSeqOptimized.scala:125)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.collection.mutable.ArrayOps$ofByte.head(ArrayOps.scala:206)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.account.Address$.fromBytes(Address.scala:40)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.account.Address$.$anonfun$fromString$5(Address.scala:61)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.util.Either.flatMap(Either.scala:337)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.account.Address$.$anonfun$fromString$3(Address.scala:60)
Feb 12 16:51:54 wavesServer waves[3385]: at scala.util.Either.flatMap(Either.scala:337)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.account.Address$.fromString(Address.scala:57)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.matcher.Matcher$.apply(Matcher.scala:162)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.Application.run(Application.scala:106)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.Application$.$anonfun$main$4(Application.scala:444)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.Application$.$anonfun$main$4$adapted(Application.scala:423)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.actor.RootActorSystem$.start(RootActorSystem.scala:25)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.Application$.main(Application.scala:423)
Feb 12 16:51:54 wavesServer waves[3385]: at com.wavesplatform.Application.main(Application.scala)
Feb 12 16:51:54 wavesServer waves[3385]: INFO c.w.Application - REST API was bound on 127.0.0.1:6869


#2

I tried to configure the node through the docker with these parameters.
docker run
-p 6869:6869
-p 6868:6868
-e WAVES_NETWORK=MAINNET
-e WAVES_LOG_LEVEL=WARN
-e WAVES__MATCHER__ENABLE=yes
-e WAVES_HEAP_SIZE=2g
-v waves:/waves wavesplatform/node

and again receive this warning
2019-02-12 20:55:16,407 WARN [main] c.w.matcher.Matcher$ - Error starting matcher
java.util.NoSuchElementException: next on empty iterator
at scala.collection.Iterator$$anon$2.next(Iterator.scala:37)
at scala.collection.Iterator$$anon$2.next(Iterator.scala:35)
at scala.collection.IndexedSeqLike$Elements.next(IndexedSeqLike.scala:59)
at scala.collection.IterableLike.head(IterableLike.scala:105)
at scala.collection.IterableLike.head$(IterableLike.scala:104)
at scala.collection.mutable.ArrayOps$ofByte.scala$collection$IndexedSeqOptimized$$super$head(ArrayOps.scala:206)
at scala.collection.IndexedSeqOptimized.head(IndexedSeqOptimized.scala:125)
at scala.collection.IndexedSeqOptimized.head$(IndexedSeqOptimized.scala:125)
at scala.collection.mutable.ArrayOps$ofByte.head(ArrayOps.scala:206)
at com.wavesplatform.account.Address$.fromBytes(Address.scala:40)
at com.wavesplatform.account.Address$.$anonfun$fromString$5(Address.scala:61)
at scala.util.Either.flatMap(Either.scala:337)
at com.wavesplatform.account.Address$.$anonfun$fromString$3(Address.scala:60)
at scala.util.Either.flatMap(Either.scala:337)
at com.wavesplatform.account.Address$.fromString(Address.scala:57)
at com.wavesplatform.matcher.Matcher$.apply(Matcher.scala:162)
at com.wavesplatform.Application.run(Application.scala:106)
at com.wavesplatform.Application$.$anonfun$main$4(Application.scala:444)
at com.wavesplatform.Application$.$anonfun$main$4$adapted(Application.scala:423)
at com.wavesplatform.actor.RootActorSystem$.start(RootActorSystem.scala:25)
at com.wavesplatform.Application$.main(Application.scala:423)
at com.wavesplatform.Application.main(Application.scala)


#3

Uncomment account line and put your address there