Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAPDL releasing license during testing. #2595

Open
3 tasks
germa89 opened this issue Jan 2, 2024 · 5 comments
Open
3 tasks

MAPDL releasing license during testing. #2595

germa89 opened this issue Jan 2, 2024 · 5 comments
Assignees
Labels
CI/CD Related with CICD, Github Actions, etc

Comments

@germa89
Copy link
Collaborator

germa89 commented Jan 2, 2024

As the title.

Requested here: #2533 (comment)

Working on this three issues arise:

@germa89
Copy link
Collaborator Author

germa89 commented Jan 3, 2024

Usage of PAUSE over the gRPC interface

Interestingly, it seems that the PAUSE command does not work on gRPC mode.

>> mapdl.run("pause")
CRITICAL - pymapdl_global -  logging - handle_exception - Uncaught exception
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mapdl/pymapdl/src/ansys/mapdl/core/mapdl_core.py", line 2236, in run
    self._raise_errors(text)
  File "/home/mapdl/pymapdl/src/ansys/mapdl/core/mapdl_core.py", line 2682, in _raise_errors
    raise MapdlInvalidRoutineError(text)
ansys.mapdl.core.errors.MapdlInvalidRoutineError: *** WARNING ***                         CP =       2.088   TIME= 15:47:33
 PAUSE is not a recognized BEGIN command, abbreviation, or macro.  This  
 command will be ignored.

Ignore these messages by setting 'ignore_errors'=True

However, it does work in a normal context:

image

I believe I'm using it wrong.... Pinging @mikerife @FredAns @koubaa

@germa89
Copy link
Collaborator Author

germa89 commented Jan 3, 2024

Usage of PAUSE on Student version

Additionally, it seems the command PAUSE does not work well in MAPDL student version (or maybe I'm using it wrong).

But if you start an MAPDL instance, and then issue PAUSE:

$ ansys -dir /tmp
...
...
 RUN SETUP PROCEDURE FROM FILE= /ansys_inc/v241/ansys/apdl/start.ans

 /INPUT FILE= /ansys_inc/v241/ansys/apdl/start.ans  LINE=       0

 BEGIN:
pause

 *** WARNING ***                         CP =       0.518   TIME= 16:14:02
 This application is now PAUSED, making its license available for use by 
 another application in this Workbench session.  All commands to this    
 application will be ignored until an UNPAUSE command is typed in the    
 Command Window of this application and successfully processed.          

 BEGIN:

and then start another MAPDL instance, you get a Maximum licensed number of demo users already reached error but it starts.

(.venv) root@67ca9354d958:~/pymapdl# ansys -dir /tmp/tmp

 ANSYS LICENSE MANAGER ERROR:
 Maximum licensed number of demo users already reached.


 ANSYS LICENSE MANAGER ERROR:
 No such feature exists.
 Feature:       mech_2
 License path:  /var/tmp//616ceecb-5105-43ba-a26d-dd269757afed:
 FlexNet Licensing error:-5,357


 ANSYS LICENSE MANAGER ERROR:
 No such feature exists.
 Feature:       mech_1
 License path:  /var/tmp//616ceecb-5105-43ba-a26d-dd269757afed:
 FlexNet Licensing error:-5,357


 ANSYS LICENSE MANAGER ERROR:
 No such feature exists.
 Feature:       meba
 License path:  /var/tmp//616ceecb-5105-43ba-a26d-dd269757afed:
 FlexNet Licensing error:-5,357

@germa89

This comment was marked as outdated.

@mikerife
Copy link

mikerife commented Jan 3, 2024

@germa89 you are not using pause wrong; at least that is what I think. It is pretty strongly implied in the help that it is for mapdl interactive. You can enter other APDL commands while paused but the UI throws an warning for all (except the unpause). My guess is that this is built into the UI and not MAPDL per se....if that makes sense.

@germa89
Copy link
Collaborator Author

germa89 commented Sep 9, 2024

Wrapping PAUSE on a non_interactive context (which uses input) does not help to avoid the error message shown above.

 *** WARNING ***                         CP =       3.962   TIME= 11:51:49
 PAUSE is not a recognized PREP7 command, abbreviation, or macro.        
                                            


Ignore these messages by setting 'ignore_errors'=True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD Related with CICD, Github Actions, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants