• 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

Buisness Manager

A

asfa

Guest
Hey,

when im Trying to sync the Admin user with the panel a error appears:
Error: The following errors occurred during sync the selected administrators:
Failed to sync the admin user #1: Failed to register the admin user in SSO: The following SSO error occurred: Server error (code 500): Exception with message 'Script error [2048] in /usr/local/sso/SP/FIAccounts.php (70): Creating default object from empty value' caught at top level. (HTTP code: 500)
Please resolve the problems manually and retry to sync again.

Screenshot:
http://img836.imageshack.us/img836/5589/systemconfigurationadmi.png
 
I have forwarded it to developers. I will update thread when I receive any useful information.
 
Try to use following workaround for fixing this issue:

# sqlite3 /var/lib/sso/sso.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> delete from sp_user;
sqlite> delete from federation_item;
sqlite> .q

# /usr/share/plesk-billing/sso --command=detach --app-type=admin
Application type: admin
Connected with SSO: Off
Application type: admin
Connected with SSO: Off

# /usr/share/plesk-billing/sso --command=detach --app-type=customer
Application type: client
Connected with SSO: Off
Application type: client
Connected with SSO: Off

# /usr/share/plesk-billing/sso --command=attach --app-type=admin --idp-url=https://domain.com:11443
Application type: admin
Connected with SSO: On
SSO enabled: Off
SSO API URL: https://domain.com:11443
SSO Relay port: https://domain.com:11444
Service Provider ID: ubtue6xtmzyafq26xkbmh2i7fdbbcb7lg4b

# vi /etc/sso/sso_config.ini

------------------------------------------
; Super Privileged Service Provider
privileged_sp_id = ubtue6xtmzyafq26xkbmh2i7fdbbcb7lg4b <--- YOU SHOULD UPDATE IT!
------------------------------------------

# /usr/share/plesk-billing/sso --command=attach --app-type=customer --idp-url=https://domain.com:11443
Application type: client
Connected with SSO: On
SSO enabled: Off
SSO API URL: https://domain.com:11443
SSO Relay port: https://domain.com:11444
Service Provider ID: j8mjcsuv5k3x37gegu48ywgg4dbbcbjosai

# /usr/share/plesk-billing/sso --command=enable --app-type=admin
Application type: admin
Connected with SSO: On
SSO enabled: On
SSO API URL: https://domain.com:11443
SSO Relay port: https://domain.com:11444
Service Provider ID: ubtue6xtmzyafq26xkbmh2i7fdbbcb7lg4b

# /usr/share/plesk-billing/sso --command=enable --app-type=customer
Application type: client
Connected with SSO: On
SSO enabled: On
SSO API URL: https://domain.com:11443
SSO Relay port: https://domain.com:11444
Service Provider ID: j8mjcsuv5k3x37gegu48ywgg4dbbcbjosai

# /usr/share/plesk-billing/sso --command=repair-accounts
Repair administrative accounts:

FIRSTNAME Admin (ID: 1)... [OK]
OrderForm User (ID: 2)... [OK]
API User (ID: 3)... [OK]
Cron User (ID: 4)... [OK]

Repair customers accounts:


The command 'repair_accounts' completed without errors.

I hope it will help.
 
error

Errors when i type /usr/share/plesk-billing/sso --command=repair-accounts:
o086:~# /usr/share/plesk-billing/sso --command=repair-accounts
Repair administrative accounts:

FIRSTNAME Marius Wilms (ID: 1)... [ERROR] - exception 'ProductException' with message 'Failed to repair admin #1 in SSO: Please revise admin credentials for the following panel: <a href="modules.php?action=362&configGroupID=74">o086.orange.fastwebserver.de</a><br>Please revise admin credentials for the following panel: <a href="modules.php?action=362&configGroupID=94">Local Parallels Plesk Panel server</a><br>' in /opt/plesk-billing/billing-libs/SSOManager.php:31
Stack trace:
#0 /usr/share/plesk-billing/sso(175): SSOManager::repairUsers(true)
#1 /usr/share/plesk-billing/sso(97): command_repair_accounts(Object(Zend_Console_Getopt))
#2 {main}
OrderForm User (ID: 2)... [ERROR] - exception 'ProductException' with message 'Failed to repair admin #2 in SSO: Invalid parameters: admin_email' in /opt/plesk-billing/billing-libs/SSOManager.php:31
Stack trace:
#0 /usr/share/plesk-billing/sso(175): SSOManager::repairUsers(true)
#1 /usr/share/plesk-billing/sso(97): command_repair_accounts(Object(Zend_Console_Getopt))
#2 {main}
API User (ID: 3)... [ERROR] - exception 'ProductException' with message 'Failed to repair admin #3 in SSO: Invalid parameters: admin_email' in /opt/plesk-billing/billing-libs/SSOManager.php:31
Stack trace:
#0 /usr/share/plesk-billing/sso(175): SSOManager::repairUsers(true)
#1 /usr/share/plesk-billing/sso(97): command_repair_accounts(Object(Zend_Console_Getopt))
#2 {main}
Cron User (ID: 4)... [ERROR] - exception 'ProductException' with message 'Failed to repair admin #4 in SSO: Invalid parameters: admin_email' in /opt/plesk-billing/billing-libs/SSOManager.php:31
Stack trace:
#0 /usr/share/plesk-billing/sso(175): SSOManager::repairUsers(true)
#1 /usr/share/plesk-billing/sso(97): command_repair_accounts(Object(Zend_Console_Getopt))
#2 {main}

