Difficulty getting JabberCamApp to respond (server handshake too long error)



  • Hi - I'm pretty far along (I thought) in the install, and stuck with the flash app not being able to talk to the red5 application. Here's how it looks…

    When I bring up the flash app, it immediately says

    "13:37:39  unable to connect to rtmp://clickacam.com/JabberCamApp"

    a few seconds later I see in the server log:

    [INFO] [NioProcessor-4] org.red5.server.adapter.MultiThreadedApplicationAdapter - W3C x-category:session x-event:connect c-ip:69.180.30.113 c-client-id:2
    [WARN] [Red5_Scheduler_Worker-2] org.red5.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from 69.180.30.113 : 60384 to clickacam.com (in: 3419 out 3221 ), with id 32416137 due to long handshake

    (slight delay between those two).

    So clearly the connectivity is correct, flash is finding the right Red5 server, but something seems off beyond that.

    I installed the app by dropping the latest JabberCamApp (unmodified) from the Flashbuilder project, into the WebApps directory. When I did this, I could see the application show up in the red5 admin panel as an application.

    Anyone have any suggestions? you can reach this at ClickaCam.com and see the frontend error if that's of use. Thanks,

    Graham Street



  • It is a Red5 issue, you cannot connect to the RTMP. Try turning off the firewall.



  • I am having the exact same issue. Did you manage to fix it, if yes how?

    I can access the red5 admin panel, however I noticed the "JabberCamApp" does show in the list but the name is empty. Like this:

    Firewall is disabled. Any help is highly appreciated, trying to fix this for hours now.

    Thanks



  • Read this post with attention to the details at the four titler under CONNECTING TO MySQL section: http://www.videosoftware.pro/forum/THREAD-Install-Red5-on-cPanel-WHM-CentOS-server

    Also make sure, you have the database set up and database tables installed (your_domain/jabbercam/admin.php?task=test)
    The same settings should be present in the java application in the /webapps directory: http://www.videosoftware.pro/forum/THREAD-Installing-JabberCam-RVC-5 (ENABLING Red5 IN CASE YOU HAVE YOUR OWN RED5 SERVER)



  • @'JabberCam':

    Read this post with attention to the details at the four titler under CONNECTING TO MySQL section: http://www.videosoftware.pro/forum/THREAD-Install-Red5-on-cPanel-WHM-CentOS-server

    Also make sure, you have the database set up and database tables installed (your_domain/jabbercam/admin.php?task=test)
    The same settings should be present in the java application in the /webapps directory: http://www.videosoftware.pro/forum/THREAD-Installing-JabberCam-RVC-5 (ENABLING Red5 IN CASE YOU HAVE YOUR OWN RED5 SERVER)

    Thank you for your reply, but I've read it all, trust me. I've been trying everything possible for hours now even doing everything from scratch 2 times just to make sure I didn't miss something.

    I've copied the JAR files to red5/lib (tomcat-dbcp.jar, mysql-connector-java-5.1.12-bin.jar and commons-dbcp-1.4.jar) and made sure they aren't already located within the app/WEB-INF/lib folders.

    Connection to mySQL works perfect. Already enabled Red5 of course in the config file.

    I'm not a complete noob at this and it looks like what I posted previously in this topic is wrong. The JabberCamApp application doesn't get recognized AT ALL by red5. All other red5 demo applications work flawlessy, but JabberCamApp just doesn't get recognized. It never gets listed in the red5 admin panel.

    Checked permissions and everything. Do you have any idea what could cause the app not being recognized by Red5?

    Using Red5 0.8 and just purchased Jab today, so using the latest version.

    Thank you.


    Ah and /jabbercam/admin.php?task=test gives:

    database tables OK
    Testing: ..
    Red5 ERROR
    Stratus OFF
    System folder OK



  • The reason why I was suggesting a MySQL connection-related problem is because we encountered similar issues only when there was something wrong with connecting the java application to the MySQL database. Did you check /etc/my.cnf and restart mysqld?

    If the jar files are there and skip-networking is removed from my.cnf, the JabberCam App should show up. There can be further issues with connecting to RTMP (firewall etc.) but if the above are correct it should work. The community did it hundreds of times last year.



  • @'JabberCam':

    The reason why I was suggesting a MySQL connection-related problem is because we encountered similar issues only when there was something wrong with connecting the java application to the MySQL database. Did you check /etc/my.cnf and restart mysqld?

    If the jar files are there and skip-networking is removed from my.cnf, the JabberCam App should show up. There can be further issues with connecting to RTMP (firewall etc.) but if the above are correct it should work. The community did it hundreds of times last year.

    Found the issue. Looks like I missed a step after all:

    edit /ChatrouletteApp/WEB-INF/red5-web.properties and fill in your database details
    

    Can we pretend I never posted here? :s

    Thanks a lot :D



  • the red5-web.properties located under /JabberCamApp/WEB-INF should look something like this (cPanel):

    webapp.contextPath=/JabberCamApp
    webapp.virtualHosts=*, localhost, localhost:8088, 127.0.0.1:8088
    db.username=username_dbuser
    db.host=localhost
    db.database=username_database
    db.password=dbpassword
    filter.timeout=15
    ban.timeout=90
    ban.numReportsToBan=9

    *sometimes people miss the username_databasename format on cPanel servers or leave the "host" at db.host instead of "localhost"; on Godaddy, the MySQL host-name is the most common mistake


    @'flora':

    @'JabberCam':

    The reason why I was suggesting a MySQL connection-related problem is because we encountered similar issues only when there was something wrong with connecting the java application to the MySQL database. Did you check /etc/my.cnf and restart mysqld?

    If the jar files are there and skip-networking is removed from my.cnf, the JabberCam App should show up. There can be further issues with connecting to RTMP (firewall etc.) but if the above are correct it should work. The community did it hundreds of times last year.

    Found the issue. Looks like I missed a step after all:

    edit /ChatrouletteApp/WEB-INF/red5-web.properties and fill in your database details
    

    Can we pretend I never posted here? :s

    Thanks a lot :D

    Meanwhile I posted the same thing … it is a common mistake ;)



  • suposably the same issue however
    i did movet he jars
    i did chagne the properties
    the post tester finds chat roulete
    but doest find the jabbercamapp
    at all ports
    what am i missing?
    i use red5 0.8
    on centos
    with rvc 5.6

    help?



  • Make sure you don't have the java applications in both places, red5/lib and JabberCamApp/WEB-INF/lib folders.
    Try turning off CSF firewall from WHM
    edit /etc/my.cfg as described



  • ok turned off firewall
    my.cfg:
    [mysqld]
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    user=mysql

    Default to using old password format for compatibility with mysql 3.x

    clients (those using the mysqlclient10 compatibility package).

    old_passwords=1

    Disabling symbolic-links is recommended to prevent assorted security risks;

    to do so, uncomment this line:

    symbolic-links=0

    [mysqld_safe]
    log-error=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid


    also nothing in /WEB-INF/LIB
    it is empty


    after a week of trilling forums for answears i am ready to give up
    if someone can install it for me
    name your price….



  • also could it be that my centos doesnt have the xsi libraries installed
    so if anyone could pinpoint the libraries i need to install to make the red5-web.xml work?



  • ok so it seems my problem goes even deeper than that
    probably because i got jaja 6u26 installed
    so the jabbercamapp.class sends me an error and dies
    any thoughts?



  • most of the time connecting to MySQL fails, this is where I would look.
    make sure you have tomcat (RVC runs inside tomcat)
    if you see the app on the admin, try figuring out why the RTMP link is blocked
    try a fresh install from start (just delete Red5 and re-start the process, step by step with attention to every single detail): http://www.videosoftware.pro/forum/THREAD-Install-Red5-on-cPanel-WHM-CentOS-server



  • well there is a problem with that too i cant install admin
    tried all the way
    auto manual
    moving jars
    practicly everything
    i guess it is somewear in mysql connections too
    perhaps java doest have permissions or i am missing pachages



  • ok so it seems that not all vps servers have tomcat by default
    please note that you might have to install tomcat6 at the instalation manual
    thank you for all the help


Log in to reply
 

© 2108 H7 | Powered by NodeBB

Looks like your connection to H7 was lost, please wait while we try to reconnect.