No such path or directory...what's misconfigured?

No such path or directory...what's misconfigured?

Postby jtgrimes on Sat Feb 25, 2012 12:47 am

I know that the program I'm trying to call exists (in the specified library). I'm guessing that something, somewhere is misconfigured, but I can't find it. Any suggestions about where I should start?

This is the debug log I'm generating:
Code: Select all
Creating new conn with database: '*LOCAL', user or i5 naming flag: 'jennifer', ext prefix: 'ibm_db2', persistence: ''
Going to create a new db connection.
Exec start: 2012-02-24 22:53:56
IPC: '/tmp/Toolkit'. Control key:  *sbmjob(ZENDSVR/ZSVR_JOBD/XTOOLKIT)
Stmt: call ZENDSVR.iPLUG512K(?,?,?,?)
Input XML: <?xml version="1.0" encoding="ISO-8859-1" ?><script>
   
   <pgm name='DTDXXFK' lib='DHGEN'>
   <parm comment='return code' io='input'> <data type='7A' var='P0RTN' > </data>  </parm><parm comment='policy' io='input'> <data type='7p2' var='P1A7CD' >2549776</data>  </parm><parm comment='employee id' io='output'> <data type='6A' var='P2B2CD' ></data>  </parm>
      
   </pgm>
   </script>
Output XML: <?xml version="1.0"?>
<report>
<error>
<errnoile>3025</errnoile>
<errnopase>0</errnopase>
<errnoxml>1301009</errnoxml>
<xmlerrmsg>unknown error</xmlerrmsg>
<xmlhint><![CDATA[ No such path or directory.]]></xmlhint>
</error>
<error>
<errnoile>3025</errnoile>
<errnopase>0</errnopase>
<errnoxml>1400001</errnoxml>
<xmlerrmsg>client call failed</xmlerrmsg>
<xmlhint><![CDATA[ No such path or directory.]]></xmlhint>
</error>
</report>

Exec end: 2012-02-24 22:53:56. Seconds to execute: 0.10417509078979.
jtgrimes
 
Posts: 7
Joined: Sat Feb 18, 2012 12:11 am

Re: No such path or directory...what's misconfigured?

Postby aseiden on Mon Feb 27, 2012 7:48 am

First, thank you for posting the debug.log, making the support job easier.

1. I suggest you update XMLSERVICE to the latest version. Based on the debug.log output, your version looks old. Remember to compile and call CRTXML2 if you want to compile into ZENDSVR (production).
viewtopic.php?f=113&t=48458&p=112848#p112848

2. In your PHP code, add this line (or one very much like it) after the connection is made. Assuming your toolkit connection is called $conn, here's the line:
$conn->setToolkitServiceParams(array('InternalKey' => '/tmp/jennifer123'));

That sets a unique IPC/InternalKey for your user profile. The error code you're getting most likely refers to a problem with the IPC folder.

3. Ensure that the QTMHHTTP user or whatever user is connecting (maybe "jennifer") has permissions to write files in the /tmp folder. Check that /tmp/jennifer123 is created automatically when the code above is used.

Please try these tips and let us know how it goes.

--Alan Seiden
aseiden
 
Posts: 697
Joined: Thu Apr 09, 2009 5:45 pm

Re: No such path or directory...what's misconfigured?

Postby jtgrimes on Thu Mar 01, 2012 8:29 pm

I've upgraded to the newest toolkit and the log is much more detailed, but the problem persists.

I've added the recommended InternalKey parameter and verified that I have write access to that folder, but errors persist.

Code: Select all
Creating new conn with database: '*LOCAL', user or i5 naming flag: 'jennifer', ext prefix: 'ibm_db2', persistence: ''
Going to create a new db connection.
Exec start: 2012-03-01 11:23:31
IPC: '/tmp/jennifer123'. Control key: *cdata *sbmjob(ZENDSVR/ZSVR_JOBD/XTOOLKIT)
Stmt: call ZENDSVR.iPLUG512K(?,?,?,?)
Input XML: <?xml version="1.0" encoding="ISO-8859-1" ?><script>
   
   <pgm name='DTDXXFK' lib='DHGEN'>
   <parm comment='return code' io='input'> <data type='7A' var='P0RTN' ></data>  </parm><parm comment='policy' io='input'> <data type='7p2' var='P1A7CD' ></data>  </parm><parm comment='employee id' io='output'> <data type='6A' var='P2B2CD' ></data>  </parm>
      
   </pgm>
   </script>
