message id pui0037 when attempting to launch program

Use this board to ask questions or have discussions with other Rich Displays users.
chris_rover
Profound User
Posts: 88
Joined: Tue Jun 01, 2010 11:31 am
First Name: christopher
Last Name: williams
Company Name: banks dih limited
Phone: 592-226-9584
Address 1: thirst park
Address 2: ruimveldt
City: gerogetown
State / Province: Outside Canada/USA
Zip / Postal Code: 0000
Country: Guyana
Contact:

message id pui0037 when attempting to launch program

Post by chris_rover »

Hi guys, I am getting the above error message when I try to launch either a new session or an initial program.
I upgraded to the latest version this morning, and that's when this problem started. I have attached a screen-shot of the message.

please help urgently.

Also, Scott, welcome to the Profound scene. I know you will bring great value to us.
Attachments
pui0037.docx
(143.18 KiB) Downloaded 261 times
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: message id pui0037 when attempting to launch program

Post by Scott Klement »

Hi Chris,

In version 4.1.0, ProfoundUI is tracking some settings in a session database on the server. The error you cite states that an error occurred while accessing this session database, and that you should look in the job log for further errors.

Please do look in the job log.

If I had to guess, I'd say you're having an authority error. A bug was discovered this morning in the 4.1.0 installer where it was not setting the authorities correctly.

Try granting *PUBLIC *CHANGE authority to this session database (PUISSNP, PUISSNVP). The commands to do so would be:

Code: Select all

GRTOBJAUT OBJ(PROFOUNDUI/PUISSNP) OBJTYPE(*FILE) USER(*PUBLIC) AUT(*CHANGE)
GRTOBJAUT OBJ(PROFOUNDUI/PUISSNVP) OBJTYPE(*FILE) USER(*PUBLIC) AUT(*CHANGE)
If you installed 4.1.0 in a different library, change PROFOUNDUI to whichever library name you used.

Hope this helps, and thanks for the welcome!
chris_rover
Profound User
Posts: 88
Joined: Tue Jun 01, 2010 11:31 am
First Name: christopher
Last Name: williams
Company Name: banks dih limited
Phone: 592-226-9584
Address 1: thirst park
Address 2: ruimveldt
City: gerogetown
State / Province: Outside Canada/USA
Zip / Postal Code: 0000
Country: Guyana
Contact:

Re: message id pui0037 when attempting to launch program

Post by chris_rover »

Hi Scott. that was the problem. I received the same response from David at the same time you responded.

thanks again.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: message id pui0037 when attempting to launch program

Post by Scott Klement »

Great! Yeah, I saw your e-mail and David's response while I was typing the forum post. But, I decided it wouldn't hurt to have it in the forum, too...
esdaled
Profound User
Posts: 72
Joined: Fri May 08, 2009 2:43 pm
First Name: David
Last Name: Esdale
Company Name: Guardian General Insurance
City: Port of Spain
State / Province: Outside Canada/USA
Country: Trinidad and Tobago
Location: Trinidad
Contact:

Re: message id pui0037 when attempting to launch program

Post by esdaled »

I am having a similar problem starting a Genie session. Normally, we use Atrium Genie Macros to start a session (and this works fine) but I am trying to start a session directly with a URL (http://10.0.240.31:8212/profoundui/geni ... =TDE20002c) and a specified workstation id.

Here is the message in the job log:

Code: Select all

Job 362165/QTMHHTTP/GGLDEV started on 12/29/12 at 11:03:38 in subsystem
  QHTTPSVR in QHTTPSVR. Job entered system on 12/29/12 at 11:03:38.    
This is a CGI job for IBM HTTP Server instance GGLDEV.                 
Not authorized to replace file PUISSNP in QTEMP.                       
File PUISSNP not created in library QTEMP.                             
SQL system error.                                                      
Unable to access session database.                                     
*PUBLIC, QTMHHTP1 and QTMHHTTP have *CHANGE authority to PUISSNP file in the PROFOUNDUI library.

We are using version 4.1.7.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: message id pui0037 when attempting to launch program

Post by David »

It looks like the problem here actually has to do with the QTEMP library? The process is trying to run a CREATE ALIAS statement to create an alias of PROFOUNDUI/PUISSNP in QTEMP. Does QTMHHTP1 have authority to QTEMP?
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: message id pui0037 when attempting to launch program

Post by David »

That might not be correct -- now that I think about it, I'm not sure that you can even set permissions on the QTEMP library.

Here is what it is trying to do:

1. It checks for existence of an SQL alias QTEMP/PUISSNP.

2. If this is not found, it creates it using an SQL statement like this:

CREATE ALIAS QTEMP/PUISSNP FOR PROFOUNDUI/PUISSNP

What is odd about the message is that it seems to indicate that the alias has already been created and it's trying to create it again?

That is very unusual, as the CREATE ALIAS statement won't replace an existing file, anyhow. If you were to take option 13 from the Work with Job screen after this happens and then take an Option 5 on the QTEMP library, do you see the "file" PUISSNP in there?
esdaled
Profound User
Posts: 72
Joined: Fri May 08, 2009 2:43 pm
First Name: David
Last Name: Esdale
Company Name: Guardian General Insurance
City: Port of Spain
State / Province: Outside Canada/USA
Country: Trinidad and Tobago
Location: Trinidad
Contact:

Re: message id pui0037 when attempting to launch program

Post by esdaled »

QTEMP is empty for the job.

The library list for the job is:

Code: Select all

QSYS        SYS
QSYS2       SYS
QHLPSYS     SYS
QUSRSYS     SYS
QHTTPSVR    CUR
QGPL        USR
QTEMP       USR
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: message id pui0037 when attempting to launch program

Post by David »

Thanks. This is very strange -- we've tested a number of different situations and we haven't been able to determine what could cause the "cannot replace file in QTEMP" message.

The odd thing is that the CREATE ALIAS statement it's trying to run cannot even be used to replace the file, anyway. If it were existing already, you'd get a "file already exists" type of message.

When you sign on with /profoundui/genie, the job runs under user profile QTMHHTP1. If you were to copy this user profile so that you have one that is setup the same way, could you try signing on with it and running this SQL statement:

Code: Select all


CREATE ALIAS QTEMP/PUISSNP FOR PROFOUNDUI/PUISSNP

Does that work? Or does it fail with the same messsage?
esdaled
Profound User
Posts: 72
Joined: Fri May 08, 2009 2:43 pm
First Name: David
Last Name: Esdale
Company Name: Guardian General Insurance
City: Port of Spain
State / Province: Outside Canada/USA
Country: Trinidad and Tobago
Location: Trinidad
Contact:

Re: message id pui0037 when attempting to launch program

Post by esdaled »

It worked under the copied user profile. Although, I did have to give the new user profile authority to the STRSQL command.

I have tried using the base profoundui HTTP server configuration file and IFS www folders instead of our customized versions but I have encountered the same problem.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest