hodooor / Hodoor

Server side for Hodoor - Casual attendance system
GNU General Public License v3.0
8 stars 6 forks source link

Wrong Configuration hodoor mail #113

Closed OndrejVicar closed 6 years ago

OndrejVicar commented 6 years ago

There are still few wrong email password:

OndrejVicar commented 6 years ago

Still cant findout during deplay:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fabric/main.py", line 756, in main
    *args, **kwargs
  File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 386, in execute
    multiprocessing
  File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 276, in _execute
    return task.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 173, in run
    return self.wrapped(*args, **kwargs)
  File "/home/ondrej.vicar/Repo/Hodoor/hodoor/deploy_tools/fabfile.py", line 14, in deploy
    _update_settings(source_folder, env.host)
  File "/home/ondrej.vicar/Repo/Hodoor/hodoor/deploy_tools/fabfile.py", line 71, in _update_settings
    with open(settings_secret_file, "r") as f:
IOError: [Errno 2] No such file or directory: '/home/ondrej.vicar/sites/hodoor-staging.eledus.cz/source/ticker/settings_secret.py'
Disconnecting from hodoor-stagi

That file does exits...

ToKraTheSecond commented 6 years ago

Maybe you need different access rights?

DavidKozina commented 6 years ago

Creating of settings_secret and inserting values is now making only if it does not exist. Did you deleted it, @OndrejVicar ? Emails still do not work and I do not know how this file looks... and if it contains right values...

Please, just check if it contains SECRET_KEY and EMAIL_HOST_PASSWORD... thanks. If not, that is the bug we looking for. Or maybe access rights, unfortunately I don't know.

OndrejVicar commented 6 years ago

It does contain those values. It looks like this on production server:

settings_secret.py:

SECRET_KEY = '*********'
EMAIL_HOST_PASSWORD = '********'

I tested email password and it is correct.

DavidKozina commented 6 years ago

It should work...

Please, will you check if settings.py contains from .settings_secret import ...? Thanks, @OndrejVicar. I am sorry but as you know I cannot check it on my own.

DavidKozina commented 6 years ago

This is resolved, can be closed