-
Notifications
You must be signed in to change notification settings - Fork 799
Not able to create account #18
Comments
In browser i also see below error : API unaccessible. HTTP 502: <title>502 Bad Gateway</title>502 Bad Gatewaynginx/1.4.6 (Ubuntu) |
Go into the supervisor directory and run:
When you get the supervisor prompt, run "status" to see what is running. There should be two things running: "securitymonkey" and "securitymonkeyscheduler". The "securitymonkey" entry is the Flask application that should be listening on port 5000. You can restart that process and then run status a few times to see if it worked.
Most likely, the flask application is having difficulty starting. There should be an error message somewhere in /tmp/securitymonkey.log I've seen problems where the flask application can't find the SECURITY_MONKEY_SETTINGS environment variable that is suppose to point to env-config/config-deploy.py |
Thanks for pointing to right direction. Now i see the error in /tmp/securitymonkey.log saying : What i did is - and restarted the service, But again getting same error. Should i require to set this in any config file ? What else am i missing ? |
Same path is mentioned in "security_monkey.ini" file. directory=/srv/security_monkey/ |
Solved - |
I'm glad you were able to fix it. I'll keep tracking this as I've seen it a few times. If you have the variable in your environment, maybe you should start supervisor with sudo -E instead of just sudo:
That doesn't make a lot of sense though since the variable should be getting set in security_monkey.ini. |
FYI - I just merged a pull request that may help with this issue: #25 |
Hi,
Should it require to use the ses endpoint and credentials somewhere ?
|
Hey skdubey, SES can be a pain to setup. I think you'll need to head into the console to setup/verify your email address. For the scheduler, could you backup your configurations try the develop branch?
Is the 404 an HTTP vs HTTPS issue? Thanks for the feedback. I want to get these things fixed soon so others don't run into them. |
Hi, Any update on this ? |
I tried by re-installing everything, but facing same issue. |
Hello, I am running into the same issue. Is there any fix on this? |
Finally i terminated the existing instance and started a new one with fresh setup and it worked for me this time except emails are not going through. My SES setup & configuration is correct. Can someone help me in this case ? |
I think SES got broken since the last merge to master, couldnt use SES since commit where SMTP was introduced here. |
Thanks for update. I just tried by using user/pass section, restarted 'securitymonkey' service but noticed that it still using SES to send mail and not second provider. Am i missing something here ? These are only required if using SMTP instead of SESEMAILS_USE_SMTP = True # Otherwise, Use SES |
Is it fixed ? btw, what is the process to get new updates ? Is it - git pull > restart services ? |
Hey skdubey. The region shouldn't matter as long as you're not in cn-north-1 or the gov region. I have instances running in us-west-1 as well. I also have this deployed in both ec2 and vpc. I just brought up a new instance yesterday and SES is working correctly.
If you would prefer SES, that should be set to False. Security Monkey does need a better upgrade mechanism. The Netflix way is to have the environment build and bake a new AMI for each version and replace the existing instance. (Instances at Netflix are intentionally somewhat immutable.) To do an in place upgrade, you would want to backup your custom configurations. These are probably in:
You can run a "git status" to have git tell you which files have been modified. Then do a git pull. Before you copy your config files back, compare them to the new config files that were just pulled down to see if you need to merge in any new settings. Then, restart the services. I'd love to receive a PULL request for easier upgrades. It could be as simple as renaming all the config files to "config_filename"+".default" in the git repo, so that a git pull won't overwrite their settings. Could also add "*.default" to the .gitignore. The installation instructions would need to be modified slightly to instruct users to copy the ".default" files into place and then modify them. |
SES works for me now, didnt notice that DEFAULT_MAIL_SENDER has been changed to MAIL_DEFAULT_SENDER To update is kind of simple for us, I have saltstack pillar with fixed commit hash, once I change the commit hash, all the installation process. |
Yeah, that's confusing. I believe Flask-Mail uses one of those and the Flask_Mail built into Flask-Security uses the other. |
Hi. I've spend lots of time to create a new account ad fix the other issues, but it seems I have to address this here. I get confirmation mail using SMTP, but: Internal Server Error 2014-08-29 15:28:48 [18285] [ERROR] Error handling request What is wrong here? |
Need help on points below - |
Hey skdubey, Try to use Chrome for the time being. I'm working on fixing an issue with Safari/Firefox. The users are stored in a database table called "user". You should see these tables in your database:
If you don't see any tables, you'll need to run You will need to be able to receive the Welcome email and confirm the account using the link provided in the email before you can login to your account. You can disable user registration by setting SECURITY_REGISTERABLE to false. You could then create individual users manually by adding a method to manage.py similar to the create_user() method listed here: https://pythonhosted.org/Flask-Security/quickstart.html
That way, user registration is a process that involves the security team. I'll add a method for manual user creation to manage.py for the next release. Your SES problems may be answered here: "Also, while all users must verify the email addresses or domains they will send from, sandbox users must also verify the email addresses or domains they will send to. The purpose of verification is to confirm that you own these email addresses or domains, and to prevent others from using them. See the Amazon SES Developer Guide for details on verifying email addresses and domains." |
skdubey: just ran into that postgres thing today, try: I think user is a postgres table as well and that gets hit without the schema name. |
Thanks gbarton, Now i see the list of users, but couldn't able to find the meaning of On Tue, Sep 9, 2014 at 1:02 AM, gbarton notifications@github.com wrote:
|
Ah!, sorry |
Thanks gbarton for helping out. I was stumped on the user table problem. Skdubey, how are you doing with your install now? Can this issue be closed or are you still running into issues? |
Hello Patrick, I still didn't get the welcome email part, where confirmation is required. Also curious to know the status of enhancements like, report should be On Tue, Sep 9, 2014 at 11:36 AM, Patrick Kelley notifications@github.com
|
Hi skdubey I managed to have it all running although no confirmation mail. I had the same issue with the confirmation mail, as you had, which now is fixed. Once more, make sure that you have full production for SES or confirm in SES email addresses/domains. What happened for me: I am running in eu-west, and the defaults in boto ses are for us-east. After changing the defaults in /usr/local/lib/python2.7/dist-packages/boto-2.32.1-py2.7.egg/boto/ses/connection.py class SESConnection(AWSAuthConnection):
everything worked and I could see mails comming. Also, after getting the welcome mail form registering, if I look in the USER table, all the users are marked as ACTIVE (True) . This is my 2 cents |
Thanks vgomolu, You gave me some hope, because i am running in us-west-2 region while the 2014-09-09 12:30:38,888 DEBG 'securitymonkeyscheduler' stderr output: One more observation i have is, in my system there are two python instances On Tue, Sep 9, 2014 at 5:34 PM, vgomoiu notifications@github.com wrote:
|
skdubey, I had exactly that error wehn first time I've updated the connection.py with the SES SMTP endpoint instead of API endpoint; so for you should be DefaultRegionName = 'us-west-2' Please make sure it looks like above. Also, you are correct, the update is only for python 2.7 |
Thanks a lot vgomoiu to make this working. It is working with SES now. I have one more point - What should be the lowest check interval (default On Tue, Sep 9, 2014 at 6:27 PM, vgomoiu notifications@github.com wrote:
|
Also, the "Forgot Password" is throwing 404 error and redirecting to url #/reset. |
Glad to hear it's working. For the check interval: The SECURITY_CONFIRMABLE = False and SECURITY_RECOVERABLE = False don't seem to be implemented yet. |
Again, thanks a lot vgomoiu. You have been very helpful to me. On Wed, Sep 10, 2014 at 12:59 PM, vgomoiu notifications@github.com wrote:
|
Hello,
I have followed Quick Start Guide and facing below issues -
Please guide me to right direction.
The text was updated successfully, but these errors were encountered: