CUC Forums

« Back to CUPI Questions

Error 400 on Reset PIN

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi Guys,
 
I'm having a problem when resetting someone's PIN. It resets for one user but not for another.
I get the error 400 on the other user. Using the same command for both. Any ideas where I should look?
 
THanks!

Hi Carlo,

I guess you are using the following API to set the pin for a user:

/vmrest/user/credential/pin?newpin=<new pin>&userobjectid=<obj id>

If you're using the same API and giving the correct userobjectid then it should work.

Let me know how you are setting the pin. I'll be able to answer the query with more details.

Thanks,
Akanksha

Hi Akanksha,

I tried some more testing and I am getting this type of error.

 1 => 400
 2[message] => IMS_ERROR : Database communication error
 3
 4What could that indicate? I seem to be able to change the names on
 5voicemail fine and even reset a pin.
 6But I get this for a particular user.
 7
 8Thanks!
 9
10Carlo
11
12On Thu, Sep 20, 2012 at 12:35 PM, Cisco Developer Community Forums <
13cdicuser@developer.cisco.com> wrote:
14
15> Akanksha Agarwal has created a new message in the forum "CUPI Questions":
16>
17> --------------------------------------------------------------
18> Hi Carlo,
19>
20> I guess you are using the following API to set the pin for a user:
21>
22> /vmrest/user/credential/pin?newpin=<new pin>&userobjectid=<obj id>
23>
24> If you're using the same API and giving the correct userobjectid then it
25> should work.
26>
27> Let me know how you are setting the pin. I'll be able to answer the query
28> with more details.
29>
30> Thanks,
31> Akanksha
32> --
33> To respond to this post, please click the following link:
34>
35> <
36> http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/6539081
37> >
38>
39> or simply reply to this email.

Carlo,

If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.

Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.

Thanks,
Akanksha A

Hi Akansha,

I have enable VMREST logs, where can I collect the logs data?

Thanks!

Carlo


On Sep 20, 2012 3:45 PM, "Cisco Developer Community Forums" <
cdicuser@developer.cisco.com> wrote:

> Akanksha Agarwal has created a new message in the forum "CUPI Questions":
>
> --------------------------------------------------------------
> Carlo,
>
> If this is happening with a particular user, then can you check whether
> this user exists in the database or not? Also please check if the
> credentials you are using are valid or not. Just try to logon to
> Administration page using these credentials. If they are valid you'll be
> able to logon to th page.
>
> Also, to tell what exactly is the problem, you'll have to enable the
> VMREST logs and send me the diag_tomcat<> logs of the time when you are
> facing this issue.
>
> Thanks,
> Akanksha A
> --
> To respond to this post, please click the following link:
>
> <
> http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/6542639
> >
>
> or simply reply to this email.

Hi Akansha,

I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
Thanks!
 
Akanksha Agarwal:
Carlo,
If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
Thanks,
Akanksha A
Attachments:

Hi Carlo,

From the logs I can see an exception coming from IMS code (owned by CUCM). I have a couple of questions:

1) Did you ever change the password of the administrator?

2) Can you tell me the roles assigned to the user whose pin you are trying to edit.

3) I also want to know the password settings of this user. For this please paste me the screen shot of users->your user->password settings->voice mail

4) I want to know the content of tbl_user

I could not reproduce this issue. I am assuming that except for this particular user you are able to make the changes for other users on unity connection. This implies that nothing is wrong with the database however it seems that something has been modified at the database end for this particular user. If that is the case, do let me know.

Thanks & Regards,
Akanksha A Mishra

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, September 25, 2012 5:25 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -

Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akansha,

I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
Thanks!

Akanksha Agarwal:
Carlo,
If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
Thanks,
Akanksha A

--
To respond to this post, please click the following link: or simply reply to this email.

Hi Akanksha,
Thanks for the reply.
1. The administrator password hasn't changed.
2. I checked and the user has no Roles Assigned.
3. The Password Settings field is greyed out. I can't click it.
I have observed that we can rename a user through CUPI but PIN reset isn't having the same success.
Could the problem be related to the fact that the users on Unity are Synced to CUCM? And sometimes people would change a persons CUCM Display Name, Label, and then on Unity change the voicemail Name and then try and Reset their PIN?
Thanks!
Carlo
 
