about 3 years ago - SLG-Dennis - Direct link
Originally posted by Devinous: Here is the full log in case anyone can help - Lots of work down the drain if I cant get to this world.

[19:47:08.001] [5] [ Info] [Eco] [Server Initialization]... Finished in 20,361.6ms

[19:47:08.016] [26] [Error] [Eco] Failed to start the server. Exception was Exception: UnauthorizedAccessException
Message:Access to the path 'D:\Program Files (x86)\Steam\steamapps\common\Eco\Eco_Data\Server\Configs\Users.eco' is denied.
Source:System.Private.CoreLib

System.UnauthorizedAccessException: Access to the path 'D:\Program Files (x86)\Steam\steamapps\common\Eco\Eco_Data\Server\Configs\Users.eco' is denied.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.File.AsyncStreamWriter(String path, Encoding encoding, Boolean append)
at System.IO.File.WriteAllTextAsync(String path, String contents, Encoding encoding, CancellationToken cancellationToken)
at System.IO.File.WriteAllTextAsync(String path, String contents, CancellationToken cancellationToken)
at Eco.Core.FileStorage.FileSystemStorage.WriteAllTextAsync(String fileName, String contents)
at Eco.Core.FileStorage.AbsolutePathAwareStorage.WriteAllTextAsync(String fileName, String contents)
at Eco.Core.Plugins.PluginConfig`1.LoadAsync(String filename)
Outer Exceptions:
One or more errors occurred. (Exception has been thrown by the target of an invocation.)
Exception has been thrown by the target of an invocation.
One or more errors occurred. (Access to the path 'D:\Program Files (x86)\Steam\steamapps\common\Eco\Eco_Data\Server\Configs\Users.eco' is denied.)

[19:47:08.016] [26] [ Info] [Eco] Shutdown finished
This is blocked access, in nearly all cases caused by security software. Make sure to disable any you have.

Originally posted by Ricdic: Where did you get that log from? I just reloaded my private server/game (after playing fine for a few hours this morning and the Server log is showing this error. Tries to load up the server and then goes back to "connecting" and then back to title screen. Can't get in now:

[09:50:26.431] [25] [Error] [Eco] LiteDB.LiteException: Invalid Data on 0. Full zero: True. Page Type: Empty. Prev/Next: 0/0. UniqueID: 1868. ShareCounter: -1.
at LiteDB.Engine.DataPage..ctor(PageBuffer buffer)
at LiteDB.Engine.BasePage.ReadPage[T](PageBuffer buffer)
at LiteDB.Engine.Snapshot.ReadPage[T](UInt32 pageID, FileOrigin& origin, Int64& position, Int32& walVersion)
at LiteDB.Engine.Snapshot.GetPage[T](UInt32 pageID, FileOrigin& origin, Int64& position, Int32& walVersion)
at LiteDB.Engine.DataService.Delete(PageAddress blockAddress)
at LiteDB.Engine.DataService.<>c__DisplayClass4_0.<g__source|0>d.MoveNext()
at LiteDB.Engine.BufferWriter.MoveFordward(Int32 count)
at LiteDB.Engine.BufferWriter.WriteDocument(BsonDocument value, Boolean recalc)
at LiteDB.Engine.DataService.Update(CollectionPage col, PageAddress blockAddress, BsonDocument doc)
at LiteDB.Engine.LiteEngine.UpdateDocument(Snapshot snapshot, CollectionPage col, BsonDocument doc, IndexService indexer, DataService data)
at LiteDB.Engine.LiteEngine.<>c__DisplayClass30_0.b__0(TransactionService transaction)
at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func`2 fn)
at LiteDB.Engine.LiteEngine.Upsert(String collection, IEnumerable`1 docs, BsonAutoId autoId)
at LiteDB.LiteCollection`1.Upsert(IEnumerable`1 entities)
at LiteDB.LiteCollection`1.Upsert(T entity)
at Eco.Stats.Stats.Record(Int32 time, String collection, Single value)
at Eco.Simulation.WorldLayers.SimStats.CollectStats(Double delta)
at Eco.Simulation.EcoSim.CollectStats()
at Eco.Core.Plugins.TickTimeUtil.TimeSubprocess(Action func)
at Eco.Simulation.EcoSim.DoTick(TickSample tick)
at Eco.Simulation.EcoSim.DoWork(CancellationToken token)
at Eco.Core.Utils.Threading.RepeatableWorkerBase.DoWork(CancellationToken token)
at Eco.Core.Utils.Threading.WorkerBase.ShutdownAsync()
at Eco.Core.Utils.Threading.WorkerExtensions.Shutdown(IWorker worker)
at Eco.Server.PluginManager.<>c.b__36_0(PluginRegistration reg)
This is a corrupted database, most often caused by ungraceful shutdowns. You can restore an older database backup from the Backups folder. (Copy the latest working .db file of your save to the storage folder)
almost 3 years ago - SLG-Dennis - Direct link
You're welcome - always make sure you end Eco gracefully.