
Trying to install PBAs plug-ins and can't find where/how? I feel sure I must have overlooked this somewhere. The only mention I found in the documentation was the following:
Payment plug-ins are shipped as RPM modules independent from Parallels Business Automation - Standard functionality.
And there's the link to payment plugins at the Parallels website, but no info on how to find/install the RPMs. So where are they?
RPMs on your PBAs server
One plug-in I needed was for paypal, so I search the PBAs host for "paypal" and find what look to be the relevant RPMs:
[root@pbas ~]# locate paypal /root/pbas-4.5.2-21/packages/hspc-plugin-pp-op-paypal_adaptive-4.5.2-21.swsoft.x86_64.rpm /root/pbas-4.5.2-21/packages/hspc-plugin-pp-op-paypaldirect-4.5.2-21.swsoft.x86_64.rpm /root/pbas-4.5.2-21/packages/hspc-plugin-pp-op-paypalexpress-4.5.2-21.swsoft.x86_64.rpm /root/pbas-4.5.2-21/packages/hspc-plugin-pp-op-paypalstandart-4.5.2-21.swsoft.x86_64.rpm /var/opt/hspc-root/images/cards/paypal_logo.gif
There they are on your server, downloaded as part of your PBAs install/update. I'm just loading paypal express for now, so:
[root@pbas ~]# rpm -i /root/pbas-4.5.2-21/packages/hspc-plugin-pp-op-paypalexpress-4.5.2-21.swsoft.x86_64.rpm warning: /root/pbas-4.5.2-21/packages/hspc-plugin-pp-op-paypalexpress-4.5.2-21.swsoft.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 2425c37e: NOKEY => [register factory] 'plugin-pp-op-paypalexpress' => [process section] 'pre' => [exec start] 'pre/stop_services.sh' with '/bin/sh' processor Stopping HSPcomplete Service Monitor: [ OK ] Stopping HSPcomplete Task Manager: [ OK ] Stopping HSPcomplete VZAgent Collector: [ OK ] Stopping hspcd: [ OK ] => [exec success] 'pre/stop_services.sh' in 5.51 secs => [factory started] plugin-pp-op-paypalexpress [root@pbas ~]#
Great, how simple is that, right?
PBAs is broken...
At this point I find the PBAs web interface broken. Restart hspcd? Nope:
[root@pbas ~]# /etc/init.d/hspcd restart Stopping hspcd: [FAILED] Starting hspcd: Syntax error on line 443 of /etc/hspcd/conf/hspcd.conf: System upgrade has not been completed! Please continue upgrade process by using 'hspc-upgrade-manager --finish' command BEGIN failed--compilation aborted at /usr/local/share/perl5/HSPC/Startup.pm line 644. Compilation failed in require at (eval 5) line 3. [FAILED]
Per that instruction, I ran hspc-upgrade-manager --finish
and after a while it completed and PBAs was back:
[root@pbas ~]# hspc-upgrade-manager --finish => [factory finished] plugin-pp-op-paypalexpress => [factory finished] pp => [process section] 'post' => [exec start] 'post/fix_vim_deps.sh' with '/bin/sh' processor => [exec success] 'post/fix_vim_deps.sh' in 0.04 secs => [exec start] 'post/hspc_config_release.pl' with '/usr/sbin/hspc-perl' processor => [exec success] 'post/hspc_config_release.pl' in 0.47 secs => [exec start] 'post/update_status.sh' with '/bin/sh' processor => [exec success] 'post/update_status.sh' in 0.02 secs => [exec start] 'post/save_log.pl' with '/usr/sbin/hspc-perl' processor => [exec success] 'post/save_log.pl' in 0.47 secs => [exec start] 'post/sendemail.sh' with '/bin/sh' processor => [exec success] 'post/sendemail.sh' in 0.01 secs => [exec start] 'post/del_temp_files.sh' with '/bin/sh' processor => [exec success] 'post/del_temp_files.sh' in 0.01 secs => [exec start] 'post/fix_reports.sh' with '/bin/sh' processor => [exec success] 'post/fix_reports.sh' in 0.02 secs => [exec start] 'post/clean_upref_var.sql' with '/usr/sbin/hspc-sql' processor => [exec success] 'post/clean_upref_var.sql' in 0.12 secs => [exec start] 'post/optimize_tables.pl' with '/usr/sbin/hspc-perl' processor 1402700100 :Optimize table abstract_template 1402700100 :Result is note -> Table does not support optimize, doing recreate + analyze instead ... many lines removed ... 1402700208 :Optimize table xml_api_cache 1402700208 :Result is note -> Table does not support optimize, doing recreate + analyze instead => [exec success] 'post/optimize_tables.pl' in 108.97 secs => [exec start] 'post/start_services.sh' with '/bin/sh' processor Starting hspcd: [ OK ] Stopping httpd: [ OK ] Starting httpd: WARNING: MaxClients of 100 exceeds ServerLimit value of 10 servers, lowering MaxClients to 10. To increase, please see the ServerLimit directive. [ OK ] Starting HSPcomplete VZAgent Collector: [ OK ] Starting HSPcomplete Task Manager: [ OK ] Starting HSPcomplete Service Monitor: [ OK ] => [exec success] 'post/start_services.sh' in 24.19 secs => [factory finished] common
Anyways that seemed to do the trick, and my payment plug-in is now available. Is that the best procedure? Any documentation I've missed?
Add new comment