Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:50
    decidim-bot synchronize #8554
  • 08:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 08:50
    decidim-bot synchronize #8554
  • 08:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 08:50
    decidim-bot synchronize #8554
  • 08:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 08:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 07:50
    decidim-bot synchronize #8571
  • 07:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 07:50
    decidim-bot synchronize #8554
  • 07:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 07:50
    decidim-bot synchronize #8554
  • 07:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 07:50
    decidim-bot synchronize #8554
  • 07:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 07:50
    decidim-bot synchronize #8554
  • 07:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 07:50
    decidim-bot synchronize #8554
  • 07:50

    decidim-bot on l10n

    New translations en.yml (Japane… (compare)

  • 07:50
    decidim-bot synchronize #8554
gillesdeloustal
@gillesdeloustal
Let me know how to make a pull request or an issue. I would be glad to place my text on sending email with sendgrid there in order to help people.
gillesdeloustal
@gillesdeloustal
Logged in as an administrator, I clicked on create my first « new intiative type » and got the error "There has been a bugg with your server". Have you heard of such problem ?
2 replies
pangea-org
@pangea-org
Hi, i'm tring to update from version 0.22 to 0.23 but when i give the last command "bin/rails db:migrate" it fails because of "ActiveRecord::RecordInvalid: Validation failed: Title is invalid, Body is invalid" i see the problem in "/home/decidim/decidim-rezero/db/migrate/20210506101568_move_proposals_fields_to_i18n.decidim_proposals.rb:24:in `block (2 levels) in up' "but actually i don't know how to fix this, any help?
gillesdeloustal
@gillesdeloustal
Hi froger I run decidim in french. Is there a fix for this problem ? What version could I install in order to have initiatives work ? Is downgrade possible ? Thank you so much for your answers. I appreciate.
2 replies
Masayoshi Takahashi
@takahashim

Hi,an exception InvalidDirectVerificationRoute.new may occur in Decidim::Verifications::Adapter.
https://github.com/decidim/decidim/blob/develop/decidim-verifications/lib/decidim/verifications/adapter.rb

But InvalidDirectVerificationRoute seems to be not defined in Decidim. Instead, there was a InvalidVerificationRoute in the file.
Which class is correct?

2 replies
sdelcroix
@sdelcroix
Hi everyone, I have issue to find an answer : why there is 2 active versions of decidim atm ? (2.4 and 2.3) Is it because of ruby version (2.7 and2.6) ?
Armand Fardeau
@armandfardeau
Hello, there is no version 2.4 and 2.3. However, there is a version 0.24 and 0.23. The reason for the existence of these two versions is that some of us wanted long term support for our customers or ourselves.
sdelcroix
@sdelcroix
@armandfardeau Thanks, I understand (sorry for the wrong decidim versions, I mixed up my mind with ruby versions)
/lib/sys
@freeman:matrix.cuatrolibertades.org
[m]
ehlo :) guys, is there any forum or wiki where I can check for common questions regarding decidim implementation?
I can't find a way to append items to the main menu, as meta.decidim.org does
I have the same modules installed and accessible directly through the URL, but are not displayed on the menu
only Initiatives was automagically added
/lib/sys
@freeman:matrix.cuatrolibertades.org
[m]
ok, i've found that these get added when I create something on these modules
(on the docs) still would like to find a place where to solve common doubts, is there any?
1 reply
Andres Pereira de Lucena
@andreslucena:matrix.org
[m]
Ali G
@basicavisual
Hello all. I want to add an icon to a cell content_block on my decidim instance, so I need to require the Decidim::IconHelper within the cell module. What is a good way to do so without overwriting the complete cell file? (ex: app/cells/decidim/content_blocks/hero_cell.rb)
3 replies
/lib/sys
@freeman:matrix.cuatrolibertades.org
[m]
hello people... how can I access to Decidim docs for current version? I've been reading things regarding Webpacker, but now I see my installation uses Rails 5.2 which does not use webpacker :/
and... is there a roadmap for knowing when the next version will be ready? so I can prepare my changes for the next thing if that's soon
1 reply
/lib/sys
@freeman:matrix.cuatrolibertades.org
[m]
hmmm... looking at existing Decidim customizations looks like you can't change variables currently without importing the complete core style? is there any guide for styling Decidim on stable?
1 reply
I mean, to change the Foundation variables
Andres Pereira de Lucena
@andreslucena:matrix.org
[m]

hello people... how can I access to Decidim docs for current version? I've been reading things regarding Webpacker, but now I see my installation uses Rails 5.2 which does not use webpacker :/

docs.decidim.org is automatic deployed from develop so it's always the same unreleased version

/lib/sys
@freeman:matrix.cuatrolibertades.org
[m]
thks bud
chocolombia
@chocolombia
Hi guys, I has been digging on the documentation and playing with the docker images but im kind of stucked, I tried running the 'SEED=true rails db:setup' as well as the comand to create a new user inside the ruby console, but I'm only getting and empty dashboard and almost no functionality, can anyone point me at some tutorian on how to run the system
1 reply
/lib/sys
@freeman:matrix.cuatrolibertades.org
[m]
you need to setup an organization on that same dashboard
1 reply
kawsay
@kawsay_gitlab
Hi, how could I confirm a Decidim::User from the console ? I'm testing the application and I've not setup the SMTP yet (waiting for Sendgrid API key). I've tried updating :confirmed_at and officialized_at with Time.now but it doesn't make any change
Andres Pereira de Lucena
@andreslucena:matrix.org
[m]
You can do it with .confirm: Decidim::User.find_by_email("aaaaa@example.org").confirm
1 reply

FYI, I think we did't send this message to this chat room:

Decidim Fest is back on October 20, 21 and 22! 💥

This year's theme is Democracy, Technology and Global Justice
☝️The festival´s format will be hybrid, with face-to-face sessions at @canodrombcn (Barcelona) and online

We've opened the call for entries until September 15!
❤️ https://meta.decidim.org/

stephanedesjardins-qc
@stephanedesjardins-qc

Hi, how is life...
Did anyone try to build a dockerfile based on Linux Alpine i.e. 'FROM ruby:2.7-alpine3.14'... It is to try to reduce the image size
Have a good day,

Steph

