Help Center/ Server Migration Service/ FAQs/ Known Errors and Solutions/ SMS.5102 Agent Startup Failed Because the noexec Permission Is Unavailable on /tmp in Linux
Updated on 2024-03-29 GMT+08:00

SMS.5102 Agent Startup Failed Because the noexec Permission Is Unavailable on /tmp in Linux

Symptom

When you ran sh startup.sh to start the Agent, the following message was reported: "SMS.5102 Agent startup failed because the noexec permission is unavailable on /tmp in Linux."

Possible Causes

There i a block device 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, the exec permission is assigned. Then restart the Agent.

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