GithubHelp home page GithubHelp logo

Installation failing about decidim-install HOT 11 OPEN

platoniq avatar platoniq commented on June 2, 2024
Installation failing

from decidim-install.

Comments (11)

microstudi avatar microstudi commented on June 2, 2024

Yes they should work. You might have some error with passenger configuration. Can you look for error messages from nginx logs?

from decidim-install.

zedthehead avatar zedthehead commented on June 2, 2024

from decidim-install.

microstudi avatar microstudi commented on June 2, 2024

Looks like you don't have properly configured passenger/nginx.
Can you post show your configuration files?

from decidim-install.

zedthehead avatar zedthehead commented on June 2, 2024

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.

microstudi avatar microstudi commented on June 2, 2024

the ones in /etc/nginx/conf.d and /etc/nginx/sites-enabled are important

from decidim-install.

zedthehead avatar zedthehead commented on June 2, 2024

from decidim-install.

microstudi avatar microstudi commented on June 2, 2024

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.

zedthehead avatar zedthehead commented on June 2, 2024

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.

zedthehead avatar zedthehead commented on June 2, 2024

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.

microstudi avatar microstudi commented on June 2, 2024

You're wellcome. Glad you solve it!

from decidim-install.

legarg avatar legarg commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.