Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Custom services hang (do not complete) in v20

    • Article Type: General
    • Product: Aleph
    • Product Version: 20

    Description:
    We are testing upgrading v18 to v20. We have about a dozen custom services set up to be run in the GUI, and we have a problem: I have got the files transferred from v18, I have resolved the staff-privileges angle by creating a PRIV-01 setup and assigning this to the xml files, and I can now run the jobs OK, but the jobs do not complete. The jobs in v18 run an SQL, which provisionally creates an output in the log in alephe/scratch, which gets generated as a file in the File List that staff can then pick up; but in v20, in Task Manager they ‘hang’ uncompleted (one of them for several days now), although the log in alephe/scratch has no errors and includes the expected output data – it seems that the last stage, of converting this to a file that can be accessed from the File List, is not being performed.

    Neither I nor our SA can work out why. I wonder if my adding the permission tag to the files (in u-tree /alephe/pc_b_eng) could be causing this, because this is the only change made to those files; but the change is as prescribed by ExL, and the jobs could not be run at all without the change. This is the tag added:

    <permission>p_priv_01</permission>

    Here are a couple of the XML files from our u-tree /alephe/pc_b_eng :

    aleph@ueaapp29(a20_1) UEA01> more p-custom-01.xml
    <?xml version = "1.0"?>
    <!DOCTYPE dialog SYSTEM "dialog.dtd">
    <dialog>
    <title>Collection Stats (custom-01)</title>
    <proc>p_custom_01</proc>
    <ignore_print_id>
    </ignore_print_id>
    <permission>p_priv_01</permission>
    <control>
    <edit>
    <argname>F01</argname>
    <label>Collection Name</label>
    <size>5</size>
    </edit>
    </control>
    </dialog>



    aleph@ueaapp29(a20_1) UEA01> more p-custom-03.xml
    <?xml version = "1.0"?>
    <!DOCTYPE dialog SYSTEM "dialog.dtd">
    <dialog>
    <title>Past loans (custom-03)</title>
    <proc>p_custom_03</proc>
    <ignore_print_id>
    </ignore_print_id>
    <permission>p_priv_01</permission>
    <control>
    <date_time>
    <argname>F01</argname>
    <label>From date</label>
    </date_time>
    </control>
    <control>
    <date_time>
    <argname>F02</argname>
    <label>To date</label>
    </date_time>
    </control>
    </dialog>
    <!-- Param: P-CUSTOM-03 -->
    <!-- Param: P-DATE-FROM 9(8). F01 -->
    <!-- Param: P-DATE-TO 9(8). F02 -->


    The KB has several entries relating to the need to get the privileges set up, but I cannot find anything like this.

    Has anyone else encountered this and resolved it, or can you spot a flaw in the XML files? Any advice appreciated.

    Resolution:
    [From Gene Damon, VCCS, on Global Aleph Users list:]

    In R18 the block at the end of the $aleph_proc file looked like this:

    bl_end
    rm_f_symbol
    exit

    When I change it to this, the "running" status changed:

    bl_end
    end_p_proc
    exit

    That is, the "rm_f_symbol" needs to be changed to "end_p_proc".


    • Article last edited: 10/8/2013