GithubHelp home page GithubHelp logo

platoniq / decidim-install Goto Github PK

View Code? Open in Web Editor NEW
53.0 12.0 35.0 3.88 MB

A step-by-step guide to install Decidim on a production site

Home Page: https://platoniq.github.io/decidim-install/

License: GNU Affero General Public License v3.0

Ruby 0.02% HTML 43.86% CSS 48.75% JavaScript 1.18% Shell 5.47% SCSS 0.72%
decidim decidim-docs hacktoberfest

decidim-install's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

decidim-install's Issues

Can't continue install on "decidim decidim-app" step

Hi, I'm on a clean Ubuntu 18.04 server installation.
I'v gone until step "decidim decidim-app" without errors after changing the sources.list from here https://stackoverflow.com/questions/51778272/unable-to-install-phusion-passenger-on-ubuntu-server-18-04
Maybe there's a problem with the bundler?
Thank's for all!

Here's the output of my console:

decidim decidim-app
create
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
create Gemfile
run git init from "."
Initialized empty Git repository in /home/decidim/decidim-app/.git/
create package.json
create app
create app/assets/config/manifest.js
create app/assets/javascripts/application.js
create app/assets/javascripts/cable.js
create app/assets/stylesheets/application.css
create app/channels/application_cable/channel.rb
create app/channels/application_cable/connection.rb
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/jobs/application_job.rb
create app/mailers/application_mailer.rb
create app/models/application_record.rb
create app/views/layouts/application.html.erb
create app/views/layouts/mailer.html.erb
create app/views/layouts/mailer.text.erb
create app/assets/images/.keep
create app/assets/javascripts/channels
create app/assets/javascripts/channels/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create bin/update
create bin/yarn
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/cable.yml
create config/puma.rb
create config/spring.rb
create config/storage.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/application_controller_renderer.rb
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/content_security_policy.rb
create config/initializers/cookies_serializer.rb
create config/initializers/cors.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_framework_defaults_5_2.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/master.key
append .gitignore
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/apple-touch-icon-precomposed.png
create public/apple-touch-icon.png
create public/favicon.ico
create public/robots.txt
create tmp
create tmp/.keep
create tmp/cache
create tmp/cache/assets
create vendor
create vendor/.keep
create test/fixtures
create test/fixtures/.keep
create test/fixtures/files
create test/fixtures/files/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create test/system
create test/system/.keep
create test/application_system_test_case.rb
create storage
create storage/.keep
create tmp/storage
create tmp/storage/.keep
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_5_2.rb
force config/database.yml
create app/controllers/decidim_controller.rb
create Dockerfile
create docker-compose.yml
create docker-compose-etherpad.yml
force config/cable.yml
force README.md
create LICENSE-AGPLv3.txt
force Gemfile
create Gemfile.lock
gsub Gemfile
gsub Gemfile
gsub Gemfile
gsub Gemfile
gsub Gemfile
run bundle install from "."
Traceback (most recent call last):
2: from /home/decidim/.rbenv/versions/2.5.1/bin/bundle:23:in <main>' 1: from /home/decidim/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in activate_bin_path'
/home/decidim/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) gsub config/boot.rb append .gitignore remove public/404.html remove public/500.html create config/initializers/decidim.rb route mount Decidim::Core::Engine => '/' append db/seeds.rb create config/initializers/carrierwave.rb create config/initializers/social_share_button.rb create config/secrets.yml remove app/views/layouts/application.html.erb remove app/views/layouts/mailer.text.erb append app/assets/javascripts/application.js gsub app/assets/javascripts/application.js insert app/assets/stylesheets/application.css create app/assets/stylesheets/decidim.scss insert config/environments/development.rb insert config/environments/test.rb gsub config/environments/production.rb insert config/environments/production.rb Traceback (most recent call last): 4: from bin/rails:3:in

'
3: from bin/rails:3:in require_relative' 2: from /home/decidim/decidim-app/config/boot.rb:3:in <top (required)>'
1: from /home/decidim/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require' /home/decidim/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require': cannot load such file -- bundler/setup (LoadError)

SMTP error

I got this error message from "grep ERROR ~/decidim-app/log/production.log -A3 -B3". I have checked many times that I have followed all instructions and also checked gmail connection with smtper.net. Any ideas?

E, [2020-03-17T22:49:33.950574 #31662] ERROR -- : [ActiveJob] [ActionMailer::DeliveryJob] [d38f1b9c-5f22-470b-b6a7-f3d1eb1db000] Error performing ActionMailer::DeliveryJob (Job ID: d38f1b9c-5f22-470b-b6a7-f3d1eb1db000) from Async(mailers) in 982.51ms: Net::SMTPAuthenticationError (535-5.7.8 Username and Password not accepted. Learn more at
):
/home/decidim/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:981:in check_auth_response' /home/decidim/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:736:in auth_plain'

Fresh install on Ubuntu 20.04 not working

