Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2018-08-06 18:44:39

tomprice
Member
Registered: 2018-07-28
Posts: 8

Failing to launch Stanley from astk

I'd like to try astk's built in post-processor, Stanley, unfortunately I can't get it to launch successfully from astk...

I've added the 'STANLEY()' command, as prescribed by U4.81.31, to the end of my command file (see attached), made sure 'interactive' is checked within the astk interface and added a 'base' entry to the astk list of files. I then run my study sucessfully, however when I right click the 'base' entry and choose "Open with...-> post-processing using code_aster: stanley" it thinks for a second, says it's exporting the profile in the status bar, then goes quiet. Can anybody suggest where I'm going wrong please?

-TP


Attachments:
frame1.comm, Size: 8.48 KiB, Downloads: 3

Offline

#2 2018-08-07 06:54:59

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,191

Re: Failing to launch Stanley from astk

hello

there may be several reasons for that

please post here

linux distribution name and version
code_aster version number
the output from the terminal upon launch

jean pierre aubry

Offline

#3 2018-08-07 08:16:45

tomprice
Member
Registered: 2018-07-28
Posts: 8

Re: Failing to launch Stanley from astk

Hi, thanks for your reply.

Ubuntu 18.04.1 LTS (bionic)
Code_Aster 13.4.0

When I run the astk study, I get nothing on my terminal emulator except the following from when I launch astk:
<INFO> ASTK version 1.13.10

Offline

#4 2018-08-07 09:33:04

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,191

Re: Failing to launch Stanley from astk

how do you launch ASTK?

in the astk window on the right hand side there is a check box called "Interactive follow-up"
tick it
this should open a terminal once you Run the study
i want the messages in this one

Offline

#5 2018-08-07 18:18:56

tomprice
Member
Registered: 2018-07-28
Posts: 8

Re: Failing to launch Stanley from astk

I launch astk by executing /opt/aster/bin/astk
Here is the output from the ASJOB window: (is this the terminal you mean?)

