An error is shown in Plesk after upgrade: Package with UID not found

Created:

2016-11-16 12:48:01 UTC

Modified:

2017-06-05 05:55:40 UTC

0

Was this article helpful?


Have more questions?

Submit a request

An error is shown in Plesk after upgrade: Package with UID not found

Applicable to:

  • Plesk for Windows
  • Plesk 10.3 for Windows
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

After upgrading Plesk, the following error is shown in web interface:

Package with UID '' not found.
---------------------- Debug Info -------------------------------
0: aps_php.php:8020
        aps_controller_registry_getpackage(resource, string '')
...

During an attempt to fix this using the information from #112568 . the following errors appear:

"%plesk\\dir%\\admin\\php.exe" -dauto\\prepend\\_file="" "%plesk_dir%\\admin\\plib\\scripts\\aps-controller-data-import.php"

ERR (3): Can not import package ID '1' into APS controller: Failed to find images/icon.png in archive C:/Program Files/SWsoft/Plesk/v
ar/apspackages/34085fd0-e554-43b0-954d-6cfae6a6f30c.zip. (Empty error message)

Resolution

  1. Retrieve the list of the problem applications:

    "%plesk_bin%\\dbclient" --direct-sql --sql="select id, name from smb_apsPackages where registryUid is NULL"
  2. In any image editor (e.g., MS paint), create a small dummy file and name it icon.png .

  3. Go to C:\\Program Files (x86)\\Parallels\\Plesk\\var\\apspackages . Folders for all applications can be found there, including the problematic ones.

  4. For each problematic application, put this file in the following locations (example locations are given for the phpBook-1.50-25 application):

    a. Inside the C:\\Program Files\\Parallels\\Plesk\\var\\apspackages\\phpBook-1.50-25\\cache\\images folder;

    b. Inside the C:\\Program Files\\Parallels\\Plesk\\var\\apspackages\\phpBook-1.50-25\\phpBook-1.50-25.app.zip archive.

  5. Re-run the command:

    "%plesk_dir%\\admin\\php.exe" -dauto_prepend_file="" "%plesk_dir%\\admin\\plib\\scripts\\aps-controller-data-import.php"

    It may take a long time to finish running, depending on the number of problem applications.

Have more questions? Submit a request
Please sign in to leave a comment.