posty / posty_api

Utility to administrate mailserver based on postfix and dovecot
www.posty-soft.org
Other
85 stars 19 forks source link

domain adding issue with old chef-zero version #26

Open aditya- opened 8 years ago

aditya- commented 8 years ago

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- commented 8 years ago

any one please go replay to my thread

aditya- commented 8 years ago

@chicobico can you please

chicobico commented 8 years ago

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

chicobico commented 8 years ago

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- commented 8 years ago

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- commented 8 years ago

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

aditya- commented 8 years ago

@chicobico

lweis commented 8 years ago

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

aditya- commented 8 years ago

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

chicobico commented 8 years ago

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- commented 8 years ago

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