-
Notifications
You must be signed in to change notification settings - Fork 326
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
Error logging into admin for the first time #247
Comments
Could you check the contents of |
Seems to be some kind of connection error. I'm behind a proxy. Maybe api-umbrella's user is not being able to use that proxy. Anywhere I could set that up?
|
Is there more to the error backtrace in that log file? That doesn't quite pinpoint where the error is coming from. If you However, if your internet connection is behind a proxy, that could explain the issue. I don't have a proxy to test this behind, but you could try configuring the proxy by editing either export http_proxy="http://usrname:passwrd@host:port"
export https_proxy=$http_proxy Then restart API Umbrella ( |
There was no file named api-umbrella at /etc/sysconfig (CentOS 7 here). I created one and placed the enviornment proxy variables, although there are already global variables for the proxy which I need to access the network. I'm using CNTLM to make things easier. Here are my global settings. httpd_proxy=http://127.0.0.1:3128 This is the full log stacktrace: http://pastebin.com/minJZ84i You'll notice that there is always an issue with a log file 'production.log'. There was no such directory 'log' under web-app. I created it and chmoded it 666. Still I get that error. |
Thanks for the extra details. I think this is related to the proxy setup in your environment, since it appears to be timing out while trying to make a request to Above you mentioned setting As far as I can tell, though, setting those variables in the So I'm not exactly sure why the proxy would be causing these issues, but if you're able to try and run that |
Oh, and somewhat related to this issue, would you prefer the option of a local database for handling admin login credentials? Or would your prefer to use something like Persona/Google/GitHub/Twitter/Facebook/LDAP to login to the admin? Persona will actually be shutting down later this year, so while there are other external login mechanisms to use, I am curious if you had any preferences for how you'd like to login. The idea of having a local admin user database has come up before (#45, #124), but that option would also eliminate any proxy issues. |
Hi, thanks for all the attention on my issue.
The curl command suggested did return a 404, meaning I can access it. But somehow Rails can't. I even sudoed into api-umbrella user and try the curl call, same result, it connects OK and gets the 404. As for your question regarding the credentials, I think it would be nice to have a completely standalone and offline way to login, other than the auth providers, because sometimes in your lab enviornments you won't have internet connectivity, or perhaps have proxy issues, as I do - and those can be a pain in the ass and delay testing of tools such as this one. |
Agree with @cdechery. Burning in best practices is absolutely a great thing to do, but it does make bootstrapping (either for development or just checking it out) a bit difficult. |
v0.14.0 has been released with local admin accounts, which should make this setup easier. |
I followed the instructions and edited the api-umbrella.yml file correctly.
Then I accessed http://localhost/admin and created an account on Persona to log in. When Persona redirects back to the main page, I get
This is nginx log:
::1 - - [31/May/2016:16:18:12 -0300] "GET /admins/auth/persona/callback?assertion=XXXXX HTTP/1.1" 500 728 "https://localhost/admin/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36" al11047duk1o8aafgs60 https://localhost:443 15.005 MISS
Is there any other log file that could give more details?
The text was updated successfully, but these errors were encountered: