#780  Can't run command on remote server
Closed
bauk opened 2 years ago

update to new version 7.3.5. I can't run command on remote server image.png

Robin Shen commented 2 years ago

I ran a simple test on remote agent and it works fine. Please let me know steps to reproduce this issue, including os, how you deployed server and agent, the command to be tested, etc.

bauk commented 2 years ago

image_2.png I could run these command in old version(6.3.8).

Robin Shen commented 2 years ago

I guess some environment changed at your side, and it should NOT work even with 6.3.8 now.

Please login to your agent machine as the same OS user running agent process and run the script from terminal to see if it works.

bauk commented 2 years ago

Server Shell Executor had been removed?I used to execute this step with Server Shell Executor.I don't understand the same OS user,meaning root?

Robin Shen commented 2 years ago

I guess you are running OneDev as docker container. In this case, the server shell executor does not make sense, as all builds will run in same container as OneDev server without separation, and still can not access OS facility such as installed utility etc.

Please run your job to see which job executor it is using (will be printed at start of build log). If executed by a remote shell executor, same OS user means the OS user running the agent process (Agent successfully runs your job should be running on bare metal mode, as "run in container" is disabled in your job definition).

bauk commented 2 years ago

Alright.This update change a lot.I am runnung OneDev as kubernetes,it worked in old version before. Guess I should run on bare metal mode or try another way.

Robin Shen commented 2 years ago

You may configure your job to run inside a container, or connect a bare metal installed agent to run job outside a container.

bauk commented 2 years ago

Thank you for your patience,you can close this issues.

Robin Shen changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
onedev/server#780
Please wait...
Page is in error, reload to recover