Comments (37)
@tapasweni-pathak I think the suggested changes in docs here and in #72 are related and have been merged.
from vms.
@veniemi1 Here's the basic plan:
- Follow the installation instructions to install vms and run tests as described in the Installation Guide.
- Recommend edits and clarification to the installation guide.md file in the docs directory
- Click Fork on the VMS repo to create a fork of the repo in your github account.
- Create a new branch on your local system and edit the installation guide.md file
- Commit and push your changes to your github account.
- Submit a pull request to the systers/vms repo.
from vms.
Thank you! This helps a lot.
from vms.
@veniemi1 reports:
from vms.
@veniemi1 Let's move the discussion from email to the issue here :)
Looking at the error message, it seems that vagrant does not believe that VirtualBox is installed or installed and configured correctly.
My recommendation would be to start at the beginning of the installation guide http://vms.readthedocs.org/en/latest/Installation%20Guide/#installation-guide
Make sure that you have gone through each step. Or start over and go step by step. Leaving a message here with a screenshot if you have difficulty or errors with a step. Detailed instructions on installing VirtualBox are here: https://www.virtualbox.org/manual/ch02.html#installation_windows
from vms.
@veniemi1 nice to meet you and work together on the VMS project 🍀
Could you send me your readthedocs.org-username so I added you to the project.
from vms.
I just created my account. My username is veniemi1, same as here.
from vms.
@veniemi1 done!
Now the Repository URL for the ReadTheDocs project is https://github.com/vubo/vms. This is my forked repository. To work with the docs, you should fork the develop branch from https://github.com/systers/vms and change the link in the project settings on the readthedocs.org. Your link will most likely look like this: https://github.com/veniemi1/vms
Good luck!
from vms.
@vubo Thanks a bunch for helping out 🍰 😄
@veniemi1 Go Vanda go! I'm around today if you have any questions or wish to chat via Google Hangout.
from vms.
The vagrant up command seems to be working through the Vagrantfile just fine until it gets to the config.vm.box = "systers-vms-dev" line. The exact error message is below.
from vms.
@veniemi1 Let's check your network first...
Go to this link in the browser: http://54.183.32.240/vagrant/box/
You should see this output:
from vms.
@veniemi1 If the prior step worked...
Go to the command line: enter vagrant destroy
which will remove all cruft from the prior run of vagrant
After that completes: enter vagrant up
Let me know the output.
from vms.
When I went to the link you provided, everything was the same. However, the vagrant destroy and vagrant up yielded the same error message as earlier.
from vms.
OK the good news it's not a networking issue.
I'm going to think about what would make sense to try next.
In the meantime, I want you to submit a pull request today to get used to the git workflow. Since the docs are not dependent on resolving the vagrant environment, please work on Issue #62. Please leave questions as they come up on Issue #62
from vms.
@veniemi1 Another thing to try with Vagrant. Vagrant keeps all of its user data in a .vagrant.d
directory http://docs.vagrantup.com/v2/installation/uninstallation.html. Please delete the .vagrant.d
directory completely.
Then try vagrant up
.
Just out of curiosity, what are you using for your terminal/command line? Powershell?
from vms.
@veniemi1 I wrote a new Vagrantfile for you to try:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box_url = "http://54.183.32.240/vagrant/box/systers-vms.box"
config.vm.box = "systers-vms-dev"
config.vm.provider "virtualbox" do |vb|
vb.gui=true
end
config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
config.vm.network "forwarded_port", guest: 8000, host:8001
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "public_network"
end
from vms.
@willingc I'm having another issue with my vagrant. I got the vagrant up command to work and the VM is started... but it's asking me for a login and password even though I never created one when I installed either VirtualBox or Vagrant. This is preventing me from changing the directory. I've also tried moving on to the next step of installing the python-psycopg2 module. Is this another thing I need to download, or should the code in the instructions do the trick? Thank you for all your help.
from vms.
@veniemi1 A few comments/questions...
- Would you mind posting a screen shot of the errors or what is happening since that will help me :)
- Which Vagrantfile are you using the one in the repo or the one above in the comments?
- When you did
vagrant up
, did you select option 1 for the networking question?
- Make sure you are changing directories in the correct window. You want to change directory
cd /vagrant/vms
(windows command may be slightly different) in the same terminal window where you typed:vagrant up
,vagrant ssh
. See example here:
Note: you do not type the change directory in the VirtualBox window.
As for Postgres and installing the python-psychopg2 module, you need to be able to have cd /vagrant/vms
succeed before moving on to this.
Good luck. I'm traveling all day tomorrow so please leave questions and screenshots here in GitHub. Thanks!
from vms.
I'm using the Vagrantfile that you posted. I got it to work up to the point of changing the directories but can't get that to work. I've searched on google for an equivalent windows command, but haven't found anything useful. Below is the error message I'm getting. Is there a resource you know of to translate commands like this if it's needed.
from vms.
@veniemi1 Well the good news is that you were successful loading the Vagrantfile and having it spin up a virtual machine. When working in the virtual machine, you should be able to just use Linux commands so it is the correct command cd /vagrant/vms
.
If you do an ls -al
do you get the same printout that I got above.
Also, how are you getting a terminal window? Powershell? cmd?
from vms.
I just did an ls -al and I got what you had above. I'm getting a terminal window through the command prompt. Also, quick side note, when I'm typing here on github how do I get the little boxes that specify that something is code rather than normal text?
from vms.
@veniemi1 Now I am completely perplexed...
Can you type the following commands and there output (or screenshot):
pwd
echo $PATH
cd /
ls
To get something to come up as a code box you type at the start and
at the end of the phrase. If you search GitHub Markdown, it will give you all the options :)
from vms.
Alright, thank you! Here's what happened when I typed those commands in. I assumed you wanted them with vagrant still running.
from vms.
@willingc I'm working on setting up PostgreSQL and I'm stuck on how to change the lines of code in the pg_hba.conf file. The code I am entering is sudo nano /etc/postgresql/9.4.3/main/pg_hba.conf
. The numbers are the version of PostgreSQL that I have. When the file opens there is no text for me to change. Is this normal? Or, have I messed up somewhere?
from vms.
@veniemi1 no, it should not be empty. This means that you enter the wrong path. Go to the /etc/postgresql:
cd etc
cd postgresql
and see the contents of this folder
ls
most likely, you have another version of the PostgreSQL and another folder.
from vms.
@vubo Thanks for jumping in here. Much appreciated :)
@veniemi1 I'm at a conference this week so I only have wifi for a limited time in the evenings at my hotel. I will do my best to get back once a day.
I believe that @vubo is working on Windows so please follow her suggestions. Thanks :)
from vms.
Okay, thank you. I'll take that into account as I'm working these next couple days. When I did the ls
command I got this below, but the file is still empty when I open it using 9.3 as the version number in the command. Do you have any suggestions?
from vms.
@willingc yes, you're right, I am working on Windows and happy to help :) Nice conference 🌸
@veniemi1 ok, this means that you need to enter
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
Does It work?
from vms.
It worked!
from vms.
@willingc I've gotten through the rest of the postgresql setup. However, I'm having problems with the cd /vagrant/vms
command again, which is annoying because I've gotten it to work before. I can get into the vagrant directory but not the vms directory. It says No such file or directory
. For reference, I'm working on the Generate Database Tables section. Thank you for all your help.
from vms.
@veniemi1 after:
cd vagrant
just do:
cd vms
from vms.
My computer isn't finding the vms directory when I enter cd vms
, and it doesn't appear to exist when I do the ls -al
command. I also cannot find the manage.py file that is needed for the next line of code to work.
from vms.
@veniemi1 Just a thought...
Let's define for the moment 'Windows box' as your Windows computer and 'New box' for the virtual machine (where you see vagrant-ubuntu-trusty-32).
I am guessing that we have a very important step missing in the existing documentation (@vubo please confirm from your windows experience).
When the vagrant up
command is given on the 'Windows box', it should be given from the directory that holds the VMS files that were cloned from GitHub (delete the Vagrantfile and replace with the newer Vagrantfile that you have worked with this week).
Basically when you type in vagrant up
into your Windows terminal, the directory that you are in should have Vagrantfile as well as vms directory and docs directory.
I think this will solve the issue of not finding the vms
directory when in the 'New box' virtual machine terminal.
Hang in there. This will be an important documentation improvement if I am correct ;)
from vms.
@willingc @veniemi1 yes, I start vagrant from the "vms" and "vagrantfile" directory. Here is it (V:\DJANGO\vms):
I hope, it helps!
from vms.
@willingc I fixed the issue with cloning the repository, but now can't get the line python manage.py syncdb
to work because it's saying that password authentication failed. I also can't get my computer to recognize the \dt
command inside the postgres or python manage.py sqlall app_name_here
command. On the last command, what app name should I use?
\dt
command
python manage.py syncdb
command
from vms.
@veniemi1 in the file /vms/vms/settings.py:
# Database
# Change these database settings if your database engine, database name,
# username or password changes
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'vms',
'USER': 'myuser',
'PASSWORD': 'mypassword',
'HOST': 'localhost',
}
}
you need to change "myuser" and "mypassword" to your user name and password.
from vms.
I'm done! I got everything in the instructions to work.
from vms.
Related Issues (20)
- Upgrade Django to 3.0.9(latest) HOT 20
- Fix binary string in the URL on the email verification HOT 6
- Add badges to the Readme File for codecov HOT 9
- Fix the unable to locate element error HOT 19
- [Feature] Add Hide/show toggle feature for all password fields HOT 30
- Country, State & City field must be a dropdown in Volunteer Signup HOT 7
- Resize-able Text area in Sign-Up Volunteer HOT 7
- Fix some failing test cases HOT 14
- Bug: Set Top margin of main container HOT 4
- Step by step guide for absolute beginners to contribute HOT 10
- fix label error in sign up
- Setup and run HOT 2
- Bug: Error when registering as admin HOT 7
- Readme for Open Source Hack HOT 2
- Bug: Email Confirmation link is not correct HOT 2
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Add toggling effect on buttons HOT 5
- Deploy to Heroku and write instructions on how to do that HOT 12
- blog: OSH Experience HOT 6
- Admin account activation URL is not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vms.