Output XML: <?xml version="1.0"?>
<report>
<error>
<errnoile>3025</errnoile>
<errnopase>0</errnopase>
<errnoxml>1301009</errnoxml>
<xmlerrmsg>IPC getshm fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3025</errnoile>
<errnopase>0</errnopase>
<errnoxml>1301023</errnoxml>
<xmlerrmsg>IPC shmget fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3025</errnoile>
<errnopase>0</errnopase>
<errnoxml>1301024</errnoxml>
<xmlerrmsg>IPC shmget loop fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3021</errnoile>
<errnopase>0</errnopase>
<errnoxml>1301025</errnoxml>
<xmlerrmsg>IPC shmat fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3021</errnoile>
<errnopase>0</errnopase>
<errnoxml>1301026</errnoxml>
<xmlerrmsg>IPC shmat loop fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3021</errnoile>
<errnopase>0</errnopase>
<errnoxml>1400001</errnoxml>
<xmlerrmsg>client call failed</xmlerrmsg>
<xmlhint><![CDATA[failure]]></xmlhint>
</error>
<joblog job='QSQSRVR' user='QUSER' nbr='295297'><![CDATA[7
  Job description  . . . . . . :   QDFTSVR         Library . . . . . :   QGPL
MSGID      TYPE                    SEV  DATE      TIME             FROM PGM     LIBRARY     INST     TO PGM      LIBRARY     INST
CPF1124    Information             00   03/01/12  10:23:23.107720  QWTPIIPP     QSYS        0671     *EXT                    *N
                                     Message . . . . :   Job 295297/QUSER/QSQSRVR started on 03/01/12 at 10:23:22
                                       in subsystem QSYSWRK in QSYS. Job entered system on 03/01/12 at 10:23:22.
*NONE      Completion                   03/01/12  11:23:31.695624  QSQSRVR      QSYS        *STMT    QSQSRVR     QSYS        *STMT
                                     From user . . . . . . . . . :   JENNIFER
                                     From module . . . . . . . . :   QSQSRVR
                                     From procedure  . . . . . . :   QSQSRVR
                                     Statement . . . . . . . . . :   6666
                                     To module . . . . . . . . . :   QSQSRVR
                                     To procedure  . . . . . . . :   QSQSRVR
                                     Statement . . . . . . . . . :   6666
                                     Message . . . . :   User Profile = JENNIFER
CPF9898    Completion              40   03/01/12  11:23:31.696176  QSQSRVR      QSYS        *STMT    QSQSRVR     QSYS        *STMT
                                     From user . . . . . . . . . :   JENNIFER
                                     From module . . . . . . . . :   QSQSRVR
                                     From procedure  . . . . . . :   QSQSRVR
                                     Statement . . . . . . . . . :   6756
                                     To module . . . . . . . . . :   QSQSRVR
                                     To procedure  . . . . . . . :   QSQSRVR
                                     Statement . . . . . . . . . :   6756
                                     Message . . . . :   SERVER MODE CONNECTING JOB IS 295509/QTMHHTTP/ZENDSVR.
                                     Cause . . . . . :   This message is used by application programs as a general
                                       escape message.
CPC1221    Completion              00   03/01/12  11:23:31.840144  QWTCCSBJ     QSYS        0203     XMLSTOREDP  ZENDSVR     *STMT
                                     From user . . . . . . . . . :   JENNIFER
                                     To module . . . . . . . . . :   PLUGIPC
                                     To procedure  . . . . . . . :   SBMJOB
                                     Statement . . . . . . . . . :   2132
                                     Message . . . . :   Job 295611/JENNIFER/XTOOLKIT submitted to job queue
                                       ZSVR_JOBQ in library ZENDSVR.]]></joblog>
</report>

Exec end: 2012-03-01 11:23:53. Seconds to execute: 21.318950891495.


