Why do I receive the error "matlabserver error 1008" in the Event Viewer when I start the MATLAB Web Server?

1 view (last 30 days)
This is the exact error I receive in the Event Viewer, when I start the MATLAB Web Server:
matlabserver error: 1008, EngOpen()WORKER_THREAD_PROC failed

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 2 Mar 2019
This error message may be caused by a number of different things.
First, this error message can be seen when the matlabserver process finds the wrong version of the MATLAB libraries on the system path. If you have more than one version of MATLAB installed, please make sure that the version of MATLAB that the Web Server is using is on your system path before any other MATLAB versions. Then, at startup, the Web Server should be able to locate the correct versions of the MATLAB libraries. Note that MATLAB first looks at the System variables and then at the User variables.
Second, please verify that the Local System account has permission to start the MATLAB Server service:
1) Select Start Menu-->Settings-->Control Panel-->Administrative Tools-->Services
2) Right click on the MATLAB Server service and select Properties
3) Select the Log On tab
4) Verify that Local System account is selected
This will allow the matlabserver service to start, no matter who is logged into the computer. Otherwise, it may not properly start if the account that is started is not the account defined in this pane.
Third, you can try to refresh your computer's registry. This can be accompilished as follows:
1) Shut down all open sessions of MATLAB.
2) Remove the current COM entries for MATLAB by issuing the following command at the system prompt:
matlab -unregserver
3) Close the MATLAB Command Window opened above in Step 2.
4) Modify the registry with the appropriate COM entries for MATLAB by issuing the following command at the system prompt:
matlab -regserver
5) Close the MATLAB Command Window opened above in Step 4.
6) Reboot your computer.
This will refresh MATLAB's information in the system registry.
Finally, you can try specifying a different default port number for the matlabserver service to use. It may be that another application is using the port number when the computer is first logging on, causing the matlabserver service to fail.
If none of these suggestions resolve the problem, please send a log file of the MATLAB Server service at startup by submitting a request at the following URL, referencing Solution 1-1AYDS:
You may edit your matlabserver.conf file and add the flags to generate a log file for all events using the -f [logfile] syntax as described in the MATLAB documentation. Type the following command in the MATLAB Command Window to view this documentation:
web([docroot '/toolbox/webserver/administrative2.html'])
Restart the computer so that the log file is generated when the MATLAB Server service tries to start.
You can send the full event log from the Event Viewer if there is more information than just the "matlabserver error: 1008" error message.

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!