*** replaceafill has joined #novawebdev | 11:44 | |
*** mr_german has joined #novawebdev | 12:49 | |
mr_german | replaceafill, I'll wait for the afternoon meeting | 13:16 |
---|---|---|
mr_german | replaceafill, because I'm think you're with Louis | 13:16 |
replaceafill | mr_german, yes | 13:17 |
replaceafill | mr_german, i was waiting for you at 10 am.... | 13:17 |
mr_german | replaceafill, yes... I know | 13:17 |
replaceafill | mr_german, i can do 1 pm if you can | 13:17 |
mr_german | sorry about that | 13:17 |
mr_german | replaceafill, k | 13:17 |
replaceafill | mr_german, you around? | 13:26 |
mr_german | replaceafill, yep | 13:26 |
replaceafill | mr_german, can we get started? i'd like you to at least try the ansible playbook i have | 13:27 |
replaceafill | mr_german, because it'll require you to download a few things | 13:27 |
mr_german | replaceafill, k give me a moment | 13:27 |
replaceafill | mr_german, kk | 13:28 |
*** GFbot has joined #novawebdev | 13:39 | |
GFbot | replaceafill, ready! | 13:39 |
replaceafill | ok | 13:40 |
replaceafill | GFbot, https://gitlab.com/replaceafill/ansible-tendenci/ | 13:40 |
replaceafill | clone that, cd into it and run: vagrant up | 13:41 |
replaceafill | GFbot, it's the same approach you used for setting up CiviCRM a couple of months ago | 13:41 |
replaceafill | ansible + vagrant | 13:42 |
GFbot | replaceafill, k | 13:43 |
GFbot | replaceafill, wiat | 13:43 |
GFbot | wait* | 13:43 |
GFbot | replaceafill, I can't clone the repository | 13:45 |
GFbot | I need permissions | 13:45 |
replaceafill | GFbot, i added you as a master | 13:45 |
replaceafill | to the project | 13:45 |
replaceafill | GFbot, check the gitlab page | 13:46 |
replaceafill | GFbot, were you able to clone it? | 13:49 |
GFbot | yep | 13:50 |
replaceafill | GFbot, what was it? | 13:50 |
GFbot | I forgot to add my ssh | 13:50 |
replaceafill | ah ok | 13:50 |
replaceafill | i figured | 13:50 |
GFbot | replaceafill, I have to run | 13:50 |
GFbot | playbook ? | 13:50 |
replaceafill | no | 13:50 |
replaceafill | just cd into the repo and do: vagrant up | 13:51 |
replaceafill | the playbook is hardcoded in the Vagrantfile | 13:51 |
GFbot | replaceafill, I have this issue | 13:52 |
GFbot | https://pastebin.com/M8bjfAPy | 13:52 |
replaceafill | GFbot, don't you have virtualbox installed? | 13:52 |
replaceafill | GFbot, are you running this from Windows? | 13:52 |
GFbot | replaceafill, nope | 13:53 |
GFbot | I have to install it | 13:53 |
replaceafill | GFbot, you need virtualbox, and ansible installed | 13:53 |
GFbot | replaceafill, *done* | 13:55 |
replaceafill | GFbot, done what? | 13:55 |
GFbot | vangrant is downloading "xenial64" | 13:56 |
replaceafill | ah ok | 13:56 |
replaceafill | cool | 13:56 |
replaceafill | if everything goes well, you'll have a working Tendenci instance accessible under http://localhost:8000 | 13:57 |
GFbot | k | 13:57 |
GFbot | replaceafill, oh, no.. I have another issue | 13:59 |
GFbot | https://pastebin.com/hJZfss6Q | 14:00 |
replaceafill | GFbot, again... are you running this in Windows? | 14:00 |
GFbot | no | 14:00 |
replaceafill | do: apt-cache policy vagrant | 14:01 |
GFbot | https://pastebin.com/ZGe0UTcu | 14:01 |
replaceafill | GFbot, have you changed anything since last time you set up CiviCRM? | 14:02 |
GFbot | yes.. I uninstalled ubuntu 17.04, now I have 16.04 | 14:04 |
replaceafill | now do: apt-cache policy ansible | 14:04 |
GFbot | https://pastebin.com/qY3XYgea | 14:05 |
replaceafill | GFbot, let's first move you to the same versions i'm using | 14:07 |
replaceafill | i don't think that's the problem, but it'll help down the road | 14:07 |
replaceafill | sudo add-apt-repository ppa:ansible/ansible | 14:08 |
replaceafill | and download https://releases.hashicorp.com/vagrant/1.9.5/vagrant_1.9.5_x86_64.deb | 14:09 |
replaceafill | and install it | 14:09 |
GFbot | k | 14:09 |
replaceafill | after adding the ansible ppa, do the usual apt update/upgrade to get the new version | 14:09 |
replaceafill | it should be ansible 2.4 and vagrant 1.9.5 | 14:10 |
GFbot | replaceafill, it's upgrading right now! | 14:14 |
replaceafill | GFbot, ok | 14:14 |
replaceafill | after you have both packages upgraded, we'll try removing the 4 GB limit in the Vagrantfile | 14:14 |
replaceafill | https://gitlab.com/replaceafill/ansible-tendenci/blob/master/Vagrantfile#L57 | 14:15 |
GFbot | *done* | 14:16 |
GFbot | should I run again Vangrant? | 14:16 |
replaceafill | yes | 14:16 |
replaceafill | destroy the old VM first | 14:17 |
replaceafill | vagrant destroy | 14:17 |
replaceafill | then vagrant up | 14:17 |
replaceafill | open the virtualbox GUI | 14:17 |
replaceafill | and you should see a tendenci_vm being created | 14:17 |
GFbot | *clean* | 14:17 |
GFbot | k | 14:17 |
GFbot | replaceafill, same error | 14:23 |
GFbot | :/ | 14:23 |
replaceafill | GFbot, did you comment the memory setting in the Vagrantfile? | 14:23 |
GFbot | oh god.. | 14:23 |
GFbot | nop | 14:23 |
replaceafill | destroy | 14:24 |
replaceafill | comment the setting and up again | 14:24 |
replaceafill | according to google it may be related | 14:24 |
GFbot | nope | 14:24 |
replaceafill | now run: uname -m | 14:24 |
GFbot | https://pastebin.com/Ag80rhRW | 14:25 |
GFbot | "x86_64" | 14:25 |
replaceafill | ok, git checkout Vagrantfile | 14:25 |
replaceafill | according to google the error comes from a bios setting | 14:26 |
replaceafill | https://stackoverflow.com/questions/33304393/vt-x-is-disabled-in-the-bios-for-both-all-cpu-modes-verr-vmx-msr-all-vmx-disabl | 14:26 |
replaceafill | so you'll need to check your BIOS | 14:26 |
replaceafill | and look for something related to virtualizations | 14:27 |
replaceafill | i kind of remember doing that in my old laptop | 14:27 |
GFbot | :/ | 14:28 |
GFbot | ok | 14:28 |
replaceafill | GFbot, feel free to go get lunch | 14:29 |
replaceafill | and get back to this later | 14:29 |
GFbot | replaceafill, k | 14:29 |
GFbot | thx | 14:29 |
replaceafill | i expected this kind of issue to show up | 14:29 |
replaceafill | but you'll need to figure that out on your own | 14:30 |
*** jelkner has joined #novawebdev | 14:40 | |
jelkner | hello replaceafill | 14:46 |
jelkner | i can't stay long, just reinstalling hexchat on my desktop after installing ubuntu 17.10 | 14:47 |
jelkner | and wanted to make sure it all worked. | 14:47 |
jelkner | ACTION signing out | 14:47 |
GFbot | replaceafill, im back | 15:59 |
replaceafill | GFbot, ok | 15:59 |
replaceafill | GFbot, you should look into the bios for the virtualization option | 15:59 |
GFbot | ok | 15:59 |
GFbot | replaceafill, I need to restart | 16:02 |
replaceafill | GFbot, kk | 16:02 |
GFbot | replaceafill, brb | 16:02 |
*** mr_german has joined #novawebdev | 16:07 | |
mr_german | replaceafill, I *fixed* it | 16:08 |
replaceafill | mr_german, great | 16:08 |
mr_german | everything is going well by now | 16:09 |
replaceafill | mr_german, did you remove the comment on the 4G memory setting? | 16:09 |
mr_german | yep | 16:09 |
replaceafill | mr_german, you'll need at least 4G of available RAM btw | 16:09 |
replaceafill | mr_german, how much RAM does your PC havE? | 16:09 |
mr_german | 16gb | 16:09 |
replaceafill | mr_german, ah cool | 16:09 |
replaceafill | mr_german, i'll go get lunch | 16:11 |
mr_german | k | 16:11 |
replaceafill | mr_german, call my cell when it finishes or you get an issue to come back to IRC, ok? | 16:11 |
mr_german | replaceafill, sure | 16:12 |
mr_german | thx | 16:12 |
replaceafill | mr_german, did it finish? | 17:32 |
mr_german | nop | 17:32 |
mr_german | it says | 17:32 |
mr_german | "TASK [tendenci : Run the django deploy commands]" | 17:32 |
replaceafill | mr_german, ok | 17:32 |
replaceafill | mr_german, right, that takes time | 17:33 |
mr_german | replaceafill, k | 17:33 |
mr_german | replaceafill, omg.. I have a new issue | 17:47 |
replaceafill | mr_german, paste link? | 17:49 |
mr_german | https://pastebin.com/30Xy1Uif | 17:49 |
replaceafill | mr_german, can you check the RAM of the VM in the virtualbox GUI? | 17:51 |
replaceafill | just to make sure it's 4GB | 17:51 |
mr_german | Shoud I uncomment | 17:52 |
mr_german | ? | 17:52 |
replaceafill | wait | 17:52 |
replaceafill | go to the virtualbox GUII | 17:52 |
mr_german | ok | 17:52 |
replaceafill | look for the tendenci_vm | 17:52 |
mr_german | it has | 17:52 |
mr_german | 1gb | 17:53 |
replaceafill | sigh.... | 17:53 |
replaceafill | you didn't "git checkout Vagrantfile"? | 17:58 |
mr_german | I am really sure I did that | 17:58 |
replaceafill | git status? | 17:58 |
mr_german | I have to destroy and create a new one? | 17:58 |
replaceafill | no | 17:58 |
replaceafill | first, make sure the repo is clean on master | 17:58 |
mr_german | yes it is | 17:58 |
replaceafill | but that was the issue, right? | 17:58 |
replaceafill | you forgot to remove the comment? | 17:58 |
mr_german | yes.. | 17:58 |
replaceafill | ok | 17:58 |
replaceafill | so do: | 17:58 |
replaceafill | vagrant halt | 17:58 |
replaceafill | and wait for the vagrant GUI to say that the machine is turned off | 17:58 |
mr_german | vagrant halt? | 17:58 |
replaceafill | yes | 17:58 |
mr_german | and then? | 17:58 |
replaceafill | is the vm turned off? | 17:59 |
replaceafill | in the vagrant GUI? | 17:59 |
mr_german | yep | 17:59 |
mr_german | "==> default: Attempting graceful shutdown of VM... | 17:59 |
mr_german | " | 17:59 |
replaceafill | in the virtualbox GUI | 18:00 |
replaceafill | select the vm and look for its settings | 18:00 |
replaceafill | you can do CTRL + S on it | 18:00 |
replaceafill | then System | 18:01 |
replaceafill | you should see the amount of RAM there being 1GB | 18:01 |
replaceafill | change it to 4096 MB | 18:01 |
mr_german | done | 18:01 |
replaceafill | ok, do: vagrant up | 18:02 |
replaceafill | i think it'll finish real quick, since it'll just start the VM | 18:03 |
mr_german | yep | 18:03 |
mr_german | and now? | 18:04 |
replaceafill | then do: vagrant provision | 18:04 |
replaceafill | it'll look like it's going through all the procedure again, but it should report a lot of tasks as not changed | 18:04 |
mr_german | yep | 18:05 |
replaceafill | until you get to the "Run the django deploy commands" task again | 18:05 |
replaceafill | that one takes time | 18:05 |
replaceafill | for the record, what it happened was that the VM ran out of memory | 18:05 |
replaceafill | the migrate task requires at least 4 GB | 18:05 |
replaceafill | or some swap area available (like in the VPS) | 18:06 |
replaceafill | since it's a pain to set up swap in ansible/vagrant and we have enough RAM, we do it that way | 18:06 |
replaceafill | (no swap) | 18:06 |
replaceafill | if it complains again, you can destroy and start over | 18:07 |
replaceafill | at this point you should have a "src" directory created | 18:07 |
replaceafill | with tendenci inside | 18:07 |
mr_german | yep | 18:09 |
mr_german | replaceafill, | 18:12 |
mr_german | https://pastebin.com/Fu1F5hAq | 18:12 |
replaceafill | ok | 18:13 |
replaceafill | go to http://localhost:8000 | 18:13 |
mr_german | :o | 18:14 |
mr_german | it works | 18:14 |
replaceafill | cool | 18:14 |
replaceafill | now the hairy part... | 18:14 |
replaceafill | ssh into the VM with: vagrant ssh | 18:14 |
replaceafill | i think we're going to have to hang out for this | 18:15 |
mr_german | it works! | 18:15 |
replaceafill | mr_german, give me a moment, i'm getting the files for the next step | 18:21 |
mr_german | ok | 18:23 |
replaceafill | my connection is a potato today... | 18:24 |
replaceafill | 80 KB/s transfer rate :'( | 18:24 |
mr_german | replaceafill, we're in the same situation | 18:26 |
mr_german | :( | 18:26 |
replaceafill | mr_german, https://gitlab.com/replaceafill/ansible-tendenci/snippets/1680930 | 18:30 |
replaceafill | under the title there's an attachment with the current db dump | 18:30 |
replaceafill | we'll start by restoring that | 18:30 |
replaceafill | put that file next to the Vagrantfile | 18:31 |
mr_german | k | 18:34 |
mr_german | and then | 18:35 |
mr_german | ? | 18:35 |
replaceafill | vagrant ssh | 18:35 |
replaceafill | then: sudo su postgres | 18:35 |
replaceafill | and then run this snippet: https://gitlab.com/replaceafill/ansible-tendenci/snippets/1680932 | 18:35 |
replaceafill | oh | 18:36 |
replaceafill | wait | 18:36 |
replaceafill | before the sudo su postgres | 18:36 |
replaceafill | stop the apache service | 18:36 |
replaceafill | sudo service apache2 stop | 18:36 |
mr_german | I have to import the db? | 18:37 |
replaceafill | yes | 18:37 |
replaceafill | that's what line 9 does | 18:37 |
mr_german | done | 18:39 |
replaceafill | no errors? | 18:40 |
mr_german | nope | 18:40 |
replaceafill | cool, hold on | 18:40 |
replaceafill | mr_german, uploading changes | 18:46 |
replaceafill | mr_german, in theory this shold work :S | 18:46 |
replaceafill | mr_german, ok done | 18:48 |
replaceafill | you're still ssh'ed in the vm, right? | 18:48 |
mr_german | yep | 18:53 |
mr_german | replaceafill, | 18:53 |
replaceafill | oh, i have a better idea | 18:54 |
replaceafill | in the directory where you have the Vagrantfile | 18:54 |
replaceafill | git clone git@gitlab.com:replaceafill/ansible-tendenci.git nea4or | 18:56 |
replaceafill | cd nea4or | 18:56 |
replaceafill | git checkout tendenci_project | 18:57 |
replaceafill | ACTION remembers when he used to hate git... | 18:57 |
mr_german | k | 19:05 |
mr_german | replaceafill, and then | 19:05 |
mr_german | ? | 19:05 |
replaceafill | do you have a manage.py script inside the nea4or directory? | 19:06 |
replaceafill | after the checkout? | 19:06 |
mr_german | yes | 19:07 |
replaceafill | great | 19:07 |
replaceafill | almost there mr_german! | 19:07 |
replaceafill | hang on ;) | 19:07 |
mr_german | :D | 19:07 |
mr_german | ok | 19:07 |
replaceafill | now inside the VM | 19:07 |
replaceafill | cd /opt/tendenci/instances/ | 19:08 |
replaceafill | sudo mv domain_project domain_project_bak | 19:08 |
replaceafill | sudo cp -r /vagrant/nea4or . | 19:09 |
replaceafill | oops | 19:09 |
replaceafill | that last one should be | 19:09 |
replaceafill | sudo cp -r /vagrant/nea4or domain_project | 19:09 |
replaceafill | sorry | 19:09 |
mr_german | 1: cd /opt/tendenci/instances/ | 19:09 |
mr_german | 2: sudo cp -r /vagrant/nea4or . | 19:09 |
mr_german | 3: sudo cp -r /vagrant/nea4or domain_project | 19:10 |
mr_german | ? | 19:10 |
replaceafill | yeah | 19:10 |
mr_german | ok | 19:10 |
mr_german | done | 19:10 |
replaceafill | sudo chown -R www-data domain_project | 19:10 |
replaceafill | cd domain_project | 19:11 |
replaceafill | open the conf/local_settings.py and change the database password to "nea4orcmr" | 19:11 |
replaceafill | no | 19:11 |
replaceafill | nea4orcrm | 19:11 |
replaceafill | my typing sucks today... | 19:11 |
replaceafill | then: | 19:12 |
replaceafill | sudo /opt/tendenci/venv-2/bin/python /opt/tendenci/instances/domain_project/manage.py makemigrations | 19:12 |
replaceafill | and then: | 19:12 |
replaceafill | sudo /opt/tendenci/venv-2/bin/python /opt/tendenci/instances/domain_project/manage.py migrate | 19:12 |
replaceafill | (see why ansible is so awesome, all this crap is not necessary...) | 19:13 |
mr_german | "open the conf/local_settings.py and change the database password to "nea4orcmr""?? | 19:13 |
replaceafill | to "nea4orcrm" | 19:14 |
replaceafill | you're inside /opt/tendenci/instances/domain_project, right? | 19:14 |
mr_german | yes | 19:14 |
replaceafill | there should be a conf directory | 19:14 |
replaceafill | right? | 19:14 |
mr_german | yep | 19:15 |
replaceafill | with a local_settings.py file | 19:15 |
replaceafill | it's a django settings configuration file | 19:15 |
mr_german | yes | 19:15 |
replaceafill | which you're familiar with :) | 19:15 |
replaceafill | look for the DATABASE | 19:15 |
mr_german | but | 19:15 |
replaceafill | setting | 19:15 |
mr_german | yeah | 19:15 |
replaceafill | line 50 | 19:15 |
replaceafill | you should edit it as sudo btw | 19:16 |
mr_german | you said to change the password to "nea4orcrm" | 19:16 |
replaceafill | yes | 19:16 |
mr_german | is already there.. | 19:16 |
replaceafill | !?!?!? | 19:16 |
replaceafill | wait | 19:16 |
mr_german | 'PASSWORD': 'nea4orcrm', | 19:16 |
mr_german | ... | 19:16 |
replaceafill | you're editing the wrong file then | 19:16 |
mr_german | local_settings.py | 19:16 |
replaceafill | look at the top | 19:17 |
replaceafill | is the secret_key something like '123456...' | 19:17 |
replaceafill | ? | 19:17 |
replaceafill | dont paste secret_keys here btw :) | 19:17 |
mr_german | no | 19:17 |
replaceafill | hhmm | 19:17 |
replaceafill | hold on | 19:17 |
replaceafill | is the DEFAULT_FROM_EMAIL = 'ams@nea4or.us' ? | 19:18 |
mr_german | nope | 19:18 |
mr_german | DEFAULT_FROM_EMAIL = "no-reply@example.com" | 19:18 |
replaceafill | ok, yes, it's the wrong file | 19:18 |
replaceafill | let's hang out | 19:18 |
replaceafill | ok? | 19:18 |
mr_german | ok | 19:19 |
replaceafill | i want to see your screen | 19:19 |
replaceafill | sudo /opt/tendenci/venv-2/bin/python /opt/tendenci/instances/domain_project/manage.py runserver 0.0.0.0:80 | 19:28 |
replaceafill | sudo /opt/tendenci/venv-2/bin/pip install mailmanclient | 19:29 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!