unicorn

Cannot run Unicorn with Ruby 2.0

。_饼干妹妹 提交于 2020-01-02 05:40:43
问题 On my ubuntu machine, I can run unicorn on ruby 1.9.3, however, it does not seem to work with ruby 2.0. Any idea why? root@dev:/home/karan# rvm use 1.9 Using /usr/local/rvm/gems/ruby-1.9.3-p429 root@dev:/home/karan# unicorn -v unicorn v4.6.3 root@dev:/home/karan# rvm use 2.0 Using /usr/local/rvm/gems/ruby-2.0.0-p195 root@dev:/home/karan# unicorn -v /usr/local/rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file --

Unicorn with Ruby 2.4.1 causing weird crash

青春壹個敷衍的年華 提交于 2020-01-02 03:20:13
问题 I am upgrading from Ruby 2.3.1 to Ruby 2.4.1 and upon doing so Unicorn seems be incompatible with the new version. I get the errors below. I am using Unicorn 5.1.0 and have tried Unicorn 5.3.1 to no avail. Do I need to compile with a different lib instead of XCode Tools? I get the error immediately upon starting the server with foreman start and the Procfile: webpack: bin/webpack-dev-server gulp: gulp redis: ./scripts/start_redis_server.sh sidekiq: bundle exec sidekiq -C config/sidekiq.yml

Unicorn service upstart script throws “-su: bundle: command not found”

眉间皱痕 提交于 2020-01-01 14:36:09
问题 I recently created a VPS on DigitalOcean to host a rails app. I followed their guide to setup Unicorn with my application. https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04 A problem occurred when I ran sudo service unicorn_appxyz start . The error given was -su: bundle: command not found I traced the init.d script and pasted the evaluated server start up command in terminal and it works fine when executed under the user joe (the

Unicorn service upstart script throws “-su: bundle: command not found”

偶尔善良 提交于 2020-01-01 14:36:09
问题 I recently created a VPS on DigitalOcean to host a rails app. I followed their guide to setup Unicorn with my application. https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04 A problem occurred when I ran sudo service unicorn_appxyz start . The error given was -su: bundle: command not found I traced the init.d script and pasted the evaluated server start up command in terminal and it works fine when executed under the user joe (the

Unicorn/Nginx process missing, socket open

与世无争的帅哥 提交于 2020-01-01 05:35:09
问题 I am trying to deploy code using Capistrano, and it fails on deploy:start or deploy:stop because the Unicorn process is already killed. However if I try to cap deploy:start , I get a stderr claiming that Address already in use - /tmp/my_app.socket . How would this happen, and how might I get out of this mess? 回答1: Still not sure how this happens, but the following solution seems to work: lsof /tmp/my_app.socket - lists the pids kill -9 pid - (replace 'pid' with one of those listed) Then cap

Starting or restarting Unicorn with Capistrano 3.x

好久不见. 提交于 2019-12-31 09:03:47
问题 I'm trying to start or restart Unicorn when I do cap production deploy with Capistrano 3.0.1. I have some examples that I got working with Capistrano 2.x using something like: namespace :unicorn do desc "Start unicorn for this application" task :start do run "cd #{current_path} && bundle exec unicorn -c /etc/unicorn/myapp.conf.rb -D" end end But when I try and use run in the deploy.rb for Capistrano 3.x I get an undefined method error. Here are a couple of the things I tried: # within the

On Heroku, Cedar, with Unicorn: Getting ActiveRecord::StatementInvalid: PGError: SSL SYSCALL error: EOF detected

为君一笑 提交于 2019-12-29 06:14:43
问题 Heroku support says this has to do with their version of libssl on shared databases, but we've encountered it on a project that's on a dedicated database, too. Basically this error happens every so often (closer to just after a deploy) on every project we've moved to the new Cedar stack with Unicorn configured to 3 workers: Error Message: ActiveRecord::StatementInvalid: PGError: SSL SYSCALL error: EOF detected : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull

爬虫工程师的unidbg入门教程

陌路散爱 提交于 2019-12-27 23:45:19
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 现在很多的app使用了so加密,以后会越来越多。爬虫工程师可能会直接逆向app,看java代码,完成java层的算法破解,但是如果遇到so该怎么办呢?可能你会直接破解so,但是真的会有很多爬虫工程师会去并且会破解so吗?有时候我们可以不用破解so,利用很多大佬写好的轮子即可完成so的调用。 说到调用,就有很多方法了,比如用frida的rpc、xposed+andserver、再者就是unicorn+web框架等等,今天要说的并不是这些,而是unidbg,这框架有什么好的地方呢?看看介绍。 介绍(来自逸飞) unidbg 是一个基于 unicorn 的逆向工具,可以黑盒调用安卓和 iOS 中的 so 文件。unidbg 是一个标准的 java 项目。 由于现在的大多数 app 把签名算法已经放到了 so 文件中,所以要想破解签名算法,必须能够破解 so 文件。但是我们知道,C++ 的逆向远比 Java 的逆向要难得多了,所以好多时候是没法破解的,那么这个时候还可以采用 hook 的方法,直接读取程序中算出来的签名,但是这样的话,需要实际运行这个应用,需要模拟器或者真机,效率又不是很高。 unidbg 就是一个很巧妙地解决方案,他不需要直接运行 app,也无需逆向 so 文件,而是通过在 app 中找到对应的

Unable to access rails application with Nginx + Unicorn

与世无争的帅哥 提交于 2019-12-25 07:58:56
问题 Yesterday I was able to see default page like you see here. But today I modified config for nginx to access my rails application which is running on unicorn and started getting 404. /etc/nginx/nginx.conf user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application

rufus-scheduler runs scheduler multiple times due to unicorn workers

我只是一个虾纸丫 提交于 2019-12-25 05:06:25
问题 I had setup scheduler in my rails3 projects's /configs/initializers/schedule.rb and it working fine, But it works 2 times and I think it is due to unicorn workers execute schedule at the same time, so it create in my database two records each time. I checked my logic and its ok and enter single record in my local machine. I checked following but not getting idea how to stop multiple unicorn workers to execute scheduler? https://github.com/jmettraux/rufus-scheduler/#advanced-lock-schemes Any