Comments (11)
Yes they should work. You might have some error with passenger configuration. Can you look for error messages from nginx logs?
from decidim-install.
from decidim-install.
Looks like you don't have properly configured passenger/nginx.
Can you post show your configuration files?
from decidim-install.
These are our conf files. mod-http-passenger.conf was modified according to the installation guide but no changes were made to nginx.conf or passenger-config.
mod-http-passenger.conf :
### Begin automatically installed Phusion Passenger config snippet ###
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /home/decidim/.rbenv/shims/ruby;
### End automatically installed Phusion Passenger config snippet ###
nginx.conf :
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}
passenger-config
#!/usr/bin/passenger_free_ruby
# Phusion Passenger - https://www.phusionpassenger.com/
# Copyright (c) 2010-2017 Phusion Holding B.V.
#
# "Passenger", "Phusion Passenger" and "Union Station" are registered
# trademarks of Phusion Holding B.V.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
ENV["PASSENGER_LOCATION_CONFIGURATION_FILE"] = "/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini"
begin
require 'rubygems'
rescue LoadError
end
require '/usr/lib/ruby/vendor_ruby/phusion_passenger'
PhusionPassenger.locate_directories
PhusionPassenger.require_passenger_lib 'config/main'
PhusionPassenger::Config.run!(ARGV)
from decidim-install.
the ones in /etc/nginx/conf.d and /etc/nginx/sites-enabled are important
from decidim-install.
from decidim-install.
Then you've missed some step.
These files should exist:
/etc/nginx/conf.d/mod-http-passenger.conf
/etc/nginx/sites-enabled/decidim.conf
from decidim-install.
Sorry, my bad.
/etc/nginx/conf.d/mod-http-passenger.conf is the one I posted above:
### Begin automatically installed Phusion Passenger config snippet ###
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /home/decidim/.rbenv/shims/ruby;
### End automatically installed Phusion Passenger config snippet ###
and the file /etc/nginx/sites-enabled/decidim.conf contains:
server {
listen 80;
listen [::]:80 ipv6only=on;
server_name ourdomain.com;
client_max_body_size 32M;
passenger_enabled on;
passenger_ruby /home/decidim/.rbenv/shims/ruby;
rails_env production;
root /home/decidim/decidim-app/public;
}
Both were part of the installation guide
from decidim-install.
Turns out the paths were wrong because we were using the default ubuntu user instead of the user decidim described in the installation guide.
Spot the linux newbie :|
Thanks for taking the time to take a look
from decidim-install.
You're wellcome. Glad you solve it!
from decidim-install.
Hello
I've exactly the same problem, what do you mean zedthehead by "we were using the default ubuntu user instead of the user decidim described in the installation guide" ?
What have you done exactly to manage this point ?
Thanx.
from decidim-install.
Related Issues (20)
- 403 Forbidden nginx/1.18.0 (Ubuntu) HOT 1
- nokogiri requires Ruby version >= 3.0, Install aborted
- Can't send email (gmail) HOT 8
- Cannot install on fresh Ubuntu 18.04 HOT 3
- Fresh install on Ubuntu 20.04 not working
- access the Dashboard from localhost
- Sending email with sendgrid
- Something went wrong installing decidim gem
- which ruby? HOT 1
- Uglifier::Error: generators cannot be async HOT 1
- adding gem does not insert tables into postgres
- Can't install on an AWS EC2 instance
- Installation completed, nginx default page showing HOT 1
- Site not found (404) HOT 3
- Can't see Dashboard
- Compilation failed when I create production environment
- webpacker error during fresh install HOT 1
- installer on Ubuntu 20.4 successful but stuck @ "bundle install" to setup basic config HOT 1
- Decidim on ruby-2.7.5:alpine-3.15
- Installation script not working with 3+ fatal errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decidim-install.