Akanksha Agarwal:
Hi Carlo,

From the logs I can see an exception coming from IMS code (owned by CUCM). I have a couple of questions:

1) Did you ever change the password of the administrator?

2) Can you tell me the roles assigned to the user whose pin you are trying to edit.

3) I also want to know the password settings of this user. For this please paste me the screen shot of users->your user->password settings->voice mail

4) I want to know the content of tbl_user

I could not reproduce this issue. I am assuming that except for this particular user you are able to make the changes for other users on unity connection. This implies that nothing is wrong with the database however it seems that something has been modified at the database end for this particular user. If that is the case, do let me know.

Thanks & Regards,
Akanksha A Mishra

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, September 25, 2012 5:25 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -

Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akansha,

I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
Thanks!

Akanksha Agarwal:
Carlo,
If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
Thanks,
Akanksha A

--
To respond to this post, please click the following link: or simply reply to this email.

Carlo,

This is strange that the password settings are greyed out for this user. This means that something has definitely been changed, may be directly through DB. Couple of questions again:

1) Are you able to change the pin through the administration page? Please let me know this. And I would like to get the diag_tomcat logs again when you try to change the pin through CUCA. For this you will have to enable the CUCA logs(ALL) through the serviceability page.

2) Is this a normal voicemail user created on connection or was it imported or is there any special case with this user?

In case we don’t find the reason then we’ll set up a webex to look at your system to find the root cause.

Thanks & Regards,
Akanksha A Mishra

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Thursday, September 27, 2012 6:16 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI

Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akanksha,
Thanks for the reply.
1. The administrator password hasn't changed.
2. I checked and the user has no Roles Assigned.
3. The Password Settings field is greyed out. I can't click it.
I have observed that we can rename a user through CUPI but PIN reset isn't having the same success.
Could the problem be related to the fact that the users on Unity are Synced to CUCM? And sometimes people would change a persons CUCM Display Name, Label, and then on Unity change the voicemail Name and then try and Reset their PIN?
Thanks!
Carlo

Akanksha Agarwal:
Hi Carlo,

From the logs I can see an exception coming from IMS code (owned by CUCM). I have a couple of questions:

1) Did you ever change the password of the administrator?

2) Can you tell me the roles assigned to the user whose pin you are trying to edit.

3) I also want to know the password settings of this user. For this please paste me the screen shot of users->your user->password settings->voice mail

4) I want to know the content of tbl_user

I could not reproduce this issue. I am assuming that except for this particular user you are able to make the changes for other users on unity connection. This implies that nothing is wrong with the database however it seems that something has been modified at the database end for this particular user. If that is the case, do let me know.

Thanks & Regards,
Akanksha A Mishra

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]<mailto:[mailto:cdicuser@developer.cisco.com]>
Sent: Tuesday, September 25, 2012 5:25 AM
To: cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>
Subject: New Message from Carlo Rodriguez in Cisco Unity Connection(CUC) - CUPI Questions: RE: Re: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) -

Carlo Rodriguez has created a new message in the forum "CUPI Questions": -------------------------------------------------------------- Hi Akansha,

I have attached the vmrest logs. After further testing I found that I can create / delete /modify a user but somehow not change the password. Any ideas what might be causing this or how to fix?
Thanks!

Akanksha Agarwal:
Carlo,
If this is happening with a particular user, then can you check whether this user exists in the database or not? Also please check if the credentials you are using are valid or not. Just try to logon to Administration page using these credentials. If they are valid you'll be able to logon to th page.
Also, to tell what exactly is the problem, you'll have to enable the VMREST logs and send me the diag_tomcat<> logs of the time when you are facing this issue.
Thanks,
Akanksha A

--
To respond to this post, please click the following link: or simply reply to this email.

--
To respond to this post, please click the following link: or simply reply to this email.