#metabrainz

/

      • ruaok
      • 2016-08-15 22824, 2016

      • ruaok
        does that connect to the server?
      • 2016-08-15 22855, 2016

      • ruaok
        why did you change the network to be bridged?
      • 2016-08-15 22805, 2016

      • m1e1w1
        if i just type vagrant ssh with nothing after, i connect then go back to prompt
      • 2016-08-15 22820, 2016

      • ruaok
        there are port forwards in place. with the NATed network connection, you can just to go http://localhost:5000
      • 2016-08-15 22827, 2016

      • m1e1w1
        i can change it back to nat. but i was not sure otherwise how to connect to it
      • 2016-08-15 22833, 2016

      • ruaok
        ok, do that.
      • 2016-08-15 22842, 2016

      • ephemer0l joined the channel
      • 2016-08-15 22847, 2016

      • ruaok
        then try connecting to localhost:5000
      • 2016-08-15 22848, 2016

      • m1e1w1
        alright. ill do that first.
      • 2016-08-15 22817, 2016

      • Gentlecat
        alastairp: one thing about user feedback stuff...
      • 2016-08-15 22843, 2016

      • Gentlecat
        we currently just display "unsure" when probability is below threshold
      • 2016-08-15 22849, 2016

      • m1e1w1
        set connection 1 as nat. rebooted the VM. went to localhost:5000 nothing.
      • 2016-08-15 22840, 2016

      • Gentlecat
        and that means there's no way to say if result is correct or not
      • 2016-08-15 22844, 2016

      • ruaok
        hm.
      • 2016-08-15 22847, 2016

      • ruaok
        vagrant ssh
      • 2016-08-15 22853, 2016

      • ruaok
        and that doesn't drop you into the VM?
      • 2016-08-15 22810, 2016

      • Gentlecat
        can we get rid of "unsure" thing?
      • 2016-08-15 22806, 2016

      • m1e1w1
        i'm going through windows CMD prompt as administrator, from the folder i created where .vagrant is located. i get a response that says 127.0.0.1 port 2222 username vagrant private key: etc... but then it drops my back at prompt where im in the root folder of .vargrant install.
      • 2016-08-15 22806, 2016

      • m1e1w1
        from virtualbox, i can see the vagrant-ubuntu-trusty-64 login prompt though
      • 2016-08-15 22806, 2016

      • ruaok
        that sounds like the output of vagrant up.
      • 2016-08-15 22826, 2016

      • ruaok
        ok, the vagrant prompt is what you want.
      • 2016-08-15 22833, 2016

      • ruaok
        from that prompt, do:
      • 2016-08-15 22843, 2016

      • ruaok
        cd musicbrainz/musicbrainz-docker
      • 2016-08-15 22849, 2016

      • ruaok
        docker-compose ps
      • 2016-08-15 22851, 2016

      • m1e1w1
        yes, from virtualbox not through CMD prompt?
      • 2016-08-15 22857, 2016

      • ruaok
        and paste the output of that
      • 2016-08-15 22804, 2016

      • m1e1w1
        okay
      • 2016-08-15 22811, 2016

      • m1e1w1
        ill login to vagrant
      • 2016-08-15 22814, 2016

      • m1e1w1
        ERROR: Can't find a suitable configuration file in this directory are you in the right directory?
      • 2016-08-15 22833, 2016

      • ruaok
        pwd
      • 2016-08-15 22809, 2016

      • m1e1w1
        home/vagrant
      • 2016-08-15 22826, 2016

      • ruaok
        make sure to follow all the steps I give you.
      • 2016-08-15 22837, 2016

      • ruaok
        if you omit steps, things won't work. :(
      • 2016-08-15 22843, 2016

      • ruaok
        cd musicbrainz/musicbrainz-docker
      • 2016-08-15 22849, 2016

      • ruaok
        docker-compose ps
      • 2016-08-15 22814, 2016

      • m1e1w1
        i might have done it wrong, but i cloned the musicbrainz-vm-master, and executed vagrant up from that folder directory.
      • 2016-08-15 22841, 2016

      • ruaok
        you're doing ok, you just skipped the "cd musicbrainz/musicbrainz-docker" step
      • 2016-08-15 22858, 2016

      • zas
        another (more recent) article about consul-template: https://medium.com/@ladislavGazo/easy-routing-and…
      • 2016-08-15 22802, 2016

      • ariscop has quit
      • 2016-08-15 22816, 2016

      • ariscop joined the channel
      • 2016-08-15 22833, 2016

      • m1e1w1
        can't seem to get to that directory.
      • 2016-08-15 22842, 2016

      • m1e1w1
      • 2016-08-15 22850, 2016

      • m1e1w1
        i did not see the docker part there.
      • 2016-08-15 22853, 2016

      • ruaok
        stop following other directions.
      • 2016-08-15 22856, 2016

      • ruaok
        just follow mine, ok?
      • 2016-08-15 22802, 2016

      • m1e1w1
        sure
      • 2016-08-15 22810, 2016

      • ruaok
        cd ~/musicbrainz/musicbrainz-docker
      • 2016-08-15 22811, 2016

      • ruaok
        pwd
      • 2016-08-15 22817, 2016

      • ruaok
        what does that say?
      • 2016-08-15 22826, 2016

      • m1e1w1
        the cd ~/musicbrainz/musicbrainz-docker gives me "dose not exist"
      • 2016-08-15 22844, 2016

      • ruaok
        pwd
      • 2016-08-15 22805, 2016

      • m1e1w1
        i get /
      • 2016-08-15 22817, 2016

      • ruaok
        ls /home
      • 2016-08-15 22852, 2016

      • m1e1w1
        i have, musicbrainz-vm ubuntu vagrant
      • 2016-08-15 22800, 2016

      • ruaok
        cd /home/vagrant
      • 2016-08-15 22801, 2016

      • ruaok
        ls
      • 2016-08-15 22827, 2016

      • m1e1w1
        i have, bin
      • 2016-08-15 22839, 2016

      • ruaok
        only bin?
      • 2016-08-15 22843, 2016

      • m1e1w1
        yes
      • 2016-08-15 22810, 2016

      • ruaok
        ls /vagrant
      • 2016-08-15 22811, 2016

      • m1e1w1
        i wrote out, ls /vagrant and have no output. just another prompt at ~$
      • 2016-08-15 22850, 2016

      • ruaok
        from the windows CMD prompt, did you run install.sh?
      • 2016-08-15 22811, 2016

      • m1e1w1
        from the folder im in, musicbrainz-vm-master>install.sh gives me some outputs, things like unable to detect the VM uuid and line 14 not found although the install.sh is in that directory
      • 2016-08-15 22828, 2016

      • ruaok
        yeah, I think this isn't going to work on windows.
      • 2016-08-15 22840, 2016

      • ruaok
        I'm exporting my VM right now. you can download that and try it.
      • 2016-08-15 22804, 2016

      • m1e1w1
        alright, i will. use in virtualbox?
      • 2016-08-15 22826, 2016

      • ruaok
        yeah, it will be a very large download you import into VB.
      • 2016-08-15 22859, 2016

      • m1e1w1
        and i would still need to change the token, would i still use the vagrant ssh -- bin/set-token?
      • 2016-08-15 22821, 2016

      • ruaok
        yep
      • 2016-08-15 22829, 2016

      • m1e1w1
        alright.
      • 2016-08-15 22822, 2016

      • ruaok
        wow, this exported VM is 30GB so far. Sigh.
      • 2016-08-15 22828, 2016

      • m1e1w1
        if i have just the virtualbox file, such as the .OVA, is vagrant able to access it or would i need to run the set-token script from the virtualbox command window? seeing as i wont have the .vagrant install point.
      • 2016-08-15 22846, 2016

      • UmkaDK has quit
      • 2016-08-15 22849, 2016

      • m1e1w1
        alright. that must have a database already it looks like
      • 2016-08-15 22808, 2016

      • UmkaDK joined the channel
      • 2016-08-15 22817, 2016

      • ruaok
        when you import the OVA, then run it. After that connect to localhost:5000.
      • 2016-08-15 22822, 2016

      • ruaok
        (and create search indexes)
      • 2016-08-15 22836, 2016

      • m1e1w1
        sure.
      • 2016-08-15 22836, 2016

      • ruaok
        16 minutes remaining during the export.
      • 2016-08-15 22839, 2016

      • ruaok
        17.
      • 2016-08-15 22841, 2016

      • ruaok
        18.
      • 2016-08-15 22843, 2016

      • ruaok
        shit.
      • 2016-08-15 22846, 2016

      • m1e1w1
        i realize it will take time to upload the file as well.
      • 2016-08-15 22803, 2016

      • ruaok
        at least there is a nice connection here at the office.
      • 2016-08-15 22804, 2016

      • ruaok
        :)
      • 2016-08-15 22818, 2016

      • ruaok
        if the export ever finishes.
      • 2016-08-15 22826, 2016

      • m1e1w1
        i have a 135mb Download link.
      • 2016-08-15 22856, 2016

      • m1e1w1
        and gigabit lan / file server.
      • 2016-08-15 22810, 2016

      • kwikadi has quit
      • 2016-08-15 22816, 2016

      • UmkaDK has quit
      • 2016-08-15 22835, 2016

      • UmkaDK joined the channel
      • 2016-08-15 22857, 2016

      • ruaok
        21 minutes
      • 2016-08-15 22800, 2016

      • ariscop has quit
      • 2016-08-15 22806, 2016

      • m1e1w1
        alright
      • 2016-08-15 22807, 2016

      • ariscop_ joined the channel
      • 2016-08-15 22828, 2016

      • m1e1w1
        still exporting?
      • 2016-08-15 22804, 2016

      • ruaok
        22 minutes left.
      • 2016-08-15 22829, 2016

      • ruaok
        23
      • 2016-08-15 22838, 2016

      • ruaok
        oh that lovely sinking feeling. :)
      • 2016-08-15 22848, 2016

      • m1e1w1
        how's the file size?
      • 2016-08-15 22856, 2016

      • ruaok
        still at 30GB
      • 2016-08-15 22803, 2016

      • m1e1w1
        hmm
      • 2016-08-15 22818, 2016

      • kwikadi joined the channel
      • 2016-08-15 22809, 2016

      • ruaok
        24 minutes. sigh.
      • 2016-08-15 22824, 2016

      • ruaok
        stops the export and backtracks to another approach
      • 2016-08-15 22850, 2016

      • m1e1w1
        alright
      • 2016-08-15 22830, 2016

      • jcazevedo has quit
      • 2016-08-15 22817, 2016

      • m1e1w1
        any progress?
      • 2016-08-15 22832, 2016

      • ruaok
        there will be nothing usable today. sorry.
      • 2016-08-15 22808, 2016

      • m1e1w1
        okay. if possible, let me know on the issue tracking ticket, if there is anything new. i appreciate your time.
      • 2016-08-15 22818, 2016

      • Freso
        ruaok: I'm ready to test the VM too, btw. Should I just follow https://github.com/metabrainz/musicbrainz-vm and see what happens?
      • 2016-08-15 22827, 2016

      • ruaok
        sure
      • 2016-08-15 22832, 2016

      • Freso is on step 5 or 6
      • 2016-08-15 22809, 2016

      • ariscop_ has quit
      • 2016-08-15 22837, 2016

      • D4RK-PH0ENiX has quit
      • 2016-08-15 22803, 2016

      • ruaok
        step 6 has 29 sub-steps.
      • 2016-08-15 22814, 2016

      • m1e1w1 has quit
      • 2016-08-15 22816, 2016

      • ruaok
        which are all exactly the same as the other steps
      • 2016-08-15 22829, 2016

      • m1e1w1 joined the channel
      • 2016-08-15 22858, 2016

      • Freso
        Yes, hence my uncertainty about exactly which step I'm currently on. :)
      • 2016-08-15 22817, 2016

      • Freso
        I should have added a "time" in front of the ./install.sh...
      • 2016-08-15 22850, 2016

      • drsaunders joined the channel
      • 2016-08-15 22821, 2016

      • FergusL has quit
      • 2016-08-15 22850, 2016

      • D4RK-PH0ENiX joined the channel
      • 2016-08-15 22822, 2016

      • modwizcode
        lol
      • 2016-08-15 22848, 2016

      • FergusL joined the channel
      • 2016-08-15 22810, 2016

      • bitmap
        zas: ah, haven't heard of registrator or consul-template. I tried consul when I was following https://docs.docker.com/swarm/install-manual/
      • 2016-08-15 22845, 2016

      • bitmap
        (but didn't really know what I was doing at the time)
      • 2016-08-15 22821, 2016

      • ruaok
        armalcolite: I see the tests now pass on the now_listening branch. do we need to change the jenkins configuration in order for them to pass there too?
      • 2016-08-15 22847, 2016

      • JesseW joined the channel
      • 2016-08-15 22813, 2016

      • bitmap
      • 2016-08-15 22815, 2016

      • bitmap
        oh, I didn't read the banner at the top
      • 2016-08-15 22800, 2016

      • bitmap
        zas: does that mean we're not using swarm then? not sure if swarm even existed when this was written https://tech.bellycard.com/blog/load-balancing-do…
      • 2016-08-15 22807, 2016

      • bitmap
        but consul-template looks great, I'll start playing with this
      • 2016-08-15 22844, 2016

      • zas
        bitmap: hey
      • 2016-08-15 22859, 2016

      • bitmap
        hey
      • 2016-08-15 22824, 2016

      • zas
        swarm can be used with consul as nodes discovery service
      • 2016-08-15 22807, 2016

      • zas
        but in the example given, consul is used together registrator to discover "services" (basically containers)
      • 2016-08-15 22842, 2016

      • zas
        i'm still digging docs, but it looks to me we need the following setup:
      • 2016-08-15 22823, 2016

      • zas
        each physical host acts as a swarm node, with some of them acting as managers
      • 2016-08-15 22841, 2016

      • zas
        then we can run each container on one or more nodes
      • 2016-08-15 22808, 2016

      • zas
        if we use service discovery, we don't care about IPs or even ports (we get them from consul)
      • 2016-08-15 22827, 2016

      • zas
        swarm is using similar method to discover nodes
      • 2016-08-15 22824, 2016

      • zas
        btw, i read something interesting: http://blog.viktorpetersson.com/post/101707677489… -> docker is creating iptables rules, we may not want this in production
      • 2016-08-15 22824, 2016

      • zas
        there's a docker daemon option to disable this default behavior, --iptables=false
      • 2016-08-15 22832, 2016

      • armalcolite
        ruaok: yes. the redis_host must be set to "localhost"
      • 2016-08-15 22837, 2016

      • zas
        i have yet to read the docs about swarm managers high availibilty features
      • 2016-08-15 22845, 2016

      • zas
        bitmap: what was the thing about network/docker ?
      • 2016-08-15 22852, 2016

      • bitmap
        I assume we'll want certain containers to only run on certain machines which I think is what these contraints are for https://github.com/metabrainz/musicbrainz-server/…