Help installing or if possible is there any automated script for installing like the one GasparI made for ubuntu 16?
Hi there, I would apreciate some help. basically I know some frontend webdev but I'm not good at building dependencies or stuff
so couldn't make the regular install work, neither the docker install and the only video I found in youtube is installing in Mac
so is there any automatic installation script? like the one GasparI had made? or any other way to install it ? or more detail list of the commands needed for ubuntu?
joesab Sun 26 Jul 2020 6:35PM
Thanks
sure sounds fare
I´ll install a fresh ubuntu and post the results
joesab Mon 27 Jul 2020 5:17AM
So I installed it in a new fresh Ubuntu 18 with docker, everything fine, but after this command
sudo docker-compose up -d
then i check the website and Nginx Return error 503 bad gateway
According to the instructions that’s because rails is not running, how can I run rails?
that´s where I got stuck last time
Here are my docker compose logs (they are long lines, I posted it in pastebin, so I don’t saturate this forum)
if it doen´t work I may try the development install one by one
thanks you for your time and for this awesome piece of software

Robert Guthrie Mon 27 Jul 2020 6:55AM
@joesab Stick with this method, unless you want to edit the code... but even then, you'll likely want this step to host it.
The stable image can take a few minutes to boot, and only then will rails be available. It looks like nginx and rails never saw a request..
So I would recommend booting it up with docker-compose up -d
Watch the client app build process, by running docker-compose logs -f
then when you see
loomio-app | [120] Use Ctrl-C to stop
loomio-app | [120] - Worker 0 (pid: 126) booted, phase: 0
loomio-app | [120] - Worker 1 (pid: 138) booted, phase: 0
you should be good to go.
And you should definately see something happen in your logs at that point, so if it does not work, post that, because that will say where the request got stuck.
joesab Mon 27 Jul 2020 7:55PM
I tried and it didn´t work
so I reinstalled Ubuntu and started again
this time in localhost Nginx say error 500
here is the full log since installing Docker to the last steps (docker logs)
once more I appreciate you taking the time to help me troubleshoot it

Robert Guthrie Mon 27 Jul 2020 8:29PM
try
docker-compose pull
docker-compose down
docker-compose run app rake db:setup
docker-compose run app rake db:migrate
docker-compose up -d
joesab Mon 27 Jul 2020 9:11PM
thaks, I tried but still keeps giving me error 500 bad gateway
it call may attentions that the logs complain about certificates not created (I´m using my localhost instead of a domain, is it mandatory to use a domain for Loomio to work)
also almost at the end it says something about about creating a database Loomio production (say it already exist)
any idea what can I do to fix it?

Robert Guthrie Mon 27 Jul 2020 9:12PM
yes it's mandatory to use a publicly accessible domain for loomio-deploy.

Robert Guthrie Mon 27 Jul 2020 9:12PM
the main error is from the database cannot create loomio_production, already exists.
joesab Mon 27 Jul 2020 9:19PM
Thanks for the quick answer
ok i will use a publicly accesible domain
I mean I know that for a certificate a domain is mandatory, so I guess if I use loomio in a regular localhost (without ssl certificates) it wouldn´t work. that´s no problem.
my question then would be how can I fix the database since is a container
Robert Guthrie · Sun 26 Jul 2020 1:36PM
Hi @joesab, if you want my help, you're going to have to follow the loomio-deploy instructions, and if you get stuck, explain what you did, and include the relevant logs.
That's my best effort to make it easy to install.