What's new

[Release] AB-Solution 3 - The Ad Blocking Solution

  • 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!

Status
Not open for further replies.
renamed the entware folder did the trick, had also to adjust some of my scripts internally, other than that no issue
Can you please tell me what other scripts you had to adjust internally beside changing the Entware folder name and editing the post mount file. Because I did that and even then it's giving me this error "pixelserv-tls is not running".
 
Can you please tell me what other scripts you had to adjust internally beside changing the Entware folder name and editing the post mount file. Because I did that and even then it's giving me this error "pixelserv-tls is not running".
A case of RTFM? Enter (ps) again and see if it finishes.
 
Thanks for the quick response .I tried that several times but still doesn't work its keep giving me same error " pixelserv-tls is not running" .Is there any other modification that i need to do beside post mount script ?
 
Thanks for the quick response .I tried that several times but still doesn't work its keep giving me same error " pixelserv-tls is not running" .Is there any other modification that i need to do beside post mount script ?
Early on in this thread I suggest to modify the AB config file. Try that.
 
if you don't mind can you please tell where is AB config file located? And what changes i have to make in it. As i'm new at this and i don't want to brick my router as i'm trying to learn. i'll really appreciate your help.Thanks
 
if you don't mind can you please tell where is AB config file located? And what changes i have to make in it. As i'm new at this and i don't want to brick my router as i'm trying to learn. i'll really appreciate your help.Thanks
Post 30
This'll be fixed in the update I'm working on. But it may take a while until it comes out.
 
Post 30
This'll be fixed in the update I'm working on. But it may take a while until it comes out.
Thanks .. it started showing that it's working. but at the end it ask to enter "22" to see the error and then its shows that the pixelserv is not running. But when I check the status its showing it's alive. Do that mean it pixelsever is running but AB is not able to detect it ? I have took some screen shots
 

Attachments

  • AB Solution .jpg
    AB Solution .jpg
    74.9 KB · Views: 422
  • Pixelsev.jpg
    Pixelsev.jpg
    110.9 KB · Views: 429
  • check.jpg
    check.jpg
    22.3 KB · Views: 431
1.
Can you post your router model, exact firmware version.
Do you run any other scripts apart from AB?
Was Entware installed before and AB is using it now?

2.
Paste this into your Browser:
Code:
192.168.1.3/servstats
If it shows the pixelserv output it's running just fine.
It's just a timeout in the AB check that wants to verify it.

3.
Can you do me a favor?
Exit (e) AB-Solution
Replace the following code in /tmp/mnt/sda1/ab-solution.sh
(Lines 1921 to 1951)
Code:
if [ $psState == on ] && [ $entwareState == on ];then
    echo -e "\n checking $psName"
    if ping -c 1 -W 1 "$psIPv4" >/dev/null;then
        echo -e " $psIPv4 responded, looks good"
    else
        echo -e " $psIPv4 did not respond, restarting"
        ifconfig br0:pixelserv $psIPv4 up
        if ping -c 1 -W 1 "$psIPv4" >/dev/null;then
            echo -e " $psIPv4 responded, looks good"
        else
            echo -e " ${ired}$psIPv4 did not respond$nocolor";appCheck=1
        fi
    fi
    wget -q -t 5 $psIPv4/servstats.txt
    if [ -f servstats.txt ];then
        echo -e " $psName is up"
        rm servstats.txt
    else
        echo " $psName is not running, restarting"
        get_add_on_file $pixelservFile include
        echo "" # give the ps output some space
        write_pixelserv_script restart
        wget -q -t 5 $psIPv4/servstats.txt
        if [ -f servstats.txt ];then
            echo -e " $psName is up"
            rm servstats.txt
        else
            echo -e " ${ired}$psName is not running$nocolor";appCheck=1
        fi
    fi
fi
with the modified code:
Code:
if [ $psState == on ] && [ $entwareState == on ];then
    echo -e "\n checking $psName"
    if ping -c 2 "$psIPv4" >/dev/null;then
        echo -e " $psIPv4 responded, looks good"
    else
        echo -e " $psIPv4 did not respond, restarting"
        ifconfig br0:pixelserv $psIPv4 up
        sleep 2
        if ping -c 2 "$psIPv4" >/dev/null;then
            echo -e " $psIPv4 responded, looks good"
        else
            echo -e " ${ired}$psIPv4 did not respond$nocolor";appCheck=1
        fi
    fi
    wget -q --tries=5 $psIPv4/servstats.txt
    if [ -f servstats.txt ];then
        echo -e " $psName is up"
        rm servstats.txt
    else
        echo " $psName is not running, restarting"
        get_add_on_file $pixelservFile include
        echo "" # give the ps output some space
        write_pixelserv_script restart
        sleep 2
        wget -q --tries=5 $psIPv4/servstats.txt
        if [ -f servstats.txt ];then
            echo -e " $psName is up"
            rm servstats.txt
        else
            echo -e " ${ired}$psName is not running$nocolor";appCheck=1
        fi
    fi
fi
Then start the AB-Solution UI, it should no longer report an error.
 
Thanks .. it started showing that it's working. but at the end it ask to enter "22" to see the error and then its shows that the pixelserv is not running. But when I check the status its showing it's alive. Do that mean it pixelsever is running but AB is not able to detect it ? I have took some screen shots
Just want to add: (e) wont work, as it will report the error (the self check kicks in).
Force exit AB-Solution with CTRL-C in Windows.
 
To verify that pixelserv is running, the installation check takes a peek at the servstats web page that it should be generating. and this is whats failing. Its interesting that a check through the init script says its alive...... Can it be started but not bound to the port?...i see you added the 2 sec sleep to the servstat check as well as the interface check. Do you think this is just a matter of timing again? (i.e. pixelserv not fully started when you wget the servstats?)
 
Last edited:
To verify that pixelserv is running, the installation check takes a peek at the servstats web page that it should be generating. and this is whats failing. Its interesting that a check through the init script says its alive...... Can it be started but not bound to the port?
The Syslog would tell so, if both ports are up all is OK:
Aug 1 02:00:18 pixelserv[729]: Listening on :172.20.0.2:80
Aug 1 02:00:18 pixelserv[729]: Listening on :172.20.0.2:443

It's likely the wget -q -t 5 $psIPv4/servstats.txt that fails.
Hence the modified wget -q --tries=5 $psIPv4/servstats.txt
 
...i see you added the 2 sec sleep to the servstat check as well as the interface check. Do you think this is just a matter of timing again? (i.e. pixelserv not fully started when you wget the servstats?)
Likely the wget in this case, does not like the -t switch, so I use --tries=5 to make sure it understands I want tries and no other option.
 
Likely the wget in this case, does not like the -t switch, so I use --tries=5 to make sure it understands I want tries and no other option.
another busybox peculiarity?
 
Depends on the wget binary, not part of BB, version is 1.16.
I run an very early testversion of asuswrt-merlin with the latest BB, 1.25.1 (old is 1.20.2).
Still the same wget, but Entware or other forks could install a later version where the -t switch means a different thing, if I remember correctly.
 
1.
Can you post your router model, exact firmware version.
Do you run any other scripts apart from AB?
Was Entware installed before and AB is using it now?

2.
Paste this into your Browser:
Code:
192.168.1.3/servstats
If it shows the pixelserv output it's running just fine.
It's just a timeout in the AB check that wants to verify it.

3.
Can you do me a favor?
Exit (e) AB-Solution
Replace the following code in /tmp/mnt/sda1/ab-solution.sh
(Lines 1921 to 1951)
Code:
if [ $psState == on ] && [ $entwareState == on ];then
    echo -e "\n checking $psName"
    if ping -c 1 -W 1 "$psIPv4" >/dev/null;then
        echo -e " $psIPv4 responded, looks good"
    else
        echo -e " $psIPv4 did not respond, restarting"
        ifconfig br0:pixelserv $psIPv4 up
        if ping -c 1 -W 1 "$psIPv4" >/dev/null;then
            echo -e " $psIPv4 responded, looks good"
        else
            echo -e " ${ired}$psIPv4 did not respond$nocolor";appCheck=1
        fi
    fi
    wget -q -t 5 $psIPv4/servstats.txt
    if [ -f servstats.txt ];then
        echo -e " $psName is up"
        rm servstats.txt
    else
        echo " $psName is not running, restarting"
        get_add_on_file $pixelservFile include
        echo "" # give the ps output some space
        write_pixelserv_script restart
        wget -q -t 5 $psIPv4/servstats.txt
        if [ -f servstats.txt ];then
            echo -e " $psName is up"
            rm servstats.txt
        else
            echo -e " ${ired}$psName is not running$nocolor";appCheck=1
        fi
    fi
fi
with the modified code:
Code:
if [ $psState == on ] && [ $entwareState == on ];then
    echo -e "\n checking $psName"
    if ping -c 2 "$psIPv4" >/dev/null;then
        echo -e " $psIPv4 responded, looks good"
    else
        echo -e " $psIPv4 did not respond, restarting"
        ifconfig br0:pixelserv $psIPv4 up
        sleep 2
        if ping -c 2 "$psIPv4" >/dev/null;then
            echo -e " $psIPv4 responded, looks good"
        else
            echo -e " ${ired}$psIPv4 did not respond$nocolor";appCheck=1
        fi
    fi
    wget -q --tries=5 $psIPv4/servstats.txt
    if [ -f servstats.txt ];then
        echo -e " $psName is up"
        rm servstats.txt
    else
        echo " $psName is not running, restarting"
        get_add_on_file $pixelservFile include
        echo "" # give the ps output some space
        write_pixelserv_script restart
        sleep 2
        wget -q --tries=5 $psIPv4/servstats.txt
        if [ -f servstats.txt ];then
            echo -e " $psName is up"
            rm servstats.txt
        else
            echo -e " ${ired}$psName is not running$nocolor";appCheck=1
        fi
    fi
fi
Then start the AB-Solution UI, it should no longer report an error.

Thanks ..my router is RT-AC68U ,Firmware Version:380.64_beta1-geced399 and yes Entware was installed right before I installed AB. And no I'm not using any other script. When I tried 192.168.1.3/servstats in the browser it's doesn't connect to the server . I modified the code as you mentioned but still getting the error..
 
Thanks ..my router is RT-AC68U ,Firmware Version:380.64_beta1-geced399 and yes Entware was installed right before I installed AB. And no I'm not using any other script. When I tried 192.168.1.3/servstats in the browser it's doesn't connect to the server . I modified the code as you mentioned but still getting the error..
Do you see the output similar to this in the SysLog?
Code:
Aug 1 02:00:18 pixelserv[729]: Listening on :172.20.0.2:80
Aug 1 02:00:18 pixelserv[729]: Listening on :172.20.0.2:443
Is Ai Protection enabled? If so, did you change the Ai port to e.g. 9443 instead of the default 443.
 
Do you see the output similar to this in the SysLog?
Code:
Aug 1 02:00:18 pixelserv[729]: Listening on :172.20.0.2:80
Aug 1 02:00:18 pixelserv[729]: Listening on :172.20.0.2:443
Is Ai Protection enabled? If so, did you change the Ai port to e.g. 9443 instead of the default 443.

I don't see syslog in the log folder . And Ai Protection is disabled
 
The Router SysLog, not AB. Log into the WebUI.
Dec 14 10:57:45 Router: Started pixelserv-tls (AB-Solution) from .
Dec 14 10:57:45 pixelserv[2270]: pixelserv-tls version: v35.HZ12.Ki compiled: Oct 31 2016 11:29:48 options: 192.168.1.3 -l
Dec 14 10:57:45 pixelserv[2270]: Listening on :192.168.1.3:80
Dec 14 10:57:45 pixelserv[2270]: Abort: Address already in use - :192.168.1.3:443
 
Looks like you have Ai cloud listening on port 443... you need to change that AiCloud 2.0---> settings tab
 
Status
Not open for further replies.

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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