Ssh node . Some error occured


Describe the issue/error/question

I install maven on the host machine,I want to connect to this machine via ssh node to perform some operations,An error occurred,execution on the host machine is no problem

What is the error message (if any)?

“stderr”:
“bash: mvn: command not found”

Information on your n8n setup

  • **n8n version:**0.209.4
  • **Database you’re using (default: SQLite):**mysql
  • Running n8n with the execution process [own(default), main]:
  • **Running n8n via [Docker, npm, n8n.cloud, desktop app]:**Docker

Hey @bestwishCT,

That error is the server saying the mvn command is not found, It looks like node is connecting and running the command provided correctly. Can you try running something like whoami just to check that you are logging in with the same user account.

thank you for your help.
account is the same.
1

I performed other actions,It is no problem to use the full path.Obviously I configured the java environment variable



Hey @bestwishCT,

That is somewhat odd it looks like the profile is not loading correctly on login. When you use SSH to login are you running anything else or just logging in and running the command?

hey @Jon just logging in and running the command :rofl:

I wonder if this is related to the session not being interactive, That tends to lead to the profile not being sourced.

You could try sourcing your bash_profile and seeing if that helps.

oh Thank you very much

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.