Giter VIP home page Giter VIP logo

Comments (3)

szjozsef avatar szjozsef commented on June 24, 2024

Same here, with the mention that the first error logged is:

{
	"application": "mongoose_push",
	"at": "Elixir.MongoosePush.Application.check_runtime_configuration_status/0:212",
	"erl_level": "info",
	"file": "lib/mongoose_push/application.ex",
	"pid": "#PID<0.1802.0>",
	"reason": "no_release",
	"severity": "info",
	"status": "error",
	"text": "Skipping TOML configuration due to non-release boot",
	"what": "toml_configuration",
	"when": "2022-10-19T06:38:14.772",
	"domain[0]": "elixir"
}

This with the "latest" docker release
Maybe it is related to the #204
The config.toml is there, is valid, at least it is working well with the previous docker image: mongooseim/mongoose-push:235ab4d
The config.toml is parsed (if some I set some invalid values, then at the start the correct error is logged), but somehow get overwritten ? and the application starts with some kind of default configuration, at least that can be the reason why tries to parse p8_file, even if I had not configured such kind of options in apns section.
My config.toml is pretty much similar to the example from: guides/configuration.md

Maybe the issue is that in mix.exs the Config lines order was reversed in the last commits:

        config_providers: [
          {MongoosePush.Config.Provider.Toml, [path: "var/config.toml"]},
          {MongoosePush.Config.Provider.Confex, []}
        ]

and it seems the Toml generated config get's overwritten by the default config via Confex

from mongoosepush.

pawlooss1 avatar pawlooss1 commented on June 24, 2024

@theanhoo it seems like MongoosePush is really using the default config which for MIX_ENV=prod fails if some required values are not configured. In this case you have "key":null, "team":null which should be set when using token auth. Also, the "p8_file" is also default: priv/apns/token.p8. Could you show me your configuration file? Or maybe you're setting your base config via environmental variables?

from mongoosepush.

pawlooss1 avatar pawlooss1 commented on June 24, 2024

@szjozsef Thanks for pointing out to that PR. However, it is not the order of config providers that causes the issue. Confex will override only those options which were not set previously and can be defined in environmental variables. It is this change which causes such log. Old code would set such flag to later indicate in the logs if TOML config was used. However, this log should be harmless because other configuration options should be set MongoosePush.Config.Provider.Toml. The real problem is that the system is trying to configure pools from both TOML configuration and environment variables configuration which fails if the required ones are not defined. I'll prepare a fix for this.

from mongoosepush.

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.