cgwire / kitsu

Collaboration Platform for Animation and VFX Productions
https://kitsu.cg-wire.com
GNU Affero General Public License v3.0
368 stars 101 forks source link

question: reset password / email notification #566

Closed eugen666-wq closed 3 years ago

eugen666-wq commented 3 years ago

hello , since i never managed to properly install email notification/ smtp config, but started using kitsu on my first project already , i now got really worried that my team or me looses the password . so my question is: is there a way to reset a password of a certain user via terminal within zou / kitsu ? Or if not ...can someone point me into the right direction to successfull enable email notfication ? i tried with gmail and another provider .... but just doesn not work. tried ssl tsl .. etc . not sure what i am doing wrong.

so infact its 2 questions :)

in any case , thank you for this wonderfull tool ! its great work .

frankrousseau commented 3 years ago

Hello @eugen666-wq,

Thank you for your kind message. You can run the following commands:

cd /opt/zou
. zou/bin/activate
zou set_default_password email@studio.com

The user password will be back to default.

eugen666-wq commented 3 years ago

Fantastic ! Thank you very much.

Any Hints why the email Notification possibly could not work ?

My Logs from the Error while posting a comment with Notification ON looks like this:

My[2020-11-05 14:01:01,367] ERROR in init: Traceback (most recent call last): File "/opt/zou/zouenv/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/opt/zou/zouenv/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "/opt/zou/zouenv/lib/python3.6/site-packages/flask_restful/init.py", line 458, in wrapper resp = resource(*args, kwargs) File "/opt/zou/zouenv/lib/python3.6/site-packages/flask/views.py", line 89, in view return self.dispatch_request(*args, *kwargs) File "/opt/zou/zouenv/lib/python3.6/site-packages/flask_restful/init.py", line 573, in dispatch_request resp = meth(args, kwargs) File "/opt/zou/zouenv/lib/python3.6/site-packages/flask_jwt_extended/view_decorators.py", line 103, in wrapper return fn(*args, **kwargs) File "/opt/zou/zouenv/lib/python3.6/site-packages/zou/app/blueprints/comments/resources.py", line 88, in post created_at File "/opt/zou/zouenv/lib/python3.6/site-packages/zou/app/services/comments_service.py", line 83, in create_comment _manage_subscriptions(task, comment, status_changed) File "/opt/zou/zouenv/lib/python3.6/site-packages/zou/app/services/comments_service.py", line 138, in _manage_subscriptions task, comment, change=status_changed File "/opt/zou/zouenv/lib/python3.6/site-packages/zou/app/services/notifications_service.py", line 108, in create_notifications_for_task_and_comment recipient_id, author_id, comment, task File "/opt/zou/zouenv/lib/python3.6/site-packages/zou/app/services/emails_service.py", line 102, in send_comment_notification send_notification(person_id, subject, messages) File "/opt/zou/zouenv/lib/python3.6/site-packages/zou/app/services/emails_service.py", line 30, in send_notification subject, email_message + get_signature(), person["email"] File "/opt/zou/zouenv/lib/python3.6/site-packages/zou/app/utils/emails.py", line 21, in send_email mail.send(message) File "/opt/zou/zouenv/lib/python3.6/site-packages/flask_mail.py", line 491, in send with self.connect() as connection: File "/opt/zou/zouenv/lib/python3.6/site-packages/flask_mail.py", line 144, in enter self.host = self.configure_host() File "/opt/zou/zouenv/lib/python3.6/site-packages/flask_mail.py", line 158, in configure_host host = smtplib.SMTP(self.mail.server, self.mail.port) File "/usr/lib/python3.6/smtplib.py", line 251, in init (code, msg) = self.connect(host, port) File "/usr/lib/python3.6/smtplib.py", line 336, in connect self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python3.6/smtplib.py", line 307, in _get_socket self.source_address) File "/opt/zou/zouenv/lib/python3.6/site-packages/gevent/socket.py", line 101, in create_connection sock.connect(sa) File "/opt/zou/zouenv/lib/python3.6/site-packages/gevent/_socket3.py", line 407, in connect raise error(err, strerror(err)) ConnectionRefusedError: [Errno 111] Connection refused Log looks like this:

On Fri, 6 Nov 2020 at 10:51, Frank Rousseau notifications@github.com wrote:

Hello @eugen666-wq https://github.com/eugen666-wq,

Thank you for your kind message. You can run the following commands:

cd /opt/zou. zou/bin/activate zou set_default_password email@studio.com

The user password will be back to default.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cgwire/kitsu/issues/566#issuecomment-722986597, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARSB3I5GSTXUISQEUZPWET3SOPBJHANCNFSM4TL6AMTQ .

--

emd3000 GmbH

electric minds department — —

Eugen Danzinger / Managing Director

Telefon +41 78 621 65 16 Mail eugen.danzinger@emd3000.com emd3000 GmbH, Giesshübelstrasse 62I, 8045 Zürich c/o 8 Horses GmbH

www.emd3000.com http://www.emd3000.com/

frankrousseau commented 3 years ago

It seems you don't have set email variables properly. Did you refer to the documentation? https://zou.cg-wire.com/configuration/#emails