Hi,
I have decided to delete all my installation on Ubuntu 18.04 an d try to make a fresh install on Ubuntu 20.04 with the installation guide.
I don't know why, the web decidim app not working, I always have this error : ERR_TOO_MANY_REDIRECTS
(https://nextcloud.soyaux.cloud)
Do you have any idea ?

Thank's in advance.
Anthony

Error with gem charlock_holmes on Install with ElasticBeanstalk

HI, when I do the step 5, eb deploy I get :

An error occurred while installing charlock_holmes (0.7.6), and Bundler cannot
continue.
Make sure that gem install charlock_holmes -v '0.7.6' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile:
decidim was resolved to 0.17.1, which depends on
decidim-accountability was resolved to 0.17.1, which depends on
decidim-comments was resolved to 0.17.1, which depends on
decidim-core was resolved to 0.17.1, which depends on
charlock_holmes.

Do you know how to solve this? I could not find, so I am trying another solution with heroku, but maybe I am not the only one to had this problem.

Installation failing

Hi,

Just out of curiosity, are the installation instructions here still valid?

We've followed the steps multiple times, word for word, and on three different clean server installations, but cannot connect at the end of the installation process. The installation seems to go OK (no error messages) but when we point a browser to the server we either get a 404 or the Welcome to nginx! page.

Is there further configuration that needs to be done during installation?

We're trying to do a single server installation on Ubuntu 18.04.

Thanks

Error installing Decidim, package is corrupt

I'm trying to install Decidim manually and have followed the steps here on Ubuntu 18.04 on VirtualBox

When I arrive at "gem install decidim" I get the following error:

ERROR:  Error installing decidim:
	invalid gem: package is corrupt, exception while verifying: undefined method `path' for "data.tar.gz":String (NoMethodError) in /home/adriana/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/cache/activesupport-5.2.4.3.gem

/Adriana

"rake secret" fails

"rake secret" fails on my setup.
~/decidim-app# rake secret
rake aborted!
LoadError: cannot load such file -- bundler/setup
/root/decidim-app/config/boot.rb:3:in <top (required)>' /root/decidim-app/config/application.rb:1:in require_relative'
/root/decidim-app/config/application.rb:1:in <top (required)>' /root/decidim-app/Rakefile:4:in require_relative'
/root/decidim-app/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Can be related with an error on a previous step on te "bundle install"?

~/decidim-app# bundle install
Traceback (most recent call last):
2: from /root/.rbenv/versions/2.5.1/bin/bundle:23:in <main>' 1: from /root/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in activate_bin_path'
/root/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

Thank's for all!

Can't send email (gmail)

Hi,

Sorry, I have another problem, but I really not understand the log message.
We can't send may with our Decidim. I did all the thing which are in the guide.

Maybe the log will speak to you :

----==_mimepart_5fd38c6e93ae3_529f2ac6bac620f45639--

E, [2020-12-11T16:12:46.675069 #21151] ERROR -- : [ActiveJob] [ActionMailer::DeliveryJob] [1031097e-4a06-44f4-878b-1c00a56e8c23] Error performing ActionMailer::DeliveryJob (Job ID: 1031097e-4a06-44f4-878b-1c00a56e8c23) from Async(mailers) in 353.57ms: EOFError (end of file reached):
/home/decidim/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:225:in rbuf_fill' /home/decidim/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:191:in readuntil'
/home/decidim/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:201:in `readline'

access the Dashboard from localhost

I don't have much experience with linux, nginx nor ruby on rails, but I still managed to solve few issues here and there and to install everything on Ubuntu 20.10 (great guide by the way, a really well done job)

I'm experimenting things on a virtual machine on my laptop, and after managing to set up everything without any error I can't access to the dashboard/sign in screen from my browser.

here's my decidim.conf file

server {
    listen 80;
    listen [::]:80 ipv6only=on;

    server_name localhost;
    client_max_body_size 32M;

    passenger_enabled on;
    passenger_ruby /home/silver/.rbenv/shims/ruby;

    rails_env    production;
    root         /home/silver/decidim-app/public;
}

"silver" is of course the username on my machine (passenger_ruby points to /home/silver/.rbenv/shims/ruby, and not to the guide's decidim/.rbenv/ )

After setting up localhost as my server_name nginx doesn't show me the classic "welcome to nginx" message anymore (still available from 127.0.0.1 and 127.0.1.1) when I try to access it, but a "can't reach the website" error (ERR_CONNECTION_REFUSED), so I can tell that something happens.

addresses like http://localhost, http://localhost/system and http://localhost/system/admins/sign_in (not HTTPS) cannot be reached, but resources like http://localhost/422.html or http://localhost/robots.txt, available in the home/silver/decidim-app/public/ folder can be accessed.

Here's a screen of the content of my public folder, I don't know if is needed... again, I still don't have experience with ruby on rails, so there are more chances I'm missing something of very silly rather than not having the needed files.

image

CRUD initiaves doesn't work

Hello,
I wanted to know what i did wrong on my decidim installation because when i want to create an initiative or an initiave type, it will redirect me to an 404 page.

I see on admin page the initiative button so i think that my gemfile is correct.

Here is my Gemfile


source "https://rubygems.org"

ruby RUBY_VERSION

gem "decidim", "0.21.0"
gem "decidim-assemblies", "~> 0.21"
gem 'decidim-pages', "~> 0.21"
gem "decidim-conferences", "~> 0.21"
gem "decidim-consultations", "~> 0.21"
gem "decidim-initiatives"

gem "decidim-dev", "0.21.0"

gem "bootsnap", "~> 1.3"

gem "puma", "~> 4.3.3"
gem "uglifier", "~> 4.1"

gem "faker", "~> 1.9"

gem "figaro"

group :development, :test do
  gem "byebug", "~> 11.0", platform: :mri

  gem "decidim-dev", "0.21.0"
end

group :development do
  gem "letter_opener_web", "~> 1.3"
  gem "listen", "~> 3.1"
  gem "spring", "~> 2.0"
  gem "spring-watcher-listen", "~> 2.0"
  gem "web-console", "~> 3.5"
end

group :production do
  gem "passenger"
  gem 'delayed_job_active_record'
  gem "daemons"
end

When i navigate on my decidim app folder, i see the page folder and the proposal folder on /public/assets/decidim folder but i don't see the initiatives folder.

Do you have any idee ? Thanks

Install Fail on Ubuntu 20.04

Hello,
I try to install decidim on server Ubintu 20.4 and when i want to connect to my webSite, i can only see the nginx Welcome.

I can't connect to my web site decidim

Can you help me . I try install for a three times

Thanks

Mailer throwing no error and sent by [email protected] but mail doesn't arrive

Hi there! I followed your guide for installing and configuring email which I appreciate very much (I am using apache instead of nginx, tho). I am having an issue with getting emails to be sent. These are the logs, no errors are thrown.

https://gist.github.com/ponentesincausa/355c7a8e7e35ca1ddb2cd495cdcce0e5

I did change the config.mailer_sender at config/initializers/decidim.rb to an actual email but keeps showing [email protected]

After configuring delayed_job_active_record as you showed, do we have to make any specific changes to the code? what else could be causing this?

Getting charged for Redis use

Hi,

I deployed decidim on AWS following this guide :
https://github.com/Platoniq/decidim-install/blob/master/decidim-aws.md

Everything is working (except Twitter login, but I didn't investigate), but there is the problem with the Redis use. I am being charged by Amazon, because the T2 Micro Cache node-hour (or partial hour) running Redis under monthly Free Tier is limited to 750 hours and I used 879 extra hours...

Do you know why? How can I avoid being charged please?

Thank you,
Best regards.

Cannot install initiatives and consultations modules

Hello, when i uncomment from the gem initiatives or consultation, i gives me a pdf error... i had to uncomment to get it work, but i dont know any other way to activate initiatives and consultations

i will thank any help because i need an instance with at least initiatives

andres

Install not working on Ubuntu 18.04

Hi,

Firstly, sorry for my poor english.
I'm trying for to install Decedim on a VPS with a clean install with Ubuntu 18.04. I try 4 times, never work for me :(
I read and do all the things which are on the guide (thanks a lot for this one!).
All is OK before install Passenger (I see the welcome nginx page if I'm going on http://mydomain).
Then I install passenger, and after that I can't see anything when I go on http://mydomain, only a blank page with error. If I go on http://mydomain that always redirect to https://mydomain and nothing happen.

My config :

/etc/nginx/conf.d/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;
#passenger_ruby /home/decidim/.rbenv/versions/2.6.3/bin/ruby;

End automatically installed Phusion Passenger config snippet

/etc/nginx/sites-enabled/decidim.conf

server {
listen 80;
listen [::]:80 ipv6only=on;

server_name nextcloud.soyaux.cloud;
client_max_body_size 32M;

passenger_enabled on;
passenger_ruby /home/decidim/.rbenv/shims/ruby;

rails_env    production;
root         /home/decidim/decidim-app/public;

}

Please, help me :)
Best regards,
Antho.

Sending email with sendgrid

This is a complement of platonic page https://github.com/Platoniq/decidim-install/blob/master/basic-config.md
First, I recommend to make a backup of the database in order to be able to proceed the creation of the organization as many times as you want in decidim.
Go to sendgrid.com and create a free account (or not depending on the expected volume of emails sent every day. The email address of this account is the one you will choose as administrator of the organization. It is not the system administrator that was defined during the installation.
Click on email API then integration guide, then smtp relay. You give a name to your api. For example decidim and click on create key. The key is created. Copy and paste it somewhere. You will need it several times. You can click on "verify" to check that sendgrid has received and sent mails. This verification did not work for me, so you can close this page.
Optionally, you can follow step by step what is said on the page https://sendgrid.com/docs/for-developers/sending-email/getting-started-smtp/ which tests the correct operation. Once finished, it tells you that everything is ok if everything went well.
Now we will insert the key given by sengrid into decidim.
Go here to follow platonoic's instructions: https://github.com/Platoniq/decidim-install/blob/master/basic-config.md
We skip the lines related to gmail and we type nano ~/decidim-app/config/application.yml
Here is the content of the lines that must be added to the file to use sendgrid. The password is the one created with sendgrid
SMTP_USERNAME: apikey
SMTP_PASSWORD: xxxxffjdmqljfjfmjmfjfjkj
SMTP_ADDRESS: smtp.sendgrid.netSMTP_
DOMAIN: sendgrid.net
If you don't use port 587 used by default by decidim, change the port near the end of the file /home/xxxxx/decidim-app/config/secrets.yml
You continue to follow the procedure indicated by platoniq, in particular you modify the file nano/home/pretdegilles/decidim-app/config/initializers/decidim.rb with the name of the application and sender's email.
You now get to create your organization in decidim by typing your URL.
You fill in everything until SMTP settings.
In the lines "sender" : leave email and label. Everything is defined in the file decidim.rb
In the username you put apikey
In the password you copy the password of sendgrid which was copied (not the base64 for those whofollowed the test with telnet)
In smtp host name you type smtp.sendgrid.net
In Port you type 587
That's it. You will receive an email to connect.
Hope that could help

Missing step: libicu-dev

gem install decidim
This fails to install decidim

cat /home/decidim/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0-static/charlock_holmes-0.7.6/mkmf.log

It appears that it needs libicu.
The fix is this: sudo apt install libicu-dev

Should this be mentioned in the installation instruction?

By the way, thank you for the great installation instructions, they were so helpful!

Impossible to add components to participatory processes

Hi,
I run the v0.18.0. freshly installed and localized for French (but the error occurs in both :en and :fr).

From existing participatory processes, whenever I try to add a new component (i.e. "debates", or "meetings", ...) I get the error message "There was a problem with our server. Please try again later.". The message is not printed out on the dashboard but in the main environnement.
I added extra gems to my Gemfile, such as "decidim-debates", "decidim-proposals", "decidim-meetings", ... (followed by the required bunch of commands to bundle, update and migrate), but it makes no difference.
Any idea? Could that come from an installation/dependency problem? I'm asking because I have already read somewhere that I wasn't meant to manually add all those gems in my Gemfile, yet it did fix my issue at the time (missing spaces on the dashboard, such as "initiatives", "conferences", and so on).

Cheers,
JP

PostgreSQL issues: 1) seemingly packaging issue, then 2) server connection problem

Hi,

I am trying to install on a fresh Ubuntu 18.04, with postgres 10.9.

  1. first (well, kind of) I was stuck at step sudo -u postgres psql -c "CREATE USER ..., with the following message:
    === begin output
    psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    === end output

Following suggestions found at https://askubuntu.com/questions/50621/cannot-connect-to-postgresql-on-port-5432 that there was a packaging problem with postgres and that the version number had to be explicitely specified at install time, I removed the different postgres-related packages already installed, then ran the following:
# sudo apt install -y postgresql-10 libpq-dev

It seemed to fix the problem, until the next one.

  1. now I am stuck at the following step:
    $ bin/rails db:create RAILS_ENV=production
    which gives me the following output:
    === begin output
    could not connect to server: Connection refused
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?
    could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
    Couldn't create 'decidim_prod' database. Please check your configuration.
    rails aborted!
    PG::ConnectionBad: could not connect to server: Connection refused
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?
    could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
    bin/rails:4:in `'
    Tasks: TOP => db:create
    (See full trace by running task with --trace)
    === end output

I have applied all kinds of suggestions found on various postgres forums but nothing seems to work.

Any suggestions?

Cheers,
JP

two passenger installs

Following directions to install on ubuntu 18.04 I'm getting this message when validating passenger install, which is not the expected:

passenger-config validate-install
What would you like to validate?
Use <space> to select.
If the menu doesn't display correctly, press '!'

 ‣ ⬢  Passenger itself
   ⬡  Apache

-------------------------------------------------------------------------

 * Checking whether this Passenger install is in PATH... ✓
 * Checking whether there are no other Passenger installations... (!)

   You are currently validating against Phusion Passenger 5.3.3, located in:
   
     /usr/bin/passenger
   
   Besides this Passenger installation, the following other
   Passenger installations have also been detected:
   
     /home/decidim/.rbenv/versions/2.5.1/bin/passenger
   
   Please uninstall these other Passenger installations to avoid
   confusion or conflicts.


Detected 0 error(s), 1 warning(s).

keep redirecting to /system/admins/sign_in

Hello

Thank you for your install guide.

I managed to install finish the install, I was able to create an organization and I received a invitation link :

/users/invitation/accept?invitation_token=H7VzMko7A22Z3_YJRPeU&invite_redirect=%2Fadmin%2F

But I try to open it, I'm always redirected to :

/system/admins/sign_in

Can you please help me ?

Further configurations when installed with docker

I used docker to install decidim (here http://decidelisboa.org/), I know, with docker is only experimental.

Btw, one should run:
nohup d/rails server --binding=0.0.0.0 >/dev/null 2>&1 &

to run the server as daemon on port 3000, it runs in background, still doesn't create nohup.out.
I'd say you should update instructions accordingly.

I have though the following questions:

  1. Can you kindly tell me how do I set the email settings with Gmail. I read the instructions but I cannot find the file application.yml
  2. How do I change RAILS_ENV from development to production?

delayed_job clarification

I'm working on an Ansible script to install Decidim. I would like to clarify the configuration of SMTP: you're mentioning we can setup delayed_jobs or use something else. If we use "something else", are some of those lines still required?

group :production do
gem "passenger"
gem 'delayed_job_active_record'
gem "daemons"
end

My understanding is that the passenger is required for nginx and the other two gems for "delayed job" config.

Also, I would appreciate if you can publish info on using "something else" but not on AWS.

Access Dashboard

Hi,

When i create a admin user, i can't acces to dashboard ?

How i can give access on dashboard to this user ?

Thanks

Server error when trying to upload file to S3

Hi,

I deployed decidim on AWS following this guide :
https://github.com/Platoniq/decidim-install/blob/master/decidim-aws.md

Everything seems to be working fine, except for the file upload (I'm trying to use s3). When I try to upload a logo in the appearance settings page, I have this error message:

There was a problem with our server
Please try again later.

I tried to create a new bucket on s3, with new policy and new user, but it's exactly the same behavior. I tried both EU (Ireland) and EU (Paris) (as my EC2 is on eu-west-3), but neither of these works.

Is there a way to know what is dysfunctioning, like a log or something please? Do you know what could be the cause of this issue?

Thanks,
Best regards

can't acces to system admin pages (redirection loop)

Hello Platoniq!
We have read your guide and other docs to install Decidim in our server (Debian 8, Apache, PostgreSQL) and we have a "redirection loop" in the system admin page. So we don't have access to the dashboard and we cannot create an organization.
Could you help us to find a solution?

This is the error in production.log. Thanks in advance!

I, [2020-07-23T13:41:31.316624 #21599] INFO -- : [10915ed8-4694-43bb-818a-8b6614ba9c42] Processing by Decidim::ErrorsController#internal_server_error as /
I, [2020-07-23T13:41:31.317024 #21599] INFO -- : [10915ed8-4694-43bb-818a-8b6614ba9c42] Redirected to http://participa.ecologistasenaccion.org/system/
I, [2020-07-23T13:41:31.317076 #21599] INFO -- : [10915ed8-4694-43bb-818a-8b6614ba9c42] Filter chain halted as :verify_organization rendered or redirected
I, [2020-07-23T13:41:31.317224 #21599] INFO -- : [10915ed8-4694-43bb-818a-8b6614ba9c42] Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
I, [2020-07-23T13:41:31.357115 #21599] INFO -- : [e34b59c4-06be-49df-9fc4-b14cceeefbca] Started GET "/system/" for 34.254.186.153 at 2020-07-23 13:41:31 +0200
D, [2020-07-23T13:41:31.358199 #21599] DEBUG -- : [e34b59c4-06be-49df-9fc4-b14cceeefbca] �[1m�[36mDecidim::Organization Load (0.3ms)�[0m �[1m�[34mSELECT "decidim_organizations".* FROM "decidim_organizations" WHERE "decidim_organizations"."host" = $1 LIMIT $2�[0m [["host", "participa.ecologistasenaccion.org"], ["LIMIT", 1]]
D, [2020-07-23T13:41:31.359279 #21599] DEBUG -- : [e34b59c4-06be-49df-9fc4-b14cceeefbca] �[1m�[36mDecidim::Organization Load (0.4ms)�[0m �[1m�[34mSELECT "decidim_organizations".* FROM "decidim_organizations" WHERE ('participa.ecologistasenaccion.org' = ANY(secondary_hosts)) LIMIT $1�[0m [["LIMIT", 1]]
I, [2020-07-23T13:41:31.403462 #21599] INFO -- : [c9f08cdb-822b-4a75-9ae1-4266b801af7a] Started GET "/system/admins/sign_in" for 34.254.186.153 at 2020-07-23 13:41:31 +0200
D, [2020-07-23T13:41:31.404565 #21599] DEBUG -- : [c9f08cdb-822b-4a75-9ae1-4266b801af7a] �[1m�[36mDecidim::Organization Load (0.2ms)�[0m �[1m�[34mSELECT "decidim_organizations".* FROM "decidim_organizations" WHERE "decidim_organizations"."host" = $1 LIMIT $2�[0m [["host", "participa.ecologistasenaccion.org"], ["LIMIT", 1]]
D, [2020-07-23T13:41:31.405681 #21599] DEBUG -- : [c9f08cdb-822b-4a75-9ae1-4266b801af7a] �[1m�[36mDecidim::Organization Load (0.5ms)�[0m �[1m�[34mSELECT "decidim_organizations".* FROM "decidim_organizations" WHERE ('participa.ecologistasenaccion.org' = ANY(secondary_hosts)) LIMIT $1�[0m [["LIMIT", 1]]
I, [2020-07-23T13:41:31.408495 #21599] INFO -- : [c9f08cdb-822b-4a75-9ae1-4266b801af7a] Processing by Decidim::System::Devise::SessionsController#new as /
I, [2020-07-23T13:41:31.409833 #21599] INFO -- : [c9f08cdb-822b-4a75-9ae1-4266b801af7a] Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.6ms)
F, [2020-07-23T13:41:31.411180 #21599] FATAL -- : [c9f08cdb-822b-4a75-9ae1-4266b801af7a]
F, [2020-07-23T13:41:31.411209 #21599] FATAL -- : [c9f08cdb-822b-4a75-9ae1-4266b801af7a] ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: no existe la relación «decidim_system_admins»
LINE 8: WHERE a.attrelid = '"decidim_system_admins"':...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
c.collname, col_description(a.attrelid, a.attnum) AS comment
FROM pg_attribute a
LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
WHERE a.attrelid = '"decidim_system_admins"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
):

Cannot deploy initiatives and consultations modules in Amazon AWS

Howdy to everyone, this issue is very similar to the #40, but one step later...

For my part, I followed the AWS Elastic Beanstalk tutorial (very very good) and not problem, I got the expected result.

In this point I decided to advance more testing the initiatives and consultations modules uncommenting the gems in the Gemfile. At the beginning I found some problems as the wicked_pdf of the issue #40 that I fixed fine, I can test the modules in my local.

Afterwards I decided to publish this in AWS server, but at this moment I can´t achieve this: at the beginning I found disk space errors that I resolve increasing the volume capacity from 8GB to 16GB and the error disappeared. But now the problem are the timeouts: the deploy have a duration of more that 10 minutes and always I get the timeout, even changing this parameter for configuration.

When I execute the next commands for update in local the gems, the await it is very large too but at the final it works fine. I suppose that it is a problem with the dependencies of the uncomment modules, because when I execute this same commands with this lines uncomment, I haven´t this problem of latency.

bundle update
bin/rails decidim:upgrade

How can I do to fix this error?

Thanks in advance.

Can't send Mail

Hi,
I install DECIDIM and i can't send mail

In gmail i enable “less secure applications”.

My config is :
Application.yml
SMTP_USERNAME: my user
SMTP_PASSWORD: my pwd
SMTP_ADDRESS: smtp.gmail.com
SMTP_DOMAIN: gmail.com

secrets.yml
production:
<<: *default
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
smtp_username: <%= ENV["SMTP_USERNAME"] %>
smtp_password: <%= ENV["SMTP_PASSWORD"] %>
smtp_address: <%= ENV["SMTP_ADDRESS"] %>
smtp_domain: <%= ENV["SMTP_DOMAIN"] %>
smtp_port: "587"
smtp_starttls_auto: true
smtp_authentication: "plain"

environnements/production.rb
config.action_mailer.smtp_settings = {
:address => Rails.application.secrets.smtp_address,
:port => Rails.application.secrets.smtp_port,
:authentication => Rails.application.secrets.smtp_authentication,
:user_name => Rails.application.secrets.smtp_username,
:password => Rails.application.secrets.smtp_password,
:domain => Rails.application.secrets.smtp_domain,
:enable_starttls_auto => Rails.application.secrets.smtp_starttls_auto,
:openssl_verify_mode => 'none',
:ssl => true,
:tls => true
}

I don't understand why ?

Thanks for help

404 not found error

Following exactly your directions I finally end up with a 404 not found error when browsing to my server. Could this be realted to #2 ??

How to update decidim with aws elasticbeanstalk ?

Hi, I followed the update manual https://github.com/Platoniq/decidim-install/blob/master/decidim-update.md but I am not sure if it's the same procedure with elasticbeanstalk ? I am new with ruby on rails so everything is a bit tricky for me.

When I did locally :

bundle update decidim
bin/rails decidim:upgrade
bin/rails db:migrate

I got :

bin/rails db:migrate
rails aborted!
PG::ConnectionBad: fe_sendauth: no password supplied
bin/rails:4:in `

'
Tasks: TOP => db:migrate

If I understand, the problem is because I don't have the postgredb configured correctly locally right ? It's normal because I followed the elasticbeanstalk manual only. So I have to follow the classic procedure to have a local install also right ? Then what is the procedure to update on elasticbean. Git push and deploy only or should I do something in the eb console ? Sorry if my question are a beat obvious !

Installation fails with Bundler 2.0

Following the installation guide it failed because Bundler 2.0.1 was installed.
When installing bundler, version -v 1.17.3 must be specified:
gem install bundler -v 1.17.3

Thanks for the superdetailed guide!

How to configure subdomain for multitenant installation

Hello,

thanks, for your guide, it's great. I've just one doubt: how should I configure my installation to support more than one organisation?
Now my domain is decidim.test and, if I add an organisation with host decidim.test and open that page, I've that organisation login form. When I add a second organisation I should use a different host (org2.decidim.test) but obviously it doesn't work and at that page I just see an nginx error. Which is the correct way to configure multi-tenancy? Which are the files I should edit?

Thanks

"no Phusion Passenger-served applications running" error

Following your install and config instruction I found this error when running the command sudo passenger-config restart-app ~/decidim-app:

There are no Phusion Passenger-served applications running whose paths begin with '/home/decidim/decidim-app'

and my paths are the same as those in the docs, so it should work. Coudl this be related to #2 ??

In any case I run sudo services nginx restart which should have the same effect, isn't?

Unable to delete organizations

Hi,

I am trying to delete organizations for several reasons (I created them with wrong languages, or just for testing purpose, etc.). When I click on the Delete button, the confirmation popup is prompted, but nothing happens after.

Do you know how I could delete my organizations please?

Thanks,
Best regards

Add information about delay on "rbenv install 2.5.1" step

The setup is explained very clear, the only point where I'v doubt is on the "rbenv install 2.5.1" command because this could take a while and there's no visual information about the progress. Maybe we can explain on the documentation that.
Thank's for all your work.

empty decidim instance

hello,
I installed a decidim instance on an ubuntu 18 lxc.
it worked but when I sign in and go to the administrator menu, the administrator page is empty.
the menu on the left have just two options: dashbord et users.
the dashboard is empty and if I click on "users" it says I am not allowed to do this.
I must have missed something while installing but can't figure what it is.

confirmation mail not sent

I follow instructions to configure a Gmail account (https://github.com/Platoniq/decidim-install/blob/master/basic-config.md), I tried options 1 and 2, but when I create an organization I do not receive any confirmation message. The log shows an EOF error:

I, [2019-08-12T13:35:45.233270 #14381] INFO -- : [63841e6d-900c-4965-90ab-513494ce5c46] Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 1.9ms)
I, [2019-08-12T13:35:45.300813 #14381] INFO -- : [ActiveJob] [ActionMailer::DeliveryJob] [6b426a11-fe5a-4dfe-91bc-c3d0b60a04d9] Sent mail to xxx@xxx (99.2ms)
D, [2019-08-12T13:35:45.300868 #14381] DEBUG -- : [ActiveJob] [ActionMailer::DeliveryJob] [6b426a11-fe5a-4dfe-91bc-c3d0b60a04d9] Date: Mon, 12 Aug 2019 13:35:45 +0200
From: [email protected]
To: xxx@xxx
Message-ID: [email protected]
Subject: =?UTF-8?Q?Instruccions_de_confirmaci=C3=B3?=
Mime-Version: 1.0

...........

----==_mimepart_5d514f1131330_382d2b2629802a807838b--

E, [2019-08-12T13:35:45.301014 #14381] ERROR -- : [ActiveJob] [ActionMailer::DeliveryJob] [6b426a11-fe5a-4dfe-91bc-c3d0b60a04d9] Error performing ActionMailer::DeliveryJob (Job ID: 6b426a11-fe5a-4dfe-91bc-c3d0b60a04d9) from Async(mailers) in 290.43ms: EOFError (end of file reached):
/home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:225:in rbuf_fill' /home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:191:in readuntil'
/home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:201:in readline' /home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:950:in recv_response'
/home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:935:in block in getok' /home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:960:in critical'
/home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:933:in getok' /home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:826:in helo'
/home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:600:in do_helo' /home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:554:in do_start'
/home/ajpolinya/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:518:in `start'

Any idea what's happening?
Thanks

Mandatory to adopt Decidim's social contract?

I have read Decidim's social contract and there is this sentence:

The use and development of the Decidim platform by an institution or social group of any kind involves the full and integral acceptance of, and commitment to, this social-contract.

I am trying to understand the scope of "the use and development of the Decidim platform".

Does it mean that I cannot install Decidim software without adopting Decidim's social contract?
Does it also mean that I cannot provide a contribution to Decidim software without adopting the social contract? Or is the social contract just for those who use the https://decidim.org instance?

Thanks for any clarification!

Can't deploy decidim due to charlock_holmes / icu4c issue

Hi,

I am trying to install Decidim on AWS EC2, following this tutorial: https://github.com/Platoniq/decidim-install/blob/master/decidim-aws.md

The first issue I encounter is at this step:
eb create production
It is said in the tuto that the command should fail due to environment variables not set, but I'm pretty sure that the error I get is not the one supposed to happen.

2019-04-06 11:39:39 ERROR [Instance: i-0af6dc61fc01eb0eb] Command failed on instance. Return code: 5 Output: (TRUNCATED)...esolved to 0.17.0, which depends on
decidim-accountability was resolved to 0.17.0, which depends on
decidim-comments was resolved to 0.17.0, which depends on
decidim-core was resolved to 0.17.0, which depends on
charlock_holmes.
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
2019-04-06 11:39:39 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].

I tried to go further anyway, but when deploying my app:
eb deploy
The same issue happens:

019-04-06 11:59:50 ERROR [Instance: i-0af6dc61fc01eb0eb] Command failed on instance. Return code: 5 Output: (TRUNCATED)...esolved to 0.17.0, which depends on
decidim-accountability was resolved to 0.17.0, which depends on
decidim-comments was resolved to 0.17.0, which depends on
decidim-core was resolved to 0.17.0, which depends on
charlock_holmes.
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
2019-04-06 11:59:50 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].

And I get a nice

ERROR: ServiceError - Failed to deploy application

When I look into the log, I see this:


*********** icu required (brew install icu4c or apt-get install libicu-dev)



*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details.
And

An error occurred while installing charlock_holmes (0.7.6), and Bundler cannot
continue.
Make sure that gem install charlock_holmes -v '0.7.6' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile:
decidim was resolved to 0.17.0, which depends on
decidim-accountability was resolved to 0.17.0, which depends on
decidim-comments was resolved to 0.17.0, which depends on
decidim-core was resolved to 0.17.0, which depends on
charlock_holmes (Executor::NonZeroExitStatus)

I looked over Internet and it seems that others had a similar problems, caused by incompatibility between icu4c and charlock_holmes versions.
Here are my versions:
icu4c: stable 63.1
charlock_holmes (0.7.6)

Do you know if the issue I encounter has anything to do with this? And how I could solve it plz?

Thanks,
Best regards

confirmation mail sent by [email protected]

After following your GREAT instruction to install and set decidim I created a new user and got the confirmation mail sent by [email protected].

This is a setting you can change at config/initializers/decidim.rb. It would be great to have a mention at the end of your Email configuration section to set this.

Facebook authorization error

Thank you for OAuth instructions.

I get an error:

Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.

Seems like older instructions are outdated? On Facebook developers page, there's no "Website", there's instead "Facebook Login" with "Web" tab, and so on, and so forth.

Cannot install on fresh Ubuntu 18.04

I cannot install Decidim using the install-decidim.sh script on a fresh Ubuntu 18.04

This Ubuntu is from Scaleway, quite basic.

Here is what I did:

log

  • create demo2 server on scaleway (Ubuntu 18.04)
  • declare in Awx in a new 'decidim' inventory
  • run bootstrap-server and base-system on awx
  • ssh into the server
  • create a decidim user with home /opt/decidim and sudo rights
  • su - decidim
  • mkdir /opt/decidim/demo2
  • as the decidim user run the script install-decidim.sh -c /opt/decidim/demo2

The base-system role just installs a few packages that we use all the time like jq or python3 + creates ssh users.

alas there is always the same issue in the end (from stderr).

...
Successfully installed decidim-0.21.0
38 gems installed
Step 4: decidim
Installing Decidim in demo2//releases/initial
Successfully installed bundler-2.2.5
1 gem installed
[8995, #<Thread:0x00005581d4f1edd8 run>, #<NameError: uninitialized constant Gem::BundlerVersionFinder>, ["/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:280:in `matching_specs'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:299:in `to_specs'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:2555:in `block in traverse'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:2553:in `each'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:2553:in `traverse'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1026:in `block in find_in_unresolved_tree'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1025:in `each'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1025:in `find_in_unresolved_tree'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:114:in `require'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:280:in `matching_specs'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:299:in `to_specs'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1400:in `block in activate_dependencies'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1406:in `block in activate_dependencies'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1406:in `block in activate_dependencies'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:302:in `block in activate_bin_path'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:301:in `synchronize'", "/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:301:in `activate_bin_path'", "/opt/decidim//.rbenv/versions/2.7.2/bin/decidim:23:in `<main>'"]]
Traceback (most recent call last):
	26: from /opt/decidim//.rbenv/versions/2.7.2/bin/decidim:23:in `<main>'
	25: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:301:in `activate_bin_path'
	24: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:301:in `synchronize'
	23: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:302:in `block in activate_bin_path'
	22: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'
	21: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'
	20: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'
	19: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1406:in `block in activate_dependencies'
	18: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'
	17: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'
	16: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'
	15: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1406:in `block in activate_dependencies'
	14: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'
	13: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'
	12: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'
	11: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1400:in `block in activate_dependencies'
	10: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:299:in `to_specs'
	 9: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:280:in `matching_specs'
	 8: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:114:in `require'
	 7: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1025:in `find_in_unresolved_tree'
	 6: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1025:in `each'
	 5: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1026:in `block in find_in_unresolved_tree'
	 4: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:2553:in `traverse'
	 3: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:2553:in `each'
	 2: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:2555:in `block in traverse'
	 1: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:299:in `to_specs'
/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:280:in `matching_specs': uninitialized constant Gem::BundlerVersionFinder (NameError)
	19: from /opt/decidim//.rbenv/versions/2.7.2/bin/decidim:23:in `<main>'
	18: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:301:in `activate_bin_path'
	17: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:301:in `synchronize'
	16: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems.rb:302:in `block in activate_bin_path'
	15: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'
	14: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'
	13: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'
	12: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1406:in `block in activate_dependencies'
	11: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'
	10: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'
	 9: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'
	 8: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1406:in `block in activate_dependencies'
	 7: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1370:in `activate'
	 6: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `activate_dependencies'
	 5: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1388:in `each'
	 4: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/specification.rb:1400:in `block in activate_dependencies'
	 3: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:299:in `to_specs'
	 2: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/dependency.rb:280:in `matching_specs'
	 1: from /opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:167:in `require'
/opt/decidim/.rbenv/versions/2.7.2/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:167:in `ensure in require': CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true (RuntimeError)
Something went wrong! Aborting!

some research makes me believe this is related to a bad bundler version but I am no expert.

I see it is decidim-0.21.0 being installed. 0.23.0 is released AFAIK. Maybe that's about it?

Can you people help?

I'm looking to get inspiration from this script to release an ansible + docker swarm version of decidim in order to make it simpler for people looking to just use it. I have done a POC already but looking to go further and this is hampering my efforts.

Edit

Tested with capistrano (-c) and without it.

SMTP authentication error (doh?)

I'm trying to configure a local Postfix installation to deliver mails.

All things work fine with an external service (eg. Google). After setting up the parameters needed by postfix for a particular organization:

image

mail delivery fails due to Net::SMTPAuthenticationError (in this example, using a newsletter):

E, [2020-07-07T17:21:43.722460 #15284] ERROR -- : [ActiveJob] [Decidim::Admin::NewsletterDeliveryJob] [4fc8365c-26bb-4745-9a76-558349a53097] Error performing Decidim::Admin::NewsletterDeliveryJob (Job ID: 4fc8365c-26bb-4745-9a76-558349a53097) from Async(newsletter) in 2058.78ms: Net::SMTPAuthenticationError (503 5.5.1 Error: authentication not enabled
):
/var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:981:in check_auth_response' /var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:736:in auth_plain'
/var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:728:in authenticate' /var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:565:in do_start'
/var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:518:in `start'

Of course I don't need authentication using local Postfix server, while I (others) need it for external services.

I tried to play with config, without success. Suggestions?

Installation failed on Ubuntu 18.04 and Ubuntu 20.04

I ve followed many times the 2 installation guide for Ubuntu 18.04 and 20.04 on clean VPS. The result is always the same : by default the domain name link to a https connection and the site is unreachable (ERR_CONNECTION_RESET), if i type directly a non secure link to my domain with http, it leads to nginx welcome page... It seems to be the same problem mentioned in topic #45 or #63...
Any help ?

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.