-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create admin account for myself. #4
Comments
The If it's still not working, make sure 'dev' and 'prod' databases aren't getting mixed up. The mongo db doesn't have a user/pass unless you intentionally set one in the db url in the config file. Also take a look at the svmp-server-cli repo for another tool that gives additional control over users and other settings. |
Thanks for this @dkeppler . I had already edited the Gruntfile.js and done all this and got a "Default admin already exists!" message when I attempted to do it again. However, I just reset my mongodb, then ran it one more time and I could login under the default admin account I created. Now I'm seeing:
But I'm thinking that has to do with me needing to update the OpenStack credentials in the config-local.yaml, so I'll get to that. Thanks again for the help! |
So, updating the settings got rid of 2016-08-08T19:43:54.587Z - error: listVolumes failed: code=ECONNREFUSED, errno=ECONNREFUSED, syscall=connect. However, I'm currently seeing in the web interface:
My OpenStack config is now:
Does that all look okay to you? Is that the only configuration issue that could be causing writing the volume to display an error? |
You need to configure the rest of the VM settings as described here, particularly the part about data volumes. I just noticed that page doesn't say what format the volume needs to be in. The easiest way to do that is to:
Then you can terminate the temp VM and snapshot the volume. The UUID of that snapshot is what you use for |
Ah, thank you. That's exactly the doc I needed. I'll get to doing that and let you know how I do. |
So I started from a fresh clone, copied my config-local.yaml's and did 1, 2, 3 and 4. I took a snapshot of the volume and added the Id to
So, then, I installed the svmp-config tool. I hadn't previously installed that. I started to go through the config options on the doc you linked. I created the
I am using the SSL and the site was accessible via https://. However, since that error indicated an SSL issue, I went to the config and turned the SSL options off and the URL options to http://. Then, I tried 'svmp-config devices' again and I saw:
Do you have any additional configuration recommendations? |
So
I also see this same code currently when running |
I got this functioning on my own after I realized this error had to do with the Creating token: {"sub":"svmp-server-N","jti":"8abcde12-a345-67e9-10c7-11p12r131e4a","iss":"server-1234-5678","role":"admin"} I originally thought the key was 8abcde12-a345-67e9-10c7-11p12r131e4a because that matched the length of your sample key in the config, but the key was actually the longer string. I'm seeing proper output now for |
For And for Also, as reported in Issue #5 when I attempt to approve new users I'm currently seeing Any ideas on how to get beyond those issues? |
Hey RyPoints, I'm struck at the same point :( ..... have you out the fix? if so could help me out here? Thanks |
As some background, I have svmp-overseer and svmp-server compiling and functional on an OpenStack sever. I also got svmp-web-console compiling, though I understand it is a deprecated version of svmp-overseer.
In svmp-web-console part of the setup was to create a default admin user and part of the screenshot you show is an admin account that can approve pending accounts. I tried grunt add-default-admin and grunt reports adding the user, but that user then cannot login to svmp-web-console.
Of course, I'm actually more interested in getting this same idea functioning on svmp-overseer. I didn't see any options for creating a similar admin account though and all user accounts show a pending account status. Perhaps this is just a matter of modifying a 'user' entry to an 'admin' entry in the mongodb somehow or is there an easier way? What are the account details needed to access mongodb if this is the best way to do so?
Eventually, I went through the code hacking admin access into every place I saw it referenced in the code, with the idea that after I gave myself admin access, I could approve the pending users and then remove that code. This did allow me to access the Pending Users screen, but no pending users are listed, even though I have plenty of pending user accounts that I created. If you have any tips on completing hacking the code in this way to grant myself some admin access, that would also do.
Thanks in advance for any help you can provide!
The text was updated successfully, but these errors were encountered: