Skip to content
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 login after create account, also normal login #1

Open
Hardt-Coded opened this issue Oct 22, 2017 · 4 comments
Open

error login after create account, also normal login #1

Hardt-Coded opened this issue Oct 22, 2017 · 4 comments

Comments

@Hardt-Coded
Copy link

Hardt-Coded commented Oct 22, 2017

The Site try to call the token api:

"/ghost/api/v0.1/authentication/token" and get after registration an 500.

in the login screen it gets a 401:

log said:

{
"name" : "Log",
"hostname" : "RD0003FF1A4834",
"pid" : 3580,
"level" : 50,
"req" : {
"meta" : {
"requestId" : "f8a38100-b76e-11e7-995f-9584c5ac4068",
"userId" : null
},
"url" : "/authentication/token",
"method" : "POST",
"originalUrl" : "/ghost/api/v0.1/authentication/token",
"params" : {},
"headers" : {
"connection" : "keep-alive",
"content-length" : "124",
"content-type" : "application/x-www-form-urlencoded",
"accept" : "application/json, text/javascript, /; q=0.01",
"accept-encoding" : "gzip, deflate, br",
"accept-language" : "de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4",
"host" : "[meine_blog_url]",
"max-forwards" : "10",
"referer" : "https://[meine_blog_url]/ghost/",
"user-agent" : "[my_Useragent]",
"origin" : "https://[meine_blog_url]",
"app-pragma" : "no-cache",
"x-requested-with" : "XMLHttpRequest",
"x-ghost-version" : "1.15",
"x-waws-unencoded-url" : "/ghost/api/v0.1/authentication/token",
"x-original-url" : "/ghost/api/v0.1/authentication/token",
"x-arr-log-id" : "5c2d281e-54fe-489f-b004-ce2abe336150",
"disguised-host" : "[meine_blog_url]",
"x-site-deployment-id" : "[meineblogdeploymentid]",
"was-default-hostname" : "[meine_blog_url]",
"x-forwarded-for" : "[SomeIP]",
"x-arr-ssl" : "2048|256|C=US, S=Washington, L=Redmond, O=Microsoft Corporation, OU=Microsoft IT, CN=Microsoft IT SSL SHA2|CN=*.azurewebsites.net",
"x-forwarded-proto" : "https"
},
"body" : {
"grant_type" : "password",
"username" : "[my_login_email]"
},
"query" : {}
},
"res" : {
"_headers" : {
"x-powered-by" : "Express",
"cache-control" : "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"content-type" : "application/json; charset=utf-8",
"content-length" : "93",
"etag" : "W/"5d-NsDGJoAZpK5FMzIOLE9TJBeYaCE"",
"vary" : "Accept-Encoding"
},
"statusCode" : 500,
"responseTime" : "756ms"
},
"err" : {
"id" : "f916dc40-b76e-11e7-995f-9584c5ac4068",
"domain" : "http://[meine_blog_url]",
"code" : "unsupported_grant_type",
"name" : "InternalServerError",
"statusCode" : 500,
"level" : "normal",
"message" : "Unsupported grant type: password",
"stack" : "InternalServerError: Unsupported grant type: password\n
},
"msg" : "Unsupported grant type: password",
"time" : "2017-10-22T21:21:31.155Z",
"v" : 0
}

@Hardt-Coded
Copy link
Author

Hey, after the 5th try, suddenly it works. Strange. But this issue can be closed.

@MikeBishop
Copy link

MikeBishop commented Nov 10, 2017

I'm seeing the same thing. I can redeploy everything with a clean database, start over, and get the same error. Not sure how to unblock it. When you say "the 5th try," do you mean the fifth authentication attempt, or the fifth redeployment?

What I'm seeing is first a "Unsupported grant type: password", followed by a "NoPermissionError: Setup has already been completed" on subsequent attempts. So it thinks it created my account, but trying to log in with that account generates another "Unsupported grant type: password." I have no idea how to proceed from here.

@Hardt-Coded
Copy link
Author

Hardt-Coded commented Nov 10, 2017

Hi i mean, after the 5th redeploy. But you can try one thing. But I honestly don't know if this was the thing, that makes it work,

I deployed at first following Github on the azure server:

https://github.com/felixrieseberg/Ghost-Azure

It's an old version. After the Deployment, I starte the site for one time.
After that I change the "Deployment-Options" to this Github-Project.

And than it works.

Maybe you can try this. But as I said, I don't know if this was the solution or the 5th or 6th redeployment.

Good Luck.

@Hardt-Coded Hardt-Coded reopened this Nov 10, 2017
@tempusus
Copy link

tempusus commented Dec 27, 2017

Hi!
I have the same type of issue: After install on azure, I wan't to create the account, I recaive the welcome mail but have a server error when click on next... can't go to page 3, can't try to create again the account (refused), can't connect... Any idea? Thanks

About the idea of changing source option, can you explain how you did this? I try (disconnect the actual link, try to put the correct one) but never see the project on the list...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants