Diversion Cannot access Diversion using SSH or WEBUI

syfq91

New Around Here
Hi,

I have installed Diversion adblocker and had it working well for a few months, but now when I tried to access it thru SSH it shows the error below:

Code:
/opt/bin/diversion: /opt/share/diversion/file/helper.div: line 3: syntax error: unexpected word (expecting ")")

Any idea how to fix it? I cannot access it using WEBUI as well.

I'm running it on RT-AX56U, Asus-merlin v386.3_2.

Thank you for your help.
 

thelonelycoder

Part of the Furniture
Hi,

I have installed Diversion adblocker and had it working well for a few months, but now when I tried to access it thru SSH it shows the error below:

Code:
/opt/bin/diversion: /opt/share/diversion/file/helper.div: line 3: syntax error: unexpected word (expecting ")")

Any idea how to fix it? I cannot access it using WEBUI as well.

I'm running it on RT-AX56U, Asus-merlin v386.3_2.

Thank you for your help.
That file is corrupted.
Run the install command in the SSH terminal, it will fix it.
 

syfq91

New Around Here
I ran the install command but it still produce the same error:

Code:
[email protected]:/tmp/home/root# curl -Os https://diversion.ch/install && sh install
/root/diversion: /opt/share/diversion/file/helper.div: line 3: syntax error: unexpected word (expecting ")")
[email protected]:/tmp/home/root#

any other idea?
 

thelonelycoder

Part of the Furniture
I ran the install command but it still produce the same error:

Code:
[email protected]:/tmp/home/root# curl -Os https://diversion.ch/install && sh install
/root/diversion: /opt/share/diversion/file/helper.div: line 3: syntax error: unexpected word (expecting ")")
[email protected]:/tmp/home/root#

any other idea?
My script logic is smarter than I am :)
Just run the following command, then open Diversion normally in the terminal. Diversion will fix itself when the file is missing.
Code:
rm /opt/share/diversion/file/helper.div
 

syfq91

New Around Here
I ran that and new problem arise :confused:

Code:
[email protected]:/tmp/home/root# rm /opt/share/diversion/file/helper.div
rm: remove '/opt/share/diversion/file/helper.div'? y
rm: can't remove '/opt/share/diversion/file/helper.div': Read-only file system
[email protected]:/tmp/home/root#

So how to change the read-only file system?
 

thelonelycoder

Part of the Furniture
I ran that and new problem arise :confused:

Code:
[email protected]:/tmp/home/root# rm /opt/share/diversion/file/helper.div
rm: remove '/opt/share/diversion/file/helper.div'? y
rm: can't remove '/opt/share/diversion/file/helper.div': Read-only file system
[email protected]:/tmp/home/root#

So how to change the read-only file system?
Bigger problems, your USB device needs checking. You can run the built in WebUI Health Scanner for your device to see if it can fix the problem.
In addition to that, amtm has a disc check script. Enable that and then reboot the router so it can run.
 

syfq91

New Around Here
I scanned thru Asus WebUI but it found nothing.
Anyway, I changed to a new USB drive and reinstall Diversion.

Thanks for your help. Really appreciate it.
 

Similar threads

Sign Up For SNBForums Daily Digest

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