Where are the logs files located for installation, activation, Network License Manager, and the Service Host?

1,302 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 30 Jan 2024
Edited: MathWorks Support Team on 30 Jan 2024
Logs files for the processes described above can be found in a number of different places depending on the process and Operating System. See each section for where each log is located.
Installation logs
Windows
The installation logs are in the following folder with the name "mathworks_%username%.log":
C:\Users\%username%\AppData\Local\Temp
If you are unsure how to open this folder, follow these directions:
  1. Hold the "Windows" key and press the "r" key
  2. Copy and paste the following into the Run window: %temp%\mathworks_%username%.log
  3. Press enter on your keyboard.
Linux
The installation logs are in the following folder with the name "mathworks_$USER.log":
/tmp
macOS
Follow these steps to retrieve the installer log file on a Mac:
  1. Log in as the user who ran the installer.
  2. Open Spotlight Search by clicking the magnifying glass in the top right of your screen.
  3. Type in "Terminal" and then open the first result, which should be the Terminal application.
  4. Copy and paste the following command, and then press enter/return on your keyboard. Do not edit the command, run it exactly how it appears below:
cp $TMPDIR/mathworks_$USER.log ~/Desktop
This will create a copy of the needed log file on the desktop. If the command fails, this means the installer log file is not being created. This could indicate that the installer is not starting at all, and is thus not able to write the log file.
Forcing the creation of the installation log file in a specific location
If the installer is not creating a log file, then you may need to create your own. You can run the installer in command prompt or terminal with a flag to force a log file to be created. You could use a command like the following to do this:
Windows
/full/path/to/setup.exe -outputfile "C:\path\to\logfile.log"
Linux/macOS
./install -outputfile /path/to/logfile.log
Service Host logs
Windows
The Service Host logs are in the following folder:
C:\Users\%username%\AppData\Local\MathWorks\ServiceHost\logs
If you are unsure how to open this folder, follow these directions:
  1. Hold the "Windows" key and press the "r" key.
  2. Copy and paste the following into the Run window: C:\Users\%username%\AppData\Local\MathWorks\ServiceHost\logs
  3. Press enter on your keyboard.
  4. This will open the folder with the log files.
Create a zip (right click and select "Compress to zip file") of the logs folder and send that together with the LatestInstall.info file.
Linux
The Service Host logs are in the following folder:
/home/$USER/.MathWorks/ServiceHost/logs
Create a compressed archive of the logs folder and send that together with the LatestInstall.info file.
macOS
Follow these steps to retrieve the Service Host log file:
  1. Open Finder
  2. In the top left corner of your screen, you should see buttons such as "File, Edit, View". Select "Go".
  3. Select the second-to-last option "Go to Folder..."
  4. Type in the following: ~/Library/Application Support/MathWorks/ServiceHost/logs
  5. Press enter/return on your keyboard.
  6. This will open the folder with the log files.
Create a zip of the logs folder (Control-click it, then choose Compress from the shortcut menu) and send that together with the LatestInstall.info file.
Activation logs
Windows
The activation logs are in the following folder with the name "aws_%username%.log":
C:\Users\%username%\AppData\Local\Temp
If you are unsure how to open this folder, follow these directions:
  1. Hold the "Windows" key and press the "r" key
  2. Copy and paste the following into the Run window: %temp%\aws_%username%.log
  3. Press enter on your keyboard.
Linux
The activation logs are in the following folder with the name aws_$USER.log":
/tmp
macOS
Follow these steps to retrieve the installer log file on a Mac:
  1. Log in as the user who ran the installer.
  2. Open Spotlight Search by clicking the magnifying glass in the top right of your screen.
  3. Type in "Terminal" and then open the first result, which should be the Terminal application.
  4. Copy and paste the following command, and then press enter/return on your keyboard. Do not edit the command, run it exactly how it appears below:
cp $TMPDIR/aws_$USER.log ~/Desktop
This will create a copy of the needed log file on the desktop. If the command fails, this means the activation log file is not being created. This could indicate that the activation client is not starting at all, and is thus not able to write the log file.
License Manager Logs
For a long-term record of license usage, you can view the license manager log file. The network license manager log file will show license check-ins and check-outs:
  • When someone starts using a product, it checks out a key
  • When someone stops using a product, it checks the key back in
The following are the default locations for each supported operating system:
Windows
$MATLABROOT\etc\lmlog.txt
You can also view the log file on Windows in lmtools.exe:
  • Go to "Config Services" tab.
  • Click on "View Log".
Linux
/var/tmp/lm_TMW.log
macOS
/var/tmp/lm_TMW.log
As stated above, these are the default locations. It is possible the log file is elsewhere if it was specified to be elsewhere. If you have LMTOOLS available, you can find the log file's path in the Config Services tab.

More Answers (1)

Shoumei
Shoumei on 27 May 2019
It's easy to open temp directory with folliwing command.
winopen(tempdir)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!