Help Center/ Server Migration Service/ User Guide(ME-Abu Dhabi Region)/ FAQs/ Agent Installation and Startup/ How Do I Fix Error "Agent startup failed because the noexec permission is not allowed on /tmp for SMS Agent. Please remount /tmp without noexec" When I Start the Linux Agent?
Updated on 2024-03-15 GMT+08:00

How Do I Fix Error "Agent startup failed because the noexec permission is not allowed on /tmp for SMS Agent. Please remount /tmp without noexec" When I Start the Linux Agent?

Symptom

When you ran sh startup.sh to start the SMS Agent, the following message was reported: "SMS.5102 Agent startup failed because the noexec permission is not allowed on /tmp for SMS Agent Please remount /tmp without noexec."

Possible Causes

This problem occurs because a block device is mounted to the /tmp directory, but the exec permission was not assigned or the noexec permission was assigned during the mounting.

Solution

  1. Log in to the source server.
  2. Run mount -l | grep /tmp. If information similar to the following is displayed, the noexec permission is assigned:

    /dev/vdb1 on /tmp type ext4 (rw, noexec, relatime, data=ordered)

  3. Remount the block device to the /tmp directory. Do not assign the noexec permission during the mounting. Alternatively, run mount -o remount exec /tmp to assign the exec permission.
  4. Run mount -l | grep /tmp again. If information similar to the following is displayed, restart the Agent.

    /dev/vdb1 on /tmp type ext4 (rw, relatime, data=ordered)