Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
128 Views

execvp error on file, The requested operation requires elevation.

Jump to solution

Hi,
This is Tansel. I am not a direct MPI user. Someone from my team created an application using MPI, using a single batch file to run his executable on mpiexec.

The problem is, I need to integrate this into an automated system (written in Java) and my software will call this batch at some point. However, when I do, I get the following error: (batch file launches the software in the first line, [0+] are errors)
(Program runs fine if I run the batch file w/ double click or from any command line)

C:\Launcher>mpiexec -l -n 1 ../Program.exe some-parameters         : -n 1 ../Program.exe some-other-parameters         : -n 1 ../Program.exe paramters-again         : -n 1 ../Program.exe parameters-parameters         : -n 1 ../Program.exe awesome-parameters
 
[0] [-1:36280]ERROR:execvp error on file: ../Program.exe, The requested operation requires elevation.
[1] [-1:36280]ERROR:execvp error on file: ../Program.exe, The requested operation requires elevation.
[2] [-1:36280]ERROR:execvp error on file: ../Program.exe, The requested operation requires elevation.
[3] [-1:36280]ERROR:execvp error on file: ../Program.exe, The requested operation requires elevation.
[4] [-1:36280]ERROR:execvp error on file: ../Program.exe, The requested operation requires elevation.

Now, I get the notion that standard process builder in Java creates a subprocess, and mpiexec cannot create its subprocesses. I'm not sure if it is true, or regardless is there any solution.

I tried:
1) Running as admin, no dice
2) Run new process from new separate thread, no dice either
3) Call batch file as a Windows native application (with various different java libraries), no dice either

Thanks in advance.

0 Kudos

Accepted Solutions
Highlighted
Employee
128 Views

Hi Tansel,

Is the batch file run in your automated system under any special user? If yes please check its permissions.

Another suggestion is to check firewall (if enabled) settings for your automated system.

View solution in original post

0 Kudos
2 Replies
Highlighted
Employee
129 Views

Hi Tansel,

Is the batch file run in your automated system under any special user? If yes please check its permissions.

Another suggestion is to check firewall (if enabled) settings for your automated system.

View solution in original post

0 Kudos
Highlighted
Beginner
128 Views

Artem R. (Intel) wrote:

Hi Tansel,

Is the batch file run in your automated system under any special user? If yes please check its permissions.

Another suggestion is to check firewall (if enabled) settings for your automated system.

 

Hi Artem,

Thank you for your reply.

Turned out it was a user authentication problem. I checked all permissions, and noticed that each process and their subprocesses should have been under the same user. In fact, they were not. Sorting that out solved the problem for me. This might be useful for future users.

Regards, Tansel.

0 Kudos