#musicbrainz

/

      • Erin joined the channel
      • bttf joined the channel
      • Bellami
        I am trying to set my token for the replication but I am doing it wrong :
      • docker-compose exec musicbrainz .\admin\set-replication-token.sh mysecrettokenhere
      • OCI runtime exec failed: exec failed: unable to start container process: exec: ".\\admin\\set-replication-token.sh": executable file not found in $PATH: unknown
      • bitmap
        that's referencing a path inside the container rather than one on the host, so try using forward slashes instead
      • Bellami
        I have the same issue with : C:\dev\musicbrainz-docker> docker-compose exec musicbrainz ./admin/set-replication-token mysecrettoken
      • bitmap
        my bad, that script is actually meant to run on the host, which means you should remove the whole "docker-compose exec musicbrainz" part
      • also, it reads your token from stdin, I don't think you can pass it as an argument
      • Bellami
        C:\dev\musicbrainz-docker> ./admin/set-replication-token just open the file
      • bitmap
        it's a bash script so I'm not sure how to run that on windows, tbh
      • alternatively you can just save the token to local/secrets/metabrainz_access_token (under the musicbrainz-docker repo), since that's all the script does
      • Bellami
        i cannot see, under windows or powershell the secrets folder
      • bitmap
        you may have to create it
      • Bellami
        i have created this file, with my token inside, but the LoadReplicationChanges failed because : Invalid or missing REPLICATION_ACCESS_TOKEN in DBDefs.pm
      • bitmap
        there was another step you had to do in the README, but it's also a bash script. let me see what it does
      • Bellami
        I have tried to change DBDefs.pm to have
      • sub REPLICATION_ACCESS_TOKEN {"mysecrettoken"}, but I still have the same error
      • bitmap
        do you have an .env file in the musicbrainz-docker directory?
      • Bellami
        nope
      • bitmap
        try creating one with COMPOSE_FILE=docker-compose.yml:compose/replication-token.yml
      • then apparently you have to run `docker-compose up -d` again
      • Bellami
        I do not understand the COMPOSE_FILE=   ; mayvbe it'ss working on Linux, but i have an error on windows with that
      • bitmap
        to be clear that's the contents of the .env file you need to create, not a command
      • Bellami
        ha ^^
      • bitmap
        did you change DBDefs.pm in the host repository, or inside the container? I would also revert your changes in case it conflicts with this
      • Bellami
        i have reverted my change in the DBDef
      • bitmap
        ok
      • Bellami
        i have created the env file and have a new error :
      • docker-compose exec musicbrainz replication.sh
      • CreateFile C:\dev\musicbrainz-docker\docker-compose.yml:compose\replication-token.yml: La syntaxe du nom de fichier, de répertoire ou de volume est
      • incorrecte.
      • (i'm french)
      • i have delete the env file and this error is no more here, but still have the token issue
      • bitmap
        hmm
      • Bellami
        yes there is something strange
      • bitmap
        my bad, I think windows uses a different path separator for COMPOSE_FILE - https://docs.docker.com/compose/environment-var...
      • Erin has quit
      • try creating the .env file again, but with COMPOSE_FILE=docker-compose.yml;compose/replication-token.yml
      • ; separating the files instead of :
      • Bellami
        i do not have the error anymore indeed
      • but still have the token issue
      • bitmap
        did you run `docker-compose up -d` again?
      • Bellami
        oups ^^
      • i did still have an issue but not the same !
      • docker-compose exec musicbrainz /usr/bin/tail -f mirror.log    give me some info about Client-SSl and finishes with : Provided access token is invalid!
      • but i have not provided my token at all
      • sorry, the token is in the musicbrainz-docker\local\secrets\metabrainz_access_token file
      • it's OK !
      • i have generated a new token and it's ok
      • bitmap
        so replication is working now? :)
      • Bellami
        I'll try to make progress with the data update, and I'll keep you updated."
      • i will try it now
      • i do not want a "live replication"  but i want to type a comand line to have the last replication packet, i will follow the doc ^^
      • i am confused because there is nothing more to do haha :D
      • there is no output in the command line to tell us where we are ? (i actually do a refresh on the http://localhost:5000/  and check the footer
      • bitmap
        lol are you following the "Run replication once" section?
      • Bellami
        yes but i have just type : C:\dev\musicbrainz-docker> docker-compose exec musicbrainz replication.sh    not the "log part"
      • bitmap
        ah, well the log file will show you the current progress
      • Bellami
        i am seeing that :)
      • when it's up to date, the script ends ? or if we do not touch anything, it keeps you up to date ?
      • bitmap
        it will run in the background until it reaches the latest available packet, then it exits. so if you want to update the DB again, you have to re-execute the command
      • it sounds like that's what you wanted?
      • Bellami
        ok, perfect. I jsut want to be up to date when i desire
      • yes exactly !
      • bitmap
        cool, you're all set then
      • Bellami
        yes ! thanks a lot
      • bitmap
        you're welcome :)
      • Erin joined the channel
      • Bellami
        I have a last question
      • on a release-group, at the end of the right column, you can see the "Last updated on "
      • Is this information provided by the API ? thanks to https://musicbrainz.org/ws/2/release-group/fa56... for example
      • bitmap
        no it's not, although this only indicates when the row in the release_group table was updated. it doesn't get updated when any associated data changes (aliases, tags, releases, etc.)
      • Bellami
        that's why i do not see this date changes  ^^
      • ok a big thnaks for your time bitmap
      • thanks*
      • Erin has quit
      • nirvdrum joined the channel
      • nirvdrum has quit
      • iconoclast_hero has quit
      • Bellami has quit
      • scrumplex has quit
      • scrumplex_ joined the channel
      • nirvdrum joined the channel
      • Erin joined the channel
      • nirvdrum has quit
      • nirvdrum joined the channel
      • nirvdrum has quit
      • nirvdrum joined the channel
      • nirvdrum has quit
      • nirvdrum joined the channel
      • nirvdrum has quit
      • nirvdrum joined the channel
      • lusciouslover has quit
      • lusciouslover joined the channel
      • nirvdrum has quit
      • minimal has quit
      • Krystof has quit
      • lusciouslover has quit
      • jamesd has quit
      • }8] has quit
      • }8] joined the channel
      • jamesd joined the channel
      • Island_ has quit
      • lusciouslover joined the channel
      • nirvdrum joined the channel
      • nirvdrum has quit
      • nirvdrum joined the channel
      • nirvdrum has quit
      • nirvdrum joined the channel
      • nirvdrum has quit
      • SothoTalKer_ joined the channel
      • SothoTalKer has quit
      • nirvdrum joined the channel
      • antonmosich joined the channel
      • zer0bitz_ joined the channel
      • zer0bitz has quit
      • nirvdrum has quit
      • relaxoMob has quit
      • antonmosich has quit
      • relaxoMob joined the channel
      • nirvdrum joined the channel
      • nirvdrum has quit
      • iconoclast_hero joined the channel
      • antonmosich joined the channel
      • nirvdrum joined the channel
      • logistic-bot joined the channel
      • jlc has quit
      • jlc joined the channel
      • nirvdrum has quit
      • MeatPupp3t has quit
      • ramblebamble joined the channel
      • MeatPupp3t joined the channel
      • ramblebamble has quit
      • nirvdrum joined the channel
      • nirvdrum has quit
      • antonmosich has quit
      • antonmosich joined the channel
      • antonmosich has quit
      • nirvdrum joined the channel
      • Lotheric joined the channel
      • Lotheric_ has quit
      • nirvdrum has quit
      • minimal joined the channel
      • fletchto99 has quit
      • fletchto99 joined the channel
      • nirvdrum joined the channel
      • nirvdrum has quit
      • apetresc_ joined the channel
      • apetresc has quit