Luiz Sanches
@luizsanches
Hi, my name is Luiz Sanches, Brazilian Ruby developer. I would like to know why the language changed from pt-BR to pt at https://github.com/decidim/decidim/pull/6221/files. I was surprised when I went to update the version and there were translation errors. Currently I'm using pt from Portugal, but I really want to contribute to the Brazilian translation.
vbwamba
@vbwamba
Hi guys,
I have tried to deploy decidim on my computer using these instructions (https://docs.decidim.org/en/install/manual/) on Ubuntu 20. When I connect as an administrator (login : system@example.org and Password : decidim123456), the dashboard is empty. I have uploaded the code on : https://github.com/vbwamba/decidim-afro).
Thank you for your help.
hfroger
@froger
Hello @vbwamba, I am willing to help, but the repo you’ve linked seems empty . Can you help me on this?
1 reply
Andres Pereira de Lucena
@andreslucena:matrix.org
[m]

Hi all! We're in October and that means that it's
🌹 Hacktoberfest 🌹
You're welcome to participate in the Decidim project!!

  1. Register in the Hacktoberfest site [0]
  2. Make some quality pull requests
  3. Once three or more requests are approved or merged, then you can receive a t-shirt or to have a tree planted in your name

We're applying for our repositories:

  • main repository, Ruby on Rails application [1]
  • documentation website, made with Antora [2]
  • project website, made with Middleman [3]

A good starting point for finding easy issues is the "good first issue" label [4]

[0] https://hacktoberfest.digitalocean.com/
[1] https://github.com/decidim/decidim/
[2] https://github.com/decidim/docs.decidim.org
[3] https://github.com/decidim/decidim.org
[4] https://github.com/decidim/decidim/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22

Happy hacking 🐱‍💻!!

Tepee (Tristan)
@tepee:matrix.org
[m]

Hello, since severall weeks, we try to install Decidim on an Ubuntu 20.04 server, without success 😕
When we run the generator to create our app: decidim decidim-app
we have
rails aborted!
Unknown version "6.1"
/home/tepee/decidim-app/config/application.rb:12:in <class:Application>' /home/tepee/decidim-app/config/application.rb:11:in<module:DecidimApp>'
/home/tepee/decidim-app/config/application.rb:9:in <main>' /home/tepee/decidim-app/Rakefile:4:in<main>'
/home/tepee/decidim-app/bin/rails:5:in <top (required)>' /home/tepee/decidim-app/bin/spring:10:inblock in <top (required)>'
/home/tepee/decidim-app/bin/spring:7:in tap' /home/tepee/decidim-app/bin/spring:7:in<top (required)>'
bin/rails:2:in load' bin/rails:2:in<main>'
(See full trace by running task with --trace)

Could you help or guide us ?

3 replies
alex
@alex:privchat.eu
[m]
Maybe try to run gem uninstall rails and then bundle install. I think this should install rails 6.0, because of the gemspec file of decidim 0.25:
https://github.com/decidim/decidim/blob/release/0.25-stable/decidim-core/decidim-core.gemspec
hfroger
@froger
You could also fix your rails version in your Gemfile, adding a ‘gem 'rails', '6.0.4'’ for example
Tepee (Tristan)
@tepee:matrix.org
[m]
I have found a recent issue about it. Thank you for your help.
decidim/decidim#8395
Takuya Sato
@dtc-takuyasato
@tepee:matrix.org Hello, Did you solve problem? I have same problem. I cannot install decidim 0.25.0 on an ubuntsu 20.04 server aws lightsail.
Takuya Sato
@dtc-takuyasato
Hi, I'm going to do manual installation right now. regards all.
Andres Pereira de Lucena
@andreslucena:matrix.org
[m]
Hello guys! Just to let you know that at the moment the v0.25.0 has some bugs and we're working in the v0.25.1 that will fix that. I'll let you know when we have released that.
Takuya Sato
@dtc-takuyasato

Hi there, I'm done manual install.
I'm going to share the install log for you.
I am glad if my log is contribution for you. regards all.

manual install log

  1. rbenv install
    sudo apt update
    sudo apt install -y build-essential git libssl-dev zlib1g-dev
    git clone https://github.com/rbenv/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    source ~/.bashrc
    git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install 2.7.4
    rbenv global 2.7.4
    ruby -v

  2. Installing PostgreSQL
    sudo apt install -y postgresql libpq-dev
    psql --version
    sudo apt-get --purge remove postgresql.
    sudo apt-get purge postgresql*
    sudo apt install -y libpq-dev
    !! add the repository
    sudo tee /etc/apt/sources.list.d/pgdg.list <<END
    deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
    END
    !! get the signing key and import it
    wget https://www.postgresql.org/media/keys/ACCC4CF8.asc
    sudo apt-key add ACCC4CF8.asc

!! fetch the metadata from the new repo
sudo apt-get update
sudo apt-get install -y postgresql-13
sudo apt update
sudo apt -y upgrade
sudo reboot

sudo apt -y install vim bash-completion wget
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ lsb_release -cs-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list

sudo apt update
sudo apt install postgresql-13 postgresql-client-13

systemctl status postgresql.service
systemctl status postgresql@13-main.service
sudo su - postgres
psql -c "alter user postgres with password 'StrongAdminP@ssw0rd'"

psql
postgres=# \conninfo
CREATE DATABASE mytestdb;
CREATE USER mytestuser WITH ENCRYPTED PASSWORD 'MyStr0ngP@SS';
GRANT ALL PRIVILEGES ON DATABASE mytestdb to mytestuser;
\l
\c mytestdb

createuser myuser --password
mypass
createdb mydb -O myuser
psql -l
exit
sudo -u postgres psql -c "CREATE USER decidim_app WITH SUPERUSER CREATEDB NOCREATEROLE PASSWORD 'decidimpass'"

  1. Installing Decidim

sudo apt install -y libicu-dev nodejs imagemagick
sudo fallocate -l 1G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
ls -lh /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free -h

gem install decidim
decidim decidim_application
gem install bundler:2.2.18
decidim decidim_application
cd decidim_application


config/application.rb:
config.load_defaults 6.0

decidim decidim_application

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm --version
nvm ls
nvm ls-remote
nvm install

npm install --global yarn
decidim decidim_application
cd decidim_application


git add .
git commit -m "Initial commit. Generated with Decidim https://decidim.org"

  1. Configure the database

Gemfile:
gem "figaro"

bundle install
bundle exec figaro install
config/application.yml:
DATABASE_HOST: localhost
DATABASE_USERNAME: decidim_app
DATABASE_PASSWORD: decidimpass

git add .
git commit -m "Add figaro configuration management"

  1. Initializing your app for local development
    bin/rails db:create db:migrate
    bin/rails db:seed
    bundle exec rails assets:precompile
    export NODE_OPTIONS=--max_old_space_size=4096
    bundle exec rails webpacker:compile
    bundle exec rails assets:precompile

!! Snapshot and upgrade instance type
bin/rails db:seed

  1. Start your web server
    bin/rails s
    config.ru:
    !! This file is used by Rack-based servers to start the application.
    require_relative "config/environment"
    run Rails.application
    !! Rails.application.load_server

bin/rails s -b 0.0.0.0

!! light sail networking settings > open port 3000
!! allocate static ip
Access static ip port 3000
http://IP:3000
SEED=true rails db:seed
Table 1. Default seed’s users

Tepee (Tristan)
@tepee:matrix.org
[m]
Hello, by installing the 0.24.3 version with command line gem install decidim --version=0.24.3 (the 0.25.0 installation fails at present time), I succed to have a local installation working.
But I don't succed to make Nginx and Passenger working to access from outside (my website is here : http://www.converger.fr/). It says Nginx is working, but need configuration. But I think to have done it. Any help ?
Andres Pereira de Lucena
@andreslucena:matrix.org
[m]
A great resource to follow is the Platoniq's install guide, it has explanations on how to configure nginx for production rails apps: https://platoniq.github.io/decidim-install/decidim-focal/#4-installing-nginx
Ivan Vergés
@microstudi
For those installing Decidim 0.25, instructions on the platoniq guide are not updated yet but the automated script is https://platoniq.github.io/decidim-install/script/
it solves a couple of bugs with the gem and the new webpacker system
Andrés Pereira de Lucena
@andreslucena
Hello guys! As you may know, we've discussed migrating from Gitter/Telegram to Matrix.org so all the communications are more transparent and easy to find in the same place. You can find us at Decidim Matrix.org space, where there are multiple chat rooms for developers, designers, translators and a general room. This Gitter chat room will be closed in a couple of months, at 01/01/2022. Thanks everyone for helping us grow and see you in the Matrix 😎. If you want to learn more about the motives, you can see the discussion at the Metadecidim proposal. 🚀🚀
Carles Aguilar
@carlesaguilar

Hello, i'm trying to generate a new decidim project using docker but i can't do it.

$ APP_NAME=HelloWorld
$ IMAGE=ghcr.io/decidim/decidim-generator:latest
$ docker run -it -v "$(pwd):/code" ${IMAGE} ${APP_NAME}`

and the response is:
$ docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "HelloWorld": executable file not found in $PATH: unknown.
$ ERRO[0001] error waiting for container: context canceled

Can you help me to solve it? Thanks!

Alexandru Emil Lupu
@alecslupu:matrix.org
[m]
Obviously that "APP_NAME" needs to be an executable like "rails console" or something else . It would helpful to point the link where you got that command in the docs
1 reply
Andres Pereira de Lucena
@andreslucena:matrix.org
[m]
FYI there's an open issue in decidim/docker#89
Maybe it'd be better to have the discussion there if anyone else want/can help
Andres Pereira de Lucena
@andreslucena:matrix.org
[m]
Also we're in the process of migrating this Gitter channel to Matrix, could you please tell us how did you find this channel carlesaguilar (Carles Aguilar)? (For sure there must be places of the docs that I missed)
2 replies
Carles Aguilar
@carlesaguilar

hello! recently I generate a decidim project using docker decidim generator, it was generated correctly but when I start the project using docker compose up i get this error:

error: database is uninitialized and superuser password is not specified. You must specify POSTGRES_PASSWORD to a non-empty value for the superuser.

More info on this screenshot: https://drive.google.com/file/d/1s-KrYTSiDxpJ6zHiGJOqGxATx8QcKOFy/view?usp=sharing

anyone can help me? thanks