An error occurred during update installation

Hi,

I’ve just downloaded Defold for the first time today (Windows 10, 64Bit), but when I launched it there was an update. I ran the update, it appeared to download, then asked me to restart in order to install it. But then Defold displayed this error:

an error occurred during update installation, you probably should perform and fresh install

Well I did reinstall, but Defold still seemed to have knowledge of the update and wished me to restart to install. Didn’t work again. So I removed the installation and this time deleted what I could find regarding Defold in my User Folder/AppData and also any mention of it in the registry.

I reinstalled again, only to see the update mentioned again, so I downloaded it and tried to restart, but guess what? Same error.

Is this a bug?

Thanks :slight_smile:

2 Likes

Yes, sounds like a bug. Where are you running Defold from on your hard drive? @vlaaad, what info do you need?

Please share an editor log (In editor: select Help → Show Logs, in opened folder select file editor2.<latest-date>.log)

britzl, I’m running Defold from C:/ProgramFiles/Defold.

Perhaps there is a permissions issue?
There was no installer, so I put it on my main SSD drive for speed with my other applicaions.

vlaaad, here’s a link to my log since installation today:

Thanks.

Well, the exception is this:

C:\Program Files\Defold\config (Access is denied)

Is it possible this directory is somehow protected from writes? If you install defold to different folder, will if fail to update?

1 Like

Yes, running it from a different location, such as Downloads works, I was able to update it with no errors - so permissions issue.

As I mentioned, I like to keep my applications installed on my main SSD drive for speed and also for good house-keeping - my user files etc on a separate drive. I don’t particularly like running applications from other locations. What is the expected location to run Defold from? Is there an installer available that I’m unaware of?

With Godot I just do the same, copy the application to my SDDs ProgramFiles and run from there. But then Godot does not have an update option within it’s editor.

1 Like

probably Windows (or some security/firewall app) within the system tries to prohibit Defold to write to the sensitive C:\Program Files folder. Guess you can force Defold to run as administrator or grant write permissions to Defold folder in other way?

Defold does not have an installer for cleaner and easier workflow. Guess this statement is not valid in your case, though.

1 Like

I would say the same Oleg - A handy feature not so handy for Windows. Windows users usually complain of the lack of security in Windows!

I won’t be able to verify if running Defold as Admin works fully until another update is available - but as they come through thick and fast - from what I have read, i’ll find out soon enough I’m sure :slight_smile:

1 Like

I use editor in windows 7
I check out the editor log, and I found this:

java.io.FileNotFoundException: D:\defold\Defold-x86_64-win32\packages\jdk11.0.1\lib\modules (请求的操作无法在使用用户映射区域打开的文件上执行。)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:237)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:187)
at clojure.java.io$fn__11516.invokeStatic(io.clj:355)
at clojure.java.io$fn__11516.invoke(io.clj:354)
at clojure.lang.MultiFn.invoke(MultiFn.java:239)
at clojure.java.io$copy.invokeStatic(io.clj:406)
at clojure.java.io$copy.doInvoke(io.clj:391)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at editor.updater$install_windows_file_BANG_.invokeStatic(updater.clj:218)
at editor.updater$install_file_BANG_.invokeStatic(updater.clj:223)
at editor.updater$install_BANG_.invokeStatic(updater.clj:240)
at editor.ui.updater$install_BANG_.invokeStatic(updater.clj:19)
at editor.ui.updater$install_and_restart_BANG_.invokeStatic(updater.clj:29)
at editor.boot_open_project$init_pending_update_indicator_BANG_$install_and_restart_BANG___151349$fn__151350.invoke(boot_open_project.clj:112)
at editor.disk$async_job_BANG_$fn__43181$fn__43184.invoke(disk.clj:33)
at clojure.lang.AFn.run(AFn.java:22)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)

When I use Unlocker to unlock D:\defold\Defold-x86_64-win32\packages\jdk11.0.1\lib\modules, and then click the OK in the update confirm dialog.It succeed.

Glad that you got it working.
Just wanted to add that we released a fix for this exception on Friday, so from now on you should not see this problem any more.

OK,BTW, is the defold editor downloaded from dashboard synchronized with the editor live update?


image

Yes, it should be in sync.

It should be, but last week we found out it’s not the case and it’s stuck on some version from a month or so ago, I think @Erik_Angelin spoke to web team about it and it either already fixed, or should be fixed soonish?

1 Like