What's new

Diversion Cannot access Diversion using SSH or WEBUI

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

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.
 
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.
 
I ran the install command but it still produce the same error:

Code:
admin@RT-AX56U:/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 ")")
admin@RT-AX56U:/tmp/home/root#

any other idea?
 
I ran the install command but it still produce the same error:

Code:
admin@RT-AX56U:/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 ")")
admin@RT-AX56U:/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
 
I ran that and new problem arise :confused:

Code:
admin@RT-AX56U:/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
admin@RT-AX56U:/tmp/home/root#

So how to change the read-only file system?
 
I ran that and new problem arise :confused:

Code:
admin@RT-AX56U:/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
admin@RT-AX56U:/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.
 
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.
 

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