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

Issue when not providing --work-dir #45

Open
marcodelapierre opened this issue Jul 12, 2022 · 4 comments
Open

Issue when not providing --work-dir #45

marcodelapierre opened this issue Jul 12, 2022 · 4 comments

Comments

@marcodelapierre
Copy link
Contributor

Tower Agent version 0.4.3 (build 87f4d1f)

Issue:

$ tw-agent $TOWER_CONNECTION_ID
13:23:05.272 INFO - Established active environments: [cli]
13:23:05.406 ERROR- The work directory '?/work' do not exists. Create it or provide a different one using '--work-dir'.

It looks like the Tower-agent is looking for a weird work dir name, ?/work.

From the help screen, it should be ~/work.

@marcodelapierre
Copy link
Contributor Author

This seems to be the source line in question:

https://github.com/seqeralabs/tower-agent/blob/master/src/main/java/io/seqera/tower/agent/Agent.java#L227

For some reason, System.getProperty("user.home") does not return what it should return.

@pditommaso
Copy link
Collaborator

We are seen crazy errors with Java native compilation and env variables. I'll leave @jordeu for a detailed response

@jordeu
Copy link
Member

jordeu commented Aug 1, 2022

Yes, this happens only in some systems and is some how related to GraalVM native compilation. I think that the ongoing changes that we track at this issue will fix also this. I'll keep this open until we finish that GraalVM update.

@jordeu
Copy link
Member

jordeu commented Aug 1, 2022

Also in latest releases we are also providing a tw-agent.jar file that you can run directly with a JDK v11 or above like this:

java -jar tw-agent.jar <connection_id> ...

With the pure Java version you won't have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants