GithubHelp home page GithubHelp logo

docker-musicbrainz's Introduction

IMPORTANT NOTICE: THIS IMAGE HAS BEEN DEPRECATED

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring:

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • GitHub - view the source for all of our repositories.
  • Open Collective - please consider helping us by either donating or contributing to our budget

GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry MicroBadger Layers Docker Pulls Docker Stars Jenkins Build

MusicBrainz is an open music encyclopedia that collects music metadata and makes it available to the public.

musicbrainz

Supported Architectures

Our images support multiple architectures such as x86-64, arm64 and armhf. We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling ghcr.io/linuxserver/musicbrainz should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Tag
x86-64 amd64-latest
arm64 arm64v8-latest
armhf arm32v7-latest

Usage

Here are some example snippets to help you get started creating a container.

docker-compose (recommended)

Compatible with docker-compose v2 schemas.

---
version: "2.1"
services:
  musicbrainz:
    image: ghcr.io/linuxserver/musicbrainz
    container_name: musicbrainz
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - BRAINZCODE=<code from MusicBrainz>
      - WEBADDRESS=<ip of host>
      - NPROC=<parameter> #optional
    volumes:
      - </path/to/appdata/config>:/config
      - </path/to/appdata/config>:/data
    ports:
      - 5000:5000
    restart: unless-stopped

docker cli

docker run -d \
  --name=musicbrainz \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Europe/London \
  -e BRAINZCODE=<code from MusicBrainz> \
  -e WEBADDRESS=<ip of host> \
  -e NPROC=<parameter> `#optional` \
  -p 5000:5000 \
  -v </path/to/appdata/config>:/config \
  -v </path/to/appdata/config>:/data \
  --restart unless-stopped \
  ghcr.io/linuxserver/musicbrainz

Parameters

Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 5000 WebUI
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-e TZ=Europe/London Specify a timezone to use EG Europe/London
-e BRAINZCODE=<code from MusicBrainz> To enter MusicBrainz code. See Setting up the application
-e WEBADDRESS=<ip of host> To set ip for host to allow css to render properly, DO NOT ENTER PORT NUMBER.
-e NPROC=<parameter> To set number of proceses, defaults to 5 if unset.
-v /config Config files for musicbrainz.
-v /data Data files for musicbrainz.

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__PASSWORD=/run/secrets/mysecretpassword

Will set the environment variable PASSWORD based on the contents of the /run/secrets/mysecretpassword file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

User / Group Identifiers

When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id user as below:

  $ id username
    uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)

 

Application Setup

  • For all updates you should pull the latest image, clear all files and folders in /config and /data and reinitiate the database import by (re)starting the docker. We do not officially support upgrading this container in place with existing data sets.

  • If you did not set WEBADDRESS env variable, then AFTER iniatilisation is complete you will need to edit the line sub WEB_SERVER { "localhost:5000" } in file /config/DBDefs.pm changing localhost to the ip of your host, this is to allow css to display properly

  • You must register here to receive a MusicBrainz code to allow you to receive database updates, it is free. Get Code here.
  • The initial import and setup of the database can take quite a long time, dependant on your download speed etc, be patient and don't restart the container before it's complete.
  • It appears there are issues with unraid and using /mnt/user/cache/appdata instead of /mnt/cache/appdata, use /mnt/cache/appdata.

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info

  • Shell access whilst the container is running: docker exec -it musicbrainz /bin/bash
  • To monitor the logs of the container in realtime: docker logs -f musicbrainz
  • container version number
    • docker inspect -f '{{ index .Config.Labels "build_version" }}' musicbrainz
  • image version number
    • docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver/musicbrainz

Updating Info

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update all images: docker-compose pull
    • or update a single image: docker-compose pull musicbrainz
  • Let compose update all containers as necessary: docker-compose up -d
    • or update a single container: docker-compose up -d musicbrainz
  • You can also remove the old dangling images: docker image prune

Via Docker Run

  • Update the image: docker pull ghcr.io/linuxserver/musicbrainz
  • Stop the running container: docker stop musicbrainz
  • Delete the container: docker rm musicbrainz
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)
  • You can also remove the old dangling images: docker image prune

Via Watchtower auto-updater (only use if you don't remember the original parameters)

  • Pull the latest image at its tag and replace it with the same env variables in one run:
    docker run --rm \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower \
    --run-once musicbrainz
    
  • You can also remove the old dangling images: docker image prune

Note: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using Docker Compose.

Image Update Notifications - Diun (Docker Image Update Notifier)

  • We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-musicbrainz.git
cd docker-musicbrainz
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver/musicbrainz:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 23.02.21: - Deprecate image as no one stepped up to take over as maintainer.
  • 03.10.20: - Rebase to alpine 3.12, add gettext and move to nodejs-current.
  • 17.05.19: - Update DBDefs.pm to schema 25 database.
  • 23.03.19: - Switching to new Base images, shift to arm32v7 tag.
  • 02.03.19: - Revert to alpine 3.8 to fix incompatibilities with frontend build tools.
  • 19.02.19: - Multi Arch and add pipeline logic, rebase to Alpine 3.9
  • 22.08.18: - Bump server version 2018-08-14.
  • 30.06.18: - Bump server version 2018-06-30.
  • 01.06.18: - Bump server version 2018-05-30 , simplify sed and use yarn instead of npm.
  • 14.05.18: - Bump server version 2018-05-09.
  • 26.04.18: - Bump server version 2018-04-23.
  • 09.02.18: - Bump server version 2018-02-09.
  • 24.01.18: - Bump server version 2018-01-24.
  • 10.01.18: - Bump server version 2018-01-10.
  • 31.11.17: - Bump server version 2017-12-21.
  • 30.11.17: - Add NPROC variable to allow number of processes to be set.
  • 30.11.17: - Fix linting recommendations.
  • 30.11.17: - Remove socket on startup if exists (thanks wtf911) re.
  • 24.11.17: - Remove catalyst side bar on new installs.
  • 31.10.17: - Bump server version 2017-10-31.
  • 20.09.17: - Bump server version 2017-09-18.
  • 06.09.17: - Bump server version 2017-09-04.
  • 19.07.17: - Bump server version 2017-07-17.
  • 21.06.17: - Bump server version 2017-06-19.
  • 26.05.17: - Fix later build of postgres using /run instead of /var/run.
  • 26.05.17: - Rebase to alpine 3.6.
  • 15.05.17: - Schema 24 update, recommend full rebuild with new config.
  • 15.04.17: - Bump server version 2017-04-10.
  • 04.04.17: - Bump server version 2017-03-27.
  • 15.03.17: - Bump server version 2017-03-13.
  • 04.03.17: - Bump server version and use nginx to serve web pages.
  • 06.02.17: - Rebase to alpine 3.5.
  • 16.12.16: - Rebase to alpine linux, entailing almost complete rewrite.
  • 14.10.16: - Add version layer information.
  • 30.09.16: - Fix umask.
  • 10.09.16: - Add layer badges to README.
  • 28.08.16: - Add badges to README, move to main repository.
  • 20.07.16: - Restructure of docker file for clarity, add maxworkers variable in conjunction with starlet, for parallel requests in multi-core setups, thanks to user baoshan.
  • 03.06.16: - Complete rewrite due to schema change. Rebased back to 14.04 direct Using S6 overaly.
  • 21.03.16: - Bump to latest server release.
  • 16.03.16: - Bump to latest server release.
  • 26.02.16: - Bump to latest server release.
  • 08.02.16: - Switch to PPA version for redis.
  • 03.01.16: - Remove d/l of sitemaps file, missing from last 2 db dumps, move fetch of db/dump higher up initialise routine to allow easier resume of broken downloads.
  • 15.12.15: - Per latest musicbrainz blog, switched to production branch,latest stable code is now production branch in place of master.
  • 10.12.15: - Initial release date.

docker-musicbrainz's People

Contributors

aptalca avatar boredazfcuk avatar cachamber avatar chbmb avatar ironicbadger avatar j0nnymoe avatar linuxserver-ci avatar lonix avatar omgimalexis avatar reosarevok avatar sparklyballs avatar thelamer avatar tobbenb avatar wtf911 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-musicbrainz's Issues

Curl in stalling during downloads

OS- Unraid 6
Using the docker from Community Apps plugin.

The curl lines of the docker are hanging indefinately for unknown reasons, even from the unraid cli they hang. I edited the 30 script and replaced with wgets and it ran through fine, although i had to set the version by hand as the curl for the version also hangs.

My new get lines look like this

s6-setuidgid abc wget -P "$DUMP_DEST" "$DUMP_URL"/mbdump-cdstubs.tar.bz2

DL of musicbrainz data is broke

I've tried maybe a dozen times over the last few months due to the "if this section fails try again later" part, but it never works:

[cont-init.d] 30-initialise-database: executing... 
fetching latest dump from musicbrainz, if this section fails try again later as musicbrainz dump may not be fully uploaded 
to their site
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 64.9M  100 64.9M    0     0  10.5M      0  0:00:06  0:00:06 --:--:-- 13.5M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.4M  100 21.4M    0     0  5888k      0  0:00:03  0:00:03 --:--:-- 5887k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  122M  100  122M    0     0  11.3M      0  0:00:10  0:00:10 --:--:-- 13.8M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 69.0M  100 69.0M    0     0  9945k      0  0:00:07  0:00:07 --:--:-- 13.7M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 29.2M  100 29.2M    0     0  7242k      0  0:00:04  0:00:04 --:--:-- 7243k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7126  100  7126    0     0   4111      0  0:00:01  0:00:01 --:--:--  4111
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 23 2124M   23  499M    0     0  13.3M      0  0:02:39  0:00:37  0:02:02 12.4M
curl: (56) Recv failure: Connection reset by peer
[cont-init.d] 30-initialise-database: exited 56.

What would it take to manually find and download the files first, and point the image at the Downloaded files? Has anyone successfully used this image? I have 100Mb Internet, but Musicbrainz goes down all the time, this is why I would love my own musicbrainz server.

Schema update required?

Wed Jun  1 14:37:36 2016 : Pre-checking /data/import/20160528-001701/mbdump-cdstubs.tar.bz2

bunzip2: I/O or other error, bailing out.  Possible reason follows.
bunzip2: Broken pipe
    Input file = (stdin), output file = (stdout)
Wed Jun  1 14:37:36 2016 : Schema sequence mismatch - codebase is 22, /data/import/20160528-001701/mbdump-cdstubs.tar.bz2 is 23

Failed to import dataset.

Does this mean an update should be performed? Thank you.

Need a way to tune nginx configuration

For now, only server{} block with musicbrainz can be configured externally, via editing /config/nginx/default. However, sometimes we need to tune various nginx parameters, like worker_connections, which is set to 1024, which isnt enough on our traffic.

Fails to run: 502 Bad Gateway

Hi,

I've fired up a brand new container, downloaded and imported a new Db, system says the Db is ready to accept connections, but nginx fails with 502 Bad Gateway.

Expected Behavior

Musicbrainz to be accessible

Current Behavior

Doesn't work. nginx reports 502 Bad Gateway

Steps to Reproduce

  1. Create new container
  2. Start container
  3. Wait until Db ready to accept connections message is displayed
  4. Connect to server on port 5000

Environment

OS: Debian Buster
CPU architecture: x86_64
How docker service was installed:

Docker repo added to apt

Command used to create docker container (run/create/compose/screenshot)

   musicbrainz:
      hostname: musicbrainz
      networks:
         containers:
            aliases:
               - musicbrainz
      ports:
         - 5000:5000
      env_file:
         - timezone.env
         - musicbrainz.env
      image: linuxserver/musicbrainz
      healthcheck:
         test: wget --quiet --tries=1 --spider "http://musicbrainz:5000"&& psql -U abc --command "\c musicbrainz_db" || exit 1
         start_period: 30s
      restart: always
      volumes:
         - musicbrainz_config:/config
         - musicbrainz_data:/data

Docker logs

https://pastebin.com/YSekN1RU

Search server is not packaged

Musicbrainz server relies on lucene-based java search server and indexes; however it doesnt seem to be packaged in the image. It is needed to offload searches from a public musicbrainz server, and poses a significant security risk of leaking data your musicbrainz mirror serves.

port to be set in DBDefs.pm is hardcoded to 5005 causing css issues

linuxserver.io

The port in DBDefs.pm can't be changed using the init-script. The domain can be set, but the port to use is hardcoded. This causes issues when used behind a reverse proxy or on a different port.


Expected Behavior

Port can be set using an environmental variable

Current Behavior

Port is set to 5005

Steps to Reproduce

  1. Create instance behind reverse proxy on a port different to 5005
  2. Or bind instance to a port different to 5005 on the host.

Environment (shouldn't matter though)

OS: Ubuntu 18.04
CPU architecture: x86_64
How docker service was installed: Using the official instrucitons

Command used to create docker container (run/create/compose/screenshot)

version: "3.4"


services:
  musicbrainz:
    image: linuxserver/musicbrainz
    container_name: musicbrainz
    restart: unless-stopped
    environment:
      PGID: 1000
      PUID: 1000
      TZ: "Europe/Vienna"
      BRAINZCODE: redacted
      WEBADDRESS: mb.example.com
    volumes:
      - ./config:/config
    networks:
      - reverse-proxy

networks:
  default:
  reverse-proxy:
    external: true

Docker logs

musicbrainz not a full db

The container starts up fine and downloads the latest postgres dump but when I go into the webui it is missing albums later than 2012-2013.

Mon May 23 22:00:55 2016 : Installing extensions (Extensions.sql)
Mon May 23 22:00:55 2016 : Creating tables ... (CreateTables.sql)
Mon May 23 22:01:04 2016 : Creating tables ... (caa/CreateTables.sql)
Mon May 23 22:01:05 2016 : Creating documentation tables ... (documentation/CreateTables.sql)
Mon May 23 22:01:09 2016 : Creating tables ... (report/CreateTables.sql)
Mon May 23 22:01:09 2016 : Creating sitemaps tables ... (sitemaps/CreateTables.sql)
Mon May 23 22:01:10 2016 : Creating statistics tables ... (statistics/CreateTables.sql)
Mon May 23 22:01:10 2016 : Creating wikidocs tables ... (wikidocs/CreateTables.sql)
Mon May 23 22:01:10 2016 : Pre-checking /data/import/20160521-005510/mbdump-cdstubs.tar.bz2

bunzip2: I/O or other error, bailing out. Possible reason follows.
bunzip2: Broken pipe
Input file = (stdin), output file = (stdout)
Mon May 23 22:01:11 2016 : Pre-checking /data/import/20160521-005510/mbdump-cover-art-archive.tar.bz2

bunzip2: I/O or other error, bailing out. Possible reason follows.
bunzip2: Broken pipe
Input file = (stdin), output file = (stdout)
Mon May 23 22:01:11 2016 : Pre-checking /data/import/20160521-005510/mbdump-derived.tar.bz2

bunzip2: I/O or other error, bailing out. Possible reason follows.
bunzip2: Broken pipe
Input file = (stdin), output file = (stdout)
Mon May 23 22:01:11 2016 : Pre-checking /data/import/20160521-005510/mbdump-editor.tar.bz2

bunzip2: I/O or other error, bailing out. Possible reason follows.
bunzip2: Broken pipe
Input file = (stdin), output file = (stdout)
Mon May 23 22:01:11 2016 : Pre-checking /data/import/20160521-005510/mbdump-stats.tar.bz2

bunzip2: I/O or other error, bailing out. Possible reason follows.
bunzip2: Broken pipe
Input file = (stdin), output file = (stdout)
Mon May 23 22:01:11 2016 : Pre-checking /data/import/20160521-005510/mbdump.tar.bz2

bunzip2: I/O or other error, bailing out. Possible reason follows.
bunzip2: Broken pipe
Input file = (stdin), output file = (stdout)
Mon May 23 22:01:11 2016 : Pre-checking /data/import/20160521-005510/mbdump-wikidocs.tar.bz2
Mon May 23 22:01:11 2016 : tar -C /data/import/20160521-005510/MBImport-n2MmPkBW --bzip2 -xvf /data/import/20160521-005510/mbdump-cdstubs.tar.bz2
TIMESTAMP
COPYING
README
REPLICATION_SEQUENCE
SCHEMA_SEQUENCE
mbdump/cdtoc_raw
mbdump/release_raw
mbdump/track_raw

Are these broken pipe issues the culprit?

Database errors with 631af7e5dce7 - linux/amd64

I'm running this on a Dell C1100 with Portainer on a ZFS filesystem on Debian 10.

I've attached a screenshot of the Portainer configuration. The container starts and downloads the file, and then spams that it couldn't find /config/postgresql.conf. I have also attached a dump of the docker log output for the container, which includes a restart of the container when I tried to resolve the problem.

I'll admit i'm fairly new to Docker as I have traditionally used VMs, but please let me know if there is any additional information I can provide.

musicbrainz

musicbrainz.txt

A couple questions

I'm pretty new to linux, newer to docker, and even newer to running a local musicbrainz slave, so very sorry if my questions are incedibly basic or dim.

So I believe replication is on and automated, correct? Are search indexes already built, or do I need to build them? According to the musicbrainz documentation, I'd need to run the following for that:

sudo su - search
bin/reindex

Lastly, how would I access the main database. Again, the musicbrainz documentation says the following:

sudo su - musicbrainz
cd musicbrainz-server/admin
./psql READWRITE

Are these users included in the install (search / musicbrainz)?

Replication stopped working several days ago

OS: Photon OS 3.0
Settings container

Output Container log file:

2019-05-15 18:08:31.357 CEST [325] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2019-05-15 18:08:31.357 CEST [325] LOG:  listening on IPv6 address "::", port 5432
2019-05-15 18:08:31.358 CEST [325] LOG:  listening on Unix socket "/run/postgresql/.s.PGSQL.5432"
2019-05-15 18:08:31.359 CEST [325] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2019-05-15 18:08:31.389 CEST [352] LOG:  database system was interrupted; last known up at 2019-05-14 05:29:02 CEST
2019-05-15 18:08:31.538 CEST [352] LOG:  database system was not properly shut down; automatic recovery in progress
2019-05-15 18:08:31.541 CEST [352] LOG:  redo starts at 16/2933A9F8
2019-05-15 18:08:31.541 CEST [352] LOG:  invalid record length at 16/2933CAA0: wanted 24, got 0
2019-05-15 18:08:31.541 CEST [352] LOG:  redo done at 16/2933CA68
2019-05-15 18:08:31.553 CEST [325] LOG:  database system is ready to accept connections
Wed May 15 19:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Wed May 15 20:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Wed May 15 21:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Wed May 15 22:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Wed May 15 23:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 00:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 01:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 02:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 03:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 04:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 05:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 06:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 07:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 08:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log
Thu May 16 09:00:01 CEST 2019 : LoadReplicationChanges failed (rc=1) - see /config/log/musicbrainz/slave.log

Outpot of /config/log/musicbrainz/slave.log:

Thu May 16 01:00:01 2019 : Downloading https://metabrainz.org/api/musicbrainz/replication-122408.tar.bz2 to /tmp/replication-122408.tar.bz2
Thu May 16 01:00:01 2019 : Decompressing /tmp/replication-122408.tar.bz2 to /tmp/loadrep-tI7Qtd
TIMESTAMP
COPYING
README
REPLICATION_SEQUENCE
SCHEMA_SEQUENCE
mbdump/dbmirror_pending
mbdump/dbmirror_pendingdata
Thu May 16 01:00:01 2019 : This replication packet matches schema sequence #25, but the database is currently at #24
Thu May 16 01:00:01 2019 : You must upgrade your database in order to apply this replication packet
Thu May 16 02:00:01 2019 : Downloading https://metabrainz.org/api/musicbrainz/replication-122408.tar.bz2 to /tmp/replication-122408.tar.bz2
Thu May 16 02:00:01 2019 : Decompressing /tmp/replication-122408.tar.bz2 to /tmp/loadrep-JJSBLX
TIMESTAMP
COPYING
README
REPLICATION_SEQUENCE
SCHEMA_SEQUENCE
mbdump/dbmirror_pending
mbdump/dbmirror_pendingdata
Thu May 16 02:00:01 2019 : This replication packet matches schema sequence #25, but the database is currently at #24
Thu May 16 02:00:01 2019 : You must upgrade your database in order to apply this replication packet
Thu May 16 03:00:00 2019 : Downloading https://metabrainz.org/api/musicbrainz/replication-122408.tar.bz2 to /tmp/replication-122408.tar.bz2
Thu May 16 03:00:01 2019 : Decompressing /tmp/replication-122408.tar.bz2 to /tmp/loadrep-y0h_00
TIMESTAMP
COPYING
README
REPLICATION_SEQUENCE
SCHEMA_SEQUENCE
mbdump/dbmirror_pending
mbdump/dbmirror_pendingdata
Thu May 16 03:00:01 2019 : This replication packet matches schema sequence #25, but the database is currently at #24
Thu May 16 03:00:01 2019 : You must upgrade your database in order to apply this replication packet
Thu May 16 04:00:00 2019 : Downloading https://metabrainz.org/api/musicbrainz/replication-122408.tar.bz2 to /tmp/replication-122408.tar.bz2
Thu May 16 04:00:01 2019 : Decompressing /tmp/replication-122408.tar.bz2 to /tmp/loadrep-mUdm8l
TIMESTAMP
COPYING
README
REPLICATION_SEQUENCE
SCHEMA_SEQUENCE
mbdump/dbmirror_pending
mbdump/dbmirror_pendingdata
Thu May 16 04:00:01 2019 : This replication packet matches schema sequence #25, but the database is currently at #24
Thu May 16 04:00:01 2019 : You must upgrade your database in order to apply this replication packet
Thu May 16 05:00:00 2019 : Downloading https://metabrainz.org/api/musicbrainz/replication-122408.tar.bz2 to /tmp/replication-122408.tar.bz2
Thu May 16 05:00:01 2019 : Decompressing /tmp/replication-122408.tar.bz2 to /tmp/loadrep-8mtB47
TIMESTAMP
COPYING
README
REPLICATION_SEQUENCE

When i try to install the container from scratch, it doesn´t start at all. Any ideas?

Process for MusicBrainz schema upgrades

linuxserver.io

MusicBrainz updates are failing due to a DB schema change. What is the recommended procedure to resolve this? Download the Docker container from scratch? It's probably worth noting this procedure in the README.md.

PS: I am unable to open an account on forum.linuxserver.io to ask this question. The Captcha test always fails.

-- For reference here is my slave.log ---
Wed May 17 14:00:00 2017 : Downloading https://metabrainz.org/api/musicbrainz/replication-104468.tar.bz2 to /tmp/replication-104468.tar.bz2
Wed May 17 14:00:02 2017 : Decompressing /tmp/replication-104468.tar.bz2 to /tmp/loadrep-L8U9eK
TIMESTAMP
COPYING
README
REPLICATION_SEQUENCE
SCHEMA_SEQUENCE
mbdump/dbmirror_pending
mbdump/dbmirror_pendingdata
Wed May 17 14:00:02 2017 : This replication packet matches schema sequence #24, but the database is currently at #23
Wed May 17 14:00:02 2017 : You must upgrade your database in order to apply this replication packet

postgres problem

i have the latest image and i'm getting.
postgres: could not access the server configuration file "/config/postgresql.conf": No such file or directory

i saw that there were old issues that were closed. i think maybe something changed again.

Issue building MusicBrainz Docker

I am having an issue building/using the latest MusicBrainz Docker image from you using Docker Compose. This is on Ubuntu 15.04.

The error:

Starting dockermusicbrainz_docker-musicbrainz_1
Attaching to dockermusicbrainz_docker-musicbrainz_1
docker-musicbrainz_1  | *** Running /etc/my_init.d/005_set_time.sh...
docker-musicbrainz_1  | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
docker-musicbrainz_1  | *** Running /etc/my_init.d/10_add_user_abc.sh...
docker-musicbrainz_1  |
docker-musicbrainz_1  | -------------------------------------
docker-musicbrainz_1  |           _     _ _
docker-musicbrainz_1  |          | |___| (_) ___
docker-musicbrainz_1  |          | / __| | |/ _ \
docker-musicbrainz_1  |          | \__ \ | | (_) |
docker-musicbrainz_1  |          |_|___/ |_|\___/
docker-musicbrainz_1  |                |_|
docker-musicbrainz_1  |
docker-musicbrainz_1  | Brought to you by linuxserver.io
docker-musicbrainz_1  | We do accept donations at:
docker-musicbrainz_1  | https://www.linuxserver.io/donations
docker-musicbrainz_1  | -------------------------------------
docker-musicbrainz_1  | GID/UID
docker-musicbrainz_1  | -------------------------------------
docker-musicbrainz_1  | User uid:    0
docker-musicbrainz_1  | User gid:    0
docker-musicbrainz_1  | -------------------------------------
docker-musicbrainz_1  |
docker-musicbrainz_1  | *** Running /etc/my_init.d/20_apt_update.sh...
docker-musicbrainz_1  | finding fastest mirror
docker-musicbrainz_1  | Getting list of mirrors...done.
docker-musicbrainz_1  | Testing 72 mirror(s)
docker-musicbrainz_1  | Getting list of launchpad URLs...done.
docker-musicbrainz_1  | Looking up 3 status(es)
[3/3] 100%1. mirrors.usinternet.com
docker-musicbrainz_1  |     Latency: 21 ms
docker-musicbrainz_1  |     Org:     US Internet
docker-musicbrainz_1  |     Status:  Up to date
docker-musicbrainz_1  |     Speed:   1 Gbps
docker-musicbrainz_1  | 2. mirrors.gigenet.com
docker-musicbrainz_1  |     Latency: 22 ms
docker-musicbrainz_1  |     Org:     GigeNet
docker-musicbrainz_1  |     Status:  Up to date
docker-musicbrainz_1  |     Speed:   1 Gbps
docker-musicbrainz_1  | 3. ubuntu.localmsp.org (current)
docker-musicbrainz_1  |     Latency: 23 ms
docker-musicbrainz_1  |     Org:     localmsp
docker-musicbrainz_1  |     Status:  Up to date
docker-musicbrainz_1  |     Speed:   10 Gbps
docker-musicbrainz_1  | New config file saved to /defaults/sources.list
docker-musicbrainz_1  |
docker-musicbrainz_1  | We are now refreshing packages from apt repositories, this *may* take a while
docker-musicbrainz_1  | Ign http://mirrors.usinternet.com trusty InRelease
docker-musicbrainz_1  | Get:1 http://mirrors.usinternet.com trusty-updates InRelease [65.9 kB]
docker-musicbrainz_1  | Get:2 http://mirrors.usinternet.com trusty-security InRelease [65.9 kB]
docker-musicbrainz_1  | Hit http://ppa.launchpad.net trusty InRelease
docker-musicbrainz_1  | Hit https://deb.nodesource.com trusty InRelease
docker-musicbrainz_1  | Hit http://apt.postgresql.org trusty-pgdg InRelease
docker-musicbrainz_1  | Get:3 http://mirrors.usinternet.com trusty Release.gpg [933 B]
docker-musicbrainz_1  | Get:4 http://mirrors.usinternet.com trusty Release [58.5 kB]
docker-musicbrainz_1  | Get:5 http://mirrors.usinternet.com trusty-updates/main Sources [346 kB]
docker-musicbrainz_1  | Get:6 http://mirrors.usinternet.com trusty-updates/restricted Sources [5,217 B]
docker-musicbrainz_1  | Get:7 http://mirrors.usinternet.com trusty-updates/universe Sources [194 kB]
docker-musicbrainz_1  | Get:8 http://mirrors.usinternet.com trusty-updates/multiverse Sources [5,943 B]
docker-musicbrainz_1  | Get:9 http://mirrors.usinternet.com trusty-updates/main amd64 Packages [964 kB]
docker-musicbrainz_1  | Get:10 http://mirrors.usinternet.com trusty-updates/restricted amd64 Packages [23.5 kB]
docker-musicbrainz_1  | Hit http://ppa.launchpad.net trusty/main amd64 Packages
docker-musicbrainz_1  | Get:11 http://mirrors.usinternet.com trusty-updates/universe amd64 Packages [464 kB]
docker-musicbrainz_1  | Get:12 http://mirrors.usinternet.com trusty-updates/multiverse amd64 Packages [14.3 kB]
docker-musicbrainz_1  | Get:13 https://deb.nodesource.com trusty/main Sources
docker-musicbrainz_1  | Get:14 http://mirrors.usinternet.com trusty-security/main Sources [147 kB]
docker-musicbrainz_1  | Get:15 https://deb.nodesource.com trusty/main amd64 Packages
docker-musicbrainz_1  | Get:16 http://mirrors.usinternet.com trusty-security/restricted Sources [3,920 B]
docker-musicbrainz_1  | Get:17 http://mirrors.usinternet.com trusty-security/universe Sources [41.8 kB]
docker-musicbrainz_1  | Get:18 http://mirrors.usinternet.com trusty-security/multiverse Sources [2,547 B]
docker-musicbrainz_1  | Get:19 http://mirrors.usinternet.com trusty-security/main amd64 Packages [602 kB]
docker-musicbrainz_1  | Get:20 http://mirrors.usinternet.com trusty-security/restricted amd64 Packages [20.2 kB]
docker-musicbrainz_1  | Get:21 http://mirrors.usinternet.com trusty-security/universe amd64 Packages [167 kB]
docker-musicbrainz_1  | Hit http://apt.postgresql.org trusty-pgdg/main amd64 Packages
docker-musicbrainz_1  | Get:22 http://mirrors.usinternet.com trusty-security/multiverse amd64 Packages [4,853 B]
docker-musicbrainz_1  | Get:23 http://mirrors.usinternet.com trusty/main Sources [1,335 kB]
docker-musicbrainz_1  | Get:24 http://mirrors.usinternet.com trusty/restricted Sources [5,335 B]
docker-musicbrainz_1  | Get:25 http://mirrors.usinternet.com trusty/universe Sources [7,926 kB]
docker-musicbrainz_1  | Get:26 http://mirrors.usinternet.com trusty/multiverse Sources [211 kB]
docker-musicbrainz_1  | Get:27 http://mirrors.usinternet.com trusty/main amd64 Packages [1,743 kB]
docker-musicbrainz_1  | Get:28 http://mirrors.usinternet.com trusty/restricted amd64 Packages [16.0 kB]
docker-musicbrainz_1  | Get:29 http://mirrors.usinternet.com trusty/universe amd64 Packages [7,589 kB]
docker-musicbrainz_1  | Get:30 http://mirrors.usinternet.com trusty/multiverse amd64 Packages [169 kB]
docker-musicbrainz_1  | Fetched 22.2 MB in 11s (1,947 kB/s)
docker-musicbrainz_1  | Reading package lists...
docker-musicbrainz_1  | (Reading database ... 27992 files and directories currently installed.)
docker-musicbrainz_1  | Preparing to unpack .../libexpat1-dev_2.1.0-4ubuntu1.2_amd64.deb ...
docker-musicbrainz_1  | Unpacking libexpat1-dev:amd64 (2.1.0-4ubuntu1.2) over (2.1.0-4ubuntu1.1) ...
docker-musicbrainz_1  | Preparing to unpack .../libexpat1_2.1.0-4ubuntu1.2_amd64.deb ...
docker-musicbrainz_1  | Unpacking libexpat1:amd64 (2.1.0-4ubuntu1.2) over (2.1.0-4ubuntu1.1) ...
docker-musicbrainz_1  | Setting up libexpat1:amd64 (2.1.0-4ubuntu1.2) ...
docker-musicbrainz_1  | Setting up libexpat1-dev:amd64 (2.1.0-4ubuntu1.2) ...
docker-musicbrainz_1  | Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
docker-musicbrainz_1  | *** Running /etc/my_init.d/30_set_config.sh...
docker-musicbrainz_1  | *** Running /etc/my_init.d/40_initialise.sh...
docker-musicbrainz_1  | + set -e
docker-musicbrainz_1  | + mkdir -p /data/import /data/dbase
docker-musicbrainz_1  | + chown abc:abc /data
docker-musicbrainz_1  | + mkdir -p /var/run/postgresql
docker-musicbrainz_1  | + chown -R abc:abc /var/run/postgresql /app
docker-musicbrainz_1  | ++ curl -s ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/LATEST
docker-musicbrainz_1  | + dumpver=20160518-005233
docker-musicbrainz_1  | + DUMP_URL=ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/20160518-005233
docker-musicbrainz_1  | + DUMP_DEST=/data/import/20160518-005233
docker-musicbrainz_1  | + mkdir -p /data/import/20160518-005233
docker-musicbrainz_1  | + chown abc:abc /data/import/20160518-005233
docker-musicbrainz_1  | + echo 'fetching latest dump from musicbrainz, if this section fails try again later as musicbrainz dump may not be fully uploaded
docker-musicbrainz_1  | to their site'
docker-musicbrainz_1  | + /sbin/setuser abc curl -o /data/import/20160518-005233/mbdump-cdstubs.tar.bz2 -L -C - ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/20160518-005233/mbdump-cdstubs.tar.bz2
docker-musicbrainz_1  | fetching latest dump from musicbrainz, if this section fails try again later as musicbrainz dump may not be fully uploaded
docker-musicbrainz_1  | to their site
docker-musicbrainz_1  | ** Resuming transfer from byte position 68005875
docker-musicbrainz_1  |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
docker-musicbrainz_1  |                                  Dload  Upload   Total   Spent    Left  Speed
  0 64.8M    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
docker-musicbrainz_1  | + /sbin/setuser abc curl -o /data/import/20160518-005233/mbdump-cover-art-archive.tar.bz2 -L -C - ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/20160518-005233/mbdump-cover-art-archive.tar.bz2
docker-musicbrainz_1  | ** Resuming transfer from byte position 21278489
docker-musicbrainz_1  |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
docker-musicbrainz_1  |                                  Dload  Upload   Total   Spent    Left  Speed
  0 20.2M    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
docker-musicbrainz_1  | + /sbin/setuser abc curl -o /data/import/20160518-005233/mbdump-derived.tar.bz2 -L -C - ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/20160518-005233/mbdump-derived.tar.bz2
docker-musicbrainz_1  | ** Resuming transfer from byte position 126418526
docker-musicbrainz_1  |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
docker-musicbrainz_1  |                                  Dload  Upload   Total   Spent    Left  Speed
  0  120M    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
docker-musicbrainz_1  | + /sbin/setuser abc curl -o /data/import/20160518-005233/mbdump-editor.tar.bz2 -L -C - ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/20160518-005233/mbdump-editor.tar.bz2
docker-musicbrainz_1  | ** Resuming transfer from byte position 70020937
docker-musicbrainz_1  |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
docker-musicbrainz_1  |                                  Dload  Upload   Total   Spent    Left  Speed
  0 66.7M    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
docker-musicbrainz_1  | + /sbin/setuser abc curl -o /data/import/20160518-005233/mbdump-stats.tar.bz2 -L -C - ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/20160518-005233/mbdump-stats.tar.bz2
docker-musicbrainz_1  | ** Resuming transfer from byte position 29294448
docker-musicbrainz_1  |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
docker-musicbrainz_1  |                                  Dload  Upload   Total   Spent    Left  Speed
  0 27.9M    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
docker-musicbrainz_1  | + /sbin/setuser abc curl -o /data/import/20160518-005233/mbdump-wikidocs.tar.bz2 -L -C - ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/20160518-005233/mbdump-wikidocs.tar.bz2
docker-musicbrainz_1  | ** Resuming transfer from byte position 7109
docker-musicbrainz_1  |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
docker-musicbrainz_1  |                                  Dload  Upload   Total   Spent    Left  Speed
  0  7109    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
docker-musicbrainz_1  | + /sbin/setuser abc curl -o /data/import/20160518-005233/mbdump.tar.bz2 -L -C - ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/20160518-005233/mbdump.tar.bz2
docker-musicbrainz_1  | ** Resuming transfer from byte position 2188219377
docker-musicbrainz_1  |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
docker-musicbrainz_1  |                                  Dload  Upload   Total   Spent    Left  Speed
  0 2086M    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
docker-musicbrainz_1  | initialising empty databases
docker-musicbrainz_1  | + echo 'initialising empty databases'
docker-musicbrainz_1  | + /sbin/setuser abc initdb
docker-musicbrainz_1  | *** /etc/my_init.d/40_initialise.sh failed with status 1
docker-musicbrainz_1  |
docker-musicbrainz_1  | *** Killing all processes...
dockermusicbrainz_docker-musicbrainz_1 exited with code 1

Docker is run under root, which is why the UID and GID are 0.

Versions:

isuftin@C64:~/Docker/docker-musicbrainz$ docker --version
Docker version 1.11.1, build 5604cbe
isuftin@C64:~/Docker/docker-musicbrainz$ docker-compose --version
docker-compose version 1.7.1, build 0a9ab35
isuftin@C64:~/Docker/docker-musicbrainz$ uname -a
Linux C64 4.2.0-36-generic #41-Ubuntu SMP Mon Apr 18 15:49:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

docker-compose.yml (building from latest pull from your repo but also tried running with your latest image as well):


---
version: '2'

services:
  docker-musicbrainz:
    build: .
    volumes:
      - /home/isuftin/Docker/docker-musicbrainz-data/config:/config
      - /home/isuftin/Docker/docker-musicbrainz-data/data:/data
    environment:
      - BRAINZCODE=<nope?>
      - TZ=America/Chicago
      - PGID=0
      - PUID=0
    ports:
      - "5000:5000"

Looks like Docker is creating the data and config directories properly:

$ tree /home/isuftin/Docker/docker-musicbrainz-data/
/home/isuftin/Docker/docker-musicbrainz-data/
├── config
│   └── DBDefs.pm
└── data
    ├── dbase
    └── import
        └── 20160518-005233
            ├── mbdump-cdstubs.tar.bz2
            ├── mbdump-cover-art-archive.tar.bz2
            ├── mbdump-derived.tar.bz2
            ├── mbdump-editor.tar.bz2
            ├── mbdump-stats.tar.bz2
            ├── mbdump.tar.bz2
            └── mbdump-wikidocs.tar.bz2

5 directories, 8 files

v-2020-11-22-hotfix-ls10 does not start

Expected Behavior

expected to see the musicbrainz web ui

Current Behavior

502 Bad Gateway

Steps to Reproduce

  1. started with empty /config and /data volume
  2. docker-compose.yml as below

Environment

OS: Ubuntu 20.04 LTS
CPU architecture: x86_64

Command used to create docker container (run/create/compose/screenshot)

---
version: "2"
services:
  musicbrainz:
    image: linuxserver/musicbrainz:v-2020-11-22-hotfix-ls10
    container_name: musicbrainz
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - BRAINZCODE=xxxmycodexxxx
      - WEBADDRESS=192.168.0.5
    volumes:
      - /home/myusername/docker/musicbrainz_config:/config
      - /home/myusername/docker/musicbrainz_data:/data
    ports:
      - 15000:5000
    restart: always

Docker logs

2020-11-26 01:08:39.270 CET [6721] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:08:39.814 CET [6726] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:08:39.814 CET [6726] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:09:50.095 CET [6901] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:09:50.095 CET [6901] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:09:50.617 CET [6903] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:09:50.618 CET [6903] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:11:24.275 CET [7124] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:11:24.275 CET [7124] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:11:24.876 CET [7126] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:11:24.876 CET [7126] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:12:50.900 CET [7317] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:12:50.900 CET [7317] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:12:51.467 CET [7322] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:12:51.468 CET [7322] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:14:47.396 CET [7592] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:14:47.396 CET [7592] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:14:48.096 CET [7597] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:14:48.097 CET [7597] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:17:54.957 CET [8041] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:17:54.957 CET [8041] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:17:55.502 CET [8043] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:17:55.503 CET [8043] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:19:45.570 CET [8298] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:19:45.570 CET [8298] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:19:46.213 CET [8303] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:19:46.213 CET [8303] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:22:15.681 CET [8636] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:22:15.681 CET [8636] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:22:16.215 CET [8641] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:22:16.216 CET [8641] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:24:07.385 CET [8880] ERROR:  canceling autovacuum task,
2020-11-26 01:24:07.385 CET [8880] CONTEXT:  automatic vacuum of table "musicbrainz_db.musicbrainz.dbmirror_pending",
2020-11-26 01:24:08.053 CET [8894] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:24:08.053 CET [8894] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:24:08.608 CET [8896] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:24:08.608 CET [8896] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:25:35.751 CET [9114] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:25:35.751 CET [9114] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:25:36.355 CET [9119] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:25:36.355 CET [9119] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:28:20.292 CET [9462] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:28:20.292 CET [9462] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:28:20.833 CET [9467] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:28:20.833 CET [9467] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:29:48.704 CET [9675] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:29:48.704 CET [9675] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:29:49.289 CET [9680] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:29:49.289 CET [9680] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:31:32.626 CET [9908] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:31:32.626 CET [9908] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:31:33.286 CET [9910] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:31:33.286 CET [9910] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:34:34.076 CET [10245] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:34:34.076 CET [10245] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:34:34.602 CET [10248] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:34:34.603 CET [10248] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:36:15.529 CET [10457] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:36:15.529 CET [10457] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:36:16.091 CET [10459] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:36:16.091 CET [10459] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:38:13.340 CET [10688] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:38:13.340 CET [10688] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:38:13.878 CET [10690] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:38:13.878 CET [10690] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:40:44.240 CET [10996] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:40:44.240 CET [10996] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:40:44.776 CET [11001] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:40:44.776 CET [11001] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
2020-11-26 01:43:41.137 CET [11375] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 01:43:41.137 CET [11375] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 01:43:41.646 CET [11380] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 01:43:41.647 CET [11380] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
error: cannot stat /dev/stdin: Stale file handle,
error: cannot stat /dev/stdin: Stale file handle,
2020-11-26 03:00:01.983 CET [22529] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 03:00:01.983 CET [22529] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 03:00:02.741 CET [22534] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 03:00:02.742 CET [22534] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
error: cannot stat /dev/stdin: Stale file handle,
2020-11-26 04:00:01.950 CET [31416] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 04:00:01.950 CET [31416] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 04:00:02.553 CET [31421] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 04:00:02.553 CET [31421] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
error: cannot stat /dev/stdin: Stale file handle,
2020-11-26 05:00:01.858 CET [40324] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 05:00:01.858 CET [40324] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 05:00:02.559 CET [40326] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 05:00:02.559 CET [40326] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
error: cannot stat /dev/stdin: Stale file handle,
2020-11-26 06:00:02.653 CET [49226] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 06:00:02.653 CET [49226] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 06:00:03.139 CET [49228] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 06:00:03.139 CET [49228] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
error: cannot stat /dev/stdin: Stale file handle,
2020-11-26 07:00:01.913 CET [58080] ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist,
2020-11-26 07:00:01.913 CET [58080] STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE,
2020-11-26 07:00:02.466 CET [58082] WARNING:  SET TRANSACTION can only be used in transaction blocks,
2020-11-26 07:00:02.466 CET [58082] WARNING:  SET CONSTRAINTS can only be used in transaction blocks,
error: cannot stat /dev/stdin: Stale file handle,

Better multi-cores support by extract nproc from the environment

Thanks to the great team/community behind the project.

I intend to use a 16-cores environment to run the container. The container is used to serve high-parallel MusicBrainz API requests.

If the --nproc argument is designed to maximize throughput, I think it’s better to extract the number of processors from the environment. Possible via:

grep -c ^processor /proc/cpuinfo.

If that looks sane to you, do you prefer a PR, or I should expect an update later sometime? Thank you.

Schema sequence mismatch on fresh install

On start, the container downloads the DB, but then can't import it.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.10

Docker version 17.05.0-ce, build 89658be

docker create --name=musicbrainz \
    -v /opt/musicbrainz/config:/config \
    -v /opt/musicbrainz/data:/data \
    -e BRAINZCODE="redacted" \
    -e PGID=1000 -e PUID=1000 \
    -e TZ=america/toronto \
    -p 5000:5000 \
    linuxserver/musicbrainz
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...

-------------------------------------
          _     _ _
         | |___| (_) ___
         | / __| | |/ _ \
         | \__ \ | | (_) |
         |_|___/ |_|\___/
               |_|

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/
-------------------------------------
GID/UID
-------------------------------------
User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-brainzcode: executing...
[cont-init.d] 20-brainzcode: exited 0.
[cont-init.d] 30-initialise-database: executing...
fetching latest dump from musicbrainz, if this section fails try again later as musicbrainz dump may not be fully uploaded
to their site
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 65.7M  100 65.7M    0     0  1639k      0  0:00:41  0:00:41 --:--:-- 1760k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27.3M  100 27.3M    0     0  1644k      0  0:00:17  0:00:17 --:--:-- 1793k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  132M  100  132M    0     0  1727k      0  0:01:18  0:01:18 --:--:-- 1625k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 78.4M  100 78.4M    0     0  1730k      0  0:00:46  0:00:46 --:--:-- 1770k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 34.9M  100 34.9M    0     0  1696k      0  0:00:21  0:00:21 --:--:-- 1772k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2330M  100 2330M    0     0  1768k      0  0:22:29  0:22:29 --:--:-- 1765k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7097  100  7097    0     0   5842      0  0:00:01  0:00:01 --:--:--  6263
initialising empty databases
completed postgres initialise
waiting for server to start....LOG:  could not bind IPv6 socket: Address not available
HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
LOG:  database system was shut down at 2017-05-17 19:16:35 GMT
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
 done
server started
BEGINNING INITIAL DATABASE IMPORT ROUTINE, THIS COULD TAKE SEVERAL HOURS AND THE DOCKER MAY LOOK UNRESPONSIVE
DO NOT STOP DOCKER UNTIL IT IS COMPLETED
Wed May 17 19:16:46 2017 : InitDb.pl starting
Wed May 17 19:16:46 2017 : Creating database 'musicbrainz_db'
CREATE SCHEMA
CREATE SCHEMA
CREATE SCHEMA
CREATE SCHEMA
CREATE SCHEMA
CREATE SCHEMA
CREATE SCHEMA
Wed May 17 19:16:47 2017 : Installing extensions (Extensions.sql)
Wed May 17 19:16:47 2017 : Creating tables ... (CreateTables.sql)
Wed May 17 19:16:48 2017 : Creating tables ... (caa/CreateTables.sql)
Wed May 17 19:16:48 2017 : Creating documentation tables ... (documentation/CreateTables.sql)
Wed May 17 19:16:49 2017 : Creating tables ... (report/CreateTables.sql)
Wed May 17 19:16:49 2017 : Creating sitemaps tables ... (sitemaps/CreateTables.sql)
Wed May 17 19:16:49 2017 : Creating statistics tables ... (statistics/CreateTables.sql)
Wed May 17 19:16:49 2017 : Creating wikidocs tables ... (wikidocs/CreateTables.sql)
Wed May 17 19:16:50 2017 : Pre-checking /data/import/20170517-001439/mbdump-cdstubs.tar.bz2
Wed May 17 19:16:50 2017 : Schema sequence mismatch - codebase is 23, /data/import/20170517-001439/mbdump-cdstubs.tar.bz2 is 24

Failed to import dataset.
Wed May 17 19:16:50 2017 : InitDb.pl failed
[cont-init.d] 30-initialise-database: exited 1.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] done.
[services.d] starting services
postgres: could not access the server configuration file "/config/postgresql.conf": No such file or directory
[services.d] done.
postgres: could not access the server configuration file "/config/postgresql.conf": No such file or directory
[repeats]

Thanks, team linuxserver.io

memory leaks lead to unresponsive server

Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-38-generic x86_64)

snippet from docker compose:
musicbrainz:
image: linuxserver/musicbrainz
container_name: musicbrainz
environment:
- PUID=1000
- PGID=1000
- TZ="Europe/London"
- BRAINZCODE=#######
networks:
- addServices
volumes:
- /home/#/docker/musicbrainz/config:/config
- /home/#/docker/musicbrainz/data:/data
ports:
- "127.0.0.1:5885:5000"

usermod: no changes


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \ 
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/

GID/UID

User uid: 1000
User gid: 1000

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-brainzcode: executing...
[cont-init.d] 20-brainzcode: exited 0.
[cont-init.d] 30-initialise-database: executing...
[cont-init.d] 30-initialise-database: exited 0.
[cont-init.d] 35-generate_css: executing...
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
[17:12:28] Using gulpfile /app/musicbrainz/gulpfile.js
[17:12:28] Starting 'default'...
(node:278) Warning: Possible EventEmitter memory leak detected. 12 resolve listeners added. Use emitter.setMaxListeners() to increase limit
[17:12:52] Finished 'default' after 24 s
[cont-init.d] 35-generate_css: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
LOG: database system was interrupted; last known up at 2018-11-04 16:57:38 GMT
LOG: database system was not properly shut down; automatic recovery in progress
LOG: invalid record length at 3/4CDEEA48: wanted 24, got 0
LOG: redo is not required
LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
LOG: autovacuum launcher started

no symlinks

please look at (node:278) Warning: Possible EventEmitter memory leak detected. 12 resolve listeners added. Use emitter.setMaxListeners() to increase limit

LOOKING FOR A MAINTAINER

We are looking for a community maintainer for this image.

The latest updates (and rebase to alpine 3.12) seem to have cause some issues for existing users and the team members don't have the bandwidth or the interest in fixing and maintaining this image.

Anyone interested can reach out here or on our discord. If we are unable to find a maintainer within the next few weeks, this image will be deprecated.

Thanks

Unable to update line sub WEB_SERVER { "localhost:5000" } in file /config/DBDefs.pm

linuxserver.io


Expected Behavior

I should be able to update the sub WEB_SERVER { "localhost:5000" }after the creation of the containter

The https://hub.docker.com/r/linuxserver/musicbrainz instructions claim..

"If you did not set WEBADDRESS env variable, then AFTER iniatilisation is complete you will need to edit the line sub WEB_SERVER { "localhost:5000" } in file /config/DBDefs.pm changing localhost to the ip of your host, this is to allow css to display properly"

Current Behavior

Any changes I make to the sub WEB_SERVER { "localhost:5000" } line in /config/DBDefs.pm areoverwritted on reboot with the address provided via the -e WEBADDRESS=

Steps to Reproduce

Create a container with a specific IP in the -e WEBADDRESS=
Once installed, go in and edit the sub WEB_SERVER { "localhost:5000" } in file /config/DBDefs.pm with a new IP
Reboot
Go back into the DBDefs.pm fiel to see that it's reverted back to the original one.

Environment

OS:
Linux QNAP NAS
CPU architecture: x86_64/arm32/arm64
How docker service was installed:
Installed as part of Containter Statition

Command used to create docker container (run/create/compose/screenshot)

docker run -d \
  --name=musicbrainz \
  -e PUID=501\
  -e PGID=100 \
  -e TZ=Europe/London \
  -e BRAINZCODE=fioqfioqwoniqwfoniqwfoiq \
  -e WEBADDRESS=10.10.10.84 \
  -p 5000:5000 \
  -v /share/musicbrainz/config:/config \
  -v /share/musicbrainz/config:/data

Docker logs

Why so slow ?

Hi, in every test of my local musicbrainz docker (various hardware) , noticed that query response are quite slow the first time and faster the second (probably because cache).

Also the VirtualBox VM has the same issue...

So, in this way local server is slower than online musicbrainz... it's a problem of the docker container or the Musicbrainz server self architecture ?

Thanks,

Luca

Stability issue under high load

When the container is under high load (parallel requests of APIs) for hours, below pattern of errors start to rise (which is reproducible). The requests fail, and it seems only a restart can bring the server back to online.

