Script execution causes FileNotFoundError

Asked by Hubert Kraut

I want to run a simple script (echo 'hello world') on my client. The error message in the Landscape Web Portal is

    Upon execvpe /tmp/tmpsh_6rdsp ('/tmp/tmpsh_6rdsp',) in environment id 139639884798464
    :Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/twisted/internet/process.py", line 397, in _fork
           self._execChild(path, uid, gid, executable, args, environment)
        File "/usr/lib/python3/dist-packages/twisted/internet/process.py", line 468, in _execChild
          os.execvpe(executable, args, environment)
        File "/usr/lib/python3.10/os.py", line 584, in execvpe
          _execvpe(file, args, env)
        File "/usr/lib/python3.10/os.py", line 598, in _execvpe
         exec_func(file, *argrest)
        FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpsh_6rdsp'

My landscape installation is on-premise. I tested this also with an Ubuntu Cloud Landscape with the same client and then it worked. So it must be a problem of my on-premise landscape server.

Please could you give me a hint how to troubleshoot this? How is the control flow?
   Is this correct?
      1) Client access Landscape Server and gets the script content
      2) Client copies script content into a temporary file, e.g, /tmp/tmpsh_6rdsp
      3) Client runs script /tmp/tmpsh_6rdsp

And also, I couldn't find the error message above in any log file on the Landscape Client or Server.

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu landscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.