18:04:48 INFO     ----------------------------------------------------------------------
18:04:48 INFO     retreive configuration informations of the server
18:04:48 INFO     execute on tom@thales : /opt/aster/bin/as_run --info
18:04:48 INFO     returns 0
18:07:04 INFO     ----------------------------------------------------------------------
18:07:04 INFO     prepare execution for tom@thales
18:07:04 INFO     copy export files...
18:07:04 INFO     create directory /tmp/tom-localhost-2889-thales...
18:07:04 INFO     done
18:07:04 INFO     copy /tmp/astk_tom/2889-thales.export to /tmp/tom-localhost-2889-thales
18:07:04 INFO     returns 0
18:07:04 INFO     copy /tmp/astk_tom/2889-thales.orig.export to /tmp/tom-localhost-2889-thales
18:07:04 INFO     returns 0
18:07:04 INFO     copy data files...
18:07:04 INFO     execute on tom@thales : /opt/aster/bin/as_run --serv --num_job=2889-thales /tmp/tom-localhost-2889-thales/2889-thales.export
18:07:05 INFO     returns 0
18:07:11 INFO     ----------------------------------------------------------------------
18:07:11 INFO     ask the server for the job status
18:07:11 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 21771-thales frame1 interactif
18:07:11 INFO     returns 0
18:07:11 INFO     job status is ENDED
18:07:11 INFO     get result files from the server
18:07:11 INFO     copy /home/tom/flasheur/frame1.p21771-thales to /tmp/astk_tom/flasheur_thales/frame1.p21771-thales
18:07:11 INFO     returns 256
18:07:11 INFO     ----------------------------------------------------------------------
18:07:11 INFO     ask the server for the job status
18:07:11 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 8280-thales frame1_post interactif
18:07:11 INFO     returns 0
18:07:11 INFO     job status is ENDED
18:07:11 INFO     get result files from the server
18:07:11 INFO     copy /home/tom/flasheur/frame1_post.p8280-thales to /tmp/astk_tom/flasheur_thales/frame1_post.p8280-thales
18:07:11 INFO     returns 256
18:07:12 INFO     ----------------------------------------------------------------------
18:07:12 INFO     ask the server for the job status
18:07:12 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 8819-thales frame1_post interactif
18:07:12 INFO     returns 0
18:07:12 INFO     job status is ENDED
18:07:12 INFO     get result files from the server
18:07:12 INFO     copy /home/tom/flasheur/frame1_post.p8819-thales to /tmp/astk_tom/flasheur_thales/frame1_post.p8819-thales
18:07:12 INFO     returns 256
18:07:12 INFO     ----------------------------------------------------------------------
18:07:12 INFO     ask the server for the job status
18:07:12 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 2889-thales frame1 interactif
18:07:12 INFO     returns 0
18:07:12 INFO     job status is ENDED
18:07:12 INFO     get result files from the server
18:07:12 INFO     copy /home/tom/flasheur/frame1.p2889-thales to /tmp/astk_tom/flasheur_thales/frame1.p2889-thales
18:07:12 INFO     returns 256
18:07:13 INFO     ----------------------------------------------------------------------
18:07:13 INFO     ask the server for the job status
18:07:13 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 20838-thales frame1_post interactif
18:07:13 INFO     returns 0
18:07:13 INFO     job status is ENDED
18:07:13 INFO     get result files from the server
18:07:13 INFO     copy /home/tom/flasheur/frame1_post.p20838-thales to /tmp/astk_tom/flasheur_thales/frame1_post.p20838-thales
18:07:13 INFO     returns 256
18:07:13 INFO     ----------------------------------------------------------------------
18:07:13 INFO     ask the server for the job status
18:07:13 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 8177-thales frame1 interactif
18:07:13 INFO     returns 0
18:07:13 INFO     job status is ENDED
18:07:13 INFO     get result files from the server
18:07:13 INFO     copy /home/tom/flasheur/frame1.p8177-thales to /tmp/astk_tom/flasheur_thales/frame1.p8177-thales
18:07:13 INFO     returns 256
18:07:14 INFO     ----------------------------------------------------------------------
18:07:14 INFO     ask the server for the job status
18:07:14 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 18250-thales frame1_post interactif
18:07:14 INFO     returns 0
18:07:14 INFO     job status is ENDED
18:07:14 INFO     get result files from the server
18:07:14 INFO     copy /home/tom/flasheur/frame1_post.p18250-thales to /tmp/astk_tom/flasheur_thales/frame1_post.p18250-thales
18:07:14 INFO     returns 256
18:07:14 INFO     ----------------------------------------------------------------------
18:07:14 INFO     ask the server for the job status
18:07:14 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 17440-thales frame1 interactif
18:07:14 INFO     returns 0
18:07:14 INFO     job status is ENDED
18:07:14 INFO     get result files from the server
18:07:14 INFO     copy /home/tom/flasheur/frame1.p17440-thales to /tmp/astk_tom/flasheur_thales/frame1.p17440-thales
18:07:14 INFO     returns 256
18:07:15 INFO     ----------------------------------------------------------------------
18:07:15 INFO     ask the server for the job status
18:07:15 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 13076-thales frame1_post interactif
18:07:15 INFO     returns 0
18:07:15 INFO     job status is ENDED
18:07:15 INFO     get result files from the server
18:07:15 INFO     copy /home/tom/flasheur/frame1_post.p13076-thales to /tmp/astk_tom/flasheur_thales/frame1_post.p13076-thales
18:07:15 INFO     returns 256
18:07:15 INFO     ----------------------------------------------------------------------
18:07:15 INFO     ask the server for the job status
18:07:15 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 17979-thales frame1_post interactif
18:07:15 INFO     returns 0
18:07:15 INFO     job status is ENDED
18:07:15 INFO     get result files from the server
18:07:15 INFO     copy /home/tom/flasheur/frame1_post.p17979-thales to /tmp/astk_tom/flasheur_thales/frame1_post.p17979-thales
18:07:15 INFO     returns 256
18:07:15 INFO     ----------------------------------------------------------------------
18:07:15 INFO     ask the server for the job status
18:07:15 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 18368-thales frame1 interactif
18:07:16 INFO     returns 0
18:07:16 INFO     job status is ENDED
18:07:16 INFO     get result files from the server
18:07:16 INFO     copy /home/tom/flasheur/frame1.p18368-thales to /tmp/astk_tom/flasheur_thales/frame1.p18368-thales
18:07:16 INFO     returns 256
18:07:16 INFO     ----------------------------------------------------------------------
18:07:16 INFO     ask the server for the job status
18:07:16 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 7686-thales frame1 interactif
18:07:16 INFO     returns 0
18:07:16 INFO     job status is ENDED
18:07:16 INFO     get result files from the server
18:07:16 INFO     copy /home/tom/flasheur/frame1.p7686-thales to /tmp/astk_tom/flasheur_thales/frame1.p7686-thales
18:07:16 INFO     returns 256
18:07:16 INFO     ----------------------------------------------------------------------
18:07:16 INFO     ask the server for the job status
18:07:16 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 12611-thales frame1 interactif
18:07:16 INFO     returns 0
18:07:16 INFO     job status is ENDED
18:07:16 INFO     get result files from the server
18:07:16 INFO     copy /home/tom/flasheur/frame1.p12611-thales to /tmp/astk_tom/flasheur_thales/frame1.p12611-thales
18:07:17 INFO     returns 256
18:07:17 INFO     ----------------------------------------------------------------------
18:07:17 INFO     ask the server for the job status
18:07:17 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 12539-thales frame1 interactif
18:07:17 INFO     returns 0
18:07:17 INFO     job status is ENDED
18:07:17 INFO     get result files from the server
18:07:17 INFO     copy /home/tom/flasheur/frame1.p12539-thales to /tmp/astk_tom/flasheur_thales/frame1.p12539-thales
18:07:17 INFO     returns 256
18:07:17 INFO     ----------------------------------------------------------------------
18:07:17 INFO     ask the server for the job status
18:07:17 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 20056-thales frame1 interactif
18:07:17 INFO     returns 0
18:07:17 INFO     job status is ENDED
18:07:17 INFO     get result files from the server
18:07:17 INFO     copy /home/tom/flasheur/frame1.p20056-thales to /tmp/astk_tom/flasheur_thales/frame1.p20056-thales
18:07:17 INFO     returns 256
18:07:18 INFO     ----------------------------------------------------------------------
18:07:18 INFO     ask the server for the job status
18:07:18 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 7518-thales frame1 interactif
18:07:18 INFO     returns 0
18:07:18 INFO     job status is ENDED
18:07:18 INFO     get result files from the server
18:07:18 INFO     copy /home/tom/flasheur/frame1.p7518-thales to /tmp/astk_tom/flasheur_thales/frame1.p7518-thales
18:07:18 INFO     returns 256
18:07:18 INFO     ----------------------------------------------------------------------
18:07:18 INFO     ask the server for the job status
18:07:18 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 8498-thales frame1_post interactif
18:07:18 INFO     returns 0
18:07:18 INFO     job status is ENDED
18:07:18 INFO     get result files from the server
18:07:18 INFO     copy /home/tom/flasheur/frame1_post.p8498-thales to /tmp/astk_tom/flasheur_thales/frame1_post.p8498-thales
18:07:18 INFO     returns 256
18:07:19 INFO     ----------------------------------------------------------------------
18:07:19 INFO     ask the server for the job status
18:07:19 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 18147-thales frame1_post interactif
18:07:19 INFO     returns 0
18:07:19 INFO     job status is ENDED
18:07:19 INFO     get result files from the server
18:07:19 INFO     copy /home/tom/flasheur/frame1_post.p18147-thales to /tmp/astk_tom/flasheur_thales/frame1_post.p18147-thales
18:07:19 INFO     returns 256
18:07:19 INFO     ----------------------------------------------------------------------
18:07:19 INFO     ask the server for the job status
18:07:19 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 9518-thales frame1 interactif
18:07:19 INFO     returns 0
18:07:19 INFO     job status is ENDED
18:07:19 INFO     get result files from the server
18:07:19 INFO     copy /home/tom/flasheur/frame1.p9518-thales to /tmp/astk_tom/flasheur_thales/frame1.p9518-thales
18:07:19 INFO     returns 256
18:07:20 INFO     ----------------------------------------------------------------------
18:07:20 INFO     ask the server for the job status
18:07:20 INFO     execute on tom@thales : /opt/aster/bin/as_run --actu 21652-thales frame1 interactif
18:07:20 INFO     returns 0
18:07:20 INFO     job status is ENDED
18:07:20 INFO     get result files from the server
18:07:20 INFO     copy /home/tom/flasheur/frame1.p21652-thales to /tmp/astk_tom/flasheur_thales/frame1.p21652-thales
18:07:20 INFO     returns 256
18:07:43 INFO     ----------------------------------------------------------------------
18:07:43 INFO     prepare execution for tom@thales
18:07:43 INFO     copy export files...
18:07:43 INFO     create directory /tmp/tom-localhost-4673-thales...
18:07:43 INFO     done
18:07:43 INFO     copy /tmp/astk_tom/4673-thales.export to /tmp/tom-localhost-4673-thales
18:07:43 INFO     returns 0
18:07:43 INFO     copy /tmp/astk_tom/4673-thales.orig.export to /tmp/tom-localhost-4673-thales
18:07:43 INFO     returns 0
18:07:43 INFO     copy data files...
18:07:43 INFO     execute on tom@thales : /opt/aster/bin/as_run --serv --num_job=4673-thales /tmp/tom-localhost-4673-thales/4673-thales.export
18:07:44 INFO     returns 0

