keithsun80
V2EX  ›  问与答

ruby 项目启动

  •  
  •   keithsun80 · Sep 21, 2015 · 3603 views
  •   You need to sign in to view this topic
    This topic created in 3961 days ago, the information mentioned may be changed or developed.

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

    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 replies    2015-09-21 10:21:41 +08:00
    lululau
        1
    lululau  
       Sep 21, 2015 via iPad
    如果代码没有改动过的话,那估计是 ruby 版本问题,换成 1.8.7 试试
    keithsun80
        2
    keithsun80  
    OP
       Sep 21, 2015
    @lululau 嗯, 之前负责人帮忙起过一起, 他说,就是用这个命令, 我用就不行,是我的姿势不对?
    lichao
        3
    lichao  
       Sep 21, 2015
    @keithsun80 如果这个项目还想继续下去,赶紧找个懂 ruby 的负责维护吧,专职、兼职都可以。
    某种程度上来说 ruby 项目不像 php 那么好维护,这样说会不会被 php 粉丝开喷?
    keithsun80
        4
    keithsun80  
    OP
       Sep 21, 2015
    @lichao 不想进行下去了呢, 只是这个项目还有它最后的使命没有完成, 还好我是 Python
    serco
        5
    serco  
       Sep 21, 2015
    @keithsun80
    在 shell 的环境里加上
    export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1021 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:03 · PVG 07:03 · LAX 16:03 · JFK 19:03
    ♥ Do have faith in what you're doing.