Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:27
    javierm assigned #4548
  • 11:27
    javierm labeled #4548
  • 11:27
    javierm opened #4548
  • 11:27
    javierm labeled #4548
  • 11:21

    javierm on investment_list_i18n

    Fix duplicate support_title I18… (compare)

  • Jun 11 23:28
    javierm synchronize #4504
  • Jun 11 23:28

    javierm on remove-supports

    Allow users to remove their sup… (compare)

  • Jun 11 23:26
    javierm synchronize #4504
  • Jun 11 23:26

    javierm on remove-supports

    Allow users to remove their sup… Include only positive votes in … (compare)

  • Jun 11 23:23
    javierm synchronize #4547
  • Jun 11 23:23

    javierm on phases_image_alt

    Fix missing alt attribute in ph… Fix contrast in investment list… (compare)

  • Jun 11 23:23
    javierm edited #4547
  • Jun 11 23:22
    javierm edited #4547
  • Jun 11 23:20
    javierm edited #4547
  • Jun 11 23:20
    javierm synchronize #4547
  • Jun 11 23:20

    javierm on phases_image_alt

    Fix contrast in investment list… (compare)

  • Jun 11 23:08
    javierm synchronize #4508
  • Jun 11 23:08

    javierm on budgets-info-section

    Add supports info section on bu… Add budgets support image (compare)

  • Jun 11 23:08
    javierm synchronize #4508
  • Jun 11 23:08

    javierm on budgets-info-section

    Add supports info section on bu… Add budgets support image (compare)

Piotr Pęczek
@ppeczek
hey, is docker manual up to date?
during docker-compose run app rake db:create/migrate/anything I get error:
    PG::ConnectionBad: 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?
