乗客1:5.1.5-1〜jessie1からこの新しいバージョンに更新した後。パッセンジャー5.1.11更新ノードsocket.ioエラー
Failed to load https://aaa.bbb.com/socket.io/?hash=1735f35ec0ad4e4d91618861288467ed&EIO=3&transport=polling&t=LzIr1i8 : No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' https://aaa.bbb.com ' is therefore not allowed access. The response had HTTP status code 404.
nginxのエラーログ::私たちは、ブラウザで次のエラーを得た
2017/10/25 11:42:24 [error] 638#638: *20 "/export/home/aaa.bbb.com/public/socket.io/index.html" is not found (2: No such file or directory), client: 111.111.111.111, server: aaa.bbb.com, request: "GET /socket.io/?hash=1735f35ec0ad4e4d91618861288467ed&EIO=3&transport=polling&t=LzIwLNC HTTP/1.1", host: "aaa.bbb.com", referrer: " https://ccc.bbb.com/mmmm/zzzz/ "
あなたは私たちがsocket.io(1.5.1)を使用している見ることができるように。私たちのsocket.ioサーバーにはnode.js(v6.11.5)とそれに乗客(5.1.11)がインストールされています。
私たちは以前に起源を設定していたことはありませんでした。 Webサーバーとソケットサーバーは同じドメイン上にあり、異なるサブドメインのみです。
おそらく、nginxログのエラーが本当の問題です。
編集
私はバージョン2.0.4に、クライアントとサーバ側でsocket.ioを更新しました。しかし、私は起動時に旅客がクラッシュした同じエラー
編集2
にまだ実行されます。おそらく許可の問題が原因です。
2017/10/25 16:15:59 [info] 315#315: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:84 [ N 2017-10-25 16:15:59.9486 612/T1 age/Wat/WatchdogMain.cpp:1267 ]: Starting Passenger watchdog... [ E 2017-10-25 16:15:59.9993 617/T1 age/Sha/Fun/Initialization.cpp:569 ]: * ERROR: Cannot open /var/log/nginx/error.log for writing: Permission denied (errno=13) in 'Passenger::VariantMap Passenger::Agent::Fundamentals::initializeAgent(int, char*, const char*, Passenger::Agent::Fundamentals::OptionParserFunc, Passenger::Agent::Fundamentals::PreinitializationFunc, int)' (Initialization.cpp:538)
2017/10/25 16:15:59 [alert] 609#609: Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Unable to start the Passenger core: it seems to have crashed during startup for an unknown reason, with exit code 1 (-1: Unknown error)
してください:私は明示的にnobodyとして実行するためのpassenger_userとpassenger_groupを設定し、更新した後noboby
設定やその他のログ、特にPassengerの起動時のログ –