Author Topic: List of visitors waiting empty  (Read 13562 times)

0 Members and 1 Guest are viewing this topic.

TempestF

  • Full Member
  • ***
  • Posts: 7
List of visitors waiting empty
« on: March 20, 2015, 03:28:08 AM »
I have installed and tested mibew messenger 1.6.15 with no problems. Works as advertised, When a user Clicks on Start Chat, I get a popup notification on the operator page, and can chat with the user.

I have now downloaded and installed mibew messenger 2.0.0-beta.3 and set it up with the same settings as I used in 1.6.15.  I have generated the Button Code for the 2.0.0-beta.3 version and put it on a webpage.  When I click on the button, I get the popup to put in name and Start Chat.  When I click on Start Chat, I get the blue swirl in the middle of the popup, but on the server the List of Visitors Waiting is empty, and never populates.

No php errors in the logs.
No apache errors.

 the below is in the access.log (after clicking Start Chat)
10.10.10.15 - - [19/Mar/2015:23:21:08 -0400] "POST /mibew/index.php/operator/users/update HTTP/1.1" 200 973
10.10.10.15 - - [19/Mar/2015:23:21:10 -0400] "POST /mibew/index.php/operator/users/update HTTP/1.1" 200 974
10.10.10.15 - - [19/Mar/2015:23:21:13 -0400] "POST /mibew/index.php/operator/users/update HTTP/1.1" 200 973
10.10.10.15 - - [19/Mar/2015:23:21:15 -0400] "POST /mibew/index.php/operator/users/update HTTP/1.1" 200 974
10.10.10.15 - - [19/Mar/2015:23:21:18 -0400] "POST /mibew/index.php/operator/users/update HTTP/1.1" 200 973


I am running:
Apache 2.2.17 (Win32)
PHP 5.3.5
MySQL  5.1.53

The mibew messenger is installed on a Windows 2003 server.
The client is on a Windows 7 Professoinal Workstatoin
Firewalls are off on both Server and Workstation