Last edited by tomprice (2018-08-08 13:10:01)

Offline

#6 2018-08-08 07:32:56

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,191

Re: Failing to launch Stanley from astk

tomprice wrote:

I launch astk by executing /opt/aster/bin/astk
Here is the output from the ASJOB window: (is this the terminal you mean?)

no read more carefully my previous post

Offline

#7 2018-08-08 13:05:14

tomprice
Member
Registered: 2018-07-28
Posts: 8

Re: Failing to launch Stanley from astk

I don't know what I'm missing, I'm afraid. I have ticked the 'Interactive follow-up' box but when I run the study (astk window -> 'Run') it doesn't prompt a further terminal window to pop up, or produce any new output in the terminal I used to run astk originally. The ASJOB window contains the only new visible output after running the study - is this another symptom of something gone awry?

Offline

#8 2018-08-08 13:17:25

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,191

Re: Failing to launch Stanley from astk

i suggest you read my book at page 346 this is explained

here is this abstract

Once we get working with code_aster graphical tools, like STANLEY, the tool may not launch at all with nasty messages in the .mess file.
Here is the usual workaround:

In the ASTK window, menu Configuration > Preferences > Network:
-the "Client machine name" field should be the machine name, which can be obtained by typing the command 'hostname' in a terminal;
-the "Domain name" can be left empty;
-menu "Forced DISPLAY variable" can be set to ":0.0";
-and button "ssh" and "scp" pushed on.
And STANLEY should then launch itself on request. 

this may not be the end of the trouble!

Offline

#9 2018-08-09 20:09:53

tomprice
Member
Registered: 2018-07-28
Posts: 8

Re: Failing to launch Stanley from astk

Thanks again for your help, it is much appreciated.

So I've followed those steps, the only setting I needed to change was the display variable, where the field was blank before. Unfortunately I can't see any difference in the output when I re-run the study. Interestingly though, my .mess file (attached) has always been quite happy, with nothing mentioned about Stanley - although, having said that, there's literally *nothing* mentioned about Stanley, not even listing it in the sequence of received commands in the first portion of the .mess file. I wonder if this is another clue...

I've also ensured that 'configuration' -> 'servers...' is set to localhost, since I am running both client and server on one machine.

Offline

Board footer