YazFi YAZFI - No GUI in TAB :(

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

REZISTENCE

New Around Here
YAZFI - No GUI in TAB :(

yazfi issue.jpg

Can anyone please tell me if they have fixed this issue or not what causes it?
I have been googling the poop out of it. One person seemed to fix it by running u (twice)
This did not work for me. BTW I did have the stable release of 348.19 on previously and it did work, but I did a format off my JFFS Partition and it stopped showing the GUI config tab settings boxes :(
 

Jack Yaz

Part of the Furniture
YAZFI - No GUI in TAB :(

View attachment 28381
Can anyone please tell me if they have fixed this issue or not what causes it?
I have been googling the poop out of it. One person seemed to fix it by running u (twice)
This did not work for me. BTW I did have the stable release of 348.19 on previously and it did work, but I did a format off my JFFS Partition and it stopped showing the GUI config tab settings boxes :(
check for browser console errors please (f12 - console)
 

abracadabra11

Regular Contributor
check for browser console errors please (f12 - console)
Running into same problem as OP.

Seems like it's having problems reaching the config.htm file

Code:
GEThttp://192.168.68.1/ext/YazFi/config.htm


[HTTP/1.0 404 Not Found 20ms]

XHRGEThttp://192.168.68.1/ext/YazFi/config.htm[HTTP/1.0 404 Not Found 8ms]
 

Jack Yaz

Part of the Furniture
Running into same problem as OP.

Seems like it's having problems reaching the config.htm file

Code:
GEThttp://192.168.68.1/ext/YazFi/config.htm


[HTTP/1.0 404 Not Found 20ms]

XHRGEThttp://192.168.68.1/ext/YazFi/config.htm[HTTP/1.0 404 Not Found 8ms]
what do you get if you run the below in command line:
Code:
ls -la /jffs/addons/YazFi.d
 

abracadabra11

Regular Contributor
what do you get if you run the below in command line:
Code:
ls -la /jffs/addons/YazFi.d
Code:
drwxrwxrwx    3 XXX root             0 Dec 22 09:37 .

drwxr-xr-x   11 XXX root             0 Dec 22 09:19 ..

-rw-rw-rw-    1 XXX root         36437 Dec 22 09:18 YazFi_www.asp

-rw-r--r--    1 XXX root          5589 Dec 22 09:37 config

-rw-r--r--    1 XXX root          5589 Dec 22 09:37 config.bak

drwxrwxrwx    2 XXX root             0 Dec 22 09:18 userscripts.d

Looking through the system log following restart, I only see the following (2) entries:
Dec 22 11:02:35 YazFi: Mounting YazFi WebUI page as user1.asp
Dec 22 11:02:42 YazFi: VPN client (re)started - sleeping 15s before running YazFi

No other YazFi entries.
 
Last edited:

Jack Yaz

Part of the Furniture
how about
Code:
ls -la /www/user/YazFi
 

abracadabra11

Regular Contributor
how about
Code:
ls -la /www/user/YazFi
Code:
drwxrwxrwx    2 XXX root            60 Dec 22 11:07 .
drwxr-xr-x    5 XXX root           200 Dec 22 11:07 ..
lrwxrwxrwx    1 XXX root            27 Dec 22 11:07 config.htm -> /jffs/addons/YazFi.d/config

Above output was after manually starting YazFi via webGUI. Rebooted router and reran command:
Code:
ls: /www/user/YazFi: No such file or directory
 
Last edited:

Jack Yaz

Part of the Furniture
Code:
drwxrwxrwx    2 XXX root            60 Dec 22 11:07 .
drwxr-xr-x    5 XXX root           200 Dec 22 11:07 ..
lrwxrwxrwx    1 XXX root            27 Dec 22 11:07 config.htm -> /jffs/addons/YazFi.d/config

Above output was after manually starting YazFi via webGUI. Rebooted router and reran command:
Code:
ls: /www/user/YazFi: No such file or directory
hm, something is stopping the web dir from being created on boot for you. I'll take a look
 

Jack Yaz

Part of the Furniture
Code:
drwxrwxrwx    2 XXX root            60 Dec 22 11:07 .
drwxr-xr-x    5 XXX root           200 Dec 22 11:07 ..
lrwxrwxrwx    1 XXX root            27 Dec 22 11:07 config.htm -> /jffs/addons/YazFi.d/config

Above output was after manually starting YazFi via webGUI. Rebooted router and reran command:
Code:
ls: /www/user/YazFi: No such file or directory
please run
Code:
YazFi develop
and test again after a reboot please
 

abracadabra11

Regular Contributor
please run
Code:
YazFi develop
Code:
Dec 22 13:54:48 YazFi: Mounting YazFi WebUI page as user1.asp
Dec 22 13:54:59 YazFi: VPN tunnel route just came up, running YazFi to fix RPDB routing
and test again after a reboot please
Ran above and rebooted and waited about 10 minutes for router to stabilize.

Client list shows all Guest network devices.

YazFi tab shows the correct configuration page.

Connected client list in amtm shows (4) hosts connected - the correct MAC addresses for my guest network devices. But the Hostnames are all UNKNOWN and no entries under IP ADDRESS.

Code:
HOSTNAME                      IP ADDRESS          MAC
Unknown                                           XX:XX:XX:XX:XX:XX
Unknown                                           XX:XX:XX:XX:XX:XX
Unknown                                           XX:XX:XX:XX:XX:XX
Unknown                                           XX:XX:XX:XX:XX:XX

Two entries in system log:
Code:
Dec 22 13:54:48 YazFi: Mounting YazFi WebUI page as user1.asp
Dec 22 13:54:59 YazFi: VPN tunnel route just came up, running YazFi to fix RPDB routing

After 15 minutes, it appears that guest network devices are properly isolated. Below entries in system log:

Code:
Dec 22 14:10:00 YazFi: YazFi firewall rules not detected during persistence check, re-applying rules
Dec 22 14:10:00 YazFi: YazFi v4.1.5 starting up
Dec 22 14:10:24 YazFi: YazFi v4.1.5 completed successfully
Dec 22 14:10:03 YazFi: wl0.1 (SSID: XXX) - VPN redirection enabled, sending all interface internet traffic over VPN Client 1
Dec 22 14:10:08 YazFi: Forcing YazFi Guest WiFi clients to reauthenticate
Dec 22 14:10:24 YazFi: YazFi v4.1.5 completed successfully

Any idea what's causing this behavior?
 
Last edited:

Jack Yaz

Part of the Furniture
Ran above and rebooted and waited about 10 minutes for router to stabilize.

Client list shows all Guest network devices.

YazFi tab shows the correct configuration page.

Connected client list in amtm shows (4) hosts connected - the correct MAC addresses for my guest network devices. But the Hostnames are all UNKNOWN and no entries under IP ADDRESS.

Code:
HOSTNAME                      IP ADDRESS          MAC
Unknown                                           XX:XX:XX:XX:XX:XX
Unknown                                           XX:XX:XX:XX:XX:XX
Unknown                                           XX:XX:XX:XX:XX:XX
Unknown                                           XX:XX:XX:XX:XX:XX

Two entries in system log:
Code:
Dec 22 13:54:48 YazFi: Mounting YazFi WebUI page as user1.asp
Dec 22 13:54:59 YazFi: VPN tunnel route just came up, running YazFi to fix RPDB routing

After 15 minutes, it appears that guest network devices are properly isolated. Below entries in system log:

Code:
Dec 22 14:10:00 YazFi: YazFi firewall rules not detected during persistence check, re-applying rules
Dec 22 14:10:00 YazFi: YazFi v4.1.5 starting up
Dec 22 14:10:24 YazFi: YazFi v4.1.5 completed successfully
Dec 22 14:10:03 YazFi: wl0.1 (SSID: XXX) - VPN redirection enabled, sending all interface internet traffic over VPN Client 1
Dec 22 14:10:08 YazFi: Forcing YazFi Guest WiFi clients to reauthenticate
Dec 22 14:10:24 YazFi: YazFi v4.1.5 completed successfully

Any idea what's causing this behavior?
No other messages in syslog for YazFi on startup? Do you see firewall-start being called?
 

abracadabra11

Regular Contributor
No other messages in syslog for YazFi on startup? Do you see firewall-start being called?
Looks like it's being called but not accessible:
Code:
Dec 22 13:55:02 custom_script: Found firewall-start, but script is not set executable!

Checked Skynet status and looks like it wasn't starting properly. Reinstalled and will reboot to see if everything starts properly.
 
Last edited:

abracadabra11

Regular Contributor
Looks like it's being called but not accessible:
Code:
Dec 22 13:55:02 custom_script: Found firewall-start, but script is not set executable!

Checked Skynet status and looks like it wasn't starting properly. Reinstalled and will reboot to see if everything starts properly.
Looks like everything is starting properly now.

YazFi Entries
Code:
Dec 23 14:20:57 YazFi: Mounting YazFi WebUI page as user1.asp
Dec 23 14:21:10 YazFi: Firewall restarted - sleeping 30s before running YazFi
Dec 23 14:21:11 YazFi: VPN tunnel route just came up, running YazFi to fix RPDB routing
Dec 23 14:21:41 YazFi: YazFi v4.1.5 starting up
Dec 23 14:21:44 YazFi: wl0.1 (SSID: XXX) - VPN redirection enabled, sending all interface internet traffic over VPN Client 1
Dec 23 14:21:50 YazFi: Forcing YazFi Guest WiFi clients to reauthenticate
Dec 23 14:21:58 YazFi: Firewall restarted - sleeping 30s before running YazFi
Dec 23 14:22:05 YazFi: YazFi v4.1.5 completed successfully
Dec 23 14:22:28 YazFi: YazFi v4.1.5 starting up
Dec 23 14:22:31 YazFi: wl0.1 (SSID: XXX) - VPN redirection enabled, sending all interface internet traffic over VPN Client 1
Dec 23 14:22:36 YazFi: Forcing YazFi Guest WiFi clients to reauthenticate
Dec 23 14:22:51 YazFi: YazFi v4.1.5 completed successfully

Skynet Entries
Code:
Dec 23 14:20:56 Skynet: [*] USB Not Found - Sleeping For 10 Seconds ( Attempt 1 Of 10 )
Dec 23 14:21:09 custom_script: Running /jffs/scripts/firewall-start (args: eth4)
Dec 23 14:21:57 Skynet: [i] Mounting Skynet Web Page As user3.asp
Dec 23 14:21:58 Skynet: [#] 49427 IPs (+0) -- 28110 Ranges Banned (+0) || 0 Inbound -- 0 Outbound Connections Blocked! [start] [62s]

Were there multiple interactions going on here? Is it fair to say the problems were primarily related to file access and the USB mount? Or were there also some issues with YazFi and Skynet?

Appreciate the help working through this.
 

Jack Yaz

Part of the Furniture
Looks like it's being called but not accessible:
Code:
Dec 22 13:55:02 custom_script: Found firewall-start, but script is not set executable!

Checked Skynet status and looks like it wasn't starting properly. Reinstalled and will reboot to see if everything starts properly.
that would explain YazFi not applying itself on startup - but the persistence check caught it :)
 

kunithehero

New Around Here
Not to threadjack, but I had a similar problem on my RT-AC56U running John's Fork 374.43_46E8j9527. I see the YazFi tab under addons, but there is no GUI. I have since figured it out with some troubleshooting and file editing so forget what the exact console error was, but it related to "wl_info". From what I can tell, YazFi_www.asp is trying to detect what radios are available in the router using wl_info.band2g_support, wl_info.band5g_support, and wl_info.band5g_2_support. A quick Google search showed that those objects existed in Merlin's Advanced_Wireless_Content.asp, but John's fork (at least 46E8) no longer has it.

I can make the GUI appear by removing the associated if statement:
Code:
if(wl_info.band2g_support){$j("#table_buttons").before(BuildConfigTable("wl0","2.4GHz Guest Networks"));bands = bands + 1;}
to
Code:
$j("#table_buttons").before(BuildConfigTable("wl0","2.4GHz Guest Networks"));bands = bands + 1;
While this works for now, I am wondering if this will break again when I next update YazFi.
 
Top