Forum OpenACS Q&A: Re: Unable to login after upgrade to OpenACS 5.1

Collapse
Posted by Jade Rubick on
Well, it seems this was some sort of CVS issue. I ended up "rolling back" my upgrade, and re-upgrading.

However, I then logged out, and logged back in, and now I'm getting a different error.

wrong # args: should be "AcsSc.auth_authentication.authenticate.local username username password password parameters parameters"

In the error.log:

[07/May/2004:16:23:50][11069.7176][-conn:ibr::4] Error: Error invoking CanRetrievePassword operation for authority_id 9:
wrong # args: should be "AcsSc.auth_password.canretrievepassword.local parameters parameters"
    while executing
"AcsSc.auth_password.canretrievepassword.local {}"
    ("uplevel" body line 1)
    invoked from within
"uplevel $func_and_args"
    (procedure "apply" line 3)
    invoked from within
"apply $proc_name $arguments"
    (procedure "acs_sc_call" line 6)
    invoked from within
"acs_sc_call -error=$error_p $contract $operation $call_args $impl"
    (procedure "acs_sc::invoke" line 17)
    invoked from within
"acs_sc::invoke  -error  -contract "auth_password"  -impl_id $impl_id  -operation CanRetrievePassword
-call_args [list $parameters]"
    (procedure "auth::password::CanRetrievePassword" line 11)
    invoked from within
"auth::password::CanRetrievePassword  -authority_id $authority_id"
    invoked from within
"set result_p [auth::password::CanRetrievePassword  -authority_id $authority_id]"
    ("uplevel" body line 2)
    invoked from within
"uplevel $body "
[07/May/2004:16:23:50][11069.7176][-conn:ibr::4] Error: Error invoking CanResetPassword operation for authority_id 9:
wrong # args: should be "AcsSc.auth_password.canresetpassword.local parameters parameters"
    while executing
"AcsSc.auth_password.canresetpassword.local {}"
    ("uplevel" body line 1)
    invoked from within
"uplevel $func_and_args"
    (procedure "apply" line 3)
    invoked from within
"apply $proc_name $arguments"
    (procedure "acs_sc_call" line 6)
    invoked from within
"acs_sc_call -error=$error_p $contract $operation $call_args $impl"
    (procedure "acs_sc::invoke" line 17)
    invoked from within
"acs_sc::invoke  -error  -contract "auth_password"  -impl_id $impl_id  -operation CanResetPassword  -c
all_args [list $parameters]"
    (procedure "auth::password::CanResetPassword" line 11)
    invoked from within
"auth::password::CanResetPassword  -authority_id $authority_id"
    invoked from within
"set result_p [auth::password::CanResetPassword  -authority_id $authority_id]"
    ("uplevel" body line 2)
    invoked from within
"uplevel $body "
[07/May/2004:16:23:50][11069.7176][-conn:ibr::4] Error: auth::authenticate: error invoking authentication driver for authority_id = 9: wrong # args: should be "AcsSc.auth_authentication.authenticate.local
username username password password parameters parameters"
    while executing
"AcsSc.auth_authentication.authenticate.local mailto:jader@bread.com mysecretpassword {}"
    ("uplevel" body line 1)
    invoked from within
"uplevel $func_and_args"
    (procedure "apply" line 3)
    invoked from within
"apply $proc_name $arguments"
    (procedure "acs_sc_call" line 6)
    invoked from within
"acs_sc_call -error=$error_p $contract $operation $call_args $impl"
    (procedure "acs_sc::invoke" line 17)
    invoked from within
"acs_sc::invoke  -error  -impl_id $impl_id  -operation Authenticate  -call_args [list $username $password $parameters]"
    (procedure "auth::authentication::Authenticate" line 13)
    invoked from within
"auth::authentication::Authenticate  -username $username  -authority_id $authority_id  -password $password"
    invoked from within
"array set result [auth::authentication::Authenticate  -username $username  -authority_id $authority_id  -password $password]"
    ("uplevel" body line 2)
    invoked from within
"uplevel $body "

I've done a diff of my directory and the latest openacs-5-1 branch. The only difference is in the .info file. It says it is a different version. But the code itself it all the same (I've diffed all the directories within acs-authentication.

Looking at it more, it appears that somehow my merged code wasn't imported back in. I followed the directions, but perhaps it's because there was more than a day that passed between my commit and merge, or because of my earlier screwup. Another thing that might have caused it is putting -kk in the merge. It appears that nothing changes when I do so, but when I manually go through and resolve conflicts (taking a lot of time!), it seems to import and then merge correctly.

The perils of not knowing what you're doing are especially keen with CVS.

Collapse
Posted by Torben Brosten on
Jade, I'm getting the same problem after upgrading.

I just swapped the full -r oacs-5-1 openacs-4 files from versions a few weeks ago.

The problem disappears when I swap the old oacs-5-1 back in and restart.. but swapping the new files in again just brings the problem back.

How did you resolve this?