Why do i need to Restart SafeSquid TWICE to do YouTube API Integration in SafeSquid-SWG

Tell everybody, what you think about SafeSquid!
Speak your mind!
India aashish97
Posts: 117
Joined: Sat Jul 06, 2019 10:45 am

Why do i need to Restart SafeSquid TWICE to do YouTube API Integration in SafeSquid-SWG

Post by aashish97 » Tue Aug 20, 2019 8:41 am

Hello All,

Recently, I was trying to integrate my YouTube API key with SafeSquid-SWG so that I can create the YouTube category-based rules.
But while trying to do that

As per my knowledge, there is only one step to do if we already have YouTube API Key.
do reply back, if there is any other step that I have to do.

The Step that I followed is:
Add a key file named "keys" [Containing YouTube API Key] Inside Dir: [/var/lib/safesquid/youtube/]

and then a SafeSquid Restart should enable the YouTube Category in our Category Section

But this Setup does not work [i.e youtube category are not present in category section]

There is a file getting created as legends inside dir: [/var/lib/safesquid/youtube/]
legends file containing YouTube Category

and the log file: /tmp/safesquid/tty
shows the below error

However, if I again do a SafeSquid Restart, there is no such log that i see below
and the Youtube Category are present in the category Section

LOG INSIDE : /tmp/safesquid/tty
main:149 calling mainloop:
json_find_string_:1521 node:/items/32/id [not found]
json_find_string_:1521 node:/items/33/id [not found]
json_find_string_:1521 node:/items/34/id [not found]
json_find_string_:1521 node:/items/35/id [not found]
json_find_string_:1521 node:/items/36/id [not found]
...................
json_find_string_:1521 node:/items/49/id [not found]
json_find_string_:1521 node:/items/0/id [not found]
json_find_string_:1521 node:/items/1/id [not found]
json_find_string_:1521 node:/items/2/id [not found]
json_find_string_:1521 node:/items/3/id [not found]
json_find_string_:1521 node:/items/4/id [not found]
json_find_string_:1521 node:/items/5/id [not found]
json_find_string_:1521 node:/items/6/id [not found]
......................
json_find_string_:1521 node:/items/147/id [not found]
json_find_string_:1521 node:/items/148/id [not found]
json_find_string_:1521 node:/items/149/id [not found]
json_find_string_:1521 node:/items/0/id [not found]
json_find_string_:1521 node:/items/1/id [not found]
json_find_string_:1521 node:/items/2/id [not found]
json_find_string_:1521 node:/items/3/id [not found]
json_find_string_:1521 node:/items/4/id [not found]
json_find_string_:1521 node:/items/5/id [not found]
......................
json_find_string_:1521 node:/items/188/id [not found]
json_find_string_:1521 node:/items/189/id [not found]
json_find_string_:1521 node:/items/190/id [not found]
json_find_string_:1521 node:/items/191/id [not found]



Does Restart TWICE is OKAY.
But still restarting once should integrate YouTube API in SafeSquid-SWG