Skip to content

Instantly share code, notes, and snippets.

View mayhem's full-sized avatar
💭
Hell bent on total world domination!

Robert Kaye mayhem

💭
Hell bent on total world domination!
View GitHub Profile
Hi,
S3 returns the 503 slowdown messages when our content ingest layer queue starts getting very large
and a backlog of ingests have accumulated.
This is usually caused by some sort of temporary trouble on the ingest side of our storage system (in this
case, a fan outage caused, high temperatures, and automatic machine off lining took place, significantly
reducing the ingest rate).
These conditions are very rarely the end user's (or api clien's, in your case) fault.
search@cartman:~$ make freedb
make mb_index TYPE=freedb
make[1]: Entering directory `/home/search'
mkdir -p ./data/tmp
rm -rf ./data/tmp/freedb_index
env JAR=jar/http-svn-musicbrainz-org-search-server-trunk--13563-index-with-dependencies.jar builder --indexes-dir ./data/tmp --freedb-dump freedb-data/freedb-complete-latest.tar.bz2 --indexes freedb
Index Builder Started:06:40:03
Exception in thread "main" java.lang.NullPointerException
at org.musicbrainz.search.index.DatabaseIndex.readReplicationInformationFromDatabase(DatabaseIndex.java:117)
at org.musicbrainz.search.index.IndexBuilder.main(IndexBuilder.java:139)
env JAR=jar/http-svn-musicbrainz-org-search-server-trunk--13563-index-with-dependencies.jar builder --indexes-dir ./data/tmp --freedb-dump freedb-data/freedb-complete-latest.tar.bz2 --indexes freedb
Running in test mode.
Index Builder Started:07:01:39
org.postgresql.util.PSQLException: FATAL: role "musicbrainz_user" does not exist
at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:444)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:99)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:29)
#!/bin/sh
exec java \
-Xmx512M \
-jar "$JAR" \
--test
--db-host localhost \
--db-name musicbrainz_db \
--db-user musicbrainz \
--db-password musicbrainz \
wal_level = hot_standby
archive_mode = on
archive_command = 'true'
wal_level = hot_standby
archive_mode = on
archive_command = '/bin/true'
vif1.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:1224 (1.2 KB) TX bytes:1600 (1.6 KB)
Caught exception in MetaBrainz::Server::Controller::Donations->by_date "Attribute (anon) does not pass the type constraint because: Validation failed for 'Boolean' with value 0 (not isa Boolean) at local/lib/perl5/i486-linux-gnu-thread-multi/Moose/Meta/Attribute.pm line 1275
has 'anon' => (
isa => 'Boolean',
is => 'rw',
coerce => 1
);
anon | boolean | default false
var sp = getSpotifyApi(1);
exports.init = init;
function init()
{
console.log("init()");
var models = sp.require('sp://import/scripts/api/models');
var a = models.Album.fromURI("spotify:album:4o1KACGnM1m7o3qoiM3hDx", function(album) {
models.Album.fromURI(album_uri, function(album)
{
console.log(album.tracks[0].uri + " " + album_uri);
track = models.Track.fromURI(album.tracks[0].uri);
playerView = new views.Player();
playlist = new models.Playlist();
playlist.add(track);
playerView.track = track;