Closed ansSanthoshM closed 3 years ago
Looking into this. Thanks for posting this!
Pinging @FredAns, not sure if we've seen this before.
I've only been able to reproduce this on the VPN. Can you check whether you can open Mechanical APDL as well as Mechanical (from Workbench) in the situation that you found pymapdl wouldn't launch?
It looks like it may be directly related to the VPN.
@akaszynski @jgd10
I tried to replicate this issue using the (old) Mechanical launcher by running the gRPC mode with the distributed computing (DMP). You can replicate that with the next command line:
"C:\Program Files\ANSYS Inc\v212\commonfiles\launcherQT\source\..\..\..\ansys\bin\winx64\MAPDL.EXE" -g -lch -p ansys -dir "C:\ansys_jobs\testgrpc" -j file -grpc -l en-us -d win32 -s noread -dis -mpi INTELMPI -np 2
and I got the next error output:
***** ANSYS COMMAND LINE ARGUMENTS *****
INITIAL JOBNAME = file
DISTRIBUTED MEMORY PARALLEL REQUESTED
2 PARALLEL PROCESSES REQUESTED WITH SINGLE THREAD PER PROCESS
TOTAL OF 2 CORES REQUESTED
MPI OPTION = INTELMPI
START-UP FILE MODE = NOREAD
STOP FILE MODE = NOREAD
GRAPHICS DEVICE REQUESTED = win32
GRAPHICAL ENTRY = YES
LANGUAGE = en-us
INITIAL DIRECTORY = C:\ansys_jobs\testgrpc
RELEASE= 2021 R2 BUILD= 21.2 UP20210601 VERSION=WINDOWS x64
CURRENT JOBNAME=file0 14:54:06 SEP 09, 2021 CP= 0.156
/SHOW SET WITH DRIVER NAME= WIN32 , RASTER MODE, GRAPHIC PLANES = 8
Start GRPC Server
E0909 14:54:06.838000000 6660 server_chttp2.cc:40] {"created":"@1631192046.838000000","description":"No address added out of total 1 resolved","file":"C:\.conan\90bfff\1\grpc\src\core\ext\transport\chttp2\server\chttp2_server.cc","file_line":394,"referenced_errors":[{"created":"@1631192046.838000000","description":"Failed to add port to server","file":"C:\.conan\90bfff\1\grpc\src\core\lib\iomgr\tcp_server_windows.cc","file_line":510,"referenced_errors":[{"created":"@1631192046.838000000","description":"OS Error","file":"C:\.conan\90bfff\1\grpc\src\core\lib\iomgr\tcp_server_windows.cc","file_line":201,"os_error":"Only one usage of each socket address (protocol/network address/port) is normally permitted.\r\n","syscall":"bind","wsa_error":10048}]}]}
##############################
### SOMETHING IS WRONG ###
### ###
### -> Command is aborted ###
##############################
/INPUT FILE= menust.tmp LINE= 0
ACTIVATING THE GRAPHICAL USER INTERFACE (GUI). PLEASE WAIT...
Creating the GUI panes
Creating the GUI menubar
Creating the GUI status
Creating the GUI Graphics Context
Creating the Application Context
Creating the GUI toolbar
Creating the GUI toolbar - "Standard Toolbar"
Creating the GUI toolbar - "Main Menu"
Creating the GUI toolbar - "Toolbar"
Creating the GUI toolbar - "Graphical View"
CUTTING PLANE SET TO THE WORKING PLANE
Welcome to ANSYS
PRODUCE NODAL PLOT IN DSYS= 0
TURN OFF WORKING PLANE DISPLAY
It is interesting, the gRPC crashes so ANSYS decided to run the interactive version (good boy).
But we should focus on the next lines (prettified):
E0909 14:54:06.838000000 6660 server_chttp2.cc:40]
{"created":"@1631192046.838000000",
"description":"No address added out of total 1 resolved",
"file":"C:\.conan\90bfff\1\grpc\src\core\ext\transport\chttp2\server\chttp2_server.cc",
"file_line":394,
"referenced_errors":[{
"created":"@1631192046.838000000",
"description":"Failed to add port to server",
"file":"C:\.conan\90bfff\1\grpc\src\core\lib\iomgr\tcp_server_windows.cc",
"file_line":510,
"referenced_errors":
[{"created":"@1631192046.838000000",
"description":"OS Error",
"file":"C:\.conan\90bfff\1\grpc\src\core\lib\iomgr\tcp_server_windows.cc",
"file_line":201,
"os_error":"Only one usage of each socket address (protocol/network address/port) is normally permitted.\r\n",
"syscall":"bind",
"wsa_error":10048}]
}]
}
And more concrete:
"created":"@1631192046.838000000",
"description":"Failed to add port to server",
"file":"C:\.conan\90bfff\1\grpc\src\core\lib\iomgr\tcp_server_windows.cc",
"file_line":510,
So it seems a problem when adding the port to the server and because of the related error, I believe it might be related with that port being already in use.
I hope it helps!
I think the issue @germa89 identified is due to the default port (50052) being in use. Check if that's indeed the issue.
I've also had other users investigate this behind the VPN, and it turns out that they actually needed to be connected to the VPN to even connect, and their license file seemed "non-standard". @pmaroneh, would you mind commenting regarding this? You're able to get DMP working under the VPN, whereas @jgd10 couldn't.
@akaszynski
I think it was port related, and I thought it was related with this issue.
"C:\Program Files\ANSYS Inc\v212\commonfiles\launcherQT\source\..\..\..\ansys\bin\winx64\MAPDL.EXE" -g -lch -p ansys -dir "C:\ansys_jobs\testgrpc" -j file -grpc -l en-us -d win32 -s noread -dis -mpi INTELMPI -np 2
But now, I cannot replicate it using the code above. No idea. So... nevermind. Sorry!
@jgd10
There has been some work on this issue.
Please could you checkout this branch and let us know if the VPN problem is fixed?
Feel free to reach me through teams if you have questions/query.
Thanks you!
Describe the bug DMP version of pymapdl can't be launched with Ansys Version V2021R2.
To Reproduce Steps to reproduce the behavior: Run below commands in Python 3.7.5
Expected behavior Running above code is expected to print below information but not Product: Ansys Mechanical Enterprise MAPDL Version: 21.2 ansys.mapdl Version: 0.59.4
System Information:
Additional context I could run SMP version with and without VPN connected. Bit I could NOT run DMP version with and without VPN connected.