Cannot "Apply" System Update or Backup due to JavaScript error

The discussion here is limited to topics related to the system update itself. Please post the functional issues after the system update to the corresponding other forums.
Post Reply
User avatar
jamishs
Posts: 4
Joined: 25 Sep 2022, 03:01

Cannot "Apply" System Update or Backup due to JavaScript error

Post by jamishs »

Model: F2-420
TOS Version: 4.1.27-2006301044


I am trying to perform an Online Update at Control Panel > Update & Recovery > Software Update. However, when I click "Apply", I get the following JavaScript console error:

Code: Select all

Uncaught TypeError: _disabled_ is not a function
    update_callback http://192.168.1.69:8181/js/update.js?v=418634639:215
    jQuery 8
    update_callback http://192.168.1.69:8181/js/update.js?v=418634639:214
    callbacker http://192.168.1.69:8181/js/common.js?v=418634639:70
    jQuery 6
    loadpage http://192.168.1.69:8181/js/common.js?v=418634639:85
    PageLoadAjax http://192.168.1.69:8181/js/common.js?v=418634639:270
    jQuery 8
    PageLoadAjax http://192.168.1.69:8181/js/common.js?v=418634639:262
    <anonymous> http://192.168.1.69:8181/mod/1.Control/4.SysManage/5.Update.php:74
    jQuery 11
update.js:215:19
When I change to "Manual update" and click "Browse..." nothing happens and there is no console error.

Also, when I go to Control Panel > Backup & Restore > Backup system configuration, and click "Apply", I get this error:

Code: Select all

Uncaught TypeError: ext_Restore is undefined
    back_callback http://192.168.1.69:8181/js/update.js?v=279012281:322
I have tried Firefox 105.0.1 and Google Chrome 105.0.5195.127 on desktop, and Safari browser on iOS 16 (20A362).

My TNAS still works for mounting network drives, but I'd like to update it to continue using the iOS app. How can I update my TNAS? Since the problem appears to be with the JavaScript embedded in the web interface, perhaps there is a way to bypass the web interface. Is it possible to update over SSH, or using the TNAS PC application or a USB drive?

Thanks!
User avatar
jamishs
Posts: 4
Joined: 25 Sep 2022, 03:01

Re: Cannot "Apply" System Update or Backup due to JavaScript error

Post by jamishs »

I have powered off the NAS and tried again, but I am getting the same errors as before.


Also, when I click the "Manual Update" radio button, I get this error:

Code: Select all

Uncaught ReferenceError: plupload is not defined
    updateRadioClick http://192.168.1.69:8181/js/update.js?v=1734978355:247
    jQuery 5
update.js:247:9
When "Manual Update" is selected, clicking the "Browse" button does nothing.
User avatar
TMroy
TerraMaster Team
Posts: 2578
Joined: 10 Mar 2020, 14:04
China

Re: Cannot "Apply" System Update or Backup due to JavaScript error

Post by TMroy »

Your system is out of maintenance. Please update it with the following guide.
How to update a very outdated system?
To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
jamishs
Posts: 4
Joined: 25 Sep 2022, 03:01

Re: Cannot "Apply" System Update or Backup due to JavaScript error

Post by jamishs »

Looking at article you linked, I see the upgrade path that I need to follow. I am on 4.1.27, so my upgrade path is 4.1.27 -> 4.1.31 -> 4.2.09 -> 4.2.xx. I can see the various TOS .bz2 update files that I will need to download and apply.

However, I do not know how to apply these updates without using the Control Panel of the browser-based TOS Desktop interface. As I previously mentioned, when I access the TOS UI via my web browser, I am able to navigate to Control Panel > Update & Recovery, but I am unable to perform the following actions due to various JavaScript errors:
  • Software Update > Online update
  • Software Update > Manual update
  • Backup & Restore > Back up system configuration
  • Restore to Factory Default
Can you please provide instructions on how to apply the .bz2 update files without using the browser-based TOS Desktop interface? Is there a way to apply the .bz2 update files via USB or via SSH?

Thanks.
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Cannot "Apply" System Update or Backup due to JavaScript error

Post by TMSupport »

To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
jamishs
Posts: 4
Joined: 25 Sep 2022, 03:01

Re: Cannot "Apply" System Update or Backup due to JavaScript error

Post by jamishs »

Thank you. I was able to update the system from 4.1.27 to 4.2.39 without data loss.

In case it helps anyone, the steps I took were:
  1. Back up my data (manually copy using my PC to a spare drive)
  2. Follow Method 2 from viewtopic.php?f=76&t=423 (Method 1 did not work because my Control Panel was throwing JavaScript errors left and right)
  3. When initializing TOS, I chose the second option (install TOS from scratch, rather than re-using TOS from the disk), and ignored the "Data on Hard Drive(s) will be deleted!" warning as per viewtopic.php?f=76&t=423#p8200
  4. I *tried* to use the update file that I downloaded manually as recommended by the upgrade path in viewtopic.php?f=76&t=1064&p=5363#p5363, but that did not work and it would not let me advance past that page without selecting the recommended automatic update / download option.
  5. Everything set up just fine, and all my data was there. I re-created the same users with the same usernames and passwords. I am not sure if mobile uploads still work properly for those users, but at least all the data was still there.
Post Reply