#metabrainz

/

      • AfroThundr joined the channel
      • 2016-12-04 33946, 2016

      • Freso
      • 2016-12-04 33913, 2016

      • Lingo__ joined the channel
      • 2016-12-04 33947, 2016

      • Arthelon joined the channel
      • 2016-12-04 33928, 2016

      • Arthelon
        Anyone else working on Google Code-in? :)
      • 2016-12-04 33912, 2016

      • Arthelon has quit
      • 2016-12-04 33939, 2016

      • drsaunder has quit
      • 2016-12-04 33949, 2016

      • Freso
        I guess you could say that I am. :p
      • 2016-12-04 33919, 2016

      • Freso
        Not that they stuck around for long…
      • 2016-12-04 33954, 2016

      • Lord_of_Codes has quit
      • 2016-12-04 33935, 2016

      • Lord_of_Codes joined the channel
      • 2016-12-04 33905, 2016

      • chirlu has quit
      • 2016-12-04 33945, 2016

      • opatel99 has quit
      • 2016-12-04 33918, 2016

      • JonnyJD_ joined the channel
      • 2016-12-04 33957, 2016

      • Arthelon joined the channel
      • 2016-12-04 33934, 2016

      • Lingo__
        I cannot submit a 4 hours spokenword track to acousticbrainz without my disc space running out ^^
      • 2016-12-04 33907, 2016

      • chirlu joined the channel
      • 2016-12-04 33935, 2016

      • Freso
        :p
      • 2016-12-04 33958, 2016

      • Freso
        I usually get an error when analysing tracks more than ~1 hour.
      • 2016-12-04 33908, 2016

      • Freso
        (And not running out of diskspace.)
      • 2016-12-04 33906, 2016

      • AfroThundr has quit
      • 2016-12-04 33916, 2016

      • AfroThundr joined the channel
      • 2016-12-04 33940, 2016

      • dpmittal has quit
      • 2016-12-04 33933, 2016

      • demonimin has quit
      • 2016-12-04 33959, 2016

      • dpmittal joined the channel
      • 2016-12-04 33943, 2016

      • demonimin joined the channel
      • 2016-12-04 33914, 2016

      • dpmittal has quit
      • 2016-12-04 33950, 2016

      • dpmittal joined the channel
      • 2016-12-04 33912, 2016

      • JonnyJD joined the channel
      • 2016-12-04 33912, 2016

      • JonnyJD_ has quit
      • 2016-12-04 33927, 2016

      • dboys_ joined the channel
      • 2016-12-04 33927, 2016

      • D4RK-PH0ENiX has quit
      • 2016-12-04 33942, 2016

      • Gentlecat
        anshuman73: it looks like the database is not running again when you execute the init_db command
      • 2016-12-04 33943, 2016

      • D4RK-PH0ENiX joined the channel
      • 2016-12-04 33912, 2016

      • regagain has quit
      • 2016-12-04 33931, 2016

      • yvanz joined the channel
      • 2016-12-04 33954, 2016

      • dpmittal
        yvanz : ping
      • 2016-12-04 33915, 2016

      • drsaunder joined the channel
      • 2016-12-04 33921, 2016

      • Lord_of_Codes has quit
      • 2016-12-04 33904, 2016

      • anshuman73
        Gentlecat: any idea how to fix that ?
      • 2016-12-04 33937, 2016

      • Gentlecat
        in the startup it looked like postgres already found its data directory
      • 2016-12-04 33954, 2016

      • Gentlecat
        try deleting `data` directories again
      • 2016-12-04 33923, 2016

      • Gentlecat
        (just do this every time until it works so that there are no conflicts)
      • 2016-12-04 33942, 2016

      • anshuman73
        wrong ownership error again
      • 2016-12-04 33947, 2016

      • anshuman73
        hmm.
      • 2016-12-04 33929, 2016

      • anshuman73
        I guess I'll go again
      • 2016-12-04 33944, 2016

      • Freso
        gcilou: Did you add gig and concert to MB?
      • 2016-12-04 33957, 2016

      • anshuman73
        side note, I saw you fixed the data dir location yesterday.
      • 2016-12-04 33915, 2016

      • anshuman73
        whenever i do docker-compose up
      • 2016-12-04 33920, 2016

      • anshuman73
        it makes two data dir
      • 2016-12-04 33930, 2016

      • anshuman73
        one ./data and another ./docker/data
      • 2016-12-04 33936, 2016

      • Gentlecat
        yes, after that fix it should be just one
      • 2016-12-04 33947, 2016

      • gcilou
        Freso: the gig is background music for a party. And hm idk about the concert. The band is in mb
      • 2016-12-04 33948, 2016

      • Gentlecat
        but I didn't want to confuse you with rebasing again
      • 2016-12-04 33952, 2016

      • anshuman73
        inside ./docker right ?
      • 2016-12-04 33911, 2016

      • Gentlecat
        if you want I can push your changes to a branch so that you can keep your work
      • 2016-12-04 33915, 2016

      • Freso
        gcilou: If there's (live) music, it is "notable enough" for an MB:Event :D
      • 2016-12-04 33927, 2016

      • Gentlecat
        no it would be just one in the root of the project
      • 2016-12-04 33952, 2016

      • anshuman73
        ahh yes
      • 2016-12-04 33954, 2016

      • gcilou
        Freso: :D I'll look into it after my interview
      • 2016-12-04 33907, 2016

      • yvanz
        dpmittal: pong
      • 2016-12-04 33909, 2016

      • Freso
        dpmittal: Unless it's been more than 24 hours, you shouldn't ping someone to review your task. Just be patient. :) (If you're pinging yvanz for other reasons, then nevermind. ;))
      • 2016-12-04 33922, 2016

      • anshuman73
        Gentlecat: If you can do that, that would be good, in case I am unable to get it back later
      • 2016-12-04 33942, 2016

      • dpmittal
        Freso : Actually i m facing issues installing MBS on my laptop that's why i pinged yvanz
      • 2016-12-04 33954, 2016

      • anshuman73
        Gentlecat: should I pull only the last commit, drop every other commit except the last one to correct the data dir error ?
      • 2016-12-04 33929, 2016

      • Gentlecat
      • 2016-12-04 33945, 2016

      • Gentlecat
        you can pull that from the metabrainz repository and push into your own
      • 2016-12-04 33922, 2016

      • Gentlecat
        actually wait
      • 2016-12-04 33928, 2016

      • yvanz
        dpmittal: In this case, you did very well. I just reviewed your hard work :) and added hints that might help you with style issues.
      • 2016-12-04 33930, 2016

      • Gentlecat
        it still has that issue with postgres
      • 2016-12-04 33906, 2016

      • anshuman73
        Gentlecat: well, I could pull it, make the chnages you made yesterday and then push it into mine
      • 2016-12-04 33910, 2016

      • Freso
        yvanz: 👍 :)
      • 2016-12-04 33921, 2016

      • Freso
        Eh. dpmittal ^
      • 2016-12-04 33931, 2016

      • Gentlecat
        give me a minute
      • 2016-12-04 33916, 2016

      • Gentlecat
        ok, I updated it again
      • 2016-12-04 33942, 2016

      • anshuman73
        Gentlecat: souncloud_integration branch ?
      • 2016-12-04 33949, 2016

      • Gentlecat
        so remove your local soundcloud_integration branch or rename it
      • 2016-12-04 33958, 2016

      • Gentlecat
        and then get one from the metabrainz repo
      • 2016-12-04 33958, 2016

      • Gentlecat
        yes
      • 2016-12-04 33949, 2016

      • regagain joined the channel
      • 2016-12-04 33952, 2016

      • anshuman73
        Gentlecat: how do I clone specific branch with existing repo? o.O
      • 2016-12-04 33951, 2016

      • Gentlecat
        do you know what metabrainz remote is called?
      • 2016-12-04 33904, 2016

      • Gentlecat
        paste your .git/config somewhere
      • 2016-12-04 33909, 2016

      • Gentlecat
        (it's in the critiquebrainz project root directory)
      • 2016-12-04 33957, 2016

      • Freso
        anshuman73: `git remote` to show your remotes, `git checkout <name of remote>/<name of branch on remote>` to check out a branch on that remote. Obviously, you can do `-b <branchname>` and other usual things to make a local branch as well.
      • 2016-12-04 33951, 2016

      • anshuman73
        yes, I did just rename the local branch, the issue lies in pulling just a branch without cloning the whol repo
      • 2016-12-04 33954, 2016

      • anshuman73
        whole*
      • 2016-12-04 33902, 2016

      • anshuman73
        Gentlecat: one sec
      • 2016-12-04 33916, 2016

      • Freso
        anshuman73: You can't do that.
      • 2016-12-04 33924, 2016

      • Gentlecat
        you don't need to clone the repository again, it's the same as yours
      • 2016-12-04 33929, 2016

      • anshuman73
      • 2016-12-04 33952, 2016

      • anshuman73
        Gentlecat: I meant just getting one branch without it showing the error that the repo already exists
      • 2016-12-04 33912, 2016

      • regagain has quit
      • 2016-12-04 33917, 2016

      • Gentlecat
        just paste your .git/config for now
      • 2016-12-04 33935, 2016

      • Gentlecat
        I'll tell you which commands to run to speed this up
      • 2016-12-04 33918, 2016

      • anshuman73
      • 2016-12-04 33959, 2016

      • drsaunder has quit
      • 2016-12-04 33914, 2016

      • Gentlecat
        add this at the end of .git/config https://www.irccloud.com/pastebin/eazFTR52/
      • 2016-12-04 33950, 2016

      • anshuman73
        done
      • 2016-12-04 33903, 2016

      • Gentlecat
        now run `git fetch meb`
      • 2016-12-04 33944, 2016

      • anshuman73
        worked ! got the new branch
      • 2016-12-04 33948, 2016

      • anshuman73
        thanks a lot
      • 2016-12-04 33913, 2016

      • anshuman73
        now, back to making it work
      • 2016-12-04 33934, 2016

      • anshuman73
        I'll try running the docker on this branch now ?
      • 2016-12-04 33945, 2016

      • anshuman73
        as it has the updated .yml
      • 2016-12-04 33916, 2016

      • Gentlecat
        run `git log` now
      • 2016-12-04 33939, 2016

      • Gentlecat
        what are the top 3 commits?
      • 2016-12-04 33906, 2016

      • anshuman73
      • 2016-12-04 33918, 2016

      • anshuman73
        I can't see the new branch. Do I need to checkout before seeing it
      • 2016-12-04 33946, 2016

      • Gentlecat
        this doesn't look right
      • 2016-12-04 33902, 2016

      • Gentlecat
        just follow my steps, ok?
      • 2016-12-04 33911, 2016

      • anshuman73
        got it.
      • 2016-12-04 33937, 2016

      • anshuman73
        I'm just confused to why I can't see the new branches in git branch
      • 2016-12-04 33954, 2016

      • Gentlecat
        `git checkout -b soundcloud_integration meb/soundcloud_integration`
      • 2016-12-04 33914, 2016

      • Gentlecat
        then run `git log` again and paste last 3 commits
      • 2016-12-04 33954, 2016

      • anshuman73
        got them
      • 2016-12-04 33954, 2016

      • anshuman73
      • 2016-12-04 33917, 2016

      • Gentlecat
        now `git push origin soundcloud_integration -f`
      • 2016-12-04 33958, 2016

      • anshuman73
        success !
      • 2016-12-04 33911, 2016

      • Gentlecat
        I reopened your pull request
      • 2016-12-04 33931, 2016

      • Gentlecat
        now delete both data directories if they exist and go through creation again
      • 2016-12-04 33902, 2016

      • anshuman73
        in the branch I am on currently ? (i.e. soundcloud_integration)
      • 2016-12-04 33903, 2016

      • Gentlecat
        don't forget that all containers need to be running before you try to initialize the database
      • 2016-12-04 33907, 2016

      • Gentlecat
        yes
      • 2016-12-04 33933, 2016

      • anshuman73 is confirming cause he suspects earlier problems may have been caused due to being on a different branch
      • 2016-12-04 33934, 2016

      • anshuman73
        okay
      • 2016-12-04 33917, 2016

      • anshuman73
        Running sudo docker-compose -f docker/docker-compose.dev.yml up --build
      • 2016-12-04 33950, 2016

      • anshuman73
        https://dpaste.de/Hz87 Gentlecat, waiting for your confirmation to run `sudo docker-compose -f docker/docker-compose.dev.yml run critiquebrainz python3 manage.py init_db --skip-create-db` in a separate terminal now
      • 2016-12-04 33925, 2016

      • Gentlecat
        `FATAL: data directory "/var/lib/postgresql/data/pgdata" has wrong ownership`
      • 2016-12-04 33935, 2016

      • Gentlecat
        something is wrong with your setup again
      • 2016-12-04 33919, 2016

      • anshuman73 confirms he's in the right branch, which means he has the updated config
      • 2016-12-04 33920, 2016

      • Gentlecat
        remove these lines from docker-compose.dev.yml https://www.irccloud.com/pastebin/rq7RJDiN/
      • 2016-12-04 33947, 2016

      • anshuman73
        should I stop the containers before doing so ?
      • 2016-12-04 33951, 2016

      • Gentlecat
        yes
      • 2016-12-04 33951, 2016

      • Gentlecat
        and run `docker rm $(docker ps -a -q)`
      • 2016-12-04 33929, 2016

      • anshuman73
        removed all the conatiners
      • 2016-12-04 33936, 2016

      • anshuman73
        now up again ?
      • 2016-12-04 33956, 2016

      • Gentlecat
        yes
      • 2016-12-04 33923, 2016

      • Gentlecat
        then paste whatever comes out of it afterwards
      • 2016-12-04 33927, 2016

      • anshuman73
      • 2016-12-04 33954, 2016

      • Gentlecat
        looks ok
      • 2016-12-04 33903, 2016

      • anshuman73
        accessing localhost
      • 2016-12-04 33910, 2016

      • Gentlecat
        now keep this running and run that command with init_db in another terminal
      • 2016-12-04 33901, 2016

      • anshuman73
        running sudo docker-compose -f docker/docker-compose.dev.yml run critiquebrainz python3 manage.py init_db --skip-create-db` in a separate terminal now
      • 2016-12-04 33914, 2016

      • Gentlecat
        if you access localhost before that you should see an error saying that "review" table is missing
      • 2016-12-04 33920, 2016

      • anshuman73
        yes I did
      • 2016-12-04 33927, 2016

      • anshuman73
        was just about to tell you that
      • 2016-12-04 33956, 2016

      • anshuman73
        init_db successful !
      • 2016-12-04 33933, 2016

      • anshuman73
        Critiquebrainz running locally !!
      • 2016-12-04 33937, 2016

      • anshuman73
        \0?