Advertisement
Guest User

Untitled

a guest
Apr 7th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. =INFO REPORT==== 7-Apr-2016::16:23:28 ===
  2. application: logger
  3. exited: stopped
  4. type: temporary
  5. ** (Mix) Could not start application tpos: exited in: Tpos.start(:normal, [])
  6. ** (EXIT) exited in: GenServer.call(#PID<0.164.0>, {:get_all, Tpos.Data.Models.ProfitCenter}, 5000)
  7. ** (EXIT) exited in: GenServer.call(#PID<0.163.0>, {:checkout, :run}, 5000)
  8. ** (EXIT) exited in: GenServer.call(#PID<0.168.0>, {:connect, [hostname: "localhost", timeout: 5000, otp_app: :tpos, repo: Tpos.Repo, adapter: Ecto.Adapters.MySQL, database: "tpos", username: "tpos", password: "tpos", port: 3306]}, 5000)
  9. ** (EXIT) an exception was raised:
  10. ** (UndefinedFunctionError) undefined function :crypto.hash/2 (module :crypto is not available)
  11. (crypto) :crypto.hash(:sha, "tpos")
  12. (mariaex) lib/mariaex/protocol.ex:150: Mariaex.Protocol.mysql_native_password/2
  13. (mariaex) lib/mariaex/protocol.ex:47: Mariaex.Protocol.dispatch/2
  14. (mariaex) lib/mariaex/connection.ex:284: Mariaex.Connection.process/2
  15. (mariaex) lib/mariaex/connection.ex:251: Mariaex.Connection.handle_info/2
  16. (stdlib) gen_server.erl:615: :gen_server.try_dispatch/4
  17. (stdlib) gen_server.erl:681: :gen_server.handle_msg/5
  18. (stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
  19.  
  20. data = Repo.all(ProfitCenter)
  21.  
  22. defmodule Tpos.Mixfile do
  23. use Mix.Project
  24.  
  25. def project do
  26. [app: :tpos,
  27. version: "0.0.1",
  28. elixir: "~> 1.2",
  29. build_embedded: Mix.env == :prod,
  30. start_permanent: Mix.env == :prod,
  31. deps: deps]
  32. end
  33.  
  34. def application do
  35. [ applications: [:mariaex, :ecto],
  36. mod: { Tpos, [] } ]
  37. end
  38.  
  39. defp deps do
  40. [
  41. {:credo, "~> 0.3", only: [:dev, :test]},
  42. {:mariaex, "~> 0.5.0"},
  43. {:ecto, "~> 1.1.5"},
  44. {:exactor, "~> 2.2.0"}
  45. ]
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement