Issue with Docker on MacOS

32 views
Skip to first unread message

Carlos Mendes

unread,
Jan 19, 2018, 6:53:10 AM1/19/18
to RavenDB - 2nd generation document database
Hi there, I've been using RavenDB on my MacOS Sierra with Docker.

But now that I'm trying to map volumes, I'm getting errors when I start the container:

ravendb_1     |  Built with love by Hibernating Rhinos and awesome contributors!
ravendb_1     | +---------------------------------------------------------------+
ravendb_1     | Raven.Client.Exceptions.Server.ServerLoadFailureException: Failed to load system storage
ravendb_1     | At /opt/RavenDB/Server/RavenData/System ---> System.InvalidOperationException: EINVAL when opening /opt/RavenDB/Server/RavenData/System/0000000000000000000.journal
ravendb_1     |    at Sparrow.Platform.Posix.Syscall.ThrowLastError(Int32 lastError, String msg) in C:\Builds\RavenDB-4.0-RC\src\Sparrow\Platform\Posix\Syscall.cs:line 308
ravendb_1     |    at Voron.Platform.Posix.PosixJournalWriter..ctor(StorageEnvironmentOptions options, VoronPathSetting filename, Int64 journalSize) in C:\Builds\RavenDB-4.0-RC\src\Voron\Platform\Posix\PosixJournalWriter.cs:line 59
ravendb_1     |    at Voron.StorageEnvironmentOptions.DirectoryStorageEnvironmentOptions.<>c__DisplayClass17_0.<CreateJournalWriter>b__1() in C:\Builds\RavenDB-4.0-RC\src\Voron\StorageEnvironmentOptions.cs:line 388
ravendb_1     |    at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
ravendb_1     |    at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
ravendb_1     |    at System.Lazy`1.CreateValue()
ravendb_1     |    at Voron.StorageEnvironmentOptions.DirectoryStorageEnvironmentOptions.CreateJournalWriter(Int64 journalNumber, Int64 journalSize) in C:\Builds\RavenDB-4.0-RC\src\Voron\StorageEnvironmentOptions.cs:line 402
ravendb_1     |    at Voron.Impl.Journal.WriteAheadJournal.NextFile(Int32 numberOf4Kbs) in C:\Builds\RavenDB-4.0-RC\src\Voron\Impl\Journal\WriteAheadJournal.cs:line 129
ravendb_1     |    at Voron.Impl.Journal.WriteAheadJournal.WriteToJournal(LowLevelTransaction tx) in C:\Builds\RavenDB-4.0-RC\src\Voron\Impl\Journal\WriteAheadJournal.cs:line 1270
ravendb_1     |    at Voron.Impl.LowLevelTransaction.CommitStage2_WriteToJournal() in C:\Builds\RavenDB-4.0-RC\src\Voron\Impl\LowLevelTransaction.cs:line 904
ravendb_1     |    at Voron.Impl.LowLevelTransaction.Commit() in C:\Builds\RavenDB-4.0-RC\src\Voron\Impl\LowLevelTransaction.cs:line 783
ravendb_1     |    at Voron.StorageEnvironment.CreateNewDatabase() in C:\Builds\RavenDB-4.0-RC\src\Voron\StorageEnvironment.cs:line 436
ravendb_1     |    at Voron.StorageEnvironment..ctor(StorageEnvironmentOptions options) in C:\Builds\RavenDB-4.0-RC\src\Voron\StorageEnvironment.cs:line 145
ravendb_1     |    at Raven.Server.ServerWide.ServerStore.Initialize() in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\ServerWide\ServerStore.cs:line 387
ravendb_1     |    --- End of inner exception stack trace ---
ravendb_1     |    at Raven.Server.ServerWide.ServerStore.Initialize() in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\ServerWide\ServerStore.cs:line 400
ravendb_1     |    at Raven.Server.RavenServer.Initialize() in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\RavenServer.cs:line 118
ravendb_1     |    at Raven.Server.Program.Main(String[] args) in C:\Builds\RavenDB-4.0-RC\src\Raven.Server\Program.cs:line 124  
 
Here's my docker config:

ravendb:
image: ravendb/ravendb
ports:
- "8080:8080"
environment:
RAVEN_Setup_Mode: None
RAVEN_Security_UnsecuredAccessAllowed: PublicNetwork
volumes:
- ${PWD}/data/ravendb/data:/opt/RavenDB/Server/RavenData
- ${PWD}/data/ravendb/config:/opt/RavenDB/config

Thanks in advance

Oren Eini (Ayende Rahien)

unread,
Jan 19, 2018, 5:09:07 PM1/19/18
to ravendb
What is the file system that you are using this on?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlos Mendes

unread,
Jan 19, 2018, 6:10:19 PM1/19/18
to RavenDB - 2nd generation document database
It's an APFS volume Ayende.

If it isn't compatible, which type of volume should I use? 
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Jan 21, 2018, 2:25:00 AM1/21/18
to ravendb
IIRC, we tested on HFS or HFS+ and NTFS should also work
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages