adampk17
Senior Member
Woke up, No internet, rebooted router, internet came back up, could not load into diversion menu, did not notice any abnormal logs
My guess- corrupt USB file system.
Woke up, No internet, rebooted router, internet came back up, could not load into diversion menu, did not notice any abnormal logs
- Check the routers Syslog for errors.
- Use amtm to check the disk.
quick fix guys, i will check it out shortly, thank you for timely advice.My guess- corrupt USB file system.
amtm and Diversion detect Skynet by looking for this:I did reboot, it's always the same. This is how Skynet installs...
It's shorter than before, usually it asks to create a swap file and a few more questions IIRC. Adamm told me it won't ask for swap if there is one but USB drive was just formatted!
Now I don't want to bring Skynet debugging over here but I'm curious how Diversion see there is a locked file. Can I browse to that file manually? I'm not a linux expert so I don't know how to list files, is there something like dir /s in linux that will list all files?
The USB drive was freshly ext2 formatted prior to installing Diversion and Diversion hint me about Skynet so I'm lost.
Also, the USB drive was again freshly formatted before the above Skynet installation.
Then I guess my only option is to format JFFS partition at next boot because even after a router reboot and a freshly formatted etx2 USB drive, Diversion installation still tells me there is a Skynet locked file.amtm and Diversion detect Skynet by looking for this:
- The file /jffs/scripts/firewall exists.
- The entry "sh /jffs/scripts/firewall" is found in /jffs/scripts/firewall-start
And when Diversion refreshes the whitelist, it looks for /tmp/skynet.lock. If found, Skynet is doing some stuff. It would be gone after a reboot. If not, Skynet is active.
Why not just remove the files?Then I guess my only option is to format JFFS partition at next boot because even after a router reboot and a freshly formatted etx2 USB drive, Diversion installation still tells me there is a Skynet locked file.
Anything I should care first prior to JFFS format?
rm /jffs/scripts/firewall*
Because I didn't know about this, I'm a noob with linux.Why not just remove the files?
Code:rm /jffs/scripts/firewall*
Woke up, No internet, rebooted router, internet came back up, could not load into diversion menu, did not notice any abnormal logs
Absolutely!Does Diversion work with 384.15 alpha?
I'll check but the opkg check ought to be there. Can you (re)configure the backup to mail to zip and see if it runs the check?I think I've found a bug in Diversion opkg dependencies during install; it doesn't seem to install the 'zip' package required for email backup; resulting in being email a zero byte zip file as a backup.
Code:/opt/share/diversion/file/backup.div: line 204: zip: not found
I'll check but the opkg check ought to be there. Can you (re)configure the backup to mail to zip and see if it runs the check?
Thanks for reporting.
- uninstalled the zip package
- went into diversion settings and changed weekly backup option to zip
- diversion installed entware zip package
- uninstalled the zip package
- diversion option c321
- diversion doesn't seem to check for the zip package, result zero byte zip file
It's a bug or an unintended result of the hostsfiles containing tab characters instead of spaces. Diversion is searching for "<space>adkami.com" when it's might be stored as "<tab>adkami.com" in the source file. It was this way for one of the tests I did with the SkyNet Plus hosts files. @thelonelycoder can decide if or how he wants to deal with it. Your particular file on pastebin has Windows CR/LF endings which also doesn't let it match the EOL properly either. So two possible issues to consider.Can you guys help me figure this out? I had some trouble over the weekend with getting some urls to be blocked with Diversion using a custom host file. So I started from scratch and only have a single hostfile enabled that contains 561 domains. That host file in raw format can be found here: https://pastebin.com/raw/R3KzqysL.
I ensure the custom host list is present and enabled.
I then go to the blocking list to test a single domain from the list to ensure that it is blocked. However, when I enter the domain, it shows that it's not on any lists.
I ran the "Update blocking list" multiple times. Just to prove that it's actually there, I use WinSCP and open the blockinglist file and can see the domain in question is present.
I was initially using the Standard block list and noticed that some of the custom domains were not being blocked. So to simplify I reduced it to a single host file for troubleshooting purposes. Is this a bug or am I doing something wrong?
# grep " adkami\.com" /opt/share/diversion/backup/hostsfile_*
/opt/share/diversion/backup/hostsfile_pastebin.com-raw-R3KzqysL:0.0.0.0 adkami.com
# grep " adkami\.com$" /opt/share/diversion/backup/hostsfile_*
# grep -P " adkami\.com\r$" /opt/share/diversion/backup/hostsfile_*
/opt/share/diversion/backup/hostsfile_pastebin.com-raw-R3KzqysL:0.0.0.0 adkami.com
/opt/bin/grep -P "\sadkami\.com\r$" /opt/share/diversion/backup/hostsfile_*
/bin/grep -E "[[:blank:]]adkami\.com$(printf '\r')?$" hostsfile_*
Before you save the file, convert the line endings to Unix (LF).Well that might explain it. I used Notepad ++ to format the domain list and add the 0.0.0.0 to the front of each line. Is there a better way to build those lists? Also can you explain how to use the entware grep?
or some other error message. I think it is because my pixelserv version is 2.2.1? I tried upgrading without success - so I resorted to formatting the USB with entware/diversion. I reformatted back to ext4, and ran the diversion installer - but it still installed 2.2.1. So I manually was able to upgrade to Leo's 2.3.0 - not 2.3.1, but still have the same error where it doesn't make ads a single pixel. Any advice? Thanks.Content was blocked because it was not signed by a valid security certificate.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!