Need Help | MATLAB failed to start after updating error

3 views (last 30 days)
After I see the notification to update matlab R2019b to update 3. I press the update and left for a while and seeing that the update has failed.
Now, I can't open MATLAB with the following error
  2 Comments
Amrest Chinkamol
Amrest Chinkamol on 25 Dec 2019
Edited: Amrest Chinkamol on 25 Dec 2019
Here is my update log.
(Dec 25, 2019 15:28:37) DWS file downloaded
(Dec 25, 2019 15:28:37) Starting local product/component search in download directory
(Dec 25, 2019 15:28:51) Completed local product/component search
(Dec 25, 2019 15:28:51) Adding release data from DWS
(Dec 25, 2019 15:29:14) Target Update level: R2019b_Update_3
(Dec 25, 2019 15:29:14) Preparing update information
(Dec 25, 2019 15:29:14) MATLAB version validation successful
(Dec 25, 2019 15:29:16) Update size: 612914 KB
(Dec 25, 2019 15:29:16) Download size: 4469975 KB
(Dec 25, 2019 15:29:16) Space check for update successful
(Dec 25, 2019 15:29:20) Starting update task
(Dec 25, 2019 15:29:24) Task MATLAB R2019b Startup Accelerator for C:\Program Files\MATLAB\R2019b\bin\win64\MATLABStartupAccelerator.exe exists
(Dec 25, 2019 15:29:24) Stopping task MATLAB R2019b Startup Accelerator
(Dec 25, 2019 16:00:37) Installing Product: MATLAB
(Dec 25, 2019 16:01:25) Update 1% complete
(Dec 25, 2019 16:18:02) Installing Product: Global Optimization Toolbox
(Dec 25, 2019 16:18:47) Installing Product: Simulink Report Generator
(Dec 25, 2019 16:23:23) Installing Product: Optimization Toolbox
(Dec 25, 2019 16:29:46) Installing Product: Simulink Coder
(Dec 25, 2019 16:46:26) Starting update task
(Dec 25, 2019 16:46:27) Task MATLAB R2019b Startup Accelerator for C:\Program Files\MATLAB\R2019b\bin\win64\MATLABStartupAccelerator.exe exists
(Dec 25, 2019 16:46:27) Stopping task MATLAB R2019b Startup Accelerator
(Dec 25, 2019 16:46:27) Installing Product: MATLAB
(Dec 25, 2019 16:46:27) Installing Product: Global Optimization Toolbox
(Dec 25, 2019 16:46:27) Installing Product: Simulink Report Generator
(Dec 25, 2019 16:46:27) Installing Product: Optimization Toolbox
(Dec 25, 2019 16:46:27) Installing Product: Simulink Coder
(Dec 25, 2019 16:46:27) Installing Product: ROS Toolbox
(Dec 25, 2019 16:46:27) Something unexpected occurred.: This is not common.
To resolve this issue, contact Technical Support.
at com.mathworks.update_installer.ExceptionHandlerImpl.createUpdateInstallerException(Unknown Source)
at com.mathworks.update_installer.ExceptionHandlerImpl.processException(Unknown Source)
at com.mathworks.update_installer.UpdateInstallerService.updateInstallation(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:24)
at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:10)
at com.mathworks.laisserver.impl.helper.RequestHandler.handleRequest(RequestHandler.java:44)
at com.mathworks.laisserver.impl.JsonServlet.doPost(JsonServlet.java:27)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:457)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:364)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:943)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1004)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.FileNotFoundException: File 'C:\Users\AMREST~1\AppData\Local\Temp\update1412256281463210281\archives\win64\ros\simulink_toolstrip_win64.enc' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
at com.mathworks.install_impl.input.UpdateComponentDownloader.getComponentSource(Unknown Source)
at com.mathworks.install_impl.InstallableComponentImpl.install(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.installComponent(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.extractComponents(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.installComponents(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.detectLockedFilesAndInstallComponent(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.updateComponents(Unknown Source)
at com.mathworks.install_impl.ProductInstallerImpl.updateProducts(Unknown Source)
at com.mathworks.install_impl.InstallerImpl.update(Unknown Source)
at com.mathworks.install_task.UpdateTask.execute(UpdateTask.java:46)
at com.mathworks.install_task.AbstractDefaultInstallTask.call(AbstractDefaultInstallTask.java:24)
... 35 more
(Dec 25, 2019 16:46:36) Installing Product: ROS Toolbox
(Dec 25, 2019 16:46:39) Something unexpected occurred.: This is not common.
To resolve this issue, contact Technical Support.
at com.mathworks.update_installer.ExceptionHandlerImpl.createUpdateInstallerException(Unknown Source)
at com.mathworks.update_installer.ExceptionHandlerImpl.processException(Unknown Source)
at com.mathworks.update_installer.UpdateInstallerService.updateInstallation(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:24)
at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:10)
at com.mathworks.laisserver.impl.helper.RequestHandler.handleRequest(RequestHandler.java:44)
at com.mathworks.laisserver.impl.JsonServlet.doPost(JsonServlet.java:27)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:457)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:364)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:943)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1004)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.EOFException: Truncated ZIP entry: examples/ros/main/AddBuildAndRemoveObjectsInGazeboExample.mlx
at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.drainCurrentEntryData(ZipArchiveInputStream.java:619)
at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.closeEntry(ZipArchiveInputStream.java:583)
at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.getNextZipEntry(ZipArchiveInputStream.java:193)
at com.mathworks.install_impl.archive.zip.commonscompress.ZipArchiveInputStreamExtractor.extract(Unknown Source)
at com.mathworks.install_impl.archive.DecodeArchiveInputStreamExtractor.extract(Unknown Source)
at com.mathworks.install_impl.input.ArchiveComponentSource.extract(Unknown Source)
at com.mathworks.install_impl.InstallableComponentImpl.install(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.installComponent(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.extractComponents(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.installComponents(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.detectLockedFilesAndInstallComponent(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.updateComponents(Unknown Source)
at com.mathworks.install_impl.ProductInstallerImpl.updateProducts(Unknown Source)
at com.mathworks.install_impl.InstallerImpl.update(Unknown Source)
at com.mathworks.install_task.UpdateTask.execute(UpdateTask.java:46)
at com.mathworks.install_task.AbstractDefaultInstallTask.call(AbstractDefaultInstallTask.java:24)
... 35 more
(Dec 25, 2019 17:00:12) Update session complete.
mark wilson
mark wilson on 1 Jan 2020
I have the same problem, update log below: Is this due to my eclipse install(s)?
Dec 31, 2019 20:53:11) ##################################################################
(Dec 31, 2019 20:53:11) #
(Dec 31, 2019 20:53:11) # Today's Date:
(Dec 31, 2019 20:53:11) Tue Dec 31 20:53:10 PST 2019
(Dec 31, 2019 20:53:11)
(Dec 31, 2019 20:53:11) System Info
(Dec 31, 2019 20:53:11) OS: Linux 4.15.0-72-generic
(Dec 31, 2019 20:53:11) Arch: amd64
(Dec 31, 2019 20:53:11) Data Model: 64
(Dec 31, 2019 20:53:11) Language: en
(Dec 31, 2019 20:53:11) Java Vendor: Oracle Corporation
(Dec 31, 2019 20:53:11) Java Home: /usr/local/MATLAB/R2019b/sys/java/jre/glnxa64/jre
(Dec 31, 2019 20:53:11) Java Version: 1.8.0_202
(Dec 31, 2019 20:53:11) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Dec 31, 2019 20:53:11) Java Class Path: Skipped
(Dec 31, 2019 20:53:11) User Name: ******redacted********
(Dec 31, 2019 20:53:11) Current Directory: /home/******redacted********
(Dec 31, 2019 20:53:11) matlabroot: /usr/local/MATLAB/R2019b
(Dec 31, 2019 20:53:11) entitlementid: ******redacted********
(Dec 31, 2019 20:53:11) sessionid: ******redacted********
(Dec 31, 2019 20:53:11) helper_launch_path: /tmp/******redacted********_update_installer_helper_kQorKQ
(Dec 31, 2019 20:53:11) Current Update level: R2019b_Update_1
(Dec 31, 2019 20:53:11) Product Installation: MATLAB
(Dec 31, 2019 20:53:12) Update available
(Dec 31, 2019 20:54:08) DWS file downloaded
(Dec 31, 2019 20:54:08) Starting local product/component search in download directory
(Dec 31, 2019 20:54:10) Completed local product/component search
(Dec 31, 2019 20:54:10) Adding release data from DWS
(Dec 31, 2019 20:54:16) Target Update level: R2019b_Update_3
(Dec 31, 2019 20:54:16) Preparing update information
(Dec 31, 2019 20:54:16) MATLAB version validation successful
(Dec 31, 2019 20:54:17) Update size: 242483 KB
(Dec 31, 2019 20:54:17) Download size: 971949 KB
(Dec 31, 2019 20:54:17) Space check for update successful
(Dec 31, 2019 20:54:20) Starting update task
(Dec 31, 2019 21:03:01) Installing Product: MATLAB
(Dec 31, 2019 21:03:02) Something unexpected occurred.: This is not common.
To resolve this issue, contact Technical Support.
at com.mathworks.update_installer.ExceptionHandlerImpl.createUpdateInstallerException(Unknown Source)
at com.mathworks.update_installer.ExceptionHandlerImpl.processException(Unknown Source)
at com.mathworks.update_installer.UpdateInstallerService.updateInstallation(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:24)
at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:10)
at com.mathworks.laisserver.impl.helper.RequestHandler.handleRequest(RequestHandler.java:44)
at com.mathworks.laisserver.impl.JsonServlet.doPost(JsonServlet.java:27)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:457)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:364)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:943)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1004)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:806)
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:736)
at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:481)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:216)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:192)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:153)
at com.mathworks.install_impl.archive.zip.commonscompress.CopyInputStreamToTempZipFileExtractor.extract(Unknown Source)
at com.mathworks.install_impl.archive.DecodeArchiveInputStreamExtractor.extract(Unknown Source)
at com.mathworks.install_impl.input.ArchiveComponentSource.extract(Unknown Source)
at com.mathworks.install_impl.InstallableComponentImpl.install(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.installComponent(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.extractComponents(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.installComponents(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.detectLockedFilesAndInstallComponent(Unknown Source)
at com.mathworks.install_impl.ComponentInstallerImpl.updateComponents(Unknown Source)
at com.mathworks.install_impl.ProductInstallerImpl.updateProducts(Unknown Source)
at com.mathworks.install_impl.InstallerImpl.update(Unknown Source)
at com.mathworks.install_task.UpdateTask.execute(UpdateTask.java:46)
at com.mathworks.install_task.AbstractDefaultInstallTask.call(AbstractDefaultInstallTask.java:24)
... 35 more
(Dec 31, 2019 21:06:07) Update session complete.

Sign in to comment.

Accepted Answer

mark wilson
mark wilson on 1 Jan 2020
Edited: mark wilson on 1 Jan 2020
My matlab account is attached to my local user however when installing update the permission to write into /usr/local/MATLAB/R2019b is not grated becuse that directory is owned by root. To fix I was going to temporarily change ownership to my user. The output I posed above was right after the chown switch. At this point matlab was broken. However I have found the answer which allows me to keep the original root ownership and run the installer. I can run the update_installer as super user becasue it bypasses the license manager:
sudo /usr/local/MATLAB/R2019b/bin/glnxa64/update_installer
All fixed!
  1 Comment
Amrest Chinkamol
Amrest Chinkamol on 1 Jan 2020
I got my laptop reinstall MATLAB by my faculty IT department a week ago, but thank you for the helpful answer anyway !

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!