#metabrainz

/

      • rahul24 has quit
      • rahul24 joined the channel
      • D4RK-PH0ENiX has quit
      • Cathain has quit
      • D4RK-PH0ENiX joined the channel
      • chaban has quit
      • chaban joined the channel
      • rahul24 has quit
      • Lotheric
        wow
      • great collection by paula
      • yokel has quit
      • yokel joined the channel
      • c1e0 joined the channel
      • thomasross_ joined the channel
      • thomasross is now known as Guest14563
      • Guest14563 has quit
      • thomasross_ is now known as thomasross
      • thomasross has quit
      • sarthak_jain joined the channel
      • n1tr0maverick joined the channel
      • thomasross joined the channel
      • sarthak_jain has quit
      • pristine__
        sarthak_jain: hey
      • sarthak_jain joined the channel
      • Nice :) you can know follow "read the docs"
      • And lemme know if you get stuck anywhere.
      • sarthak_jain
        Okay I'll get started with the MB application part.
      • I need to create an account? Right?
      • pristine__
        Nice. So we are generally away on weekends, but if you want to ping anyone on weekends just leave a message, we usually read backlogs, so your queries will be answered definitely.
      • Yee
      • Visit the application page. There is a link :)
      • sarthak_jain: you don't need to initialize spotify ids and Last fm ids unless you are going for development in LB-server. After updating config.py with Musicbrainz ids, you can directly go to "initialize listenbrainz containers"
      • sarthak_jain
        Oh.. you saved me. Was about to get to that
      • :p
      • pristine__
        We are setting up lb-server before labs because labs uses server's network.
      • Here.
      • sarthak_jain
        When i initialize the LB databases
      • I get the error in terminal saying
      • pristine__
        Post the error
      • sarthak_jain
        Version in "./docker/docker-compose.yml" is unsupported.
      • ERROR: Version in "./docker/docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use
      • version 1.For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
      • c1e0 has quit
      • pristine__
        A sec
      • What is your docker engine version?
      • sarthak_jain
        Version: 18.09.7 API version: 1.39 Go version: go1.10.4 Git commit: 2d0083d Built: Fri Aug 16 14:19:38 2019 OS/Arch: linux/amd64 Experimental: false
      • 18.09.07
      • How do I share the screenshot here?
      • Is there any option?
      • pristine__
        It's fine. Can you change the version to 3.3 and try.
      • sarthak_jain
        How do i do that?
      • pristine__
      • Here
      • sarthak_jain
        Dint get you!
      • Got it.
      • I changed the docker-compose.yml file
      • But now I get this error:
      • ERROR: yaml.parser.ParserError: while parsing a block mapping in "./docker/docker-compose.yml", line 2, column 1expected <block end>, but found '-' in "./docker/docker-compose.yml", line 125, column 1
      • pristine__
        Check for the syntax
      • Did you close the double quotes?
      • Since I am not at your end, I cannot see wht you have written. In case of errors, the first step is to google the error since you know what you have written :)
      • sarthak_jain
        I dint write. I copy pasted the content of the file on the git
      • pristine__
        Okay. Go to listenbrainz-server/docker/docker-compose.yml file in your local machine
      • n1tr0maverick has quit
      • On line you will see version:"3.4"
      • sarthak_jain
        Yes
      • pristine__
        Change it to 3.7 and save
      • sarthak_jain
        I do see
      • pristine__
        Keep the quotes intact
      • Then run ./develop.sh
      • And make sure that you are inside listenbrainz-server directory while running the commands
      • sarthak_jain
        Yes
      • when i run ./develop.sh
      • version: "3.4"# IMPORTANT NOTE: Volume paths mounted on containers are relative to the# directory that this file is in (`docker/`) and so probably need to start with# `../` to refer to a directory in the main code checkoutvolumes: postgres: redis: influxdb: rabbitmq:services: db: image: postgres:9.5.3 volumes: -
      • postgres:/var/lib/postgresql/data:z redis: image: redis:5.0.3 volumes: - redis:/data:z influx: image: influxdb:1.2.4 volumes: - influxdb:/var/lib/influxdb:z environment: INFLUXDB_REPORTING_DISABLED: 'true' INFLUXDB_META_LOGGING_ENABLED: 'false' INFLUXDB_DATA_QUERY_LOG_ENABLED: 'false'
      • INFLUXDB_DATA_WAL_LOGGING_ENABLED: 'false' INFLUXDB_DATA_DATA_LOGGING_ENABLED: 'false' INFLUXDB_HTTP_LOG_ENABLED: 'true' INFLUXDB_CONTINUOUS_QUERIES_LOG_ENABLED: 'false' rabbitmq: image: rabbitmq:3.6.5 volumes: - rabbitmq:/var/lib/rabbitmq:z web: build: context: .. dockerfile: Dockerfile target:
      • listenbrainz-dev command: python3 /code/listenbrainz/manage.py runserver -h 0.0.0.0 -p 80 -d image: web volumes: - ..:/code/listenbrainz:z - ../listenbrainz/webserver/static:/static ports: - "80:80" depends_on: - redis - db - influx - rabbitmq api_compat: image: web command: python3
      • /code/listenbrainz/manage.py run_api_compat_server -h 0.0.0.0 -p 8080 -d ports: - "8080:8080" volumes: - ..:/code/listenbrainz:z depends_on: - redis - db - influx - rabbitmq influx_writer: image: web command: python3 -m "listenbrainz.influx_writer.influx_writer" volumes: -
      • ..:/code/listenbrainz:z depends_on: - redis - influx - rabbitmq spotify_reader: image: web volumes: - ..:/code/listenbrainz:z command: python3 -m "listenbrainz.spotify_updater.spotify_read_listens" depends_on: - redis - influx - rabbitmq bigquery: image: web volumes: -
      • ../credentials:/code/credentials:z - ..:/code/listenbrainz:z environment: GOOGLE_APPLICATION_CREDENTIALS: '/code/credentials/bigquery-credentials.json' command: python3 -m "listenbrainz.bigquery_writer.bigquery_writer" depends_on: - redis - rabbitmq follow_server: image: web volumes: -
      • ..:/code/listenbrainz:z command: python manage.py run_follow_server -h 0.0.0.0 -p 8081 ports: - "8081:8081" depends_on: - redis - rabbitmq static_builder: build: context: .. dockerfile: docker/Dockerfile.webpack command: npm run build:dev volumes: - ..:/code/listenbrainz:z-
      • ../listenbrainz/webserver/static:/static:z
      • Define and run multi-container applications with Docker.Usage: docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...] docker-compose -h|--helpOptions: -f, --file FILE Specify an alternate compose file (default: docker-compose.yml) -p, --project-name NAME Specify an alternate project name (default: directory name) --verbose
      • Show more output -v, --version Print version and exit -H, --host HOST Daemon socket to connect to --tls Use TLS; implied by --tlsverify --tlscacert CA_PATH Trust certs signed only by this CA --tlscert CLIENT_CERT_PATH Path to TLS certificate file --tlskey TLS_KEY_PATH Path to TLS
      • key file --tlsverify Use TLS and verify the remote --skip-hostname-check Don't check the daemon's hostname against the name specified in the client certificate (for example if your docker host is an IP address)
      • pristine__
        Wait
      • Don't past errors like this
      • sarthak_jain
        Sorrry
      • pristine__
      • And then paste the link here.
      • Can you copy past the error on gist and give me the link? ;)
      • Paste*
      • CatQuest
        yikes
      • pristine__
        CatQuest: :(
      • CatQuest
        it's ok :)
      • sarthak_jain
      • pristine__
        Oh. My bad. The docs are not updates.
      • ./develop.sh build
      • `./develop.sh build`
      • sarthak_jain
      • pristine__
        I m confused. The version should work. Give me some time. I will return after lunch. I don't have laptop rn.
      • Can you wait a lil?
      • sarthak_jain
        Ya. Sure
      • No problem
      • c1e0 joined the channel
      • Wassabi joined the channel
      • Wassabi has quit
      • Wassabi joined the channel
      • Nyanko-sensei joined the channel
      • d4rkie has quit
      • pristine__
        sarthak_jain: hey
      • It looks like your docker-compose version is older.
      • Can you run `docker-compose version` and paste the output?
      • Also, try upgrading the docker-compose version
      • this may help:)
      • Gazooo has quit
      • Gazooo joined the channel
      • sbvkrishna joined the channel
      • sarthak_jain
      • this is what I get after running docker-compose version
      • D4RK-PH0ENiX has quit
      • D4RK-PH0ENiX joined the channel
      • I uninstalled the docker and reinstalled it
      • But now, it doesnt recognize the command ./develop.sh
      • How do I update the docker engine?
      • Gazooo has quit
      • Gazooo joined the channel
      • pristine__
        Are you using linux?
      • See, your docker version is old. Should 1.18.0 or newer to run 3.4.
      • The command is `./develop.sh build`
      • And should be run from inside listenbrainz-server
      • `cd listenbrainz-server`
      • Then run the command.
      • sarthak_jain: ^
      • sarthak_jain
        Yes I am inside the listenbrainz-server directory
      • pristine__
        What does it say when you run develop.sh?
      • sarthak_jain
      • It shows this
      • pristine__
        Run `sudo ./develop.sh build`
      • Does it work?
      • sarthak_jain
        Yes, I guess
      • Multiple downloads are happening in the terminal
      • pristine__
        Yup
      • Nice
      • So to avoid using sudo, add the docker group