Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorjamesgc
    • CommentTimeNov 2nd 2007
     permalink
    When I try to start up the push server, i get this error. Am I missing out on any plugins or files? Please help.
    ./script/push_server
    /usr/local/lib/ruby/1.8/x86_64-linux/thread.so: /usr/local/lib/ruby/1.8/x86_64-linux/thread.so: undefined symbol: rb_eThreadError - /usr/local/lib/ruby/1.8/x86_64-linux/thread.so (LoadError)
    from /usr/local/lib/ruby/1.8/thread.rb:5
    from ./script/push_server:6:in `require'
    from ./script/push_server:6

    This is the error I get when I try to start up the push server.
    • CommentAuthordarkpollo
    • CommentTimeDec 2nd 2007 edited
     permalink
    I have this error:

    12/02/07 14:51:06 INFO Starting up on 0.0.0.0:443...
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:493:in `start_tcp_server': no acceptor (RuntimeError)
    from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:493:in `start_server'
    from ./script/push_server:250
    from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:1030:in `event_callback'
    from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:223:in `run'
    from ./script/push_server:249

    I have reinstalled the eventmachine gem twice... not sure where is the problem.
    Thanks
    • CommentAuthoradmin
    • CommentTimeDec 2nd 2007
     permalink
    Make sure you're doing it as root, as you're using a port below 1000.

    -- Erlend
    • CommentAuthordarkpollo
    • CommentTimeDec 2nd 2007 edited
     permalink
    I found this on a forum, but i dont understand well what i must do.
    I am trying to reinstall the mongrel gem.


    OK I got it.

    A long time ago, I had read this forum post about gem update not working/troubles installing eventmachine: http://forum.textdrive.com/viewtopic.ph … 19#p136619

    I had remembered from configuring my M that I needed to follow those steps, (but stupidly could not remember why). I went back and commented out the 'CXX' related lines in mkmf.rb and rbconfig.rb in /opt/csw/lib/ruby/1.8/i386-solaris2.8, gem uninstalled mongrel and mongrel_cluster, re-installed it with the lines still commented out and this time it worked fine.

    I'm not an expert, but I know those values had something to do with the way it was compiled/installed that worked for eventmachine, but incorrectly built/compiled/whatever the mongrel/mongrel_cluster gems.

    Thanks for all your help though Linda, you are a saint and a hero, as always...
    • CommentAuthordarkpollo
    • CommentTimeDec 2nd 2007
     permalink
    Posted By: adminMake sure you're doing it as root, as you're using a port below 1000.

    -- Erlend


    When i try to exec from bash i get this error:
    root@computer:~# ./script/push_server
    bash: ./script/push_server: No such file or directory

    If i started it from the cit folder i get the above error. (first post).
    Also i am using root.
    :S
    • CommentAuthoradmin
    • CommentTimeDec 2nd 2007
     permalink
    Make sure the path to ruby is correct in the first line of ./script/push_server

    -- Erlend
    • CommentAuthoradmin
    • CommentTimeDec 2nd 2007
     permalink
    Posted By: darkpolloI found this on a forum, but i dont understand well what i must do.
    I am trying to reinstall the mongrel gem.


    Kinda hard for me to support software I haven't written, especially when you're not telling me any errors or problems.

    -- Erlend
    • CommentAuthorjamesgc
    • CommentTimeDec 3rd 2007
     permalink
    Now I get this error, i corrected the path to ruby and also tried it as a root user.

    [root@server clockit]# ./script/push_server
    12/03/07 10:04:07 INFO Starting up on 0.0.0.0:443...
    /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:493:in `start_tcp_server': no acceptor (RuntimeError)
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:493:in `start_server'
    from ./script/push_server:230
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:1030:in `call'
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:1030:in `event_callback'
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:223:in `run_machine'
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:223:in `run'
    from ./script/push_server:229
    • CommentAuthoradmin
    • CommentTimeDec 3rd 2007
     permalink
    Sure you're not running something else listening on port 443 (ssl) like Apache with https?

    -- Erlend
    • CommentAuthordarkpollo
    • CommentTimeDec 3rd 2007
     permalink
    Posted By: admin
    Posted By: darkpolloI found this on a forum, but i dont understand well what i must do.
    I am trying to reinstall the mongrel gem.


    Kinda hard for me to support software I haven't written, especially when you're not telling me any errors or problems.

    -- Erlend


    Sorry, i am telling you every error i get. But i am newby on this.
    I dont ask you to solve it, just use the forum cause maybe another could have the same problem in the future. Or maybe other user could help me too.
    Thanks
    • CommentAuthordarkpollo
    • CommentTimeDec 3rd 2007
     permalink
    Posted By: adminSure you're not running something else listening on port 443 (ssl) like Apache with https?

    -- Erlend

    That sounds good. I will try tonight at home.
    Can i change the port to other number without problems? I mean, can i use the port 500 or i need to use 443 and disable the ssl in Apache?
    • CommentAuthoradmin
    • CommentTimeDec 3rd 2007
     permalink
    You can use whatever port you want, as long as the browsers connecting to your server can get to it.

    -- Erlend
    • CommentAuthordarkpollo
    • CommentTimeDec 3rd 2007
     permalink
    Well. I have disabled on ports.conf in apache the line
    listen 443
    And now, when i started the push_server i have not errors. :D

    But... i come into the clockinit chat page, and it shows this message:
    Unable to connect to push server, make sure flash is enabled for this site and SSL traffic is allowed...
    You won't be able to see what others are saying.


    What could be the problem?
    Do you need to check the log?
    Thanks
    • CommentAuthoradmin
    • CommentTimeDec 3rd 2007
     permalink
    That means that the flash applet on your chat page is unable to connect to your push server. Make sure the config/juggernaut_config.yml is correct and updated with your domain all places. If the push_server is showing messages about clients connecting, you've probably got some error in the crossdomain configuration.

    -- Erlend
    • CommentAuthorjamesgc
    • CommentTimeDec 4th 2007 edited
     permalink
    I tried changing the port in juggernaut_config.yml to 543 and tried to start and this is the error i get

    [ruby@imirror clockit]$ ./script/push_server
    12/04/07 09:41:52 INFO Starting up on 0.0.0.0:543...
    /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:493:in `start_tcp_server': no acceptor (RuntimeError)
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:493:in `start_server'
    from ./script/push_server:230
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:1030:in `call'
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:1030:in `event_callback'
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:223:in `run_machine'
    from /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.9.0/lib/eventmachine.rb:223:in `run'
    from ./script/push_server:229

    Please help me resolve this error. I have been trying to get this piece to work for weeks and just not being able to
    • CommentAuthoradmin
    • CommentTimeDec 4th 2007
     permalink
    And you're running as root? Ports below 1000 require root privileges.

    -- Erlend
    • CommentAuthorjamesgc
    • CommentTimeDec 4th 2007
     permalink
    Cool i got it to start finally, but how come it still says Unable to connect to push server... :(
    Just this error is showing up when i click on the pages
    This is my juggernaut yml file
    #-------------------- Push Server Configuration ---------------------------#


    #This is the port that the push server will be on.
    PUSH_PORT: "543"


    #This is the host that the push server will be on.
    #Usually it would be 0.0.0.0
    PUSH_HOST: "0.0.0.0"


    #This should be the url as seen from the browser.
    #Flash's xmlsocket can only connect to addresses in the same domain
    #or subdomain. For example, if people access your app from www.test.com than this
    #should be "test". Omit the port number and the 'http://'.
    PUSH_HELPER_HOST: "clockit.islet.net"

    #This is a 'secret' send by the broadcaster to validate identity.
    PUSH_SECRET: "cit575a7sdAS"

    #This must be the host that your crossdomain policy is located at
    CROSSDOMAIN: "xmlsocket://clockit.islet.net:543"

    #Allow crossdomain requests from where?
    ALLOW_CROSSDOMAIN: "*.clockit.islet.net"
    • CommentAuthoradmin
    • CommentTimeDec 4th 2007
     permalink
    Unless you're accessing your install from mydomain.clockingit.islet.net try:
    ALLOW_CROSSDOMAIN: "clockit.islet.net"

    instead.

    -- Erlend
    • CommentAuthordarkpollo
    • CommentTimeDec 4th 2007
     permalink
    One question about the config file:
    #or subdomain. For example, if people access your app from www.test.com than this
    #should be "test". Omit the port number and the 'http://'.
    PUSH_HELPER_HOST: "clockit.islet.net"


    should be "test" or should be "www.test.com"?
    You have www.clockingit.com in your example.
    • CommentAuthoradmin
    • CommentTimeDec 4th 2007
     permalink
    It should be the host where the crossdomain.xml file is accessed from (it's in public/crossdomain.xml) so whatever domain points to the ClockingIT application will do.

    -- Erlend
    • CommentAuthorjamesgc
    • CommentTimeDec 5th 2007
     permalink
    Alas and finally I got it to work. Thanks a Ton Erlend !!!! Cool feature.
    • CommentAuthordarkpollo
    • CommentTimeDec 5th 2007
     permalink
    I have got errors about push server on the chat. But i have test it with two accounts and everything is working perfect.
    Also the errors on the overview page have gone.
    • CommentAuthoradmin
    • CommentTimeDec 5th 2007
     permalink
    All the chat page does is verify that you're actually connected to to the push server, and that the communication between the flash applet and the browser works.

    -- Erlend
    • CommentAuthordarkpollo
    • CommentTimeDec 5th 2007
     permalink
    But if the push_server was not working the chat will not work also, won´t it? ... and it works. :P
    • CommentAuthorjamesgc
    • CommentTimeDec 5th 2007
     permalink
    is there anyway hat we can clear the chat logs? I mean I see chats in the window that are 2 months old.
    Also is there a 1 to 1 chat or everyone logged into clockit gets to see the chat?
    • CommentAuthoradmin
    • CommentTimeDec 5th 2007
     permalink
    You're only supposed to see the chat from today, and everyone who has access to the chat room (either global, company or project) can see what's logged unless you delete the transcripts from the transcripts page.

    -- Erlend
    • CommentAuthorjamesgc
    • CommentTimeDec 5th 2007
     permalink
    Well I was seeing data that was sent almost a month before too. I did empty the content in the table 'shouts' and now the chat script shows nothing.
    I have only got the push server to work now, so I wonder if the chat script displayed would work as you have mentioned.
    Also you did mention about the transcripts page, where exactly is this page located at?
    • CommentAuthordarkpollo
    • CommentTimeDec 5th 2007
     permalink
    In the chat page, just in the left side of the "New room" button.
    • CommentAuthorjamesgc
    • CommentTimeDec 5th 2007 edited
     permalink
    i dont see a link like that. How do i attach a screenshot to this comment if I wanted you to see the screen that I get.
    • CommentAuthordarkpollo
    • CommentTimeDec 6th 2007
     permalink
    I started the push:server in a terminal window.
    When i close that terminal, the push:server stops working.

    Is there any way to start the push_server when the computer starts and keep running as deamon?

    Thanks
    • CommentAuthoradmin
    • CommentTimeDec 6th 2007
     permalink
    jamesgc, feel free to email me a screenshot at support@clockingit.com - if you want to show an image here it'll have to be hosted someplace else.

    darkpollo, you need to find a way to run it as a daemon on your OS of choice. I personally just pop them into a screen session, and push that to the background.

    -- Erlend
    • CommentAuthorjamesgc
    • CommentTimeDec 6th 2007
     permalink
    I have sent you an email with the screenshot of the clockit screen
    Thanks.
    • CommentAuthordarkpollo
    • CommentTimeDec 6th 2007
     permalink
    darkpollo, you need to find a way to run it as a daemon on your OS of choice. I personally just pop them into a screen session, and push that to the background.

    Ok, i am just starting with servers and linux, but im sure that google will help me. :)
    Look easy. :D