1 (edited by InvisibleMan78 2012-04-11 19:48:00)

Topic: Where is the ./musicbrainz_server.pl -r ?

After updating to the newest http://blog.musicbrainz.org/?p=1343 server version, I can't find the start script
./musicbrainz-server/script/musicbrainz_server.pl -r
anymore.

Do we have a new start command for the server?

Who will update all the wiki-/INSTALL/Setup-Instructions accordingly?

Update:
I found the new start command in the file https://github.com/metabrainz/musicbrai … er/INSTALL
carton exec -- plackup -Ilib -r

BUT:
You have to install
sudo cpan Carton
first and then
carton install --deployment

Unfortunately, even with all this new stuff, I can't start the server anymore.

That's all what I get:
musicbrainz@ubuntu:~/musicbrainz-server$ carton exec -- plackup -Ilib -r
Watching ./lib app.psgi for file updates.
Error while loading app.psgi: Can't locate Catalyst/Plugin/StackTrace.pm in @INC (@INC contains: lib local/lib/perl5/i686-linux-gnu-thread-multi-64int local/lib/perl5 . /usr/share/perl/5.12 /usr/lib/perl/5.12) at local/lib/perl5/Module/Runtime.pm line 205.
at app.psgi line 21
Compilation failed in require at app.psgi line 21.
BEGIN failed--compilation aborted at app.psgi line 21.

Re: Where is the ./musicbrainz_server.pl -r ?

Best to post on the mb-devel mailing list or IRC - the core development team don't really read the forums.

Re: Where is the ./musicbrainz_server.pl -r ?

I asked on IRC, got this reply: "<ocharles> he can just use plackup -r, without needing to use carton"
Let us know if that works.

4 (edited by InvisibleMan78 2012-04-12 14:32:41)

Re: Where is the ./musicbrainz_server.pl -r ?

Thank you very much for your support, reosarevok!

I used my previous snapshot for the virtualized MusicBrainz server, applied the fixes from git without installing 'Carton'.
With the above start command, I get:
musicbrainz@ubuntu:~/musicbrainz-server$ plackup -r
Error while loading app.psgi: Can't locate DBDefs.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at app.psgi line 5.
BEGIN failed--compilation aborted at app.psgi line 5.
Watching ./lib app.psgi for file updates.

But then the GOOD NEWS: If I use
musicbrainz@ubuntu:~/musicbrainz-server$ plackup -Ilib -r
the server starts fine! WOW!

Now there is just one small "missing" thing:
The pages looks like they can't use *.css files. The fontsize is the same on the entire page, most of the elements appears at the left border.

How can I fix this to get a similar look as before?


Update:
In the terminal window (MB server still running) I found this output:
127.0.0.1 - - [12/Apr/2012:16:28:50 +0200] "GET /static/styles/811dd5c2b4e57c9346bdb1e35263674a.css HTTP/1.1" 404 9 "http://ubuntu:5000/release-group/e7acb0ae-b60b-4ed1-94d0-bc15ddd632e4" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0"
127.0.0.1 - - [12/Apr/2012:16:28:50 +0200] "GET /static/18d4f2c43b84f4c5ea611b05c099776f.js HTTP/1.1" 404 9 "http://ubuntu:5000/release-group/e7acb0ae-b60b-4ed1-94d0-bc15ddd632e4" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0"

Where could I get this missing (404?) files?

Re: Where is the ./musicbrainz_server.pl -r ?

Thanks to Google I found this ticket: http://tickets.musicbrainz.org/browse/MBS-4291
And after this command:
./script/compile_resources.pl
my server looks really good now .-)

Thanks again reosarevok. Without your support and answer, I would search forever...