acoustid / mbdata

MusicBrainz SQLAlchemy Models
MIT License
97 stars 23 forks source link

Instructions do not work #31

Closed Phrogz closed 1 year ago

Phrogz commented 2 years ago

By running sudo su - postgres the shell is in a state where user musicbrainz can be used without a password, but where neither the script mbslave nor the mbdata.replication module exist.

If I exit being logged in as postgres, I have access to mbslave and mbdata.replication, but now I need a password for the musicbrainz user I just created.

Please test the instructions on a virgin system and modify as needed to work. Thanks!

Phrogz commented 2 years ago

Workaround:

  1. After sudo su - postgres run pip install -U mbdata
  2. After creating the postgres user musicbrainz change the password for the user and edit the mbslave.conf file with that password.
  3. After sudo su - postgres be sure to export MBSLAVE_CONFIG=/location/to/your/mbslave.conf