Giter Site home page Giter Site logo

Comments (13)

dblock avatar dblock commented on August 17, 2024

I am not sure that would fix the problem, but rake assets:precompile shouldn't be starting your bot AFAIK. Try running that locally, do you get the same error by any chance?

from slack-ruby-bot.

PenguinGabe avatar PenguinGabe commented on August 17, 2024

hi i'm facing the same problem - any updates on the fix?

from slack-ruby-bot.

Waffleboy avatar Waffleboy commented on August 17, 2024

Same problem.

from slack-ruby-bot.

dblock avatar dblock commented on August 17, 2024

Looking at this closer the log level is too verbose and is trying to dump a bunch of information on the console and fails for binary data. Reduce it?

SlackRubyBot::Client.logger.level = Logger::WARN

It should spit a lot less than this. Can @PenguinGabe / @Waffleboy give it a try?

from slack-ruby-bot.

chao-xian avatar chao-xian commented on August 17, 2024

I was seeing this same problem and switched from celluloid-io to faye-websocket and now it works!

from slack-ruby-bot.

chao-xian avatar chao-xian commented on August 17, 2024

Ah sorry I didn't spot that OP referenced faye so is probably using faye in the first place. I was seeing the same errors though with celluloid-io.

from slack-ruby-bot.

dblock avatar dblock commented on August 17, 2024

@chao-xian Silencing loggers will work.

from slack-ruby-bot.

chao-xian avatar chao-xian commented on August 17, 2024

Hi @dblock I stuck that config you suggested in production.rb but I was still seeing the error on heroku but that may well have been the wrong place to put it.

from slack-ruby-bot.

dblock avatar dblock commented on August 17, 2024

Did it change the logger level? Are you still seeing things like remote: D, [2016-03-24T16:40:26.160574 #793] DEBUG -- response:?

Can someone build me a quick repro that I can try?

from slack-ruby-bot.

chao-xian avatar chao-xian commented on August 17, 2024

@dblock Ah yes it did change the log level - stopped seeing response etc as you say (below). You can try https://github.com/chao-xian/marvelbot but with celluloid-io instead of faye-websocket (so previous commit).

My error mentioned celluloid whereas @adamrainsby's didn't which is what led me to switch. But I was seeing the same sort of failure around asset pre-compilation, also with the UTF-8 message (before lowering the log level).

remote:        Bundle completed (41.27s)
remote:        Cleaning up the bundler cache.
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        I, [2016-08-24T20:23:32.902317 #1247]  INFO -- : Celluloid 0.17.3 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
remote:        I, [2016-08-24T20:23:33.483577 #1247]  INFO -- : Successfully connected to https://thecomicbookclub.slack.com.
remote:        I, [2016-08-24T20:23:35.898397 #1247]  INFO -- : Writing /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/public/assets/application-12006f97c59529ad7801f7c7b1ea6d03b973c67d135af5f60c22b0ad1531190b.js
remote:        I, [2016-08-24T20:23:35.899408 #1247]  INFO -- : Writing /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/public/assets/application-12006f97c59529ad7801f7c7b1ea6d03b973c67d135af5f60c22b0ad1531190b.js.gz
remote:        I, [2016-08-24T20:23:35.910360 #1247]  INFO -- : Writing /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css
remote:        I, [2016-08-24T20:23:35.910828 #1247]  INFO -- : Writing /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css.gz
remote:        ERROR: task was terminated
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/task/fibered.rb:35:in `terminate'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:323:in `block in cleanup'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:321:in `each'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:321:in `cleanup'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:307:in `shutdown'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:169:in `run'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:131:in `block in start'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-essentials-0.20.5/lib/celluloid/internals/thread_handle.rb:14:in `block in initialize'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor/system.rb:78:in `block in get_thread'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/group/spawner.rb:50:in `call'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/group/spawner.rb:50:in `block in instantiate'
remote:        (celluloid):0:in `remote procedure call'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/call/sync.rb:45:in `value'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/proxy/sync.rb:22:in `method_missing'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-client-0.7.6/lib/slack/real_time/client.rb:51:in `start!'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:37:in `start!'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:29:in `block (2 levels) in run'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:69:in `handle_exceptions'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:27:in `block in run'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:26:in `loop'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:26:in `run'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/bot/tattletale.rb:8:in `block in <top (required)>'
remote:        /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/task/fibered.rb:35:in `terminate': task was terminated (Celluloid::TaskTerminated)
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:323:in `block in cleanup'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:321:in `each'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:321:in `cleanup'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:307:in `shutdown'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:169:in `run'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:131:in `block in start'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-essentials-0.20.5/lib/celluloid/internals/thread_handle.rb:14:in `block in initialize'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/actor/system.rb:78:in `block in get_thread'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/group/spawner.rb:50:in `call'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/group/spawner.rb:50:in `block in instantiate'
remote:        from (celluloid):0:in `remote procedure call'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/call/sync.rb:45:in `value'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/celluloid-0.17.3/lib/celluloid/proxy/sync.rb:22:in `method_missing'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-client-0.7.6/lib/slack/real_time/client.rb:51:in `start!'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:37:in `start!'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:29:in `block (2 levels) in run'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:69:in `handle_exceptions'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:27:in `block in run'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:26:in `loop'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/vendor/bundle/ruby/2.2.0/gems/slack-ruby-bot-0.8.2/lib/slack-ruby-bot/server.rb:26:in `run'
remote:        from /tmp/build_9281f46a7d70a99c3bfb3ef7000e1044/bot/tattletale.rb:8:in `block in <top (required)>'
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !   Push rejected to marvelbot.
remote:
To https://git.heroku.com/marvelbot.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/marvelbot.git'

from slack-ruby-bot.

dblock avatar dblock commented on August 17, 2024

Ok, for rails config/initializers is just not the right place to put bot startup code. Move it to config.ru like I did in slack-ruby/slack-bot-on-rails#1.

from slack-ruby-bot.

dblock avatar dblock commented on August 17, 2024

@chao-xian Do you want to contribute a Heroku button install to https://github.com/slack-ruby/slack-bot-on-rails? This way we can make sure the generic demo project works first and see if it works for your own?

from slack-ruby-bot.

dblock avatar dblock commented on August 17, 2024

This is resolved, closing.

from slack-ruby-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.