Comments (8)
When putting the hash in '', the application crashes:
File "/etc/ihatemoney/ihatemoney.cfg", line 4
ADMIN_PASSWORD = ''pbkdf2:sha256:260000$aK5qSyAdIa762UNO$xxxx''
SyntaxError: invalid decimal literal
[2023-07-10 14:35:54 +0000] [8] [INFO] Worker exiting (pid: 8)
[2023-07-10 14:35:54 +0000] [1] [INFO] Shutting down: Master
[2023-07-10 14:35:54 +0000] [1] [INFO] Reason: Worker failed to boot.```
from ihatemoney.
When putting the hash in '', the application crashes:
File "/etc/ihatemoney/ihatemoney.cfg", line 4 ADMIN_PASSWORD = ''pbkdf2:sha256:260000$aK5qSyAdIa762UNO$xxxx'' SyntaxError: invalid decimal literal [2023-07-10 14:35:54 +0000] [8] [INFO] Worker exiting (pid: 8) [2023-07-10 14:35:54 +0000] [1] [INFO] Shutting down: Master [2023-07-10 14:35:54 +0000] [1] [INFO] Reason: Worker failed to boot.```
Single ' not double
from ihatemoney.
I have the same issue.
I am on Ubuntu 22.04.1 LTS and using Portainer CE 2.17.0 Docker 23.0.1.
I tried generating the hash using just ihatemoney generate_password_hash
via the Portainer Console within the container, as well as generating it via the console using the same command you did.
Here's my compose file:
version: "3.9"
services:
ihatemoney:
image: ihatemoney/ihatemoney:latest
environment:
- DEBUG=False
- ACTIVATE_ADMIN_DASHBOARD=True
- ACTIVATE_DEMO_PROJECT=False
- ADMIN_PASSWORD=<hash-generated-as-described-above>
- ALLOW_PUBLIC_PROJECT_CREATION=True
- BABEL_DEFAULT_TIMEZONE=Europe/Vienna
- GREENLET_TEST_CPP=no
- MAIL_DEFAULT_SENDER=Budget Manager <[email protected]>
- MAIL_PASSWORD=
- MAIL_PORT=25
- MAIL_SERVER=localhost
- MAIL_USE_SSL=False
- MAIL_USE_TLS=False
- MAIL_USERNAME=
- SECRET_KEY=<is-a-secret>
- SESSION_COOKIE_SECURE=False
- SHOW_ADMIN_EMAIL=True
- SQLALCHEMY_DATABASE_URI=sqlite:////database/ihatemoney.db
- SQLALCHEMY_TRACK_MODIFICATIONS=False
- ENABLE_CAPTCHA=True
- LEGAL_LINK=
- PORT=8000
- PUID=0
- PGID=0
ports:
- 32660:8000
from ihatemoney.
I too tried installing this recently and also can't access.. even though I got the proper hash or atleast the one generated by the command.
I tried multiple times, but no change. FWIW here's my Settings and the error I'm getting.
version: "3.9"
services:
ihatemoney:
image: ihatemoney/ihatemoney:latest
container_name: ihatemoney
environment:
- DEBUG=False
- ACTIVATE_ADMIN_DASHBOARD=True
- ACTIVATE_DEMO_PROJECT=False
- ADMIN_PASSWORD=pbkdf2:sha256:260000$jk0qpL7E8i35MrNM$f2ac9f48fa356c44fef95639c3cac588df0eaf455d29753a827f8df74814a709
- ALLOW_PUBLIC_PROJECT_CREATION=False
- BABEL_DEFAULT_TIMEZONE=america/new_york
- GREENLET_TEST_CPP=no
- MAIL_DEFAULT_SENDER=
- MAIL_PASSWORD=
- MAIL_PORT=
- MAIL_SERVER=
- MAIL_USE_SSL=True
- MAIL_USE_TLS=False
- MAIL_USERNAME=
- SECRET_KEY=pingadulce
- SESSION_COOKIE_SECURE=True
- SHOW_ADMIN_EMAIL=True
- SQLALCHEMY_DATABASE_URI=sqlite:////database/ihatemoney.db
- SQLALCHEMY_TRACK_MODIFICATIONS=False
- ENABLE_CAPTCHA=False
- LEGAL_LINK=
- PORT=8000
- PUID=0
- PGID=0
networks:
- nginx_default
ports:
- "8003:8000"
networks:
nginx_default:
external: true
and getting this:
WARN[0000] The "jk0qpL7E8i35MrNM" variable is not set. Defaulting to a blank string.
WARN[0000] The "f2ac9f48fa356c44fef95639c3cac588df0eaf455d29753a827f8df74814a709" variable is not set. Defaulting to a blank string.
Which makes it seem like it's just ignoring everything after "$"
If any of this helps :D
from ihatemoney.
This fixed it... Might be worth adding this in documentation.. but sharing here for @AkshayRao27 @Chacsam
Made a separate post so if someone runs into my previous example. But I am now operational! Thanks!
from ihatemoney.
I tried the fixes listed in #334
- I removed all dollar signs from the Secret Key
- I used the no-dollared secret key to generate a new hash
- I double-dollared all of the dollar signs in the hash and redeployed
It still doesn't work for me. What might I be doing wrong?
from ihatemoney.
The trick is to put the hash in '':
- ADMIN_PASSWORD='pbkdf2:sha256:260000$randomhash'
from ihatemoney.
So, quoting doesn't work, because it gets quoted again in Python.
But double dollars work fine, I have added some "documentation" about it here: #1183
from ihatemoney.
Related Issues (20)
- Deprecate 'latest' tag on docker hub HOT 2
- Werkzeug 2.3 incompatibility: AttributeError: 'NoneType' object has no attribute 'lower' HOT 4
- Use the ActivityPub protocol to federate usage across ihatemoney instances HOT 3
- Different behaviors while directly visit project URLs HOT 3
- Change project password as admin without knowing the old one HOT 1
- If I add something the confirmation overlay is over new entry
- E-Mail with the internal IP HOT 2
- Changing any settings is prevented when project has existing currency HOT 2
- Bill Type: Invalid Choice: could not coerce. HOT 3
- Adding invalid reimbursements can cause the debt solver to fail HOT 2
- Cannot install in dev mode with python 3.12 HOT 4
- Find a consistent name for the new "reimbursement" / "settlement" / "transfer" bill type HOT 8
- CSRF Token: The CSRF tokens do not match. HOT 1
- Figure out how to generate correct URLs in emails
- Feature request: users and permissions HOT 2
- Login with wrong password
- [Question] HOW to access the admin dashboard ? HOT 1
- [Feature request] Associate bank accounts to users HOT 6
- Merge translations HOT 1
- Best config for spambot-safe deployment ?
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 ihatemoney.