Y
Y
Yurka Blokhin2018-03-21 06:49:12
Nginx
Yurka Blokhin, 2018-03-21 06:49:12

How to get rid of passenger_native_support.so error in nginx?

After installing passenger according to the instructions on the centos 7 server in the Nginx error.log log on each reboot

[passenger_native_support.so] not found for current Ruby interpreter.
App 23699 stderr: [passenger_native_support.so] not found for current Ruby interpreter.
App 23699 stderr: This library provides various optimized routines that make
App 23699 stderr: Phusion Passenger faster. Please run 'sudo yum install passenger-devel-5.2.1'
App 23699 stderr: so that Phusion Passenger can compile one on the next run.
App 23699 stderr: [passenger_native_support.so] finding downloads for the current Ruby interpreter...
App 23699 stderr: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 23699 stderr: Could not download https://oss-binaries.phusionpassenger.com/binaries... The requested URL returned error: 404 Not Found
App 23699 stderr: Trying next mirror...
App 23699 stderr: Could not download https://s3.amazonaws.com/phusion-passenger/binarie... The requested URL returned error: 403 Forbidden
App 23699 stderr: [passenger_native_support.so] will not be used (can't compile or download)
App 23699 stderr: --> Passenger will still operate normally.

Nginx is run as user pocket
All nginx config

user pocket;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
client_max_body_size 32m;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
gzip on;
index index.html index.htm;
types_hash_max_size 2048;
gzip_http_version 1.1;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml;
gzip_buffers 16 8k;
gzip_disable "msie6";
passenger_root /usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /home/pocket/.rbenv/shims/ruby;
passenger_instance_registry_dir /var/run/passenger-instreg;
server {
listen 80;
server_name 192.168.56.105;
passenger_enabled on;
gzip on;
root /home/pocket/src/pocket/public;
}
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question