can't update matlab 2020a

1 view (last 30 days)
Nikita Gvardi
Nikita Gvardi on 27 May 2020
Answered: Yuze Zou on 18 Dec 2020
When trying to update matlab 2020a got "Something unexpected occurred" error - log data provided below.
(May 27, 2020 14:21:18) Stopping task MATLAB R2020a Startup Accelerator
(May 27, 2020 14:21:40) 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.net.SocketTimeoutException: connect timed out
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1199)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:162)
at com.mathworks.instutil.URLConnectionFactoryImpl.createURLConnection(URLConnectionFactoryImpl.java:31)
at com.mathworks.instutil.DownloaderImpl.downloadFile(DownloaderImpl.java:55)
at com.mathworks.instutil.DownloaderImpl.download(DownloaderImpl.java:42)
at com.mathworks.install_impl.input.UpdateComponentDownloader.download(Unknown Source)
at com.mathworks.install_impl.InstallableComponentImpl.download(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
(May 27, 2020 14:26:54) Update session complete.
  4 Comments
Star Strider
Star Strider on 27 May 2020
Edited: Star Strider on 27 May 2020
I also had problems with R2020a Update 1. What everntually worked for me was to launch the update from MATLAB, close MATLAB, wait 15 minutes, then try the update again.
EDIT —
I did the same approach with Update 2 just now, and had no problems. It is necessary to wait for everything related to MATLAB to shut down before installing the Update. In Windows, use Task Manager and Resource Monitor to be certain those conditions are met.
Nikita Gvardi
Nikita Gvardi on 28 May 2020
TY will tri it out

Sign in to comment.

Answers (1)

Yuze Zou
Yuze Zou on 18 Dec 2020
I had the same problem. Temporarily turn off firewall solves the issue for me.

Community Treasure Hunt

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

Start Hunting!