Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Changing IP and port on Theia Client

Hello again,

I am struggling with making my docker environment work with Theia and the Trace server. I have made my own docker file which includes Java, NodeJS and Yarn. I am able to start both the server and the client and I can load the server with traces and I can curl both the server and client from within the container and the host. I can also reach the client from outside the host so that works fine. 

The issue is that the client does not seem to be able to communicate properly with the server. If I start the server manually the client throws an exception on the port being busy. I believe that is because the client attempts to start the server itself, however, this does not happen outside the container so not sure why it doesn't connect to the already started server. 

If I let the client start the server it does not seem to be able to fetch the experiments, but I am able to retrieve them with the tsp-python-client. It just opens the filesystem. 

I believe the core issue is that I am missing some packages in my Dockerfile, because when I build the client there are several errors which does not happen on the host or my local computer. 

Any thoughts on what I might be missing? I see that there is a gitpod.dockerfile and a .gitpod.yml in the client repo, but I am not sure how to configure it so it will use my local trace server loaded with my jpftraces. 

Started to learn Docker yesterday so I am a little confused on how it works 😊 

Appreciate any help!

Best regards
Johan

Från: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> för Bernd Hufmann via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Skickat: den 20 april 2022 22:25:06
Till: tracecompass-dev@xxxxxxxxxxx
Kopia: Bernd Hufmann
Ämne: Re: [tracecompass-dev] Changing IP and port on Theia Client
 
Hi Johan

good to hear that you were able to make it work.

BR
Bernd

From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Johan Besseling <johanbes@xxxxxx>
Sent: April 20, 2022 11:25 AM
To: tracecompass-dev@xxxxxxxxxxx <tracecompass-dev@xxxxxxxxxxx>
Subject: Re: [tracecompass-dev] Changing IP and port on Theia Client
 

Just solved it!


It was possible to add --hostname and --port as arguments 😊


//Johan


Från: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> för Johan Besseling <johanbes@xxxxxx>
Skickat: den 20 april 2022 16:52:39
Till: tracecompass-dev@xxxxxxxxxxx
Ämne: [tracecompass-dev] Changing IP and port on Theia Client
 

Hello,



Im making an experiment for my master thesis and I would like to expose my local theia client so instead of running on localhost I would like to bind it to the host IP, so some students who will participate in the experiment can try out the trace visualizer.


I have located some settings in .vscode where I change URL for chrome and firebox. By default it is localhost:3000. However, this does not seem to give any effect, I can still curl localhost:3000 after changing and rebuilding.


Any ideas of how to solve this? 


Best regards

Johan


Back to the top