TheHive-Project / Docker-Templates

Docker configurations for TheHive, Cortex and 3rd party tools
https://thehive-project.org
GNU Affero General Public License v3.0
112 stars 90 forks source link

ERROR: thehive The application secret has not been set #45

Closed getkub closed 2 years ago

getkub commented 2 years ago

While testing hive4+misp+elasticsearch, following error comes. Seems like the play.http.secret.key="changethissosomethingsecret" needs to be set as a env variable? (or secret)

[info] ScalligraphApplication [|] Loading application ...
[info] o.t.s.ScalligraphModule [|] Loading scalligraph module
[info] a.e.s.Slf4jLogger [|] Slf4jLogger started
[info] a.r.a.t.ArteryTcpTransport [|] Remoting started with transport [Artery tcp]; listening on address [akka://application@127.0.0.1:38545] with UID [6474092054687545453]
[info] a.c.Cluster [|] Cluster Node [akka://application@127.0.0.1:38545] - Starting up, Akka version [2.6.10] ...
[info] a.c.Cluster [|] Cluster Node [akka://application@127.0.0.1:38545] - Registered cluster JMX MBean [akka:type=Cluster]
[info] a.c.Cluster [|] Cluster Node [akka://application@127.0.0.1:38545] - Started up successfully
[info] a.c.Cluster [|] Cluster Node [akka://application@127.0.0.1:38545] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining
[info] a.c.s.SplitBrainResolver [|] SBR started. Config: strategy [KeepMajority], stable-after [20 seconds], down-all-when-unstable [15 seconds], selfUniqueAddress [akka://application@127.0.0.1:38545#6474092054687545453], selfDc [default].
[error] a.a.OneForOneStrategy [|] Unable to provision, see the following errors:

1) Error in custom provider, Configuration error: Configuration error[
The application secret has not been set, and we are in prod mode. Your application is not secure.
To set the application secret, please read http://playframework.com/documentation/latest/ApplicationSecret
          ]
  while locating play.api.http.HttpConfiguration$HttpConfigurationProvider
  while locating play.api.http.HttpConfiguration
    for the 1st parameter of play.api.http.HttpConfiguration$CookiesConfigurationProvider.<init>(HttpConfiguration.scala:378)
getkub commented 2 years ago

Found the issue as it was not mounting the application.conf directory properly. Closing it off