Code Monkey home page Code Monkey logo

Comments (4)

Horusiath avatar Horusiath commented on September 13, 2024

Yes, this example should cooperate with StatsD, but your issue seems to have a different reason. I'll check it out later.

from akkacqrs.

varghesep avatar varghesep commented on September 13, 2024

I made a change in the code to dump the log to a txt file as below:

        private void ConfigureLogger(IAppBuilder app)
        {
            var logger = new LoggerConfiguration().WriteTo.File(@"c:\temp\log.txt").CreateLogger();
            Serilog.Debugging.SelfLog.Out = Console.Out;
            Serilog.Log.Logger = logger;
        }

This is what I see in the log.txt

2015-07-07 20:39:27.726 -05:00 [Error] "Access to the path 'snapshots' is denied."
[akka://akka-cqrs/system/akka.persistence.snapshot-store.local]: Akka.Actor.ActorInitializationException: Exception during creation ---> System.UnauthorizedAccessException: Access to the path 'snapshots' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   at System.IO.DirectoryInfo.Create()
   at Akka.Persistence.Snapshot.LocalSnapshotStore.PreStart()
   at Akka.Actor.ActorBase.AroundPreStart()
   at Akka.Actor.ActorCell.<>c__DisplayClass4c.<Create>b__4b()
   at Akka.Actor.ActorCell.UseThreadContext(Action action)
   at Akka.Actor.ActorCell.Create(Exception failure)
   --- End of inner exception stack trace ---
   at Akka.Actor.ActorCell.Create(Exception failure)
   at Akka.Actor.ActorCell.SystemInvoke(Envelope envelope)
2015-07-07 20:39:27.773 -05:00 [Information] "Message LoadSnapshot from akka://akka-cqrs/user/users/user-ec81a30f12d94f9bb0157e2b0e9746f7 to akka://akka-cqrs/system/akka.persistence.snapshot-store.local was not delivered. 1 dead letters encountered."

Is this caused by the directory snapshot not existing? I'm an admin on this laptop and I was able to see another example was able to create a snapshot folder under the bin folder.

from akkacqrs.

Horusiath avatar Horusiath commented on September 13, 2024

Your web app may be running using different permissions than your own, i.e. when your running your app on IIS.

from akkacqrs.

4deeptech avatar 4deeptech commented on September 13, 2024

The snapshot setup by default uses the local snapshot store implementation. It configures by looking for a hocon default property for 'dir' which is relative. In this case it is probably the root folder for IISEXPRESS which for me is: C:\Program Files (x86)\IIS Express. To get anywhere, I had to run VStudio as administrator to track this down. Other option is to use hocon and configure an alternate snapshot store. Even after doing this I haven't gotten everything to work right. I can create the j doe user and it displays a picture and generic content. I click create account and it creates an account. If I go to sign in and enter the jdoe email and pass it just hangs on the ask. Of course that may be that sign in once you are signed in may get ignored. Trying to figure out what all should work and what I should see and be able to do in the UI.

from akkacqrs.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.