What else can I look at to try and figure out why the List of Visitors Waiting never populates ?


Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: List of visitors waiting empty
« Reply #1 on: March 20, 2015, 06:46:12 AM »
Does the demo ( https://mibew.org/demo2 ) works for you?

Also you should set error_reporting in php.ini to E_ALL and check the apache's error log again.

TempestF

  • Full Member
  • ***
  • Posts: 7
Re: List of visitors waiting empty
« Reply #2 on: March 20, 2015, 05:30:10 PM »
Yes the demo page does work for me.

I have E_ALL set in my php.ini and there are no errors. 

Checking appache error logs and there is only one errors
[Fri Mar 20 13:08:48 2015] [error] [client:xx.xx.xx.xx] File does not exist d:/htdocs/favicon.ico
its a continuous errors and I know how to fix this error, and will fix it at some point.

Also when I first open the console to login I go to http://www.mydomain.com/mibew  and it redirects to http://www.mydomain.com/mibew/operator and gives me an error NOT FOUND The requested URL /mibew/operator was not found on this server.

but if I go to http://www.mydomain.com/mibew/index.php it will redirect to : http://www.mydomain.com/index.php/operator/login and I see the correct login page.   The logon process did not work this way in 1.6.15.

Also after being connected to the operator console for a few minutes I get the following popup : Network Problems Detected. Please Refresh the page.   There are not problems with the network, and I can run a continous ping against 8.8.8.8 and no packet drops.

This is setup on a test server, and once I get it working will move it over to a production server.  I can setup a admin user for you if you want to connect and test it out.



Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: List of visitors waiting empty
« Reply #3 on: March 21, 2015, 10:58:34 AM »
Quote
Yes the demo page does work for me.

Fine.

Quote
Also when I first open the console to login I go to http://www.mydomain.com/mibew  and it redirects to http://www.mydomain.com/mibew/operator and gives me an error NOT FOUND The requested URL /mibew/operator was not found on this server.

but if I go to http://www.mydomain.com/mibew/index.php it will redirect to : http://www.mydomain.com/index.php/operator/login and I see the correct login page.   The logon process did not work this way in 1.6.15.

It seems that you don't have mod_rewrite installed. Am I right?

Quote
Also after being connected to the operator console for a few minutes I get the following popup : Network Problems Detected. Please Refresh the page.   There are not problems with the network, and I can run a continous ping against 8.8.8.8 and no packet drops.

Mibew reports about network problems when at least ten requests to the server is failed. Ping 8.8.8.8 tells nothing in this case because failures can be caused by the server's problems. Open browser's console (usually by pressing F12) and check errors there.

One more question. What browser do you use and did you try other browsers?
« Last Edit: March 21, 2015, 11:00:09 AM by Dmitriy Simushev »

TempestF

  • Full Member
  • ***
  • Posts: 7
Re: List of visitors waiting empty
« Reply #4 on: March 22, 2015, 07:09:19 PM »

Quote
It seems that you don't have mod_rewrite installed. Am I right?
I have enabled it and restarted Apache service, still does not work.  when I go to http://www.mydomain.com/mibrew, it "redirects" to http://www.mydomain.com/mibew/operator and get a 404 Not Found  The requested URL /mibew/operator was not found on this server.

What other mods should be enabled in Apache / php ?

Quote
Open browser's console (usually by pressing F12) and check errors there.
Ok I will try this the next time The popup happens, What should I be looking for ?

Quote
One more question. What browser do you use and did you try other browsers?
I have been using a combination of Firefox and Chrome, I have not used IE (dont like it, and trying to stay away from it)
Does the version of Firefox matter ? My Firefox just upgraded to 35.0.1, and Chrome is 41.0.2272.101 m



Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: List of visitors waiting empty
« Reply #5 on: March 23, 2015, 10:36:42 AM »
Quote
What other mods should be enabled in Apache / php ?

Mibew does not require any apache's modules. mod_rewrite is using just for beautifying URL, but Mibew should work fine without it. It seems something is wrong at the server side. As for PHP's extensions, Mibew requires pdo, pdo_mysql, and gd extensions.

Quote
Ok I will try this the next time The popup happens, What should I be looking for ?

Well, Mibew sends continues requests to the server and you should check their response cods (and message for 4xx and 5xx response). At the visitor's awaiting page you should track requests to:
Code: [Select]
http://yourdomain.com/mibew/operator/users/update
In the chat window track requests to:
Code: [Select]
http://yourdomain.com/mibew/thread/update
If you don't use mod_rewrite the URLs are:
Code: [Select]
http://yourdomain.com/mibew/index.php/operator/users/updateand
Code: [Select]
http://yourdomain.com/mibew/index.php/thread/update
At the same time you should check apache's access log. May be requests do not actually hit the server.

Also you should try to generate the button with Use windows option and check if it solves the problem. If it does not just track the requests in chat window as I've described above.

Quote
I have been using a combination of Firefox and Chrome, I have not used IE (dont like it, and trying to stay away from it)
Does the version of Firefox matter ? My Firefox just upgraded to 35.0.1, and Chrome is 41.0.2272.101 m
The exact version does not matter. I just wanted to make sure you do not use old browsers and it's not a kind of IE issue.
« Last Edit: March 23, 2015, 10:38:54 AM by Dmitriy Simushev »

TempestF

  • Full Member
  • ***
  • Posts: 7
Re: List of visitors waiting empty
« Reply #6 on: March 23, 2015, 04:20:00 PM »
Quote
Mibew requires pdo, pdo_mysql, and gd extensions.
I know I have pdo_mysql enabled I will have to check the others. I am pretty sure they are enabled as well.

Quote
Mibew sends continues requests to the server and you should check their response cods (and message for 4xx and 5xx response).
I was looking at the request, and I did see the continuous request to the server. its a post (to update) with a 200 response, dont see any 4xx or 5xx.

Quote
At the same time you should check apache's access log. May be requests do not actually hit the server.
I have attached the access.log from the test I just did. 

The error.log only has this :

[Mon Mar 23 11:30:12 2015] [error] [SERVER IP] File does not exist: D:/htdocs/mibew/operator
[Mon Mar 23 11:33:47 2015] [error] [CLIENT IP] File does not exist: D:/htdocs/mibew/js/libs/underscore-min.map, referer: http://www.mydomain.com/test/
[Mon Mar 23 11:33:47 2015] [error] [CLIENT IP] File does not exist: D:/htdocs/mibew/js/libs/backbone.marionette.map, referer: http://www.mydomain.com/test/
[Mon Mar 23 11:33:47 2015] [error] [CLIENT IP] File does not exist: D:/htdocs/mibew/js/libs/backbone-min.map, referer: http://www.mydomain.com/test/

Quote
Also you should try to generate the button with Use windows option and check if it solves the problem. If it does not just track the requests in chat window as I've described above.
I will setup the button for this and try this next.


On a side note, I have a raspberry pi, and I installed Apache, MySql and PHP on it. I only enabled mod_rewrite, everything else was default. I then Downloaded 2.0.0-beta3, created the mysql database with user/password like on Win32.  Created the button on a page, and it works. its slow and the operator page keeps timing out but it does work.  (mod_rewrite on the raspberry pi didnt work either).  So why would the same exact setup work on linux(debian wheezy) and not Win32 ?

TempestF

  • Full Member
  • ***
  • Posts: 7
Re: List of visitors waiting empty
« Reply #7 on: March 23, 2015, 04:20:59 PM »
access log attached

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 950
    • Mibew Messenger
Re: List of visitors waiting empty
« Reply #8 on: March 24, 2015, 12:34:46 PM »
So why would the same exact setup work on linux(debian wheezy) and not Win32 ?

It is not the exactly same setup. Different OSs, and (I presume) different versions of Apache, MySQL, PHP, and PHP extensions (not to mention the different software build processes).

Though, frankly, we don't test Mibew Messenger on Windows (moreover, on 32-bit Windows):

1. We don't have Windows-based test server.  ;)

2. We don't promote the use of proprietary software.  ;D

As of your access log... Take a look at the strings of this kind:

Quote
[SERVER IP] - - [23/Mar/2015:11:33:47 -0400] "POST /mibew/index.php/operator/users/update HTTP/1.1" 500 -

Correct me if I'm wrong, but 500 here stands for HTTP error code for the internal server error...

TempestF

  • Full Member
  • ***
  • Posts: 7
Re: List of visitors waiting empty
« Reply #9 on: March 24, 2015, 04:02:50 PM »
Quote
Though, frankly, we don't test Mibew Messenger on Windows (moreover, on 32-bit Windows):
So all your testing is done on Linux based systems ? or do you test on Windows x64 i.e. Windows 7 / 8 64 bit

Quote
Correct me if I'm wrong, but 500 here stands for HTTP error code for the internal server error...
You are correct that is a code for internal server error...   This was at the end of the logs, when I closing out of the pages, and restarting Apache.





faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 950
    • Mibew Messenger
Re: List of visitors waiting empty
« Reply #10 on: March 24, 2015, 05:06:27 PM »
So all your testing is done on Linux based systems ? or do you test on Windows x64 i.e. Windows 7 / 8 64 bit

One more time:

1. We don't have Windows-based test server.  ;)

That means that we don't have it at all. Neither 32-bit, nor 64-bit.

TempestF

  • Full Member
  • ***
  • Posts: 7
Re: List of visitors waiting empty
« Reply #11 on: March 24, 2015, 05:55:37 PM »
[Quote}1. We don't have Windows-based test server.  ;)[/Quote]
Just to clarify,  You are including Windows 7 (not a Server, this is why I asked) in this statement ?

Thanks,  I will try and stand up a Linux box and see how it goes, any recommendation on which distro I should use ?

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 950
    • Mibew Messenger
Re: List of visitors waiting empty
« Reply #12 on: March 24, 2015, 08:41:41 PM »
Quote
1. We don't have Windows-based test server.  ;)
Just to clarify,  You are including Windows 7 (not a Server, this is why I asked) in this statement ?

You're kidding, right?  :D

Yes, we don't test Mibew on Windows 7. Also we don't test it on Windows 8, 8.1, Phone, etc.


Thanks,  I will try and stand up a Linux box and see how it goes, any recommendation on which distro I should use ?

The one you like.  ;)

Since you're already familiar with Debian GNU/Linux, you can try it.