• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

DailyMaintainance/script.php - bad lexical cast

D

derTobias

Guest
Hi all,

after the Update to 9.5.2 the daily cronjob
/opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1
isn't working anymore.

The error message is:
0 error: bad lexical cast source type value could not be interpreted as target

I have no idea what the problem is......

The OS is Ubuntu 8.04 LTS.
 
I have forwarded it to developers for the further investigation. I will update thread with results as soon as I receive it.
 
Is there any other way to trigger the daily maintainance script?
 
I got the same problem, but this happen today, i access my plesk and i got a message in a bar saying "Warning: You are currently operating within the grace period of your product license. To update your product license, select the Retrieve Keys option on the License Management page." so i went to the License Management page, and click on Retrieve Keys, and i got this error:

ERROR: SWKeyExFatalError
error: bad lexical cast: source type value could not be interpreted as target

0: common_func.php3:4885
ka_update_key_forced(resource, string 'plesk-unix', string '9.3.0', array)
1: common_func.php3:4885
updateKeyAndNotify(resource)
2: key_update.php:14

What could be?? How do i fix this??

Thanks
 
Hi,
i got the same error:



ERROR: SWKeyExFatalError
error: bad lexical cast: source type value could not be interpreted as target

0: common_func.php3:4885
ka_update_key_forced(resource, string 'plesk-unix', string '9.5.2', array)
1: common_func.php3:4885
updateKeyAndNotify(resource)
2: key_update.php:14

Any ideas ?
 
Then i saw another problem, i´m already running my plesk in a grace period, and my plesk license will be expired on Aug 6, 2010, so i have only 4 days to fix this issue, =\, so guys be fast with the fix of this problem.

Thanks
 
Any news? Right now neither my license key nor domain statistics can be updated. It's a really critical issue.
 
Any news? Right now neither my license key nor domain statistics can be updated. It's a really critical issue.

I fixed my problem running the Plesk Update, i update ALL package that was installed, the i got problem im my license, but i ask a new license for my DC and it´s working.

Thanks guys
 
Could you please provide us with /etc/sw/keys/ dir and subdirs content? I will forward it to developers for continuing of investigation.
 
same problem here..

ls -alR
.:
insgesamt 36
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 .
drwxr-xr-x 3 root root 4096 18. Jun 19:02 ..
drwxrws--- 2 psaadm swkey-data 4096 21. Jun 06:41 backup
-rw-r--r-- 1 psaadm swkey-data 22 4. Mai 12:37 info
drwxrws--- 2 psaadm swkey-data 4096 19. Mai 14:52 instances
drwxrws--- 2 psaadm swkey-data 4096 21. Jun 06:41 keys
drwxrws--- 2 psaadm swkey-data 4096 7. Sep 13:03 lock
-rw-rw---- 1 psaadm swkey-data 2237 7. Sep 04:41 registry.xml
drwxrws--- 2 psaadm swkey-data 4096 7. Sep 13:04 restart

./backup:
insgesamt 20
drwxrws--- 2 psaadm swkey-data 4096 21. Jun 06:41 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..
-rw-rw---- 1 root swkey-data 0 19. Mai 14:52 keyXXN3CPHC
-rw-rw---- 1 root swkey-data 9339 19. Mai 14:52 keyXXvfuLJ4

./instances:
insgesamt 8
drwxrws--- 2 psaadm swkey-data 4096 19. Mai 14:52 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..

./keys:
insgesamt 20
drwxrws--- 2 psaadm swkey-data 4096 21. Jun 06:41 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..
-rw-rw---- 1 psaadm swkey-data 9339 21. Jun 06:41 keyXXhfgemA

./lock:
insgesamt 8
drwxrws--- 2 psaadm swkey-data 4096 7. Sep 13:03 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..
-rw-rw---- 1 psaadm swkey-data 0 4. Mai 12:37 ka
-rw-rw---- 1 psaadm swkey-data 0 4. Mai 12:37 repository

./restart:
insgesamt 20
drwxrws--- 2 psaadm swkey-data 4096 7. Sep 13:04 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..
-r-s--x--- 1 root swkey-data 9112 4. Mai 13:06 plesk-key-handler
 
Same problem here

Same problem here:

ls -alR
.:
insgesamt 36
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 .
drwxr-xr-x 3 root root 4096 18. Jun 19:02 ..
drwxrws--- 2 psaadm swkey-data 4096 21. Jun 06:41 backup
-rw-r--r-- 1 psaadm swkey-data 22 4. Mai 12:37 info
drwxrws--- 2 psaadm swkey-data 4096 19. Mai 14:52 instances
drwxrws--- 2 psaadm swkey-data 4096 21. Jun 06:41 keys
drwxrws--- 2 psaadm swkey-data 4096 7. Sep 13:03 lock
-rw-rw---- 1 psaadm swkey-data 2237 7. Sep 04:41 registry.xml
drwxrws--- 2 psaadm swkey-data 4096 7. Sep 13:04 restart

./backup:
insgesamt 20
drwxrws--- 2 psaadm swkey-data 4096 21. Jun 06:41 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..
-rw-rw---- 1 root swkey-data 0 19. Mai 14:52 keyXXN3CPHC
-rw-rw---- 1 root swkey-data 9339 19. Mai 14:52 keyXXvfuLJ4

./instances:
insgesamt 8
drwxrws--- 2 psaadm swkey-data 4096 19. Mai 14:52 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..

./keys:
insgesamt 20
drwxrws--- 2 psaadm swkey-data 4096 21. Jun 06:41 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..
-rw-rw---- 1 psaadm swkey-data 9339 21. Jun 06:41 keyXXhfgemA

./lock:
insgesamt 8
drwxrws--- 2 psaadm swkey-data 4096 7. Sep 13:03 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..
-rw-rw---- 1 psaadm swkey-data 0 4. Mai 12:37 ka
-rw-rw---- 1 psaadm swkey-data 0 4. Mai 12:37 repository

./restart:
insgesamt 20
drwxrws--- 2 psaadm swkey-data 4096 7. Sep 13:04 .
drwxrws--- 7 psaadm swkey-data 4096 7. Sep 13:03 ..
-r-s--x--- 1 root swkey-data 9112 4. Mai 13:06 plesk-key-handler
 
Thank you. I have forwarded it to developers. But I think that full content is required instead just listing. Could you please create tar.gz file with content of mentioned directory and attach it to post?
 
Thank you. Developers are working on it. I will update thread with results of investigation as soon as I receive it.
 
Please hurry :)

My Plesk isn't working anymore...

Are there any news on this subject?
 
Hi there,

i've found this thread while googleing for the same problem. Last week i've upgraded from Etch to Lenny, and now i'll get an eMail every day that the key update won't work. Key retrieval gives this error message we saw here before:

error: bad lexical cast: source type value could not be interpreted as target

0: common_func.php3:4885
ka_update_key_forced(resource, string 'plesk-unix', string '9.5.3', array)
1: common_func.php3:4885
updateKeyAndNotify(resource)
2: key_update.php:14


Any news on this? My key needs an update until Nov, 23. Plesk version is 9.5.3

Thanks,
Marco
 
Back
Top