PBA-S Payment Plug-In package breaks after installation

Discussion in 'Customization & Integration Showcase and Discussion' started by KalinB, Apr 4, 2013.

  1. KalinB

    KalinB Bit Poster

    Messages:
    2
    Hi,

    I am integrating RoboKassa into our PBAS.
    Based on the dummyredirect plugin, i have created my new structure, and build the rpm successfully.
    Then i cannot install it in the PBAS, because rpm -i ... stops with the following message:

    rpm -i hspc-plugin-pp-op-robokassa-4.3.2-08.i386.rpm
    => [register factory] 'plugin-pp-op-robokassa'
    => [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 4.48 secs
    => [exec start] 'pre/repair_tables.pl' with '/usr/sbin/hspc-perl' processor
    1365089585 : Some of databases handled by local mysql server, force databases upgrade...
    1365089585 : Run 'mysql_upgrade'...
    Looking for 'mysql' as: mysql
    Looking for 'mysqlcheck' as: mysqlcheck
    This installation of MySQL is already upgraded to 5.0.77, use --force if you still need to run mysql_upgrade
    1365089585 : Done.
    => [exec success] 'pre/repair_tables.pl' in 0.05 secs
    => [factory started] plugin-pp-op-robokassa
    #

    Then I see the hspc is stopped so:

    # service hspcd start
    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/lib/perl5/site_perl/5.8.8/HSPC/Startup.pm line 644.
    Compilation failed in require at (eval 5) line 3.

    [FAILED]
    #

    I run the upgrade manager again:

    => [factory finished] plugin-pp-op-robokassa
    => [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.02 secs
    => [exec start] 'post/hspc_config_release.pl' with '/usr/sbin/hspc-perl' processor
    => [exec success] 'post/hspc_config_release.pl' in 0.21 secs
    => [exec start] 'post/update_status.sh' with '/bin/sh' processor
    => [exec success] 'post/update_status.sh' in 0.04 secs
    => [exec start] 'post/save_log.pl' with '/usr/sbin/hspc-perl' processor
    => [exec success] 'post/save_log.pl' in 0.54 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.01 secs
    => [exec start] 'post/clean_upref_var.sql' with '/usr/sbin/hspc-sql' processor
    => [exec success] 'post/clean_upref_var.sql' in 0.07 secs
    => [exec start] 'post/optimize_tables.pl' with '/usr/sbin/hspc-perl' processor

    ... optimized tables here...

    => [exec success] 'post/optimize_tables.pl' in 71.64 secs
    => [exec start] 'post/start_services.sh' with '/bin/sh' processor
    Starting hspcd: [ OK ]
    Stopping httpd: [ OK ]
    Starting httpd: [ OK ]
    Starting HSPcomplete VZAgent Collector: [ OK ]
    Starting HSPcomplete Task Manager: [ OK ]
    Starting HSPcomplete Service Monitor: [ OK ]
    => [exec success] 'post/start_services.sh' in 25.00 secs
    => [factory finished] common

    Then I login into PBAS and I cannot see my plugin installed.
    The problem is that I tried the same procedure with the dummyredirect plugin and it did the same error, so maybe I don't understand how to actually install a plugin after all.

    Please advise!

    Thank you!
    Kalin.
     
  2. vbatraev

    vbatraev Odin Team

    Messages:
    346
    Hi Kalin,

    There are 2 ways to install plug-ins:
    1. run PBAS installer and check the plug-in to be installed there.
    2. install package using "rpm -Uvh" command and then execute "hspc-upgrade-manager --finish".
    Once payment plug-in is installed, go to PCC > Commerce Director > Online Payments > Payment Plug-ins and press "New plug-in" button. The installed plug-in should be listed in "plug-ins template" list.
     
  3. KalinB

    KalinB Bit Poster

    Messages:
    2
    Hi,

    Thank you for the reply.
    Pls note that I am writing a custom plugin, as Robokassa is not included in the available plugins for PBA-S.
    So if you follow the logs, you will see that I did all these as in Step 2. But still, I cannot see my plugin after pressing "New plug-in".

    Thanks.
     
  4. vbatraev

    vbatraev Odin Team

    Messages:
    346
    Than something is wrong with your plug-in.
    Please carefully re-check packages and file names, package name in spec file.
     

Share This Page