Comments (10)
Yes, no need to encode the @
in username.
from fittrackee.
Did you configurate Redis?
See
Line 19 in e42b41a
from fittrackee.
Yes, I forgot to specify this in my first post, I already had a redis docker, and configured my Fittrackee container with the variable for redis.
from fittrackee.
Hi,
On startup, FitTrackee loads the email config from EMAIL_URL
. If it cannot parse the environment variable, it raises an error.
If there is no error at startup, it only means that EMAIL_URL
can be parsed (credentials may be invalid).
If no email is sent and there are no errors in the logs, it seems that the dramatiq workers have not been started.
Can you check if the workers are running?
(just for information, I'm not the maintainer of the docker image)
Encoded passwords are not decoded by FitTrackee, I'll fix that. Thanks for the bug report.
from fittrackee.
By running a shell inside the container, I executed this command :
"flask worker --processes=2 >> dramatiq.log 2>&1"
But nothing happens.
Inside the "dramatiq.log" I have this error :
2023/10/02 15:09:01 - dramatiq.worker.WorkerThread - ERROR - Failed to process message account_confirmation_email({'language': 'fr', 'email': '[email protected]'}, {'username': 'divers', 'fittrackee_url': 'https://fittrackee.server.fr', 'operating_system': 'Windows', 'browser_name': 'Firefox', 'account_confirmation_url': 'https://fittrackee.server.fr/account-confirmation?token=q8PCPWxZSj4iGnudb504fV28WXkB_9GHg9hP4mua'}) with unhandled exception.
Traceback (most recent call last):
File "/opt/venv/lib/python3.10/site-packages/dramatiq/worker.py", line 485, in process_message
res = actor(*message.args, **message.kwargs)
File "/opt/venv/lib/python3.10/site-packages/dramatiq/actor.py", line 177, in call
return self.fn(*args, **kwargs)
File "/usr/src/app/fittrackee/emails/tasks.py", line 48, in account_confirmation_email
email_service.send(
File "/usr/src/app/fittrackee/emails/email.py", line 173, in send
smtp.login(self.username, self.password) # type: ignore
File "/usr/local/lib/python3.10/smtplib.py", line 750, in login
raise last_exception
File "/usr/local/lib/python3.10/smtplib.py", line 739, in login
(code, resp) = self.auth(
File "/usr/local/lib/python3.10/smtplib.py", line 662, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Error: authentication failed:')
from fittrackee.
thanks for the feedback.
encoded password is not decoded, the MR #433 will fix this bug (fix not yet released).
from fittrackee.
Thanks
With this fix, are we supposed to put the EMAIL_URL with quotation marks or use encoded caracters as here ?
from fittrackee.
With encoded characters.
For instance with password passwith@and&and?
, the EMAIL_URL
will be: smtp://[email protected]:passwith%40and%26and%[email protected]:587?tls=True
from fittrackee.
Ok
The "@" character in the username doesn't need to be encoded ?
from fittrackee.
fix on encoded password released in v0.7.24
from fittrackee.
Related Issues (20)
- Init documentation translation HOT 1
- Block a user to hide unwanted content
- Moderation tools
- Inconsistent page with between workout with and without GPS data HOT 5
- Improve UI HOT 1
- Add new sport: paragliding HOT 5
- PIL.Image module has no attribute ANTIALIAS HOT 6
- CI - test a packaged version of FitTrackee
- Add new sport: open water swimming HOT 4
- handle gpx file without elevation HOT 1
- Workout display error when speeds are zero HOT 10
- Cannot send mails HOT 7
- Keep filter and sorting in workouts detail view
- Enhancement: New filter criterias
- [feature] enable dark mode for desktop size HOT 3
- Sharing experiences regarding hosting HOT 16
- (enhancement idea) Publishing an ical calendar of recorded activities
- Errors after upgrade to 0.7.24 HOT 4
- Docker "For Evaluation Purposes" HOT 2
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 fittrackee.