Giter VIP home page Giter VIP logo

Comments (37)

smarshy avatar smarshy commented on September 22, 2024 1

@tapasweni-pathak I think the suggested changes in docs here and in #72 are related and have been merged.

from vms.

willingc avatar willingc commented on September 22, 2024

@veniemi1 Here's the basic plan:

  1. Follow the installation instructions to install vms and run tests as described in the Installation Guide.
  2. Recommend edits and clarification to the installation guide.md file in the docs directory
  3. Click Fork on the VMS repo to create a fork of the repo in your github account.
  4. Create a new branch on your local system and edit the installation guide.md file
  5. Commit and push your changes to your github account.
  6. Submit a pull request to the systers/vms repo.

from vms.

veniemi1 avatar veniemi1 commented on September 22, 2024

Thank you! This helps a lot.

from vms.

willingc avatar willingc commented on September 22, 2024

@veniemi1 reports:
screen shot 2015-06-16 at 5 35 17 pm
screen shot 2015-06-16 at 5 34 56 pm

from vms.

willingc avatar willingc commented on September 22, 2024

@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.

vubo avatar vubo commented on September 22, 2024

@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.

veniemi1 avatar veniemi1 commented on September 22, 2024

I just created my account. My username is veniemi1, same as here.

from vms.

vubo avatar vubo commented on September 22, 2024

@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.

willingc avatar willingc commented on September 22, 2024

@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.

veniemi1 avatar veniemi1 commented on September 22, 2024

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.
vagrant_up_error

from vms.

willingc avatar willingc commented on September 22, 2024

@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:
screen shot 2015-06-19 at 7 33 20 am

from vms.

willingc avatar willingc commented on September 22, 2024

@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.

veniemi1 avatar veniemi1 commented on September 22, 2024

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.

willingc avatar willingc commented on September 22, 2024

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.

willingc avatar willingc commented on September 22, 2024

@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.

willingc avatar willingc commented on September 22, 2024

@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.

veniemi1 avatar veniemi1 commented on September 22, 2024

@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.

willingc avatar willingc commented on September 22, 2024

@veniemi1 A few comments/questions...

  1. Would you mind posting a screen shot of the errors or what is happening since that will help me :)
  2. Which Vagrantfile are you using the one in the repo or the one above in the comments?
  3. When you did vagrant up, did you select option 1 for the networking question?
    screen shot 2015-06-21 at 10 46 31 pm
  4. 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:
    screen shot 2015-06-21 at 10 50 34 pm
    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.

veniemi1 avatar veniemi1 commented on September 22, 2024

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.
directorychange

from vms.

willingc avatar willingc commented on September 22, 2024

@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.

veniemi1 avatar veniemi1 commented on September 22, 2024

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.

willingc avatar willingc commented on September 22, 2024

@veniemi1 Now I am completely perplexed...
Can you type the following commands and there output (or screenshot):

  1. pwd
  2. echo $PATH
  3. cd /
  4. 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.

veniemi1 avatar veniemi1 commented on September 22, 2024

Alright, thank you! Here's what happened when I typed those commands in. I assumed you wanted them with vagrant still running.
test out commands

from vms.

veniemi1 avatar veniemi1 commented on September 22, 2024

@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?
postgresql_screen

from vms.

vubo avatar vubo commented on September 22, 2024

@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.

willingc avatar willingc commented on September 22, 2024

@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.

veniemi1 avatar veniemi1 commented on September 22, 2024

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?

postgres

from vms.

vubo avatar vubo commented on September 22, 2024

@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.

veniemi1 avatar veniemi1 commented on September 22, 2024

It worked!

from vms.

veniemi1 avatar veniemi1 commented on September 22, 2024

@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.
capture

from vms.

vubo avatar vubo commented on September 22, 2024

@veniemi1 after:

cd vagrant

just do:

cd vms

from vms.

veniemi1 avatar veniemi1 commented on September 22, 2024

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.
capture1

from vms.

willingc avatar willingc commented on September 22, 2024

@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).
screen shot 2015-06-25 at 7 55 41 am
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.
screen shot 2015-06-25 at 7 57 22 am

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.

vubo avatar vubo commented on September 22, 2024

@willingc @veniemi1 yes, I start vagrant from the "vms" and "vagrantfile" directory. Here is it (V:\DJANGO\vms):
vagrant

And I do:
vag2
vag3

I hope, it helps!

from vms.

veniemi1 avatar veniemi1 commented on September 22, 2024

@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?
capture3
\dt command
capture2
python manage.py syncdb command

from vms.

vubo avatar vubo commented on September 22, 2024

@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.

veniemi1 avatar veniemi1 commented on September 22, 2024

I'm done! I got everything in the instructions to work.

from vms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.