Repair customers accounts:


The command 'repair_accounts' completed with 4 errors.
 
Errors with ID 2, 3 and 4 means that corresponding admins haven't email in billing. It is correct behaviour after upgrade from 9.x because previously email field was not mandatory for admins. Now you should go to billing (without SSO), to list with admins (System / System Configuration / Administrators) and fill email field for each admin.

Error with ID 1 is more complex. It occurs in case when admin's password of Plesk doesn't match with billing admin's password. You can fix it with following method: Go to billing (System / System Configuration / Server Groups) and edit settings of problem server (local server in this case with name «Local Parallels Plesk Panel server») and set correct password there.
 
Okay i have changed my plesk admin password now the buisness manager pw is not working anymore how can i set them?
 
yes but i cant login into "billing" becourse i dont know my Password..
 
For password changing in Business Manager you can run following commands:

/usr/share/plesk-billing/sso --command=disable --app-type=admin
/opt/psa/bin/sw-engine-pleskrun /usr/share/plesk-billing/update-admin.php --password qaqaqa
/usr/share/plesk-billing/sso --command=enable --app-type=admin

Adter that you can login to BM with password qaqaqa
 
o086:~# /usr/share/plesk-billing/sso --command=disable --app-type=admin
Application type: admin
Connected with SSO: On
SSO enabled: Off
SSO API URL: https://o086.orange.fastwebserver.de:11443
SSO Relay port: https://o086.orange.fastwebserver.de:11444
Service Provider ID: fosq9inoank3awwtuue7cdwr5dbctidvaxr
o086:~# /opt/psa/bin/sw-engine-pleskrun /usr/share/plesk-billing/update-admin.php --password qaqaqa
Please revise admin credentials for the following panel: <a href="modules.php?action=362&configGroupID=74">o086.orange.fastwebserver.de</a><br>Please revise admin credentials for the following panel: <a href="modules.php?action=362&configGroupID=94">Local Parallels Plesk Panel server</a><br>
o086:~# /usr/share/plesk-billing/sso --command=enable --app-type=admin
Application type: admin
Connected with SSO: On
SSO enabled: On
SSO API URL: https://o086.orange.fastwebserver.de:11443
SSO Relay port: https://o086.orange.fastwebserver.de:11444
Service Provider ID: fosq9inoank3awwtuue7cdwr5dbctidvaxr

When i try to login there appears that the password is wrong. IDk why that happens.
 
how? :(

WIN2008R2x64, Plesk 10.0.1

I have the same problem. Can't login to plesk billing even if i've been through all these fixes.
The only one I can't run is sw-engine-pleskrun to fix billing permissions because i can't find any win08r2 equivalent command in plesk directory.

after repairing accounts I get:

C:\Program Files (x86)\Parallels\Plesk\admin\bin>billing-sso --command=repair-accounts
Repair administrative accounts:

FIRSTNAME LASTNAME (ID: 1)... [OK]
OrderForm User (ID: 2)... [OK]
API User (ID: 3)... [OK]
Cron User (ID: 4)... [OK]

Repair customers accounts:


The command 'repair_accounts' completed without errors.

As you can notice there is no FIRSTNAME Admin account...
Uninstalled/reinstalled billing and sso with options:
sso.msi ADDLOCAL=ALL INSTALLDIR="C:\Parallels\Plesk\" ALLUSERS=1 ARPSYSTEMCOMPONENT=1 REBOOT=R
but does not want to login. All other commands finish ok as proposed in the first post

Thank you in advance

Solution

"%plesk_bin%\php.exe" -dauto_prepend_file="" "%plesk_dir%\billing\scripts\\update-admin.php" --first-name=<Name> --last-name=<Last> --email=<e-mail.com> --password=<pass> --language=en
--country=gr
...of course without "<>"
Posting was my last resort but found the answer a bit later
For those that have similar errors and nobody helps them up... i hope i helped :)
 
Last edited:
Back
Top