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

domain adding issue with old chef-zero version #26

Open
aditya- opened this issue Dec 21, 2015 · 11 comments
Open

domain adding issue with old chef-zero version #26

aditya- opened this issue Dec 21, 2015 · 11 comments

Comments

@aditya-
Copy link

aditya- commented Dec 21, 2015

Hi,

I'm not sure what are the changes recently performed . Till now i'm using old chef-zero version for mail server installation which was worked fine till the day but today when ever i'm installing the same i am getting following error while adding domain name

"Unauthorized. Invalid or expired token."

i've again regenerated api key with

 rake api_key:generate RAILS_ENV="production"

even i've updated latest key in

/srv/posty_webui/dist/settings.json

but still getting invalid api key. it looks like : http://www.clipular.com/c/4946445886029824.png?k=tGDzUoV5dxGg4niBCEcso9UoLvM

@iaddict @chicobico @lweis @ben-hx
@prashantjois

Any suggests ?

@aditya-
Copy link
Author

aditya- commented Dec 22, 2015

any one please go replay to my thread

@aditya-
Copy link
Author

aditya- commented Dec 22, 2015

@chicobico can you please

@chicobico
Copy link
Contributor

Have you tried to use the posty client on the posty api server?

posty-client domain list

@chicobico
Copy link
Contributor

If that works look at the settings.json which is served in the browser and check if the key on this page is correct.

http://yourmailserver.com/posty_webui/settings.json

If the key is not the right one you can try to reload the page by shortcut. It could be a problem with browser caching.

@aditya-
Copy link
Author

aditya- commented Dec 24, 2015

http://projmpcoursetrainings.org/posty_webui/settings.json

{
    "servers": [
        {
            "caption": "posty_ansible",
            "url": "http://projmpcoursetrainings.org/posty_api/api/v1",
            "key": "f1a40a535b1a6cdbecce674878a4e705"
        }
    ]
}

even getting blank with api key
http://projmpcoursetrainings.org/posty_api/api/v1/domains?auth_token=f1a40a535b1a6cdbecce674878a4e705

this is my domain : projmpcoursetrainings.org not sure why getting errors .. i am just following old repository https://github.com/posty/posty_api

any gem updates ? or anything gone wrong ? getting invalid api key errors nw

any ideas please @chicobico

@aditya-
Copy link
Author

aditya- commented Dec 24, 2015

posty-client domain list is blank and i tried different browsers

@aditya-
Copy link
Author

aditya- commented Jan 17, 2016

@chicobico

@lweis
Copy link
Member

lweis commented Jan 26, 2016

@aditya-
hey, sorry that we are a bit difficult to reach currently!
we take care of your concern in the next few days

@aditya-
Copy link
Author

aditya- commented Jan 27, 2016

@lweis .. thanks i will be waiting for your replay

@chicobico
Copy link
Contributor

if posty-client domain list is blank there is a problem with your api_key not with the webui.
you should look at your database if there is a api_key in the "api_keys" table and check if it is active and not expired!

@aditya-
Copy link
Author

aditya- commented Feb 7, 2016

actually its active .. i checked expiry if api key got wrong them it will show expired or not valid . @chicobico could you check for any issues ? or do i need to use chef-vagrant version

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