之前公司的一个项目,目前开发人员基本都撤离了, 现在服务挂掉了, 我根据之前负责任给我的启动命令,起不来呢, 命令如下
bundle exec unicorn_rails -c /mnt/app/das_production/current/config/unicorn/production.rb -E production -D
异常如下
root@ubuntu002:/mnt/app/das_production/current# bundle exec unicorn_rails -c /mnt/app/das_production/current/config/unicorn/production.rb -E production -D
/mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:664:in parse_rackup_file': invalid byte sequence in US-ASCII (ArgumentError )
reload'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:77:in
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:68:in initialize'
new'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in initialize'
new'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/bin/unicorn_rails:209:in
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/bin/unicorn_rails:209:in <top (required )>'
load'
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/bin/unicorn_rails:23:in
from /mnt/app/das_production/shared/bundle/ruby/2.2.0/bin/unicorn_rails:23:in `<main>'
master failed to start, check stderr log for details
这是怎么回事呢。。。
1
lululau 2015-09-21 09:11:25 +08:00 via iPad
如果代码没有改动过的话,那估计是 ruby 版本问题,换成 1.8.7 试试
|
2
keithsun80 OP @lululau 嗯, 之前负责人帮忙起过一起, 他说,就是用这个命令, 我用就不行,是我的姿势不对?
|
3
lichao 2015-09-21 09:26:57 +08:00
@keithsun80 如果这个项目还想继续下去,赶紧找个懂 ruby 的负责维护吧,专职、兼职都可以。
某种程度上来说 ruby 项目不像 php 那么好维护,这样说会不会被 php 粉丝开喷? |
4
keithsun80 OP @lichao 不想进行下去了呢, 只是这个项目还有它最后的使命没有完成, 还好我是 Python
|
5
serco 2015-09-21 10:21:41 +08:00
@keithsun80
在 shell 的环境里加上 export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 试试 |