[Support] Linuxserver.io - Musicbrainz


Recommended Posts

Getting an error message in the log and still no file in the data folder. However, I think this is going in the right direction as there is at least some change from before. Error message from log is below:

 

"postgres: could not access the server configuration file. "/config/postgresql.conf": No such file  or directory"

 

Any thoughts appreciated. Thanks!

Link to comment
4 hours ago, steve1977 said:

Getting an error message in the log and still no file in the data folder. However, I think this is going in the right direction as there is at least some change from before. Error message from log is below:

 

"postgres: could not access the server configuration file. "/config/postgresql.conf": No such file  or directory"

 

Any thoughts appreciated. Thanks!

 

Post the log so I can see what is going on.

Also post the docker run command.

Edited by saarg
Link to comment

Let me get back to you with the docker run in a few days (away for the next few days).

 

The error message from the log is shown below. It shows up in thousands of lines, so anything older is wiped out and no longer visible.

 

"postgres: could not access the server configuration file. "/config/postgresql.conf": No such file  or directory"

Link to comment
1 hour ago, steve1977 said:

Let me get back to you with the docker run in a few days (away for the next few days).

 

The error message from the log is shown below. It shows up in thousands of lines, so anything older is wiped out and no longer visible.

 

"postgres: could not access the server configuration file. "/config/postgresql.conf": No such file  or directory"

 

Then it's not working. You can just stop the container.

Link to comment
  • 2 weeks later...

Here we go:

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="musicbrainz" --net="bridge" -e TZ="Asia/Shanghai" -e HOST_OS="unRAID" -e "BRAINZCODE"="REMOVED" -e "PGID"="100" -e "PUID"="99" -p 5000:5000/tcp -v "/mnt/user/MBZ/data/":"/data":rw -v "/mnt/cache/Docker/musicbrainz/config":"/config":rw linuxserver/musicbrainz

REMOVED

The command finished successfully!

Link to comment
7 hours ago, steve1977 said:

Here we go:

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="musicbrainz" --net="bridge" -e TZ="Asia/Shanghai" -e HOST_OS="unRAID" -e "BRAINZCODE"="REMOVED" -e "PGID"="100" -e "PUID"="99" -p 5000:5000/tcp -v "/mnt/user/MBZ/data/":"/data":rw -v "/mnt/cache/Docker/musicbrainz/config":"/config":rw linuxserver/musicbrainz

REMOVED

The command finished successfully!

 

 

postgres doesn't work on a fuse mount (/mnt/user) use either a direct drive mount (/mnt/diskx/"location") or the cache drive

Edited by sparklyballs
Link to comment
  • 3 weeks later...

Hi, I just installed this container and while the GUI works I'm getting some errors in the log (below). Any idea what the issue is?

 


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


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

User uid: 99
User gid: 100
-------------------------------------

[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
[02:00:05] Using gulpfile /app/musicbrainz/gulpfile.js
[02:00:05] Starting 'default'...
[02:01:41] Finished 'default' after 1.58 min
[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 shutdown was interrupted; last known up at 2018-02-15 20:59:38 EST
LOG: database system was not properly shut down; automatic recovery in progress
LOG: redo starts at 3/2C4F1820
LOG: invalid record length at 3/2DECA3B8: wanted 24, got 0
LOG: redo done at 3/2DECA348
LOG: last completed transaction was at log time 2018-02-15 20:59:35.395681-05
LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
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

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

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

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

 

Link to comment
6 hours ago, zandrsn said:

Hi, I just installed this container and while the GUI works I'm getting some errors in the log (below). Any idea what the issue is?

 



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


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

User uid: 99
User gid: 100
-------------------------------------

[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
[02:00:05] Using gulpfile /app/musicbrainz/gulpfile.js
[02:00:05] Starting 'default'...
[02:01:41] Finished 'default' after 1.58 min
[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 shutdown was interrupted; last known up at 2018-02-15 20:59:38 EST
LOG: database system was not properly shut down; automatic recovery in progress
LOG: redo starts at 3/2C4F1820
LOG: invalid record length at 3/2DECA3B8: wanted 24, got 0
LOG: redo done at 3/2DECA348
LOG: last completed transaction was at log time 2018-02-15 20:59:35.395681-05
LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
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

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

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

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

 

 

nothing to worry about 

"errors" from syncing that are safe to ignore

  • Like 1
Link to comment
On 1/28/2018 at 5:42 PM, sparklyballs said:

 

 

postgres doesn't work on a fuse mount (/mnt/user) use either a direct drive mount (/mnt/diskx/"location") or the cache drive

 

Thanks. Re-ran it. What about the one below?

 

Command: root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='musicbrainz' --net='bridge' -e TZ="Asia/Shanghai" -e HOST_OS="unRAID" -e 'BRAINZCODE'='REMOVED' -e 'PGID'='100' -e 'PUID'='99' -p '5000:5000/tcp' -v '/mnt/disk1/MBZ/data':'/data':'rw' -v '/mnt/cache/Docker/musicbrainz/config':'/config':'rw' 'linuxserver/musicbrainz'

REMOVED

The command finished successfully!

Link to comment

I'd still love to get this running, but somehow still fail... Below what I am doing. Additional help appreciated!

 

1) Adding the docker

Command: root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='musicbrainz' --net='bridge' -e TZ="Asia/Shanghai" -e HOST_OS="unRAID" -e 'BRAINZCODE'='REMOVED' -e 'PGID'='100' -e 'PUID'='99' -p '5000:5000/tcp' -v '/mnt/disk1/MBZ/data':'/data':'rw' -v '/mnt/cache/Docker/musicbrainz/config':'/config':'rw' 'linuxserver/musicbrainz'

REMOVED
The command finished successfully!

 

2) Letting it run for 12+ hours, log shows:

[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

 

3) Suddenly log stops showing anything and only shows (rest of page is white):

ErrorWarningSystemArrayLogin

 

4) Stop docker and change the IP from localhost to my Unraid IP

 

5) Restarting docker, log shows:

