An error happened (egw_exception_wrong_parameter): Password encryption type 1 NOT available!

Hi Devs,

could someone give me a hint how to fix this error spit out by the cron:
Cron www-data@www /usr/bin/php -q /var/www/egroupware/phpgwapi/cron/asyncwrapper.php

An error happened (egw_exception_wrong_parameter): Password encryption type 1 NOT available!
#0 /var/www/egroupware/emailadmin/inc/class.emailadmin_credentials.inc.php(143):
emailadmin_credentials::decrypt(Array)
#1 /var/www/egroupware/emailadmin/inc/class.emailadmin_account.inc.php(232):
emailadmin_credentials::read(‘5’, NULL, NULL)
#2 /var/www/egroupware/emailadmin/inc/class.emailadmin_account.inc.php(909):
emailadmin_account->__construct(Array)
#3 /var/www/egroupware/phpgwapi/inc/class.send.inc.php(45):
emailadmin_account::read(‘5’)
#4 /var/www/egroupware/phpgwapi/inc/class.egw.inc.php(718): send->send()
#5 /var/www/egroupware/admin/inc/class.uiasyncservice.inc.php(197):
egw_minimal->__get(‘send’)
#6 [internal function]: uiasyncservice->test(Array)
#7 /var/www/egroupware/phpgwapi/inc/common_functions.inc.php(1051): call_user_func(Array,
Array)
#8 /var/www/egroupware/phpgwapi/inc/class.asyncservice.inc.php(456):
ExecMethod(‘admin.uiasyncse…’, Array)
#9 [internal function]: asyncservice->check_run(‘crontab’)
#10 /var/www/egroupware/phpgwapi/inc/common_functions.inc.php(1051): call_user_func(Array,
‘crontab’)
#11 /var/www/egroupware/phpgwapi/cron/asyncservices.php(73):
ExecMethod(‘phpgwapi.asyncs…’, ‘crontab’)
#12 {main}

Instance=default, User=hansa, Request= http://, User-agent=

Thanks,
Hansa

It looks like the email account is missing something, perhaps an invalid
encryption type.
It seems mail accunt #5 is the one with the problem, check to make sure you
can send email with that account.

Nathan

Thanks for reply!

Problem might be that I don’t have (anymore?) an acc with id 5.

Actually I don’t know what ‘job’ should be done by this.

When running “php -q /var/www/egroupware/phpgwapi/cron/asyncwrapper.php” from command line there is no error.

Will have an eye on it.

greets
hansa

Hi Nathan,

just had a closer look on this problem:

  • I definitively have no user with this acc id (5). Obviously there was an admin user with this id because my id (6) shows that it was created by id 5.

  • Adding my user acc to the admin group does not help.

  • The cron test job that can be activated leads to the error every 5 min, because it also uses this (not existing) acc id.

  • How can I tell the the async service to use my acc id no. 6 ?

thanks for help,
greets hansa

I have no idea.
I had a look in admin, and couldn’t find any such setting where you could
choose that. Or flag to indicate “Use this account”.

I’m pretty sure that’s email account credentials ID 5 though, not egw user
account ID 5.
See the table egw_ea_credentials.

Nathan

Hi Nathan,

just had a closer look on this problem:

...
- How can I tell the the async service to use my acc id no. 6 ?

I have no idea.
I had a look in admin, and couldn’t find any such setting where you
could choose that. Or flag to indicate “Use this account”.

I’m pretty sure that’s email account credentials ID 5 though, not egw
user account ID 5.
See the table egw_ea_credentials.
Problem is most likely caused by mcrypt PHP extension not available for CLI.

Execute php -m and check if mcrypt is there. If not you need to fix that.

Some distributions enable extensions per SAPI, so you can have different
PHP extensions available for CLI (command line) and Apache … Dont ask
me why they do that.

Ralf

–
Ralf Becker
Director Software Development

Stylite AG

Morschheimer Strasse 15 | Tel. +49 6352 70629 0
D-67292 Kirchheimbolanden | Fax. +49 6352 70629 30

Email: rb@stylite.de

www.stylite.de | www.egroupware.org

Managing Directors: Andre Keller | Ralf Becker | Gudrun Mueller
Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer

VAT DE214280951 | Registered HRB 31158 Kaiserslautern Germany