binary operator expected

126 views
Skip to first unread message

Paul Belcher

unread,
Apr 29, 2017, 2:46:22 PM4/29/17
to BigBlueButton-dev
Hello,

I recently added the follow code in ect/nginx/sites-available/bigbluebutton to redirect the http traffic to https.  

server {
    listen 80;
    server_name mysite.com;
    location / {
        rewrite ^(.*) https://mysite2-frontend.com$request_uri;
    }
}

The following are the last lines of output in bbb-conf --clean

/usr/bin/bbb-conf: line 1262: [: mysite.com: binary operator expected
# Warning: The client self check is installed and accessible from:
#

The following is an snippet this line and beyond:

 if [ ! -z $NGINX_IP ]; then
                if ! nc -z -w 3 $NGINX_IP 1935 > /dev/null; then
                        echo "# Error: Unable to connect to port 1935 (RTMP) on $NGINX_IP"
                        echo 
                fi
        fi

---
 

Is this if statement using word splitting? Is it possible that this statement returns more than one token/word?. Hence, the message “Binary Operator Expected” ([ ] expects to see operators between the resulting tokens).

Is there any way to resolve this.  I am running BBB 1.1Beta on ubuntu 16.04.  I did not have this problem on 14.04.

Thanks,
Paul

Fred Dixon

unread,
Apr 29, 2017, 3:50:59 PM4/29/17
to BigBlueButton-dev
Hi Paul,

Yes, there is some code in bbb-conf to determine the server_name and it's matching multiple times.  You can ignore this error.

Regards,.. Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-dev+unsubscribe@googlegroups.com.
To post to this group, send email to bigbluebutton-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

Paul Belcher

unread,
Apr 29, 2017, 10:44:49 PM4/29/17
to bigblueb...@googlegroups.com
Thanks for letting know....  The odd things is with this code added, when monitoring the Activity of BBB conference sessions there are no sessions listed as being active, when I know there are sessions running.  If I remove the code and restart Nginx the active monitor show me who is in the conference sessions.

Anyway, It must be something with the server name.  I don't know if it is all that important to have this redirect.  I can always just put a splash screen in the index file direction people to the frontend site.  Strange though... 

Thanks,
Paul

--
You received this message because you are subscribed to a topic in the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bigbluebutton-dev/N4v9UGbvVfg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bigbluebutton-dev+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages