# New test VM available

**URL:** https://community.metabrainz.org/t/new-test-vm-available/328878
**Category:** Development
**Tags:** musicbrainz-vm
**Created:** [September 4, 2017, 3:29pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878 "2017-09-04T15:29:20Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![rob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rob/32/29_2.png) [@rob](https://community.metabrainz.org/u/rob)
#### Post date: [September 4, 2017, 3:29pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/1 "2017-09-04T15:29:20Z")

</div>

Hello!

Over the weekend we uploaded a new virtual machine – this new version should fix a number of issues and have updated data and greater stability. Does it? Please help us and download the machine – does it work for you?

We’re supporting VirtualBox only, so please no reports about it not working with VM software X. If you have a bug open for the VM and the bug has been fixed, please close the bug. If the bug has NOT been fixed, please leave a comment to that effect on the bug in question. I’ll take a look at individual bugs now that the general setup is sane.

Download the VM here:

ftp://ftp.eu.metabrainz.org/pub/musicbrainz-vm

Direct download and seeded torrents available. Have at it!

---

<div class="post-metadata">

### Author: ![AnimeAi](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@AnimeAi](https://community.metabrainz.org/u/AnimeAi)
#### Post date: [September 5, 2017, 10:11pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/2 "2017-09-05T22:11:03Z")

</div>

Docker containers drive ran out of space half way through ~/bin/reindex

> recording:Isrcs Queries 44.0 secs  
> recording:Track Queries 1277.0 secs  
> recording:Artists Queries 1557.0 secs  
> recording:Track Artists Queries 2248.0 secs  
> recording:Releases Queries 598.0 secs  
> recording:Recording Queries 142.0 secs  
> recording:Build Index 1196.0 secs  
> recording:Build Store 2035.0 secs
> 
> recording:Finished:17377.0 secs  
> recording:Started forceMerge at 21:51:45  
> release:Started at 21:51:45  
> release:Indexing 20000…39999 / 2025548 (1%)  
> No artist credit found for release:022f87cf-ffd8-48a5-8c65-d56b7f559ec7
> 
> No artist credit found for release:039a989f-30ad-4f23-b0c5-2159e35f283d  
> release:Indexing 40000…59999 / 2025548 (2%)  
> No artist credit found for release:ccd7e629-5ad1-4d5a-9ebb-1cacbcb12e46
> 
> No artist credit found for release:4ca65132-8e32-40b1-919d-da0b8c5726aa  
> release:Indexing 60000…79999 / 2025548 (3%)  
> No artist credit found for release:5024a890-11fa-42bc-83d5-225c1a6c6f4e  
> release:Indexing 80000…99999 / 2025548 (4%)  
> No artist credit found for release:fcea9292-1fd3-4aae-bdf7-6c22644baf82  
> Exception in thread “main” org.postgresql.util.PSQLException: ERROR: could not write block 1 of temporary file: No space left on device

---

<div class="post-metadata">

### Author: ![rob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rob/32/29_2.png) [@rob](https://community.metabrainz.org/u/rob)
#### Post date: [September 5, 2017, 10:22pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/3 "2017-09-05T22:22:53Z")

</div>

Grr. Can you please paste the output of?

df -h

Thanks!

---

<div class="post-metadata">

### Author: ![AnimeAi](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@AnimeAi](https://community.metabrainz.org/u/AnimeAi)
#### Post date: [September 5, 2017, 11:52pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/4 "2017-09-05T23:52:30Z")

</div>

> [@rob](#):
>
> Grr. Can you please paste the output of?
> 
> df -h
> 
> Thanks!

The area using all the data is /mnt/docker-volumes/volumes/musicbrainzdocker\_pgdata/

Step taken:

1. Import image into VirtualBox
2. Adjust RAM to 8GB and processor cores to 12 @ 90%
3. Adjust networking to bridged and reinitialise mac
4. SSH to VM
5. run bin/set-token (with appropriate token)
6. run bin/replicate now (and watch output with bin/tail-replication-log)
7. run bin/replicate start
8. run bin/reindex - the first time ran for ~6 hours and crashed with an out of space error as per my first post. The second time crashed with an out of space error as below:

vagrant@musicbrainz:~$ df -h  
Filesystem Size Used Avail Use% Mounted on  
udev 3.9G 12K 3.9G 1% /dev  
tmpfs 799M 540K 798M 1% /run  
/dev/sda1 40G 3.0G 35G 8% /  
none 4.0K 0 4.0K 0% /sys/fs/cgroup  
none 5.0M 0 5.0M 0% /run/lock  
none 3.9G 872K 3.9G 1% /run/shm  
none 100M 0 100M 0% /run/user  
/dev/sdb1 48G 41G 5.3G 89% /mnt/docker-volumes  
vagrant@musicbrainz:~$ bin/replicate now  
Tue Sep 5 22:31:28 UTC 2017 : LoadReplicationChanges failed (rc=25) - see /musicbrainz-server/slave.log  
error: cannot stat /dev/stdin: Stale file handle  
vagrant@musicbrainz:~$ bin/reindex  
Press ENTER to erase current seach indexes (if any) and build new indexes or type ^C to abort  
Tue Sep 5 22:32:05 UTC 2017: Shutting down search server  
Killing musicbrainzdocker\_search\_1 … done  
Tue Sep 5 22:32:07 UTC 2017: Removing old indexes  
Tue Sep 5 22:32:07 UTC 2017: Building indexes  
Creating volume “musicbrainzdocker\_pgdata” with local driver  
Creating volume “musicbrainzdocker\_indexdata” with local driver  
Creating volume “musicbrainzdocker\_dbdump” with local driver  
Creating volume “musicbrainzdocker\_pgdata” with local driver  
Creating volume “musicbrainzdocker\_indexdata” with local driver  
Creating volume “musicbrainzdocker\_dbdump” with local driver  
Index Builder Started:22:32:11  
recording: Unable to get replication information  
tmp\_artistcredit:Started at:22:32:12  
tmp\_artistcredit:Finished:40.0 secs  
tmp\_artistcredit:Created Indexes:2.0 secs  
tmp\_release :Started at:22:32:55  
tmp\_release :Finished:85.0 secs  
tmp\_release :Created Indexes:1.0 secs  
tmp\_release\_event :Started at:22:34:23  
tmp\_release\_event :Finished:5.0 secs  
tmp\_release\_event :Created Indexes:1.0 secs  
tmp\_track :Started at:22:34:30  
tmp\_track :Finished:251.0 secs  
tmp\_track :Created Indexes49.0 secs  
recording:Started at 22:39:33  
Exception in thread “main” org.postgresql.util.PSQLException: ERROR: could not write block 161 of temporary file: No space left on device  
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)  
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)  
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)  
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)  
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)  
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)  
at org.musicbrainz.search.index.RecordingIndex.updateTrackArtistCreditWithAliases(RecordingIndex.java:385)  
at org.musicbrainz.search.index.RecordingIndex.indexData(RecordingIndex.java:740)  
at org.musicbrainz.search.index.IndexBuilder.buildDatabaseIndex(IndexBuilder.java:275)  
at org.musicbrainz.search.index.IndexBuilder.main(IndexBuilder.java:164)  
Tue Sep 5 23:25:57 UTC 2017: Starting search server  
Creating volume “musicbrainzdocker\_pgdata” with local driver  
Creating volume “musicbrainzdocker\_indexdata” with local driver  
Creating volume “musicbrainzdocker\_dbdump” with local driver  
musicbrainzdocker\_redis\_1 is up-to-date  
Starting musicbrainzdocker\_search\_1  
musicbrainzdocker\_db\_1 is up-to-date  
musicbrainzdocker\_musicbrainz\_1 is up-to-date  
Starting musicbrainzdocker\_indexer\_1  
Tue Sep 5 23:26:00 UTC 2017: Building indexes complete  
vagrant@musicbrainz:~$

---

<div class="post-metadata">

### Author: ![rob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rob/32/29_2.png) [@rob](https://community.metabrainz.org/u/rob)
#### Post date: [September 6, 2017, 5:50pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/5 "2017-09-06T17:50:21Z")

</div>

Here is a new build with the docker volume increased to 80GB:

ftp://ftp.eu.metabrainz.org/pub/musicbrainz-vm/musicbrainz-server-2017-09-06.ova

I’m building indexes now, but won’t know if it is ok until tomorrow morning. Give it a try in the meantime?

---

<div class="post-metadata">

### Author: ![AnimeAi](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@AnimeAi](https://community.metabrainz.org/u/AnimeAi)
#### Post date: [September 8, 2017, 9:17pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/6 "2017-09-08T21:17:41Z")

</div>

Just started setting up the new VM and it looks to be running well with the increased drive size. I’ll report back once I finish indexing everything and have it all running.

---

<div class="post-metadata">

### Author: ![rob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rob/32/29_2.png) [@rob](https://community.metabrainz.org/u/rob)
#### Post date: [September 8, 2017, 9:28pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/7 "2017-09-08T21:28:28Z")

</div>

It had some problems with downloading replication packets, so we made a new one:

ftp://ftp.eu.metabrainz.org/pub/musicbrainz-vm

This one has indexed and replicated successfully. Fingers crossed.

---

<div class="post-metadata">

### Author: ![rob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rob/32/29_2.png) [@rob](https://community.metabrainz.org/u/rob)
#### Post date: [September 8, 2017, 9:28pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/8 "2017-09-08T21:28:59Z")

</div>

Oh, I should say the 2017-09-07 version is fine. The -06 version is bad.

---

<div class="post-metadata">

### Author: ![AnimeAi](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@AnimeAi](https://community.metabrainz.org/u/AnimeAi)
#### Post date: [September 8, 2017, 9:50pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/9 "2017-09-08T21:50:20Z")

</div>

> [@rob](#):
>
> Oh, I should say the 2017-09-07 version is fine. The -06 version is bad.

Ah, that would explain why the first replicate is taking so long! Time to try again with the 07 this time lol. At least I get ~100mbit transfer from the ftp it would be painful if it was slow like the old web download from musicbrainz.

---

<div class="post-metadata">

### Author: ![rob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rob/32/29_2.png) [@rob](https://community.metabrainz.org/u/rob)
#### Post date: [September 12, 2017, 12:29pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/10 "2017-09-12T12:29:11Z")

</div>

Any feedback? Did it work?

---

<div class="post-metadata">

### Author: ![AnimeAi](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@AnimeAi](https://community.metabrainz.org/u/AnimeAi)
#### Post date: [September 12, 2017, 2:34pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/11 "2017-09-12T14:34:53Z")

</div>

> [@rob](#):
>
> Any feedback? Did it work?

It seems to be working, but I’m getting a lot of timeouts (well, I assume they’re timeouts as the album sticks on “retrieving album information”) when using Musicbrainz Picard with the local VM. It still seems about as slow as the normal [musicbrainz.org](http://musicbrainz.org) server - is there something I need to tweak in the settings on the VM to remove or reduce rate limiting? I can’t find any documentation surrounding this and any other settings I may need to change! It almost feels like the search server on the VM isn’t being used.

I’ll sound stupid asking, but I presume I’m supposed to be connecting to port 5000 still?

---

<div class="post-metadata">

### Author: ![rob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rob/32/29_2.png) [@rob](https://community.metabrainz.org/u/rob)
#### Post date: [September 12, 2017, 2:49pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/12 "2017-09-12T14:49:53Z")

</div>

Postgres may require some tuning in the VM, depending on how much ram you gave it. Also, picard will continue to rate limit to 1 request per second, so having your own VM for picard tagging doesn’t really help you yet.

And yes, connect via port 5000.

---

<div class="post-metadata">

### Author: ![AnimeAi](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@AnimeAi](https://community.metabrainz.org/u/AnimeAi)
#### Post date: [September 12, 2017, 2:51pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/13 "2017-09-12T14:51:53Z")

</div>

> [@rob](#):
>
> Postgres may require some tuning in the VM, depending on how much ram you gave it. Also, picard will continue to rate limit to 1 request per second, so having your own VM for picard tagging doesn’t really help you yet.
> 
> And yes, connect via port 5000.

I gave it 8GB - I’ve only worked with mysql tuning before, any tips for postgre before I get lost in google?

---

<div class="post-metadata">

### Author: ![rob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/rob/32/29_2.png) [@rob](https://community.metabrainz.org/u/rob)
#### Post date: [September 12, 2017, 3:04pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/14 "2017-09-12T15:04:14Z")

</div>

The most important things is to set shared\_buffers to 2048MB (for 8GB) in postgresql.conf . You should be able to enter the docker container, edit postgresql.conf and then restart the container.

---

<div class="post-metadata">

### Author: ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)
#### Post date: [September 12, 2017, 8:01pm UTC](https://community.metabrainz.org/t/new-test-vm-available/328878/15 "2017-09-12T20:01:13Z")

</div>

> [@rob](#):
>
> Also, picard will continue to rate limit to 1 request per second, so having your own VM for picard tagging doesn’t really help you yet.

You can change the Picard rate limiting for your host only in Picard by adding a custom plugin. See the comments on [picard/picard/webservice/\_\_init\_\_.py at 3a868739984e603c6c38dd713d312bb717a2d924 · metabrainz/picard · GitHub](https://github.com/metabrainz/picard/blob/3a868739984e603c6c38dd713d312bb717a2d924/picard/webservice/ __init__.py#L64)