could not connect to server: Cannot assign requested address
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?
Piotr Pęczek
@ppeczek
changed the system from arch based to ubuntu based, and seems to work fine
Piotr Pęczek
@ppeczek
Buuut the app is exiting immediately. I will check the behaviour for various Dockerfile settings
Piotr Pęczek
@ppeczek
Is there any simple way to change default language in Consul?
Piotr Pęczek
@ppeczek
heroku manual also fails :(
but that's probably caused by no runtime
heroku installs ruby 2.5.0 by default
Piotr Pęczek
@ppeczek
and the lowest supported version by heroku is 2.4.5
This message was deleted
which works fine for Consul
Piotr Pęczek
@ppeczek
could you please write how to create admin in clean Consul? :D
I've got so far:
User.create!(username: "admin", email: "admin@consul.dev", password: "xcLGBidgq58b6mKpvVjh", password_confirmation: "test", admin: true, moderator: true)
Piotr Pęczek
@ppeczek
@voodoorai2000 ?
Piotr Pęczek
@ppeczek
ok, got it. It also could be useful in manual
M.vd.L
@milovanderlinden
@ppeczek we override the default language by changing application_custom.rb
module Consul
  class Application < Rails::Application
    config.i18n.default_locale = :nl
    config.i18n.available_locales = [:nl]
  end
end
The first line sets the default, the second line makes sure dutch is the only language, be careful with that one as some of the seeds, particullary dev_seed contains strings in the english locale which will break the start of the docker container.
Piotr Pęczek
@ppeczek
@milovanderlinden thanks! Unfortunately after updates Docker isn't working at all ;(
TLV
@gildvir
Hi guys, need some help on connecting to Aws with this command sudo ansible-playbook -v consul.yml -i hosts, on my local ubuntu terminal it says that
fatal: [ec2-18-217-127-144.us-east-2.compute.amazonaws.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: no such identity: gdmax5.pem~/.ssh/id_rsa: No such file or directory\r\nroot@ec2-18-217-127-144.us-east-2.compute.amazonaws.com: Permission denied (publickey).", "unreachable": true}
to retry, use: --limit @/home/installer/consul.retry
PLAY RECAP *
ec2-18-217-127-144.us-east-2.compute.amazonaws.com : ok=0 changed=0 unreachable=1 failed=0
Leo Giovanetti
@leog
Hi all! I was wondering what does the DB contain when the installer gets used for a staging or production environment?
Piotr Pęczek
@ppeczek
staging and prod use different databases
Leo Giovanetti
@leog
makes sense
so what is the default data that gets populated into the dbs for each environment? Is that part of the installer?
Piotr Pęczek
@ppeczek
yes
db:create creates db for current environment
db:migrate migrates tables to the newest structure
db:seed populates db
if you want to prepare deployment database, you need to do all of above for deployment
same goes for staging and dev
Leo Giovanetti
@leog
ok, so I need to prepare a database seed for the environment I want to deploy, right?
or is there any basic seed for every environment?
Leo Giovanetti
@leog
anyway, I already deployed, I was just wondering how can I restart a server deployed with Ansible? I had to change some settings but unless I restart they will not apply
TLV
@gildvir
Hi, managed to get all issues fixed on the AWS side, so the site is up and running. same as Leo, after making changes to the Consul files which service need to be restarted in order for me to see the changes ?
natasakvinfo
@natasakvinfo
Hi, I recently installed Consul on Ubuntu 16.04 and it worked fine until I rebooted the system. Now I am getting 502 Bad Gateway error. connect() to unix:/home/deploy/consul/sockets/unicorn.sock failed (111: Connection refused) while connecting to upstream. Can you help me with this please?
Raimond Garcia
@voodoorai2000
We’ve just released version 1.0.0-beta 🎉
https://community.consulproject.org/t/consul-1-0-0-beta-released/517
Paul Holmes
@mp_paulholmes_gitlab
Hi folks - just trying to get Consul installed on Ubuntu 16.04 LTS, and have hit a roadblock with Ansible at the 'Start Unicorn' stage at consul/installer#95. Any ideas?
Julian Nicolas Herrero
@microweb10
We've just released version 1.0.0 :tada:
https://community.consulproject.org/t/consul-1-0-0-released/537
Rajendransiva
@Rajendransiva
Hi Folks - I have changed some text on app/views/welcome/_header.html.erb but it is not showing into front page
I assume need to rebuild it but i don't know how to do that
can you please anyone help me here
Rajendransiva
@Rajendransiva
after making changes to the Consul files which service need to be restarted in order for me to see the changes ?
Raimond Garcia
@voodoorai2000

Heys guys,

Sorry for the late replies 🙏

I see some of you have already figured things out through Github issues, Slack and the Community 👏
Just in case here are some hints:

Hey @gildvir, @Rajendransiva

After making changes to the application configuration or code only Unicorn needs to be restarted.
Check out the next comment for details.

Hey @leog, @natasakvinfo

The best way to restart the Unicorn is to setup Capistrano and run a cap production deploy:restart.
https://github.com/consul/installer#deploys-with-capistrano

If you haven't setup Capistrano yet check out this issue:
https://github.com/consul/installer/issues/56#issuecomment-479256819

Note the full command, without variables, to restart Unicorn manually would be:
cd /home/deploy/consul && /home/deploy/.rvm/gems/ruby-2.3.2/wrappers/unicorn -c config/unicorn.rb -E production -D

Apart from that we are adding the Unicorn script to the tasks to be executed after a server reboot.
In the meantime please use Capistrano to restart the Unicorn server or start it manually with the command above or add it to the crontab with these commands:

  • ssh root@remote_server_ip_address
  • crontab -e
  • Choose your preferred editor.
  • Add this line to the file that will open: @reboot cd /home/deploy/consul && /home/deploy/.rvm/gems/ruby-2.3.2/wrappers/unicorn -c config/unicorn.rb -E production -D
  • sudo reboot and you should now see CONSUL running at your ip address in the browser after the server reboot.

Hey @paul-muckypuddle,

Thank you for opening an issue about that one. Glad we got it working. :tada:

kishan
@kivenkat_gitlab

i am trying to extablish a lock from 2 process(each process from a differt pod). In first trail, 1 process(assume p1 process got the lock) is getting the lock succesfully. But when i try to kill & start the p1 process, the lock is not getting shiffting to the other process(p2) provided the p2 tries for every 5s. Niether process is getting the lock.
But in log i try to see the error as 'already started' in the both the process logs. When i check for the consul process in ps-ef , vain.
And if i try to stop the 2 process and start againg simatanouly, either one will get the lock and flaw goes again.

commad used "/tmp/consul lock -timeout 5s t1 " while :; do sleep 10; done"" FYI, i am tring in golang exec package as
cmd := "/tmp/consul lock -timeout 5s t1 \" while :; do sleep 10; done\""
aa := exec.Command("/bin/sh", "-c", cmd)

samba-b
@samba-b
Hi @voodoorai2000 I have tried your steps for "502 Bad gateway - connect() to unix:/home/deploy/consul/shared/sockets/unicorn.sock" but I could not find any luck. I check the folder manually to check if unicorn.sock is present but I could not find any
samba-b
@samba-b
Hi Folks, Is there any way that we can develop and deploy in the same environment?
Raimond Garcia
@voodoorai2000
Hey @kivenkat_gitlab,
You probably looking for the Hashicorp consul project:
https://gitter.im/hashicorp-consul/Lobby

Hey @samba-b,
You might just be missing a cap production deploy from your local machine: consul/installer#107

Regarding developing and deploying in the same environment, if you mean running CONSUL in the production environment in your local machine, sure, just add the environment option when starting the server: bin/rails s -e production

praveenannepu
@praveenannepu
I am working on consul clustering and I observed that when we send a key/value create request explicitly to a follower using curl command, then the follower is able to handle the request and in fact key/value pair is also getting created. Could someone please point me to the consul documention where this behavior of Master & Follower is explained?