Exception from mongodb on my linux pc


#1

I am having trouble running some RESTful web service on my linux pc, here is the error:

! @73hmbafaj - Internal server error, for (POST) [/register] ->
 
play.api.http.HttpErrorHandlerExceptions$$anon$1: Execution exception[[MongoException: Got exception from MongoDB]]
	at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:293)
	at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:220)
	at play.api.GlobalSettings$class.onError(GlobalSettings.scala:160)
	at play.api.DefaultGlobal$.onError(GlobalSettings.scala:188)
	at play.api.http.GlobalSettingsHttpErrorHandler.onServerError(HttpErrorHandler.scala:100)
	at play.core.server.netty.PlayRequestHandler$$anonfun$2$$anonfun$apply$1.applyOrElse(PlayRequestHandler.scala:100)
	at play.core.server.netty.PlayRequestHandler$$anonfun$2$$anonfun$apply$1.applyOrElse(PlayRequestHandler.scala:99)
	at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:346)
	at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:345)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
Caused by: com.mohiva.play.silhouette.persistence.exceptions.MongoException: Got exception from MongoDB
	at com.mohiva.play.silhouette.persistence.daos.MongoAuthInfoDAO$$anonfun$onSuccess$1.applyOrElse(MongoAuthInfoDAO.scala:133)
	at com.mohiva.play.silhouette.persistence.daos.MongoAuthInfoDAO$$anonfun$onSuccess$1.applyOrElse(MongoAuthInfoDAO.scala:132)
	at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:346)
	at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:345)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
	at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
	at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:91)
	at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)
	at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)
	at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)

The very same code runs perfectly fine on my mac? Any clues?

Mongodb version is also the same on both machines.


#2

Hi,

Maybe different connection params?

Best regards,
Christian


#3

I eventually solved this problem by deleting all the mongodb collections and start from scratch.