Comments (3)
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.
@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.
@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)
- FCM error: Unable to complete push request due to service error: INVALID_ARGUMENT in category: invalid_request HOT 3
- MAM query archive response containing empty 'to' field HOT 1
- mongoosepush start error HOT 5
- Unauthorized error HOT 4
- Getting genserver crash every few minutes HOT 3
- Swagger HOT 2
- Inconsistent behaviour sending data payload on apns vs. fcm HOT 13
- TooManyProviderTokenUpdates HOT 3
- MongoosePush crashes at startup HOT 2
- MongoosePush crashes at startup HOT 1
- When hit MongoosePush API nothing to show in web browser HOT 1
- Failed to start H2 connection HOT 1
- where do I find sys.config? HOT 1
- Is it possible to disable SSL certificate for http endpoint? HOT 2
- Question - Is it possible to disable Push Notifications based on a user's 'Do not disturb' status? HOT 2
- FCM not sending notification HOT 2
- Server cannot create ssl connection HOT 2
- Is it possible to send apns notification to fcm while using with mongooseim HOT 2
- `no_matching_pool` error while trying to send notification to fcm HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoosepush.