Linux server setup (Ubuntu)

Hi all hope you’re doing well,

i have setup the openremote instance on an old version of the custom deployment using the git version b5a82b4 of the custom repo, this is the last one i could find where there are submodules used.

i have since setup an aws ec2 ubuntu server running on 24.04 and setup the enviroment using java 17, as its the recommended version for the older repo.

After setting up the enviroment i downloaded docker, got the docker compose to work and then started running the keycloak and presql containers on the ubuntu server in aws.

I am now trying to start the manager container in the IDE (Visual Studio Code), and its not working.
There are problems when installing an extension from the IDE to the ubuntu server, when installed the server first stops for a bit and then disconnects me from it on vs code.

any help would be appreciated thanks in advance.

Hi!

I think we could use some context here.

I assume the following;
You’re locally working on a custom-project (with submodules) using Visual Studio Code.
The required docker containers (keycloak, postgresql) are installed on a remote Ubuntu Server.
Now, you’ve ran into problems when running the Manager through VSCode.

Please correct me if I’m wrong.

By default your local manager instance will attempt to connect to localhost.
If your docker containers are hosted remotely, that will of course cause issues.

Can you share your Manager runtime logs?
This will give context on why the process is stopping / disconnecting etc.

Hi Thanks for the response,

I have the docker containers setup on the ubuntu server, and then im accessing everything via the ssh connection on vs code.

I can see the servers sunning and them actively working on the server side as well as on the vscode side.

The issue is there is a constant build error for java using gradle… I’m not sure whether it could be the keycloak and sql continers running via the aws server or something else but i’ve been trying to fix the problem for a few days now and i just can’t come right…

Can you please share the Java Gradle logs?
If it’s build error, it is not related to any hosted containers.

Additionally, we have some documentation on setting up VS Code here;

Hi Martin soorry for the late reply,

So over the weekend i was tinkering a bit and im still battling with the same gradle issues… When trying to do the installDist it gets stuckon the Demo.jar file and then also disconnects me from my ssh connection… This is only after I install the java extension on vscode though, im not sure if it might be a version issue on the java extension but through my searching it seems the problem is either sitting with the gradle compiling all the files using the java extension or there might be an issue with a corrupted gradle file in the actual cloned system (I dont think it would be a corrupted file because i can replicate the error even with new clones).

I can’t seem to get any gradle logs… The java build keeps on failing and when i get the java build to work the gradle disconnects me while configuring the project.

No need to be sorry for that.

I have no experience with VSCode, nor the Java extension,
but you need to make sure the JDK for Java 21 is installed and is usable.

Maybe instead of logs, can you share any screenshots/video of the steps you do in VSCode?