error: cannot stat /dev/stdin: Stale file handle
./run: line 5:   332 Killed                  s6-setuidgid abc redis-server /config/redis.conf
./run: line 5: 13754 Killed                  s6-setuidgid abc redis-server /config/redis.conf
./run: line 5: 32268 Killed                  s6-setuidgid abc redis-server /config/redis.conf
./run: line 5: 32709 Killed                  s6-setuidgid abc redis-server /config/redis.conf
./run: line 5:   695 Killed                  s6-setuidgid abc redis-server /config/redis.conf
./run: line 5:  1444 Killed                  s6-setuidgid abc redis-server /config/redis.conf
./run: line 5:  1613 Killed                  s6-setuidgid abc redis-server /config/redis.conf
./run: line 5:  1663 Killed                  s6-setuidgid abc redis-server /config/redis.conf
......

I’m not sure it’s a MB server issue, or it’s a potential issue of this project. Could someone kindly guide me to a way to resolve the issue?

Update server version to 2020-09-07

The currently used server version is Bump server version 2018-08-14, which is now 2 years behind. Any chance we can get an updated (or even automated) build? Thanks!

Errors after Initial import is complete

linuxserver.io

OS: Linux/Ubuntu Server/16.04

Command line:

export MUSICBRAINZ_PORT=5000
export MUSICBRAINZ_CODE=xxxxxxx
export NEW_USER_ID=`id -u musicbrainz`
export NEW_GROUP_ID=`id -g musicbrainz`

