Closed simransinghal closed 6 years ago
@andyl I want to work on this issue.
Hi @simransinghal,
This is a great idea. We have a dated description (https://github.com/bugmark/bugmark/blob/master/notes/devenv.md). This could be a starting point for you to create detailed instructions that we can put on our README. If you run into issues, @andyl knows the answer to.
Hello @andyl @GeorgLink I send the pull request for this issue. Please give the suggestions on how I can improve it more.
There is a Bugmark intern offer on this issue. My merged PR for this issue : https://github.com/bugmark/exchange/pull/73
@snehasi if this issue is resolved, can you close it yourself?
I will test the installation instructions later today and see if I can get them to work for a clean Ubuntu VM.
I will close the issue, if I was successful.
Mostly now we're cloning Linode VMs. Instant provisioning.
I still want to go through and test the instructions on a local machine.
Installation instructions are important for onboarding new people. The installation is one of the first things newcomers may try and if it fails, they may not stick around.
Error in step Development Environment Provisionsing - 4. Provision the dev machine
. - See output in below image.
Error exists even on a second try.
What is the output in step Development Environment Provisionsing - 5. Check database status
supposed to be? not-found
and inactive
are intuitively not what I want - See output in below image.
Error in step Application Bootstrap - 1. Install ruby gem
. - See output in below image.
I'm stopping the installation attempt, until we resolve the errors.
Hi,
"Error in step Development Environment Provisionsing - 4. Provision the dev machine. - See output in below image." - This is due to your ansible configuration, I got the same error, as you can see below:
This error can be resolved by updating your ansible config
to the one specified in the requirements, after successful dev env config setup, you'd get an output like the one below:
"What is the output in step Development Environment Provisionsing - 5. Check database status supposed to be? not-found and inactive are intuitively not what I want - See output in below image"
This is because your development environment provisioning isn't complete, you can check the database status and see active sessions after that only, which is the sixth step.
Try sudo gem install bundler
.
Thanks @snehasi I can tell that you have some great knowledge of how Bugmark is setup.
Error in step Development Environment Provisionsing - 4. Provision the dev machine.
This error can be resolved by updating your ansible config to the one specified in the requirements, after successful dev env config setup, you'd get an output like the one below:
I followed the instructions step by step.
What command exactly needs to be added to the instructions to update ansible config
? (I tried sudo apt-get update
and sudo apt-get upgrade
).
I like the idea of including 'check points' in the instructions. Checkpoints make sure that a step was completed successfully, such as checking that the ansible version is correct.
From my notes: If you see the error fatal: [localhost]: FAILED! => {"changed": false, "failed": true,"msg": "Unsupported parameter for module: path"} It's probably because your ansible version isn't compatible, try upgrading your ansible version with:
Check the version: ansible --version
To upgrade your ansible version: sudo -H pip install --upgrade ansible
If this doesn't work, try removing all the previous versions and installing again with PPA:
compgen -c | grep ansible (should not return anything)
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
Thanks @snehasi
The first option did not work (sudo -H pip install --upgrade ansible
).
When I run the fist line of the alternative, I do get a return, against your instructions:
I'm following the instructions only, because I want to make sure that someone who does not have a background in all this can setup the dev environment.
What is the necessary step we need to add to the instructions, to make them work?
@GeorgLink
As I said you have to remove the previous versions of ansible first
, grep is just searching for ansible and should return nothing, as a check afterwards.
pip is mostly failing build these days, that's why I have also specified how to install with ppa.
Thanks @snehasi
As I said you have to remove the previous versions of ansible first, grep is just searching for ansible and should return nothing, as a check afterwards.
What is the command for that?
sudo apt-get remove ansible
Awesome. Thank you!
@snehasi I appreciate your help through the install instructions.
Is it normal, that I get yelled at (all caps) that INFLUXDB NOT FOUND
during step Application Bootstrap - Create databases
?
No, that's not an error, InfluxDB is turned off for this repo, while setting up influuxDB for funderclone and intern exercises, we simply included it in the installation in ./util/code_util/cfg/_ansible/playbooks/bugmark.yml
Awesome, thanks @snehasi
I think, the server is up and running 👍
Do you know how to make the server accessible for a Windows host? Neither of the IP addresses work.
I solved it somehow :-)
Thanks a million @snehasi
I will create a pull request with minor changes that I had to make to get it to work.
You can check out this link, just in case: https://serverfault.com/questions/136715/how-do-i-access-a-web-server-on-a-virtualbox-from-the-host-machine Great!
Thanks again @snehasi for all your help today.
Turns out that the installation notes were okay, it was an error in one of the scripts.
I created a pull request with the fix and minor changes to the devenv.md notes. #82
This issue will be closed automatically, when pull request #82 is merged.
Okay, this is great. Nice fix!
Have a look at #85 - I think we can create off-the-shelf server images with a CI/regression tests, and bypass the need for this complicated installation script.
It's easy for the newbies to start contributing to the project if we have good Readme including the steps of setting up the local environment of the project.