Giter Site home page Giter Site logo

Mnesia :bad_type error about pow HOT 7 CLOSED

danschultzer avatar danschultzer commented on May 3, 2024
Mnesia :bad_type error

from pow.

Comments (7)

danschultzer avatar danschultzer commented on May 3, 2024

Distillery doesn't include the :mnesia app by default, so you'll have to explicitly state that it's an included application in your mix.exs for it to be built into your release:

defmodule MyApp.Application do
  use Mix.Project

  # ...

  def application do
    [
      mod: {MyApp.Application, []},
      extra_applications: [:logger, :runtime_tools],
      included_applications: [:mnesia] # <--- Add to :included_applications
    ]
  end

  # ...
end

from pow.

danschultzer avatar danschultzer commented on May 3, 2024

I'm not sure if it'll be picked up in :extra_applications.

from pow.

danschultzer avatar danschultzer commented on May 3, 2024

Also, if you experienced a failed start of your app the first time you deployed, because mnesia wasn't available, then remove the initialized mnesia data files in production and restart with the fixed version. I've experienced that these initialized files can't be used if the whole app is halted.

from pow.

danschultzer avatar danschultzer commented on May 3, 2024

FWIW, I had trouble get this running myself the first time around. This was a production app with a few hundred daily visitors. The mnesia errors are difficult to read, but ever since I got the mnesia files initialized properly it has been working 100% of the time.

from pow.

danschultzer avatar danschultzer commented on May 3, 2024

@jung-hunsoo did you get this working?

from pow.

jung-hunsoo avatar jung-hunsoo commented on May 3, 2024

@danschultzer Oh sorry. I've been in other issues..

Yeap, it's working now. Both dev and prod works fine. Actually I don't know it's working properly. At least it showed no error.

from pow.

danschultzer avatar danschultzer commented on May 3, 2024

Great! It's working with mnesia if there's no errors.

from pow.

Related Issues (20)

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.