docker run \
        --restart=always \
        --name musicbrainz \
        -d \
        --net=host \
        -e PUID=$NEW_USER_ID \
        -e PGID=$NEW_GROUP_ID \
        -e BRAINZCODE=$MUSICBRAINZ_CODE \
        -p $MUSICBRAINZ_PORT:5000 \
        -v /config/musicbrainz/config:/config \
        -v /config/musicbrainz/data:/data \
        linuxserver/musicbrainz

Log output snippet showing error:

Wed May  3 05:39:48 2017 : Initialized and imported data into the database.
Wed May  3 05:39:52 2017 : InitDb.pl succeeded
INITIAL IMPORT IS COMPLETE, MOVING TO NEXT PHASE
waiting for server to shut down....LOG:  received fast shutdown request
LOG:  aborting any active transactions
LOG:  shutting down
.LOG:  database system is shut down
 done
server stopped
[cont-init.d] 30-initialise-database: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
LOG:  database system was shut down at 2017-05-03 05:40:05 IST
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started
ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist
STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE
WARNING:  SET TRANSACTION can only be used in transaction blocks
WARNING:  SET CONSTRAINTS can only be used in transaction blocks
ERROR:  constraint "dbmirror_pendingdata_SeqId" of relation "dbmirror_pendingdata" does not exist
STATEMENT:  ALTER TABLE dbmirror_pendingdata DROP CONSTRAINT "dbmirror_pendingdata_SeqId" CASCADE
WARNING:  SET TRANSACTION can only be used in transaction blocks
WARNING:  SET CONSTRAINTS can only be used in transaction blocks

Disclaimer: No symlinks were used in the creation of this container

Postgres database configuration steps?

Hi,
I've been trying to get this container working on and off for a couple of days now, but I'm not getting anywhere fast.

It first complained about no /data/dbase/postgres.conf file. I found one in a folder called music-brainz-test (or something similar) and copied that to /data/dbase. That fixed that error, but then it complained about a missing PG_VERSION. I manually created that one and then it complained about postgresql.auto.conf... I quickly realised that it doesn't come with an empty DB pre-installed.

I set up a postgres db from their official image, shut it down, and then mounted the empty database to the /data/dbase folder in the MB container. MB then complained about the role 'abc' not existing. I tried to connect to the postgres db it errors out complaining about it already running (and I can't kill it without the container restarting).

It seems as though the MusicBrainz container doesn't come with a vanilla DB configured to be able to import the db dump. Surely I'm not the only person seeing this?

Running Debian Buster on an i5 3.2GHz with bind mounts for volumes (no links).

Any pointers would be greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.