V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
keithsun80
V2EX  ›  问与答

ruby 项目启动

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

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

    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   ·   我们的愿景   ·   实用小工具   ·   888 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:03 · PVG 07:03 · LAX 16:03 · JFK 19:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.