Diversion Updating Diversion throws error

  • ATTENTION! You'll notice a Prefix dropdown when you create a thread. If your post applies to one of the topics listed, please use that Prefix for your post. When browsing the thread list you can use the Prefix to filter the view.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

Nicoletta

New Around Here
My RT-AC68U with 384.19 FW and AMTM 3.1.8 has been working fine for a while and I've had no problem going in via PuTTY and updating scripts and whatnot (I only use Diversion and Skynet).

Recently when I was checking for a Diversion update it threw this error:

/opt/bin/diversion: /opt/share/diversion/file/functions.div: line 2046: syntax error: unexpected ")" (expecting "in")

If I check for an update on all scripts it stops shortly after and just hangs,
1605513513295.png


Trying the b command throws: "/opt/bin/diversion: /opt/share/diversion/file/functions.div: line 2) then returns to amtm"

Tring to uninstalls throws: "/opt/bin/diversion: /opt/share/diversion/file/functions.div: line 2046: syntax )"

Has anyone else faced this problem?
 
Last edited:

thelonelycoder

Part of the Furniture
Open Diversion and enter 1233 and press Enter.
This re-downloads all Diversion files in use.
 

Nicoletta

New Around Here
Open Diversion and enter 1233 and press Enter.
This re-downloads all Diversion files in use.

Thank you. That was successful but I am still facing errors around Entware related functions.

For example;
Show installed scripts and Entware packages locks up
forcing a Diversion update also locks up after "i Probing for Entware, ✔ Entware is already installed"
 

thelonelycoder

Part of the Furniture
Thank you. That was successful but I am still facing errors around Entware related functions.

For example;
Show installed scripts and Entware packages locks up
forcing a Diversion update also locks up after "i Probing for Entware, ✔ Entware is already installed"
Looks like there are multiple file errors on yoir device. Since there is no standard way to reinstall Entware over an existing installation I suggest you format the drive and start new.
 

L&LD

Part of the Furniture
Cannot guess if it is 'required', but it is advisable (following the do it once and do it right theorem).
 

kernol

Very Senior Member
I think it likely that you had a wobbly USB flash stick on which Entware had been installed.
I would try without doing a factory reset on your router - but I would suggest you change the setting under Administration to format the JFFS on next reboot. You can then use amtm to install Diversion and let it install Entware for you.
 

kernol

Very Senior Member
Essential though that you re-format the USB drive in your desktop / laptop first - NTSC - then use AMTM to format it under EXT4 with journaling - all BEFORE you start install of Diversion.
As to cause - lots of things - power glitch [spike or drop] - not removing USB "safely" with webui "Eject" process etc
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top