Problems to execute programs on PAS

Posted by Kai Siegele on 30-Jan-2017 08:07

Hallo,

I have problems to execute programs on an Pacific Open Edge application server.

I am using the 64-bit version of Open Edge and I want to execute a program on the default oepas1 application server. For this purpose I have modified the agent startup parameter, to startup the database and I have added the directory with our executables to the PROPATH-variable.
Then I have started the application server: The Open Edge Explorer indicates a green bulb and as far as I can see in the log files no error has happened.

Now I want to connect the application server using following ABL command:
hAppServer:CONNECT(„-sessionModel Session-managed -URL localhost:8811/oemanager“) NO-ERROR.
When I evaluate the error status I got the message that the HTTP-status code is 403.

Has anyone an idea how to fix the error and connect the application server with success? Please don’t hesitate to contact me for further information.

Kind regards
Kai Siegele

Posted by Mike Fechner on 01-Feb-2017 02:47

Just tried the following. My PASOE connects to DB's using a PF file and I just changed the -db parameter to an invalid parameter - this is what I find in the xxxx.agent.log file.

[17/02/01@09:44:58.552+0100] P-015744 T-023948 1 AS-ResourceMgr -- Log entry types activated: ASPlumbing,DB.Connects

[17/02/01@09:44:58.552+0100] P-015744 T-023948 2 AS-ResourceMgr AS Starting MSAS Session for smartpas.

[17/02/01@09:44:58.552+0100] P-015744 T-023948 2 AS-ResourceMgr AS MSAS Session Startup. (5473)

[17/02/01@09:44:59.614+0100] P-015744 T-023948 1 AS-ResourceMgr -- Disconnected from server because database name was incorrect. (437)

[17/02/01@09:44:59.614+0100] P-015744 T-023948 1 AS-ResourceMgr -- ** Server rejected login. (700)

[17/02/01@09:44:59.615+0100] P-015744 T-023948 1 AS-ResourceMgr -- Error initialising the application server. (5479)

[17/02/01@09:44:59.615+0100] P-015744 T-020004 1 AS-Listener MSAS Resource Manager Initialization Failed -- Shutting down...

[17/02/01@09:44:59.615+0100] P-015744 T-020004 1 AS-Listener MSAS Agent Shutting Down. Status: -1005

[17/02/01@09:44:59.615+0100] P-015744 T-003264 1 AS-Aux MSAS Worker Thread exiting. Number: 4, Status: -16

[17/02/01@09:44:59.625+0100] P-015744 T-020004 1 AS-Listener MSAS Agent Shutdown Complete.

All Replies

Posted by Ruben Dröge on 30-Jan-2017 08:14

You'll need to connect to the ABL side of it, like this

hAppServer:CONNECT("-URL http://localhost:8810/apsv -sessionModel Session-managed").

Posted by Mike Fechner on 30-Jan-2017 08:16

a)       Remove the NO-ERROR

b)      Use -URL http://localhost:8811/apsv

 
The ABL won’t connect to the oemanager. ABL connected to the apsv transport.
 
 
Startup the DB from the AppServer startup? Or Connect?

Posted by Kai Siegele on 30-Jan-2017 09:23

Hallo Ruben, hallo Mike, thank you for your reply.

Unfortunately it still not works after modifying the connection string. When I remove the no-error how can i get a more or less helpful errormessage? I have also searched all log files but i have not found any useful hint.

Perhaps do you have another idea?

Kind regards

Kai Siegele

Posted by Irfan on 30-Jan-2017 09:26

Hello Kai,

How does your connect URL look like now ?

Posted by Ruben Dröge on 30-Jan-2017 09:42

From the documentation (https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/pasoe-migrate-develop/connecting-to-a-session-free-pas-for-openedge-in.html#):

DEFINE VARIABLE hAppServer AS HANDLE  NO-UNDO.
DEFINE VARIABLE lReturn    AS LOGICAL NO-UNDO.

CREATE SERVER hAppServer.
lReturn = hAppServer:CONNECT("-URL http://localhost:8810/apsv -sessionModel Session-free").
IF NOT lReturn THEN DO:
  DELETE OBJECT hAppServer NO-ERROR.
  RETURN ERROR "Failed to connect to the ROOT ABL web application".
END.
IF ERROR-STATUS:ERROR THEN DO:
  lReturn = hAppServer:DISCONNECT().
  DELETE OBJECT hAppServer NO-ERROR.
  RETURN ERROR RETURN-VALUE.
END.

lReturn = hAppServer:DISCONNECT().
DELETE OBJECT hAppServer NO-ERROR.

Posted by Kai Siegele on 01-Feb-2017 02:41

Hallo Ruben, hallo Irfan,

thanks you for your help.

After checking the parameter again and again I have figured out that the agent startup parameter to connect the database server was wrong. After correcting this parameter executing a program on the default oepas1 application server works.

My problems is that I have not found any useful message about the error cause. Neither in the agent log file viewer, nor in one of the log files. Has anyone an idea where to search instead?

Kind regards

Kai Siegele

Posted by Mike Fechner on 01-Feb-2017 02:47

Just tried the following. My PASOE connects to DB's using a PF file and I just changed the -db parameter to an invalid parameter - this is what I find in the xxxx.agent.log file.

[17/02/01@09:44:58.552+0100] P-015744 T-023948 1 AS-ResourceMgr -- Log entry types activated: ASPlumbing,DB.Connects

[17/02/01@09:44:58.552+0100] P-015744 T-023948 2 AS-ResourceMgr AS Starting MSAS Session for smartpas.

[17/02/01@09:44:58.552+0100] P-015744 T-023948 2 AS-ResourceMgr AS MSAS Session Startup. (5473)

[17/02/01@09:44:59.614+0100] P-015744 T-023948 1 AS-ResourceMgr -- Disconnected from server because database name was incorrect. (437)

[17/02/01@09:44:59.614+0100] P-015744 T-023948 1 AS-ResourceMgr -- ** Server rejected login. (700)

[17/02/01@09:44:59.615+0100] P-015744 T-023948 1 AS-ResourceMgr -- Error initialising the application server. (5479)

[17/02/01@09:44:59.615+0100] P-015744 T-020004 1 AS-Listener MSAS Resource Manager Initialization Failed -- Shutting down...

[17/02/01@09:44:59.615+0100] P-015744 T-020004 1 AS-Listener MSAS Agent Shutting Down. Status: -1005

[17/02/01@09:44:59.615+0100] P-015744 T-003264 1 AS-Aux MSAS Worker Thread exiting. Number: 4, Status: -16

[17/02/01@09:44:59.625+0100] P-015744 T-020004 1 AS-Listener MSAS Agent Shutdown Complete.

Posted by Kai Siegele on 01-Feb-2017 03:55

Thank your answer. In the future i will search in the oepas1.agent.log file.

By the way I have forgotten the - before the db and i got the message the argument wst (Name of the database) was not recognized.

This thread is closed