Topic: Virtual Server Installation issues

I've spent about 5 hours trying to get the files to work for musicbrainz server.  so far, no joy. 

At this point, when I start the server and browse to it, I get the following error: 

Couldn't render template "undef error - Can't open file '/home/httpd/musicbrainz/musicbrainz-server/root/static/common.css.manifest' for input:
No such file or directory at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server/Data/FileCache.pm line 61
"

any help would be greatly appreciated---

Allison

Re: Virtual Server Installation issues

I should mention the new server release doesn't work with Oracle VM Virtual Box manager for me.  I'm using the NGS 2011-7-20 version.

Re: Virtual Server Installation issues

Its not just you.  I found this:

http://sharingtechknowledge.blogspot.co … edium.html

I couldnt get that to work as i was working on a window version.  I tried grabbing tar and gzip like it says but to no avail...

Re: Virtual Server Installation issues

This is really frustrating-  So far, I can't get a version of this to work at all..  I saw the link above, but it seems that it is something completely wrong with the VB or something.  Thanks staaby ---

Anyone else know of how to get this up and running?

Re: Virtual Server Installation issues

It's difficult to support the VM that's 9 months old; having said that I personally never had the problem you're describing. Please describe what steps you did and did not perform from the installation guide. Did you upgrade the codebase to a later tag at all? Are you trying to upgrade it to latest version and use replication?

With the more recent January VM, did you try the suggestions in the link staaby posted?

Re: Virtual Server Installation issues

I haven't tried to upgrade anything in the codebase.  I followed the instructions as the are stated in the instruction guide, so I am a little confused as to why I'm getting the error. 

The one instruction that isn't clear to me is this one:
Copy lib/DBDefs.pm.default to lib/DBDefs.pm, and update MB_SERVER_ROOT and DEVELOPMENT_SERVER values

copy it from where to where?  There are a couple places it can go.  Is it talking about copying to the musicbrainz-server/lib directory, or down to the postgresql directory?

I've accomplished steps 1-6 with no errors
To start the NGS server, enter these commands:
musicbrainz@clear:~$ cd musicbrainz-server/script
musicbrainz@clear:~/musicbrainz-server/script$ ./musicbrainz_server.pl -r

after performing the command above, and browsing to the page, the error shows up. 

The VM that is newer won't import into the VirtualBox at all.  I've extracted and tried, but it simply says errors and won't do it.

Thanks for your help!

Re: Virtual Server Installation issues

By the way, the error on the 2012_01_12.ova is Failed to import... Could not find a valid member format for the target disk musicbrainz-servrer-2012-01-12-disk1.vmdlk.gz 

Googled it but found no solutions.

Re: Virtual Server Installation issues

"Copy lib/DBDefs.pm.default to lib/DBDefs.pm" means what it says. :) It basically means "make a copy of DBDefs.pm.default, removing ".default" from the file name. It should be within the lib folder; same as the "default" settings.

As for the error

Couldn't render template "undef error - Can't open file '/home/httpd/musicbrainz/musicbrainz-server/root/static/common.css.manifest' for input:

it probably means your MB_SERVER_ROOT is not correct; or possibly that the DBDefs.pm is not in the right place.

Your MB_SERVER_ROOT with the default virtual machine should be

SUB MB_SERVER_ROOT    { "/home/musicbrainz/musicbrainz-server" }

Regarding the 2012 release, the link above deals with that same error. Did you try unpacking it as suggested at the link and then using the .vmdk as a virtual disk directly in virtual box. As in the comments on the link, you'd need to create a new linux virtual machine with a particular hardware configuration and then mount the .vmdk.

Re: Virtual Server Installation issues

Thank you so much for the help.  I was able to get the new file working and change the SUB for MB_SERVER_ROOT.  It's helpful to note that the MB_SERVER_ROOT setting is inside of the DBDefs.pm .  For those of us new to Ubuntu, it's hard to distinguish really what is going where or what to edit. Full paths would help in the documentation.

THANK YOU for all the help.  The new 1/2012 system is fully up and running.

Re: Virtual Server Installation issues

Yeah, I've been trying to download the 2012 .ova to repeat the process myself from scratch to make the instructions more explicit - unfortunately MB's download speed to Singapore is 25kB/sec. Doh. :-/ Tried it several times since January and it's always ended up cutting out and corrupted after resuming. Maybe this time - I'm at 43%! 38 hours left!

Re: Virtual Server Installation issues

Hi all - I've been working with the dev team to get a new VM up which solves these issues.

It's not fully tested yet, but you can have a look at the tentative instructions here and download the new version. The code for this VM version is up-to-date as of 2012-04-11. It works with VirtualBox as-is, and has fewer steps to configure and get replication working.