Ticket #425 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

WARNING: KEY or IV has invalid length

Reported by: Z4P Assigned to: raphael
Priority: critical Milestone: ispCP ω 1.0.0 - RC3
Component: Backend (Engine) Version: ispCP ω 1.0.0 - DEV
Severity: Keywords:
Cc:

Description

I get this error when i run ispcp-setup:

WARNING: KEY or IV has invalid length

I have modified the latest trunk myself with http://www.isp-control.net/ispcp/changeset/670 . (i'm not toally sure it is an error in ispcp or i have mistped something)

Attachments

Change History

06/22/07 17:59:27 changed by raphael

  • status changed from new to closed.
  • version changed from ispCP ω 1.0.0 - RC2 to ispCP ω 1.0.0 - DEV.
  • resolution set to fixed.

Fixed in r672

(follow-up: ↓ 3 ) 06/23/07 22:32:34 changed by rats

  • status changed from closed to reopened.
  • resolution deleted.

same here on install

WARNING: KEY or IV has invalid length

- causes:

ERROR: External command '/usr/bin/mysql --host=localhost --user=root --pass= < /tmp/db.sql 1>/tmp/db.sql.stdout 2>/tmp/db.sql.stderr' returned '1' status !

Please fix otherwise I cannot complete my work on AWStats.

BTW why are keys generated on "make" and not on setup?

(in reply to: ↑ 2 ) 06/24/07 01:58:02 changed by raphael

  • owner set to raphael.
  • status changed from reopened to new.

Replying to rats:

BTW why are keys generated on "make" and not on setup?

Because of that error. When ispcp-setup runs it requires ispcp_common_code.pl which automatically connects to the db, and for doing so it requires the database keys to be already generated. That's why I separated the code in two different files, so some functions can be called without connecting to the database every time.

So... in order to fix this problem, somebody please post the content of engine/ispcp-db-keys.pl after make install.

06/24/07 03:48:39 changed by paladino

i have a problem with keys on make install.. its stop on:

make[1]: Entering directory `/root/ispcp/keys'
perl rpl.pl /tmp/ispcp-1.0.0/var/www/ispcp/gui/include/ispcp-db-keys.php /tmp/ispcp-1.0.0/var/www/ispcp/engine/ispcp-db-keys.pl /tmp/ispcp-1.0.0/var/www/ispcp/engine/messager/ispcp-db-keys.pl

06/24/07 09:34:50 changed by Z4P

I got this in mine ispcp-key file fater make install form the latest trunk:

$main::db_pass_key = '{KEY}';

$main::db_pass_iv = '{IV}';

return 1;

06/24/07 09:34:51 changed by Z4P

I got this in mine ispcp-key file fater make install form the latest trunk:

$main::db_pass_key = '{KEY}';

$main::db_pass_iv = '{IV}';

return 1;

06/24/07 14:16:00 changed by rats

cat /tmp/ispcp-1.0.0/var/www/ispcp/engine/ispcp-db-keys.pl

$main::db_pass_key = '-;P*T,PN+J@[$?E-+<|)z9t`Ju!p!=C';

$main::db_pass_iv = 'H3);zET';

return 1;

Seems to be okay

06/24/07 16:27:34 changed by paladino <gabpaladino@gmail.com>

the problem on ispcp-setup continue.....

06/24/07 16:34:07 changed by Z4P

But rats has: $main::db_pass_key = '-;P*T,PN+J@[$?E-+<|)z9t`Ju!p!=C';

$main::db_pass_iv = 'H3);zET';

I haven't those -;P*T,PN+J@[$?E-+<|)z9t`Ju!p!= in it... just {key}

06/24/07 20:48:52 changed by raphael

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r674


Add/Change #425 (WARNING: KEY or IV has invalid length)




Action