Problem with local directory

2.0

#1

I have some tests that use flapdoodle embedded MongoDB which it tries to install in /home/circleci/.embedmongo and fails:

[info] java.lang.IllegalArgumentException: Could NOT create Directory /home/circleci/.embedmongo
[info] at de.flapdoodle.embed.process.store.LocalArtifactStore.createOrCheckDir(LocalArtifactStore.java:62)
[info] at de.flapdoodle.embed.process.store.LocalArtifactStore.createOrGetBaseDir(LocalArtifactStore.java:55)
[info] at de.flapdoodle.embed.process.store.LocalArtifactStore.getArtifact(LocalArtifactStore.java:70)
[info] at de.flapdoodle.embed.process.store.LocalArtifactStore.checkArtifact(LocalArtifactStore.java:38)
[info] at de.flapdoodle.embed.process.store.ArtifactStore.checkDistribution(ArtifactStore.java:65)
[info] at de.flapdoodle.embed.process.store.ExtractedArtifactStore.checkDistribution(ExtractedArtifactStore.java:60)
[info] at de.flapdoodle.embed.process.runtime.Starter.prepare(Starter.java:56)
[info] at de.flapdoodle.embed.process.runtime.Starter.prepare(Starter.java:49)
[info] at com.github.simplyscala.MongoEmbedDatabase.mongodExec(MongoEmbedDatabase.scala:48)
[info] at com.github.simplyscala.MongoEmbedDatabase.mongoStart(MongoEmbedDatabase.scala:25)

Anybody know how I can fix this?

Thanks


#2

Looks like a permissions issue. What is trying to write to /home/circleci/.embedmongo?

It would help if you added your YAML config, in a formatted block. Please also format your logs in the first post in the same way - Markdown format is supported here (triple-backticks or four-space indents will work).