[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
** Resuming transfer from byte position 9188
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

 

 

 

Link to comment

You seem to have a very slow connection to the musicbrainz ftp site. You see that the download is resumed in the second log you posted.

You could try to download the files maually and place it in /data/import/name_of_the_folder_from_the_ftp_site/

Download the files in the latest folder. Then when all files are downloaded, start the container again.

Link to comment

I think you are right and that's the primary reason why I'm looking for this mirror/docker.

 

My internet connection is actually lightning fast, but somehow things are getting very slow for me when I am accessing musicbrainz. So, your suspicions appear to be right.

 

Currently, I only have one file (18KB) in the import folder. Even for a slow internet connection, this appears too little?

 

Can you share guidance how to manually download the files?

 

Even if this was to work, would this prevent me from any future updates?

 

Thanks again for your continued help!

Link to comment

Thanks. I think I may have found a solution. This would require me though to run the Musicbrainz docker on a different IP from Unraid. Would this be feasible? I tried to change the docker from bridge to br0 and manually added a fixed IP. I also included the same fixed IP in the DBDefs file. Somehow, this does not appear to work. Config and data are still on the Unraid-IP, so this may be the issue? Not sure how br) works. Any thoughts?

Link to comment

And see below log after download:

 

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 2018-02-22 22:54:41 CST
FATAL: the database system is starting up
.LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
done

Link to comment
1 hour ago, steve1977 said:

And see below log after download:

 

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 2018-02-22 22:54:41 CST
FATAL: the database system is starting up
.LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
done

 

I'm not sure what you are trying  to do by changing the network of the container. 

What do you mean by config and data are still on the unraid IP? Do you mean the folders? 

 

It would be good if you stick to what I suggest you to tryor else it just becomes a mess trying to help. 

Link to comment

You'd mentioned that this will not fix my issue with slow connection, so I tried another route.

 

So, I played around with the VPN and it worked, I can now import the Musicbrainz server in a faster manner. However, this will require me to set up the docker with br0 / separate IP. I have VPN set up on my server and can dedicate it via the router to specific IPs.

 

So, now all worked well and the import completed well. I can see the import folder being 2.6GB in size, so the download has actually happened. Also, can now access the musicbrainz UI.

 

It may still be too early to declare full success. There has been a few error messages in the log. Particularly the ones below:

 

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 2018-02-22 22:54:41 CST
FATAL: the database system is starting up
.LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
done

 

 

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

 

 

I am not sure whether this had any negative impact. While the docker seems to be working and I can view release groups and releases, it feels very slow. I thought the mirror would display all info instantly as it is locally available. It now feels as slow as accessing it online, so I am worried that it doesn't access the locally stored info, but instead accesses the online info from musicbrainz.org.

 

Any more thoughts?

Link to comment

Thanks @saarg. Two questions to help me trouble-shoot: (1) My data folder is 2.8GB. Does this sound right the right size? I would have anticipated the site is much larger than this. (2) How fast is the mirror supposed to be? I thought it would be instant as it is fully local, but maybe that's the wrong anticipation and it still takes some time to pull up the pages?

Link to comment

If you look through this page you will see that there is already a question answered about the errors you see.

 

1. Data folder seems to be the correct size. You can look at the size of the files in the ftp link to get an about size.

2. The speed depends on where in the world you are and ISP. I don't know the full speed of the ftp site, that you need to ask the musicbrainz people about.

Link to comment

Thanks for your help.

 

re 2 - let me clarify. I am wondering how fast it should be once I have the mirror working (not the download/import of the mirror file). I succeeded with the download and now have a 2.8GB local mirror file. However, just looking for an artist and then selecting release groups, still takes some time. I would have expected that this would now be instant as it no longer needs to access the internet to download any information. Should all be locally mirrored and search should be instant / immediate. Am I missing anything?

Link to comment
Guest
This topic is now closed to further replies.