Exec start: 2012-03-01 11:23:53
IPC: '/tmp/jennifer123'. Control key: *cdata *sbmjob(ZENDSVR/ZSVR_JOBD/XTOOLKIT)
Stmt: call ZENDSVR.iPLUG512K(?,?,?,?)
Input XML: <?xml version="1.0" encoding="ISO-8859-1" ?>
jtgrimes
 
Posts: 7
Joined: Sat Feb 18, 2012 12:11 am

Re: No such path or directory...what's misconfigured?

Postby aseiden on Thu Mar 01, 2012 9:13 pm

Hi, Jennifer,

I assume you installed XMLSERVICE 1.6.6, but this debug output doesn't look like 1.6.6 output.

I think I know why. You must end your XTOOLKIT job *IMMED for the new version to take effect.

Please try that and then post the new debug log.

The log might be similar but I want to make sure we're working with the latest version.

Alan
aseiden
 
Posts: 697
Joined: Thu Apr 09, 2009 5:45 pm

Re: No such path or directory...what's misconfigured?

Postby jtgrimes on Thu Mar 01, 2012 10:01 pm

I've re-installed, re-started, re-membered to set Terraspace to No and re-started again.

New log follows:

Code: Select all
Creating new conn with database: '*LOCAL', user or i5 naming flag: 'jennifer', ext prefix: 'ibm_db2', persistence: ''
Going to create a new db connection.
Exec start: 2012-03-01 12:57:24
IPC: '/tmp/jennifer123'. Control key: *cdata *sbmjob(ZENDSVR/ZSVR_JOBD/XTOOLKIT)
Stmt: call ZENDSVR.iPLUG512K(?,?,?,?)
Input XML: <?xml version="1.0" encoding="ISO-8859-1" ?><script>
   
   <pgm name='DTDXXFK' lib='DHGEN'>
   <parm comment='return code' io='input'> <data type='7A' var='P0RTN' ></data>  </parm><parm comment='policy' io='input'> <data type='7p2' var='P1A7CD' ></data>  </parm><parm comment='employee id' io='output'> <data type='6A' var='P2B2CD' ></data>  </parm>
      
   </pgm>
   </script>
Output XML: <?xml version="1.0" encoding="ISO-8859-1" ?>
<report>
<version>XML Toolkit 1.6.6</version>
<error>
<errnoile>3025</errnoile>
<errnoxml>1301009</errnoxml>
<xmlerrmsg>IPC getshm fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3025</errnoile>
<errnoxml>1301023</errnoxml>
<xmlerrmsg>IPC shmget fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3025</errnoile>
<errnoxml>1301024</errnoxml>
<xmlerrmsg>IPC shmget loop fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3021</errnoile>
<errnoxml>1301025</errnoxml>
<xmlerrmsg>IPC shmat fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3021</errnoile>
<errnoxml>1301026</errnoxml>
<xmlerrmsg>IPC shmat loop fail</xmlerrmsg>
<xmlhint><![CDATA[/tmp/jennifer123 ]]></xmlhint>
</error>
<error>
<errnoile>3021</errnoile>
<errnoxml>1400001</errnoxml>
<xmlerrmsg>client call failed</xmlerrmsg>
<xmlhint><![CDATA[failure]]></xmlhint>
</error>
<joblog job='QSQSRVR' user='QUSER' nbr='292844'><![CDATA[ 5722SS1 V5R4M0 060210                        Display Job Log                        DHSD     03/01/12 12:57:45          Page    1
  Job name . . . . . . . . . . :   QSQSRVR         User  . . . . . . :   QUSER        Number . . . . . . . . . . . :   292844
  Job description  . . . . . . :   QDFTSVR         Library . . . . . :   QGPL
MSGID      TYPE                    SEV  DATE      TIME             FROM PGM     LIBRARY     INST     TO PGM      LIBRARY     INST
CPF1124    Information             00   02/29/12  16:12:06.906992  QWTPIIPP     QSYS        0671     *EXT                    *N
                                     Message . . . . :   Job 292844/QUSER/QSQSRVR started on 02/29/12 at 16:12:06
                                       in subsystem QSYSWRK in QSYS. Job entered system on 02/29/12 at 16:12:06.
*NONE      Completion                   03/01/12  12:57:23.986544  QSQSRVR      QSYS        *STMT    QSQSRVR     QSYS        *STMT
                                     From user . . . . . . . . . :   JENNIFER
                                     From module . . . . . . . . :   QSQSRVR
                                     From procedure  . . . . . . :   QSQSRVR
                                     Statement . . . . . . . . . :   6666
                                     To module . . . . . . . . . :   QSQSRVR
                                     To procedure  . . . . . . . :   QSQSRVR
                                     Statement . . . . . . . . . :   6666
                                     Message . . . . :   User Profile = JENNIFER
CPF9898    Completion              40   03/01/12  12:57:23.987376  QSQSRVR      QSYS        *STMT    QSQSRVR     QSYS        *STMT
                                     From user . . . . . . . . . :   JENNIFER
                                     From module . . . . . . . . :   QSQSRVR
                                     From procedure  . . . . . . :   QSQSRVR
                                     Statement . . . . . . . . . :   6756
                                     To module . . . . . . . . . :   QSQSRVR
                                     To procedure  . . . . . . . :   QSQSRVR
                                     Statement . . . . . . . . . :   6756
                                     Message . . . . :   SERVER MODE CONNECTING JOB IS 296146/QTMHHTTP/ZENDSVR.
                                     Cause . . . . . :   This message is used by application programs as a general
                                       escape message.
CPC1221    Completion              00   03/01/12  12:57:24.331264  QWTCCSBJ     QSYS        0203     XMLSTOREDP  ZENDSVR     *STMT
                                     From user . . . . . . . . . :   JENNIFER
                                     To module . . . . . . . . . :   PLUGIPC
                                     To procedure  . . . . . . . :   SBMJOB
                                     Statement . . . . . . . . . :   3692
                                     Message . . . . :   Job 296148/JENNIFER/XTOOLKIT submitted to job queue
                                       ZSVR_JOBQ in library ZENDSVR.]]>
