Where are the Installation, Activation, & Service Host log files located for MATLAB?

718 ビュー (過去 30 日間)
I would like to know where MathWorks's installation, activation, and/or Service Host log files are located to troubleshoot potential errors with MATLAB.

採用された回答

MathWorks Support Team
MathWorks Support Team 2022 年 9 月 30 日
編集済み: MathWorks Support Team 2022 年 9 月 30 日
During the installation, activation, and startup of MATLAB or other MathWorks Products, the MathWorks Installer Activation Client, or MATLAB creates a log file that may be used to obtain information on the installation, activation, or startup processes. 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
There may be several Service Host log files in the folder where are located. The most recently created one (the one with the largest number in its name) is your most recent log file and will help you determine the issues are running into.
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.
Linux
The Service Host logs are in the following folder:
/home/$USER/.MathWorks/ServiceHost/logs
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.
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.
  1 件のコメント
ck shen
ck shen 2018 年 4 月 25 日
You are right. Thanks a lot.

サインインしてコメントする。

その他の回答 (15 件)

Ali Awais Farhat
Ali Awais Farhat 2017 年 5 月 18 日
I was using the student version and the MATLAB was activated on two machines. I deactivated one and tried installing again. And it worked.
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 1 月 5 日
Student license can only be activated on one machine at a time, and there is a limit of about 4 times per year that they can be switched between machines. If you need to regularly run a student license on more than one machine then your options are:
  1. use MATLAB Online instead; or
  2. buy more than one license; or
  3. activate on only one machine that you own, and when you are away from it, use a program such as Go To My Pc, or Teamviewer, to connect to the one machine remotely; or
  4. if you are at a university that is providing licenses to students under the Total Academic Headcount (TAH) license, then those licenses are considered Academic licenses and are authorized to be activated on two machines at the same time

サインインしてコメントする。


MDSAIF ALAM
MDSAIF ALAM 2017 年 11 月 18 日
I'm using a free trial but don't insrall why?
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 11 月 18 日
Please contact Mathworks for free installation support.

サインインしてコメントする。


aaron guido mendoza choquehuanca
aaron guido mendoza choquehuanca 2018 年 7 月 3 日
aprobar

Shoumei
Shoumei 2019 年 5 月 27 日
It's easy to open temp directory with folliwing command.
winopen(tempdir)
  2 件のコメント
Colin Fraser
Colin Fraser 2020 年 9 月 9 日
Use the instructions above and send us a log file. We can assist you further with this information.
-Colin Fraser

サインインしてコメントする。


muhammad muar
muhammad muar 2019 年 5 月 31 日
thanks
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 9 月 7 日
If you purchased MATLAB yourself, then Mathworks would have sent you your license number or activation key, probably through email.
If you are using a license provided by a university or company, they will have to provide the license number or activation key to you.

サインインしてコメントする。


Jenniffer Tatiana Gómez Joya
Jenniffer Tatiana Gómez Joya 2020 年 4 月 16 日
Estoy intentando instalar pero me aparece un problema que dice error de conexion, sin embargo ya desabilite el antivirus y revise mi Proxy. aun así no me ha sido posible instalar el programa. Gracias
  1 件のコメント
Colin Fraser
Colin Fraser 2020 年 4 月 16 日
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

サインインしてコメントする。


Carlos David Albarracin
Carlos David Albarracin 2020 年 5 月 29 日
  3 件のコメント
Frank TALA
Frank TALA 2021 年 1 月 29 日
I had the same error. I resolved it by launching the .exe from a usb drive. Make sure to move all the requirefiles on the usb drive

サインインしてコメントする。


Ralph Wilbanks
Ralph Wilbanks 2021 年 1 月 14 日
?

sania javed
sania javed 2021 年 3 月 17 日
installer files are located in D drive. i got the error message "application could not connect to the mathworks"
please guide me

Bekzod Maxmarasulov
Bekzod Maxmarasulov 2021 年 3 月 19 日
Hello can you say my activation key please
  1 件のコメント
Rajesh Kontham
Rajesh Kontham 2021 年 4 月 9 日
Sorry. MATLAB license if quite costly. Can't share.

サインインしてコメントする。


Rani Asna
Rani Asna 2021 年 6 月 10 日
Rani@1999
  1 件のコメント
Rajesh Kontham
Rajesh Kontham 2021 年 6 月 10 日
?? Were you interested in asking some time?

サインインしてコメントする。


Anteneh Kasa
Anteneh Kasa 2021 年 10 月 1 日
i want to applied the Matlab at the university for easily access informations to work
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 10 月 2 日
The volunteers who answer questions here are not able to issue licenses. You will need to purchase a licenses from Mathworks (or a distributor), or arrange a license through your university.

サインインしてコメントする。


Abdihakiin Mohamed Abukar
Abdihakiin Mohamed Abukar 2021 年 10 月 2 日
I'm Engineering Student , I Need To Vefiry This Account .
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 10 月 2 日
If you purchased MATLAB yourself, then Mathworks would have sent you your license number or activation key, probably through email. In this case contact Mathworks Support for assistance.
If you are using a license provided by a university or company, they will have to provide the license number or activation key to you.
The volunteers who answer questions here do not have access to the license database, so we cannot assist you with checking licenses.

サインインしてコメントする。


Anteneh Kasa
Anteneh Kasa 2021 年 10 月 3 日
On my android phone
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 10 月 3 日
MATLAB does not run on Android

サインインしてコメントする。


carlos  manitio
carlos manitio 2021 年 11 月 4 日
編集済み: carlos manitio 2021 年 11 月 4 日
tuve problemas para poder instalar el programa devido a problemas de conexion a internet pero intente acerlos de bueno y ya no me deja volver a internarlo me salio un codigo de error ..

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by