IRC log of #novawebdev for Monday, 2017-10-23

*** replaceafill has joined #novawebdev11:44
*** mr_german has joined #novawebdev12:49
mr_germanreplaceafill, I'll wait for the afternoon meeting 13:16
mr_germanreplaceafill, because I'm think you're with Louis13:16
replaceafillmr_german, yes13:17
replaceafillmr_german, i was waiting for you at 10 am....13:17
mr_germanreplaceafill, yes... I know13:17
replaceafillmr_german, i can do 1 pm if you can13:17
mr_germansorry about that13:17
mr_germanreplaceafill, k13:17
replaceafillmr_german, you around?13:26
mr_germanreplaceafill, yep13:26
replaceafillmr_german, can we get started? i'd like you to at least try the ansible playbook i have13:27
replaceafillmr_german, because it'll require you to download a few things13:27
mr_germanreplaceafill, k give me a moment13:27
replaceafillmr_german, kk13:28
*** GFbot has joined #novawebdev13:39
GFbotreplaceafill, ready!13:39
replaceafillok13:40
replaceafillGFbot, https://gitlab.com/replaceafill/ansible-tendenci/13:40
replaceafillclone that, cd into it and run: vagrant up13:41
replaceafillGFbot, it's the same approach you used for setting up CiviCRM a couple of months ago13:41
replaceafillansible + vagrant13:42
GFbotreplaceafill, k13:43
GFbotreplaceafill, wiat13:43
GFbotwait*13:43
GFbotreplaceafill, I can't clone the repository13:45
GFbotI need permissions13:45
replaceafillGFbot, i added you as a master13:45
replaceafillto the project13:45
replaceafillGFbot, check the gitlab page13:46
replaceafillGFbot, were you able to clone it?13:49
GFbotyep13:50
replaceafillGFbot, what was it?13:50
GFbotI forgot to add my ssh 13:50
replaceafillah ok13:50
replaceafilli figured13:50
GFbotreplaceafill, I have to run13:50
GFbotplaybook ?13:50
replaceafillno13:50
replaceafilljust cd into the repo and do: vagrant up13:51
replaceafillthe playbook is hardcoded in the Vagrantfile13:51
GFbotreplaceafill, I have this issue13:52
GFbothttps://pastebin.com/M8bjfAPy13:52
replaceafillGFbot, don't you have virtualbox installed?13:52
replaceafillGFbot, are you running this from Windows?13:52
GFbotreplaceafill, nope13:53
GFbotI have to install it13:53
replaceafillGFbot, you need virtualbox, and ansible installed13:53
GFbotreplaceafill, *done*13:55
replaceafillGFbot, done what?13:55
GFbotvangrant is downloading "xenial64"13:56
replaceafillah ok13:56
replaceafillcool13:56
replaceafillif everything goes well, you'll have a working Tendenci instance accessible under http://localhost:800013:57
GFbotk13:57
GFbotreplaceafill, oh, no.. I have another issue13:59
GFbothttps://pastebin.com/hJZfss6Q14:00
replaceafillGFbot, again... are you running this in Windows?14:00
GFbotno14:00
replaceafilldo: apt-cache policy vagrant14:01
GFbothttps://pastebin.com/ZGe0UTcu14:01
replaceafillGFbot, have you changed anything since last time you set up CiviCRM?14:02
GFbotyes.. I uninstalled ubuntu 17.04, now I have 16.0414:04
replaceafillnow do: apt-cache policy ansible14:04
GFbothttps://pastebin.com/qY3XYgea14:05
replaceafillGFbot, let's first move you to the same versions i'm using14:07
replaceafilli don't think that's the problem, but it'll help down the road14:07
replaceafillsudo add-apt-repository ppa:ansible/ansible14:08
replaceafilland download https://releases.hashicorp.com/vagrant/1.9.5/vagrant_1.9.5_x86_64.deb14:09
replaceafilland install it14:09
GFbotk14:09
replaceafillafter adding the ansible ppa, do the usual apt update/upgrade to get the new version14:09
replaceafillit should be ansible 2.4 and vagrant 1.9.514:10
GFbotreplaceafill, it's upgrading right now!14:14
replaceafillGFbot, ok14:14
replaceafillafter you have both packages upgraded, we'll try removing the 4 GB limit in the Vagrantfile14:14
replaceafillhttps://gitlab.com/replaceafill/ansible-tendenci/blob/master/Vagrantfile#L5714:15
GFbot*done*14:16
GFbotshould I run again Vangrant?14:16
replaceafillyes14:16
replaceafilldestroy the old VM first14:17
replaceafillvagrant destroy14:17
replaceafillthen vagrant up14:17
replaceafillopen the virtualbox GUI14:17
replaceafilland you should see a tendenci_vm being created14:17
GFbot*clean*14:17
GFbotk14:17
GFbotreplaceafill, same error14:23
GFbot:/14:23
replaceafillGFbot, did you comment the memory setting in the Vagrantfile?14:23
GFbotoh god..14:23
GFbotnop14:23
replaceafilldestroy14:24
replaceafillcomment the setting and up again14:24
replaceafillaccording to google it may be related14:24
GFbotnope14:24
replaceafillnow run: uname -m14:24
GFbothttps://pastebin.com/Ag80rhRW14:25
GFbot"x86_64"14:25
replaceafillok, git checkout Vagrantfile14:25
replaceafillaccording to google the error comes from a bios setting14:26
replaceafillhttps://stackoverflow.com/questions/33304393/vt-x-is-disabled-in-the-bios-for-both-all-cpu-modes-verr-vmx-msr-all-vmx-disabl14:26
replaceafillso you'll need to check your BIOS14:26
replaceafilland look for something related to virtualizations14:27
replaceafilli kind of remember doing that in my old laptop14:27
GFbot:/14:28
GFbotok14:28
replaceafillGFbot, feel free to go get lunch14:29
replaceafilland get back to this later14:29
GFbotreplaceafill, k14:29
GFbotthx14:29
replaceafilli expected this kind of issue to show up14:29
replaceafillbut you'll need to figure that out on your own14:30
*** jelkner has joined #novawebdev14:40
jelknerhello replaceafill14:46
jelkneri can't stay long, just reinstalling hexchat on my desktop after installing ubuntu 17.1014:47
jelknerand wanted to make sure it all worked.14:47
jelknerACTION signing out14:47
GFbotreplaceafill, im back15:59
replaceafillGFbot, ok15:59
replaceafillGFbot, you should look into the bios for the virtualization option15:59
GFbotok15:59
GFbotreplaceafill, I need to restart16:02
replaceafillGFbot, kk16:02
GFbotreplaceafill, brb16:02
*** mr_german has joined #novawebdev16:07
mr_germanreplaceafill, I *fixed* it16:08
replaceafillmr_german, great16:08
mr_germaneverything is going well by now16:09
replaceafillmr_german, did you remove the comment on the 4G memory setting?16:09
mr_germanyep16:09
replaceafillmr_german, you'll need at least 4G of available RAM btw16:09
replaceafillmr_german, how much RAM does your PC havE?16:09
mr_german16gb16:09
replaceafillmr_german, ah cool16:09
replaceafillmr_german, i'll go get lunch16:11
mr_germank16:11
replaceafillmr_german, call my cell when it finishes or you get an issue to come back to IRC, ok?16:11
mr_germanreplaceafill, sure16:12
mr_germanthx 16:12
replaceafillmr_german, did it finish?17:32
mr_germannop17:32
mr_germanit says17:32
mr_german"TASK [tendenci : Run the django deploy commands]"17:32
replaceafillmr_german, ok17:32
replaceafillmr_german, right, that takes time17:33
mr_germanreplaceafill, k17:33
mr_germanreplaceafill, omg.. I have a new issue17:47
replaceafillmr_german, paste link?17:49
mr_germanhttps://pastebin.com/30Xy1Uif17:49
replaceafillmr_german, can you check the RAM of the VM in the virtualbox GUI?17:51
replaceafilljust to make sure it's 4GB17:51
mr_germanShoud I uncomment17:52
mr_german?17:52
replaceafillwait17:52
replaceafillgo to the virtualbox GUII17:52
mr_germanok17:52
replaceafilllook for the tendenci_vm17:52
mr_germanit has17:52
mr_german1gb17:53
replaceafillsigh....17:53
replaceafillyou didn't "git checkout Vagrantfile"?17:58
mr_germanI am really sure I did that17:58
replaceafillgit status?17:58
mr_germanI have to destroy and create a new one?17:58
replaceafillno17:58
replaceafillfirst, make sure the repo is clean on master17:58
mr_germanyes it is17:58
replaceafillbut that was the issue, right?17:58
replaceafillyou forgot to remove the comment?17:58
mr_germanyes..17:58
replaceafillok17:58
replaceafillso do:17:58
replaceafillvagrant halt17:58
replaceafilland wait for the vagrant GUI to say that the machine is turned off17:58
mr_germanvagrant halt?17:58
replaceafillyes17:58
mr_germanand then?17:58
replaceafillis the vm turned off?17:59
replaceafillin the vagrant GUI?17:59
mr_germanyep17:59
mr_german"==> default: Attempting graceful shutdown of VM...17:59
mr_german"17:59
replaceafillin the virtualbox GUI18:00
replaceafillselect the vm and look for its settings18:00
replaceafillyou can do CTRL + S on it18:00
replaceafillthen System18:01
replaceafillyou should see the amount of RAM there being 1GB18:01
replaceafillchange it to 4096 MB18:01
mr_germandone18:01
replaceafillok, do: vagrant up18:02
replaceafilli think it'll finish real quick, since it'll just start the VM18:03
mr_germanyep18:03
mr_germanand now?18:04
replaceafillthen do: vagrant provision18:04
replaceafillit'll look like it's going through all the procedure again, but it should report a lot of tasks as not changed18:04
mr_germanyep18:05
replaceafilluntil you get to the "Run the django deploy commands" task again18:05
replaceafillthat one takes time18:05
replaceafillfor the record, what it happened was that the VM ran out of memory18:05
replaceafillthe migrate task requires at least 4 GB18:05
replaceafillor some swap area available (like in the VPS)18:06
replaceafillsince it's a pain to set up swap in ansible/vagrant and we have enough RAM, we do it that way18:06
replaceafill(no swap)18:06
replaceafillif it complains again, you can destroy and start over18:07
replaceafillat this point you should have a "src" directory created18:07
replaceafillwith tendenci inside18:07
mr_germanyep18:09
mr_germanreplaceafill, 18:12
mr_germanhttps://pastebin.com/Fu1F5hAq18:12
replaceafillok18:13
replaceafillgo to http://localhost:800018:13
mr_german:o18:14
mr_germanit works18:14
replaceafillcool18:14
replaceafillnow the hairy part...18:14
replaceafillssh into the VM with: vagrant ssh18:14
replaceafilli think we're going to have to hang out for this18:15
mr_germanit works!18:15
replaceafillmr_german, give me a moment, i'm getting the files for the next step18:21
mr_germanok18:23
replaceafillmy connection is a potato today...18:24
replaceafill80 KB/s transfer rate :'(18:24
mr_germanreplaceafill, we're in the same situation18:26
mr_german:(18:26
replaceafillmr_german, https://gitlab.com/replaceafill/ansible-tendenci/snippets/168093018:30
replaceafillunder the title there's an attachment with the current db dump18:30
replaceafillwe'll start by restoring that18:30
replaceafillput that file next to the Vagrantfile18:31
mr_germank18:34
mr_germanand then18:35
mr_german?18:35
replaceafillvagrant ssh18:35
replaceafillthen: sudo su postgres18:35
replaceafilland then run this snippet: https://gitlab.com/replaceafill/ansible-tendenci/snippets/168093218:35
replaceafilloh18:36
replaceafillwait18:36
replaceafillbefore the sudo su postgres18:36
replaceafillstop the apache service18:36
replaceafillsudo service apache2 stop18:36
mr_germanI have to import the db?18:37
replaceafillyes18:37
replaceafillthat's what line 9 does18:37
mr_germandone18:39
replaceafillno errors?18:40
mr_germannope18:40
replaceafillcool, hold on18:40
replaceafillmr_german, uploading changes18:46
replaceafillmr_german, in theory this shold work :S18:46
replaceafillmr_german, ok done18:48
replaceafillyou're still ssh'ed in the vm, right?18:48
mr_germanyep18:53
mr_germanreplaceafill, 18:53
replaceafilloh, i have a better idea18:54
replaceafillin the directory where you have the Vagrantfile18:54
replaceafillgit clone git@gitlab.com:replaceafill/ansible-tendenci.git nea4or18:56
replaceafillcd nea4or18:56
replaceafillgit checkout tendenci_project18:57
replaceafillACTION remembers when he used to hate git...18:57
mr_germank19:05
mr_germanreplaceafill, and then19:05
mr_german?19:05
replaceafilldo you have a manage.py script inside the nea4or directory?19:06
replaceafillafter the checkout?19:06
mr_germanyes19:07
replaceafillgreat19:07
replaceafillalmost there mr_german!19:07
replaceafillhang on ;)19:07
mr_german:D19:07
mr_germanok19:07
replaceafillnow inside the VM19:07
replaceafillcd /opt/tendenci/instances/19:08
replaceafillsudo mv domain_project domain_project_bak19:08
replaceafillsudo cp -r /vagrant/nea4or .19:09
replaceafilloops19:09
replaceafillthat last one should be19:09
replaceafillsudo cp -r /vagrant/nea4or domain_project19:09
replaceafillsorry19:09
mr_german1: cd /opt/tendenci/instances/19:09
mr_german2: sudo cp -r /vagrant/nea4or .19:09
mr_german3: sudo cp -r /vagrant/nea4or domain_project19:10
mr_german?19:10
replaceafillyeah19:10
mr_germanok19:10
mr_germandone19:10
replaceafillsudo chown -R www-data domain_project19:10
replaceafillcd domain_project19:11
replaceafillopen the conf/local_settings.py and change the database password to "nea4orcmr"19:11
replaceafillno19:11
replaceafillnea4orcrm19:11
replaceafillmy typing sucks today...19:11
replaceafillthen:19:12
replaceafillsudo /opt/tendenci/venv-2/bin/python /opt/tendenci/instances/domain_project/manage.py makemigrations19:12
replaceafilland then:19:12
replaceafillsudo /opt/tendenci/venv-2/bin/python /opt/tendenci/instances/domain_project/manage.py migrate19: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
replaceafillto "nea4orcrm"19:14
replaceafillyou're inside /opt/tendenci/instances/domain_project, right?19:14
mr_germanyes19:14
replaceafillthere should be a conf directory19:14
replaceafillright?19:14
mr_germanyep19:15
replaceafillwith a local_settings.py file19:15
replaceafillit's a django settings configuration file19:15
mr_germanyes19:15
replaceafillwhich you're familiar with :)19:15
replaceafilllook for the DATABASE19:15
mr_germanbut19:15
replaceafillsetting19:15
mr_germanyeah19:15
replaceafillline 5019:15
replaceafillyou should edit it as sudo btw19:16
mr_germanyou said to change the password to "nea4orcrm"19:16
replaceafillyes19:16
mr_germanis already there..19:16
replaceafill!?!?!?19:16
replaceafillwait19:16
mr_german'PASSWORD': 'nea4orcrm',19:16
mr_german...19:16
replaceafillyou're editing the wrong file then19:16
mr_germanlocal_settings.py19:16
replaceafilllook at the top19:17
replaceafillis the secret_key something like '123456...'19:17
replaceafill?19:17
replaceafilldont paste secret_keys here btw :)19:17
mr_germanno19:17
replaceafillhhmm19:17
replaceafillhold on19:17
replaceafillis the DEFAULT_FROM_EMAIL = 'ams@nea4or.us' ?19:18
mr_germannope19:18
mr_germanDEFAULT_FROM_EMAIL = "no-reply@example.com"19:18
replaceafillok, yes, it's the wrong file19:18
replaceafilllet's hang out19:18
replaceafillok?19:18
mr_germanok19:19
replaceafilli want to see your screen19:19
replaceafillsudo /opt/tendenci/venv-2/bin/python /opt/tendenci/instances/domain_project/manage.py runserver 0.0.0.0:8019:28
replaceafillsudo /opt/tendenci/venv-2/bin/pip install mailmanclient19:29

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!