2017-08-06 10 views
0

NginxとUnicornを使用してSinatraアプリケーションをホストしています。サーバ上のオペレーティングシステム(Ubuntu 14.04.5 LTS)をアップグレードしたときにダウンしてしまいましたが、私はこれを除くすべてのバックアップを取り戻すことができました。これは唯一のRackベースのアプリケーションです。私はユニコーン(unicorn -c unicorn.rb -D)を起動しようとすると、私は次のエラーを取得:Unicorn + Sinatra + Nginx |

I, [2017-08-06T15:39:54.426004 #6505] INFO -- : unlinking existing socket=/tmp/unicorn.wheels-within-wheels.sock 
F, [2017-08-06T15:39:54.427777 #6505] FATAL -- : error adding listener addr=/tmp/unicorn.wheels-within-wheels.sock 
/home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/lib/unicorn/socket_helper.rb:113:in `unlink': Operation not permitted @ unlink_internal - /tmp/unicorn.wheels-within-wheels.sock (Errno::EPERM) 
    from /home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/lib/unicorn/socket_helper.rb:113:in `$ 
    from /home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/lib/unicorn/socket_helper.rb:107:in `$ 
    from /home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:231:in `li$ 
    from /home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:808:in `bl$ 
    from /home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:808:in `ea$ 
    from /home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:808:in `bi$ 
    from /home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:130:in `st$ 
    from /home/deployer/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/unicorn-5.2.0/bin/unicorn:126:in `<top (required)>' 
    from /home/deployer/.rbenv/versions/2.2.3/bin/unicorn:23:in `load' 
    from /home/deployer/.rbenv/versions/2.2.3/bin/unicorn:23:in `<main>' 

を誰もがこの問題を解決する方法についてのアイデアを持って?ありがとう。

答えて

1

私は以下の2つのステップを行った後、それは固定です:このサーバー障害answerで説明したように

  1. を、私は「デプロイヤ」から、「デプロイヤ」、アプリケーションの所有者のグループを変更「スタッフ」に。
  2. ソケットファイルの所有者をdeployer:staffsudo chown deployer:staff /tmp/unicorn.wheels-within-wheels.sock)に変更しました。

次に、宝石を更新するためにbundle updateを実行しました。最後に、Unicornが正常に実行され、アプリケーションが再び有効になりました。

+0

両方のステップが解決に必要かどうかを確認する必要があります。 –

0

次のリンクでは、MacOSXをEl Capitanにアップグレードする際に問題が発生しているとのことです。同じ経路をたどることができれば、問題を解決できるかもしれません。

ERROR: While executing gem ... (Errno::EPERM) Operation not permitted

+0

私は宝石をインストールしていませんでした。そして私がmacOS Sierraを実行している間に、明らかではない場合に備えて、私がUbuntu 14.04.5を実行しているサーバにsshしている間にエラーが発生しました。 –

関連する問題