Comments (8)
Your TOTP_VAULT_KEY
(added in v2.1.0) seems to be invalid, more info on it is in the "Quick start" https://github.com/plausible/community-edition/tree/v2.1.0#quick-start section of the guide.
The error comes from https://github.com/plausible/analytics/blob/cc867396b237c10ea996783844dc19e3e110aa73/config/runtime.exs#L163
from community-edition.
May I know why it mandates 32 chars for TOTP_VAULT_KEY?
This requirement comes from the library we use for vaulting the TOTP secrets in the database (so that they remain encrypted "at rest") - Cloak. This in turn is caused by specific requirements for AES key used for encryption and decryption in the underlying core OTP :crypto
API.
from community-edition.
Could you explain a bit more please? The current docker-compose.yml
uses plausible/analytics:v2.0
from community-edition.
Look at the v2.1 branch. The plausible link in the docker-compose file doesn't work
from community-edition.
Ah, thank you! I've updated it to a release candidate.
from community-edition.
Hello, I use v2.1.0
branch's docker-compose.yml
and it reports with following error:
docker-compose -f compose.production.yml logs -f plausible
plausible-plausible-1 | ERROR! Config provider Config.Reader failed with:
plausible-plausible-1 | ** (ArgumentError) incorrect padding
plausible-plausible-1 | (elixir 1.16.0) lib/base.ex:735: Base.decode64base!/2
plausible-plausible-1 | /app/releases/0.0.1/runtime.exs:163: (file)
plausible-plausible-1 | (elixir 1.16.0) src/elixir.erl:405: :elixir.eval_external_handler/3
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:750: :erl_eval.do_apply/7
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:1026: :erl_eval.expr_list/7
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:456: :erl_eval.expr/6
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:539: :erl_eval.expr/6
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:325: :erl_eval.expr/6
plausible-plausible-1 |
plausible-plausible-1 |
plausible-plausible-1 | Runtime terminating during boot ({#{message=><<"incorrect padding">>,'__struct__'=>'Elixir.ArgumentError','__exception__'=>true},[{'Elixir.Base','decode64base!',2,[{file,"lib/base.ex"},{l
ine,735}]},{elixir_eval,'__FILE__',1,[{file,"/app/releases/0.0.1/runtime.exs"},{line,163}]},{elixir,eval_external_handler,3,[{file,"src/elixir.erl"},{line,405}]},{erl_eval,do_apply,7,[{file,"erl_eval.erl"},{line,
750}]},{erl_eval,expr_list,7,[{file,"erl_eval.erl"},{line,1026}]},{erl_eval,expr,6,[{file,"erl_eval.erl"},{line,456}]},{erl_eval,expr,6,[{file,"erl_eval.erl"},{line,539}]},{erl_eval,expr,6,[{file,"erl_eval.erl"},
{line,325}]}]})
plausible-plausible-1 |
plausible-plausible-1 | Crash dump is being written to: erl_crash.dump...done
plausible-plausible-1 | ERROR! Config provider Config.Reader failed with:
plausible-plausible-1 | ** (ArgumentError) incorrect padding
plausible-plausible-1 | (elixir 1.16.0) lib/base.ex:735: Base.decode64base!/2
plausible-plausible-1 | /app/releases/0.0.1/runtime.exs:163: (file)
plausible-plausible-1 | (elixir 1.16.0) src/elixir.erl:405: :elixir.eval_external_handler/3
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:750: :erl_eval.do_apply/7
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:1026: :erl_eval.expr_list/7
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:456: :erl_eval.expr/6
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:539: :erl_eval.expr/6
plausible-plausible-1 | (stdlib 5.2) erl_eval.erl:325: :erl_eval.expr/6
plausible-plausible-1 |
v2.0 works well.
Just FYI.
from community-edition.
@ruslandoga works like a charm after change TOTP_VAULT_KEY
to be 32 chars long.
May I know why it mandates 32 chars for TOTP_VAULT_KEY
?
Meanwhile, I suggest to declare this requirements in the doc to avoid future confusions.
from community-edition.
Meanwhile, I suggest to declare this requirements in the doc to avoid future confusions.
Right, will do! Thank you for the suggestions.
May I know why it mandates 32 chars for TOTP_VAULT_KEY?
@zoldar could help with this one out please?
from community-edition.
Related Issues (20)
- document TOTP_VAULT_KEY length requirement HOT 1
- add Bamboo.Mua + gmail app password guide HOT 1
- document extra config
- Web page is not accessible after deploy containers using docker composer HOT 1
- Is it possible to use GeoIP databases with additional information? HOT 4
- document docker compose override files
- Arm64 Images support HOT 2
- Upgrade from 1.5 to 2.1 RC resulted in data loss HOT 2
- CH volume for logs
- Feature Request: Expose custom JS API to detect unique user/visitor HOT 1
- Clickhouse version 23.3 no longer supported HOT 3
- document DATA_DIR HOT 1
- [error] <PID> running PlausibleWeb.Endpoint (connection stream id ) terminated | (Protocol.UndefinedError) protocol Jason.Encoder not implemented for HOT 5
- Raspberry Pi + Cloudflare tunnel issue while docker compose HOT 5
- Preview doesn't load HOT 2
- Plausible log in weekly/monthly email reports points to a HTTP 404 link HOT 3
- Caddy-gen doesn't support ARM
- External Postgres DB connection (with ssl, digitalocean) does not work HOT 7
- enable query_log in ClickHouse HOT 1
- Database plausible_events_db does not exist HOT 8
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 community-edition.