Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 28 16:55
    javierm assigned #4200
  • Oct 28 16:49

    javierm on master

    Use labels for banner `web_sect… Group collection of checkboxes … Merge pull request #4200 from r… (compare)

  • Oct 28 16:49
    javierm closed #4200
  • Oct 28 16:07
    Senen review_requested #4200
  • Oct 28 15:45
    Senen synchronize #4200
  • Oct 28 12:05
    javierm assigned #4208
  • Oct 28 12:04
    javierm assigned #4206
  • Oct 28 11:34

    javierm on master

    Don't redirect when toggling vi… Hide checkbox when investments … Merge pull request #4212 from c… (compare)

  • Oct 28 11:34

    javierm on fix_ajax_redirect

    (compare)

  • Oct 28 11:34
    javierm closed #4212
  • Oct 28 11:24
    taitus assigned #4217
  • Oct 28 11:17
    taitus assigned #4212
  • Oct 28 11:15
    Michael1337 commented #4223
  • Oct 28 11:11
    Senen edited #4200
  • Oct 28 11:09
    Senen review_requested #4200
  • Oct 28 10:45
    javierm commented #4223
  • Oct 28 10:35
    Senen synchronize #4200
  • Oct 28 10:28
    javierm labeled #4224
  • Oct 28 10:28
    javierm commented #4224
  • Oct 28 08:28
    decabeza edited #4222
Senén Rodero
@Senen

Hi @bidHimArm, thanks for trying Consul.

Did you look for lost emails at spam folder? Probably you have to whitelabel your smtp configuration to send emails from your domain through Sendgrid or MailGun servers.

Here is an article that will help you to whitelabel your Sendgrid configuration so your application emails are not considered as spam.
https://sendgrid.com/docs/glossary/whitelabel/

We have a Slack channel for technical questions where you would find answers for the most common problems. Past week other user had the same problem you have so probably you can get useful feedback if you decide to join. If you are interested in joining please send me an email address through a private message. 🤗

rashmiagar
@rashmiagar
Hello,
I am trying to setup Consul on heroku and I ran the dev_seeds. I have question about the public/systems folder
the production is not displaying the correct images
rashmiagar
@rashmiagar
Anyone can help?
Also have more questions about heroku installation. Is heroku recommended for use in production or only for demo purposes? And for heroku I am configuring it manually. Or should I be using the installer? I am getting <Rack::Timeout::RequestExpiryError: Request older than 30000ms.
rashmiagar
@rashmiagar
I am tasked with setting up Consul for Belgium’s municipalities. Is the multi tenancy feature been implemented?
Senén Rodero
@Senen

Hi @rashmiagar 👋, you can run Consul in Heroku but Heroku does not allow to store uploaded files on their own servers, you have to use an external storage for uploaded files like AWS S3 service.

You can use Heroku as production environment but there is no need to use Consul installer there. You are doing ok by doing it manually.

Multitenant is not a feature implemented yet but i think there is some people working on it, but not sure when it would be ready and included in a new Consul release. Here [1] is a starter pull request in this direction, maybe you can give it a 👍🏼.

Regarding the Timeout error, it would be helpful if you paste a more extense log from heroku. You can get it by running heroku logs from the command line. Which page is throwing this error?

[1] consul/consul#4030

Senén Rodero
@Senen
rashmiagar
@rashmiagar
alt
rashmiagar
@rashmiagar
This is detail of requestexpiryerror I got, even though the request I made was current and not a old one. I guess its related to rack_timeout gem but I set the RACK_TIMEOUT_SERVICE_TIMEOUT env variable to 20 in heroku.
Then I set Rails.application.config.middleware.insert_before Rack::Runtime, Rack::Timeout, service_timeout: 0 in rack_timeout.rb initializer, since then I am not getting error.
But not sure if its best way
@Senen
rashmiagar
@rashmiagar
And thanks so much for reply! :)
Actually we have to install 60 copies for the belgium municipalities so a multitenant app would have been much useful.
Senén Rodero
@Senen

Thank you so much for sharing how you fixed it! :)

Wow, 60 municipalities congrats! Probably multitenant would be a good fit for this case.

rashmiagar
@rashmiagar
I am getting two more errors on heroku
alt
alt
Hope someone can help :(
Senén Rodero
@Senen

Regarding the first screenshot about Timeout error:
Did this happened right after doing a deployment? Heroku restarts automatically all workers (web, background) after each deployment so its normal Timeout errors to happen during the restarting process, but should not happen once application is fully restarted.

Regarding the last screenshot about Dalli client error:
The web application is trying to connect to a server where to store cache data but found nothing, that server should be a MemCached compatible server. Probably you will need to install a MemCached addon from Heroku marketplace so consul application can connect. I think Memcachier addon should work here, but not tested. If this is only for testing purposes and you do not need to use cache you can disable cache for production, stating or preproduction modifying the respective configuration file you are using.

FYI, this is the gem used [1] to connect with Memcached service, there is many mentions to Heroku there, also here [2] is a Heroku article explaining how to configure a Rails app it if this is not automatically managed by heroku.

[1] https://github.com/petergoldstein/dalli
[2] https://devcenter.heroku.com/articles/building-a-rails-3-application-with-memcache

rashmiagar
@rashmiagar
@Senen No it wasn’t after a deploy. Reference to this, I am going to install Rollbar. Maybe because of the static assets from public/system/ I am loading its taking too long and request is timing out.
Using the installer for digital ocean deployment won’t have these issues right?
rashmiagar
@rashmiagar
Thanks for your reply!
Senén Rodero
@Senen
Yes, @rashmiagar, if you decide to use the consul-installer it will provision your server with everything you need. I’d suggest you to follow consul-installer README.md instructions step by step. I think it would best solution if you are not familiar with running Rails application on Heroku. Yo can use any provider that gives you a machine with root access with Ubuntu 16.04 o 18.04 installed, so DigitalOcean will be a good choice.
rashmiagar
@rashmiagar
On the Consul documents for heroku it mentions to run the test db seed. Its not a good idea, because the files in public/system is created based on secret_access_token and the id of the resource. This id can be different in cloud server. Esp for heroku it creates lot of problems because the assets are not precompiled. I think the document should be updated.
Just my thoughts :)
I wasted 2 weeks on this.
Andrés Pereira de Lucena
@andreslucena

Hello everybody. Hope you're all well on these strange times.
We wanted to invite you to the next Decidim Fest and also to present any talks that you consider would be interesting. If this is considered as spam please let me know ;)


Decidim Fest announces 2020 dates and opens its Call! 💥
The second edition of Decidim Fest is taking place next fall 100% online from 18 to 20 of November 💫
‼️ We are living times of uncertainty. The global pandemic has put the world in check while opening up a unique opportunity to change course and face climate emergency, social inequality, the violation of human rights and the rise of fascism, among others.
❓ What role does technology play in all of this?
❓ Which are the implications for the future of democracy?
Under the claim Democracy and Technology in times of Emergency, this year's conference tackles the urgent challenges in the network society.
Check this year's main topics and join our Open Call
👉 https://meta.decidim.org/conferences/decidimfest2020

Senén Rodero
@Senen
Thanks for your feedback @rashmiagar, i tested the Heroku guide too and i have to agree with you, after applying the steps from Heroku guide i had to do some addiontal steps and changes to make it work. We will try to update the Heroku guide asap. Thanks again 🤗
DF8OE
@df8oe
Hi to all, yesterday I successfully have installed Consul on my Linux Arch server. Directly - without the use of docker and/or consul/installer. I am happy that I have solved all problems (most due to much more recent software at Arch than at Debian, e.g. ruby 2.7.1 is standard at Arch). I can access Consul via http - the next step should be to add ssl support. I already have got lets encrypt certificate and now I am looking for a tutorial to add it to Consul...
1 reply
corsch
@corsch
Hi to all, did anyone successfully installed consul on Ubuntu 20.04 with the installer?
1 reply
rashmiagar
@rashmiagar
Hi all, I managed to deploy consul to AWS ec2 t2.micro. But I am having one issue; the delayed job (for sending email) is freezing the web interface and ssh into the instance. How do I fix this?
Senén Rodero
@Senen

Hi @rashmiagar,

The only way i found to deploy successfully on a t2.micro EC2 instance without stucking was to do the assets precompilation on my local machine, add those precompiled assets to the git repository control and do the capistrano deployment without the precompilation phase as was already done at local machine. But i clearly prefer that the server does the precompilation os assets and keep the size of repository source code smaller … To have all the precompiled assets under git control will vastly increase the size of the project source code. If you used another technique to avoid server stucking during deployment i would like to know it if possible. :)

Another important thing is to provide enough HDD space for running Consul, i remember once i deployed an application on default HDD t2.micro size (8GB i think) and happened exactly the same … the machine got completely stucked.

IMO a t2.micro instance is a very small machine that probably is freezing because its small amount of memory, vCPUs … Can yo try the same on a “bigger” machine, right now i have a t2.small with 25GB HDD for a personal production server only for testing purposes and everything works nice (including delayed jobs).

Rogier Wensink
@Wensink

Hello. We are using consul for years now and to full satisfaction. But lately we are encountering an issue which we cannot get solved.
When changes are done to the master cluster and consul is restarted on all masters at the same time, the slaves (and other nodes too) lose the connection. In code we you a join and a rejoin (although the rejoin is completely ignored once the connection is established).

consul:1.6.2 -join ${CONSUL_JOIN} -retry-join ${CONSUL_JOIN} -node ${LOCAL_IPV4} -advertise ${LOCAL_IPV4} -client 0.0.0.0 -data-dir /data -encrypt ${CONSUL_KEY} -log-level err

What is the best way to get all nodes connected to the master cluster again, if these are restarted all at once?

Senén Rodero
@Senen
Hi @Wensink ,i think you are searching for this Gitter room: https://gitter.im/hashicorp-consul/Lobby
Rogier Wensink
@Wensink
Thanks. Didn't know this was a different channel
guckenbi
@guckenbi

Hi everyone,

we are currently configuring CONSUL, primarily via the admin panel within the tool itself. However we encountered some things that do not seem to be changeable here. In particular I'm talking about the labels which (hopefully) can be seen in the picture below. While the header name for collaborative legislation (1) can be changed under "site content -> custom information texts -> basic customization -> legislation.processes.index.section_footer.title" the associated page label (2) cannot. Same goes for the help panel (3) which can't be changed while the actual text it refers to (4) is editable under "site content -> custom information texts -> layout -> layout.header.collaborative_legislation". As you can see, this leads to some inconsistency of the naming. Is there any option we are missing or can these variables only be changed in the config files?

Thanks in advance for your help!

image.png
Senén Rodero
@Senen

Hi @guckenbi, yes there are a lot of legislation translation keys that are not being shown at admin panel so probably the easier solution is to add a new “Collaborative legislation” tab into admin panel so you can translate all application keys starting with “legislation.*”. To add the tab you only have to add the key :legislation to the method information_texts_tabs at app/helpers/site_customization_helper.rb file.

Maybe if you like and have time you might create a PR with this change to the Consul repository so other Consul users can enjoy it. Hope this works for you. 🙏🏼🤗

1 reply
guckenbi
@guckenbi
Hi @Senen , thanks a lot. I'll have a try as soon as possible.