Another corruption?

228 views
Skip to first unread message

Paul Hinett

unread,
Jan 30, 2017, 3:06:08 AM1/30/17
to rav...@googlegroups.com

Woke up to this….any ideas if I can correct without restoring from backup?

 

 

Could not open database named: housemixes

System.AggregateException: One or more errors occurred. ---> System.ArgumentException: A positive capacity must be specified for a Memory Mapped File backed by an empty file.

  at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateFromFile(FileStream fileStream, String mapName, Int64 capacity, MemoryMappedFileAccess access, MemoryMappedFileSecurity memoryMappedFileSecurity, HandleInheritability inheritability, Boolean leaveOpen)

  at Voron.Platform.Win32.Win32MemoryMapPager.CreatePagerState()

  at Voron.Platform.Win32.Win32MemoryMapPager..ctor(String file, Nullable`1 initialFileSize, Win32NativeFileAttributes options, Win32NativeFileAccess access)

  at Voron.StorageEnvironmentOptions.DirectoryStorageEnvironmentOptions.OpenJournalPager(Int64 journalNumber)

  at Voron.Impl.Journal.WriteAheadJournal.RecoverDatabase(TransactionHeader* txHeader)

  at Voron.StorageEnvironment.LoadExistingDatabase()

  at Voron.StorageEnvironment..ctor(StorageEnvironmentOptions options)

  at Raven.Database.Storage.Voron.Impl.TableStorage..ctor(StorageEnvironmentOptions options, IBufferPool bufferPool) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Storage\Voron\Impl\TableStorage.cs:line 64

  at Raven.Storage.Voron.TransactionalStorage.Initialize(IUuidGenerator generator, OrderedPartCollection`1 documentCodecs, Action`1 putResourceMarker) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Storage\Voron\TransactionalStorage.cs:line 351

  at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration, TransportState recievedTransportState) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\DocumentDatabase.cs:line 164

  at Raven.Database.Server.Tenancy.DatabasesLandlord.<>c__DisplayClassb.<TryGetOrCreateResourceStore>b__8() in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Server\Tenancy\DatabaseLandlord.cs:line 182

  at System.Threading.Tasks.Task`1.InnerInvoke()

  at System.Threading.Tasks.Task.Execute()

  --- End of inner exception stack trace ---

  at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

  at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)

  at System.Threading.Tasks.Task.Wait(TimeSpan timeout)

  at Raven.Database.Server.Controllers.RavenDbApiController.TrySetupRequestToProperResource(RequestWebApiEventArgs& args) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Server\Controllers\RavenDbApiController.cs:line 652

---> (Inner Exception #0) System.ArgumentException: A positive capacity must be specified for a Memory Mapped File backed by an empty file.

  at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateFromFile(FileStream fileStream, String mapName, Int64 capacity, MemoryMappedFileAccess access, MemoryMappedFileSecurity memoryMappedFileSecurity, HandleInheritability inheritability, Boolean leaveOpen)

  at Voron.Platform.Win32.Win32MemoryMapPager.CreatePagerState()

  at Voron.Platform.Win32.Win32MemoryMapPager..ctor(String file, Nullable`1 initialFileSize, Win32NativeFileAttributes options, Win32NativeFileAccess access)

  at Voron.StorageEnvironmentOptions.DirectoryStorageEnvironmentOptions.OpenJournalPager(Int64 journalNumber)

  at Voron.Impl.Journal.WriteAheadJournal.RecoverDatabase(TransactionHeader* txHeader)

  at Voron.StorageEnvironment.LoadExistingDatabase()

  at Voron.StorageEnvironment..ctor(StorageEnvironmentOptions options)

  at Raven.Database.Storage.Voron.Impl.TableStorage..ctor(StorageEnvironmentOptions options, IBufferPool bufferPool) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Storage\Voron\Impl\TableStorage.cs:line 64

  at Raven.Storage.Voron.TransactionalStorage.Initialize(IUuidGenerator generator, OrderedPartCollection`1 documentCodecs, Action`1 putResourceMarker) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Storage\Voron\TransactionalStorage.cs:line 351

  at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration, TransportState recievedTransportState) in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\DocumentDatabase.cs:line 164

  at Raven.Database.Server.Tenancy.DatabasesLandlord.<>c__DisplayClassb.<TryGetOrCreateResourceStore>b__8() in c:\Builds\RavenDB-3.0-Unstable\Raven.Database\Server\Tenancy\DatabaseLandlord.cs:line 182

  at System.Threading.Tasks.Task`1.InnerInvoke()

  at System.Threading.Tasks.Task.Execute()<---




Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


Oren Eini (Ayende Rahien)

unread,
Jan 30, 2017, 3:19:58 AM1/30/17
to ravendb
Can you check if you have a zero len file there?
It looks like it failed at just the point it created it, before it set the size.

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.

Paul Hinett

unread,
Jan 30, 2017, 4:10:43 AM1/30/17
to rav...@googlegroups.com

I have the  following empty files:

 

0000000000000157100.journal -> 0000000000000157147.journal

 

Can I delete these?

--

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

 

--

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+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Jan 30, 2017, 4:31:29 AM1/30/17
to ravendb
yes

--

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.

--
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.

--
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.

Paul Hinett

unread,
Jan 30, 2017, 4:33:21 AM1/30/17
to ravendb
Remove them, now on startup it's complainign about a missing journal.

Could not open database named: housemixes System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: No such journal D:\RavenDb3Stable\Server\Database\housemixes\0000000000000157100.journal 


---- On Mon, 30 Jan 2017 09:31:03 +0000 Oren Eini (Ayende Rahien) <aye...@ayende.com> wrote ----

yes

Hibernating Rhinos Ltd  

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

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


 


On Mon, Jan 30, 2017 at 11:10 AM, Paul Hinett <pa...@ukcreativedesigns.com> wrote:



--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I have the  following empty files:

--

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
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+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
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+u...@googlegroups.com.

Paul

unread,
Jan 30, 2017, 6:27:57 AM1/30/17
to RavenDB - 2nd generation document database
I know you may be busy so i'm not requesting immediate assistance, but if you have some time to try and correct this journal issue on skype that would be great...if it's going to be later today / tomorrow for example i will just restore from the backup file.

Thank You.

Oren Eini (Ayende Rahien)

unread,
Jan 30, 2017, 9:09:49 AM1/30/17
to ravendb
Tal will go with you on Skype to fix this.


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.

Paul Hinett

unread,
Jan 30, 2017, 9:37:01 AM1/30/17
to rav...@googlegroups.com

Just want to leave a thank you here on a quick hot fix to get me back up and running…and I believe a permanent fix is coming to prevent this happening in the future.

 

It was due to running out of disk space and journal files failing to be generated.

 

From: rav...@googlegroups.com [mailto:rav...@googlegroups.com] On Behalf Of Oren Eini (Ayende Rahien)


Sent: 30 January 2017 14:09
To: ravendb <rav...@googlegroups.com>

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

 

--

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+u...@googlegroups.com.

Laurent Huot

unread,
Dec 13, 2018, 10:25:24 AM12/13/18
to RavenDB - 2nd generation document database
Hi, 

We have the same problem with our production environment. Unfortunately, the fix isn't part of the thread.

Oren Eini (Ayende Rahien)

unread,
Dec 13, 2018, 10:25:59 AM12/13/18
to ravendb
This is a thread from a year and a half ago.
Please create a new one with full details
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net
Reply all
Reply to author
Forward
0 new messages