</joblog>
</report>

Exec end: 2012-03-01 12:57:46. Seconds to execute: 22.169013023376.


Exec start: 2012-03-01 12:57:46
IPC: '/tmp/jennifer123'. Control key: *cdata *sbmjob(ZENDSVR/ZSVR_JOBD/XTOOLKIT)
Stmt: call ZENDSVR.iPLUG512K(?,?,?,?)
Input XML: <?xml version="1.0" encoding="ISO-8859-1" ?>
jtgrimes
 
Posts: 7
Joined: Sat Feb 18, 2012 12:11 am

Re: No such path or directory...what's misconfigured?

Postby aseiden on Thu Mar 01, 2012 10:15 pm

Yes, you're definitely running an updated XMLSERVICE now.

I'll run this by the development team.

Meanwhile, and I think you answered, but I'm double-checking:

that the folder /tmp/jennifer123 exists and shows permissions:

Code: Select all
JENNIFER        *RW          X     X     X     X   

Right?
aseiden
 
Posts: 697
Joined: Thu Apr 09, 2009 5:45 pm

Re: No such path or directory...what's misconfigured?

Postby jtgrimes on Wed Mar 07, 2012 8:14 pm

It has public read/write/execute permissions -- I can't open it up any further than that.
jtgrimes
 
Posts: 7
Joined: Sat Feb 18, 2012 12:11 am

Re: No such path or directory...what's misconfigured?

Postby aseiden on Wed Mar 07, 2012 11:48 pm

Hi, Jennifer, please contact me offline at alan@alanseiden.com. We'll get the issue taken care of, and then I'll post our results here on the forum.

Alan
aseiden
 
Posts: 697
Joined: Thu Apr 09, 2009 5:45 pm

Re: No such path or directory...what's misconfigured?

Postby aseiden on Mon Apr 16, 2012 9:23 pm

By the way, Jennifer is doing fine with XMLSERVICE 1.6.8 and "v5r4" mode. It's still considered "experimental" but worked fine here.
aseiden
 
Posts: 697
Joined: Thu Apr 09, 2009 5:45 pm


Return to New Toolkit

Who is online

Users browsing this forum: No registered users and 1 guest