ruby 项目启动 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
keithsun80
V2EX    问与答

ruby 项目启动

  •  
  •   keithsun80 2015-09-21 09:07:48 +08:00 3120 次点击
    这是一个创建于 3672 天前的主题,其中的信息可能已经有所发展或是发生改变。

    之前公司的一个项目,目前开发人员基本都撤离了, 现在服务挂掉了, 我根据之前负责任给我的启动命令,起不来呢, 命令如下

    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 )
    from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:77:in
    reload'
    from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:68:in initialize'
    from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in
    new'
    from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in initialize'
    from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/bin/unicorn_rails:209:in
    new'
    from /mnt/app/das_production/shared/bundle/ruby/2.2.0/gems/unicorn-4.8.3/bin/unicorn_rails:209:in <top (required )>'
    from /mnt/app/das_production/shared/bundle/ruby/2.2.0/bin/unicorn_rails:23:in
    load'
    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

    这是怎么回事呢。。。

    5 条回复    2015-09-21 10:21:41 +08:00
    lululau
        1
    lululau  
       2015-09-21 09:11:25 +08:00 via iPad
    如果代码没有改动过的话,那估计是 ruby 版本问题,换成 1.8.7 试试
    keithsun80
        2
    keithsun80  
    OP
       2015-09-21 09:23:33 +08:00
    @lululau 嗯, 之前负责人帮忙起过一起, 他说,就是用这个命令, 我用就不行,是我的姿势不对?
    lichao
        3
    lichao  
       2015-09-21 09:26:57 +08:00
    @keithsun80 如果这个项目还想继续下去,赶紧找个懂 ruby 的负责维护吧,专职、兼职都可以。
    某种程度上来说 ruby 项目不像 php 那么好维护,这样说会不会被 php 粉丝开喷?
    keithsun80
        4
    keithsun80  
    OP
       2015-09-21 09:28:43 +08:00
    @lichao 不想进行下去了呢, 只是这个项目还有它最后的使命没有完成, 还好我是 Python
    serco
        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
    试试
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2359 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 15:42 PVG 23:42 LAX 08:42 JFK 11:42
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86