69 views

Overview


The MID Server periodically checks if it is running the same version as the instance. The MID server automatically downloads and install updates in order to be in the same version as the instance.

The updates are downloaded to:

<mid_server_folder>/agent/package/incoming/

The upgrades are then extracted to:

/tmp/<generated_random_number>

Once the files are downloaded and extracted the upgrage begins by running "glide-dist-upgrade.sh"

Error


The MID Server autoupgrade fails with error "glide-dist-upgrade.sh: Permission denied", full error as follows:

AutoUpgrade.3600 Stopping MID server. Bootstrapping upgrade.
Gobbling stderr: /bin/sh -c bin/glide-dist-upgrade.sh start Gobbled: /bin/sh: bin/glide-dist-upgrade.sh: Permission denied
AutoUpgrade.3600 Added marker `/tmp/1528126003155-0` to upgrade marker file.
AutoUpgrade.3600 SEVERE *** ERROR *** Upgrade failed.
 

Troubleshooting


Confirm the file has execute permissions.

  1. Navigate to the "/tmp/<generated_random_number>/upgrade-wrapper/bin/" directory
  2. Run "ll" command to list files and permissions

Confirm the "/tmp" folder is not mounted as "noexec". When mounted with "noexe" option, it will not be possible to run ".sh" files from tmp even if the permissions are correct.

  1. Run "mount" command to view mounted filesystems and mount point configurations

Solution


Warning: Contact the linux/unix admin of the system to perform the following. Example commands may be provided, however may differ from version to version

  1. Give execute permission to the "glide-dist-upgrade.sh" script file, if not already given
  2. Re-mount the /tmp folder without the "noexec" option. For example:
    • sudo mount -o remount,exec /tmp

 

Article Information

Last Updated:2018-06-28 05:30:38
Published:2018-06-28