The call to first.js is actually the call that will load all of the AMD modules on your moodle site in a single request. I don't know why it is returning a 500 error - but I would start by checking the permissions on all the files in any amd/ folder under moodle.
General developer forum
What is RequireJS doing?
This discussion has been locked so you can no longer reply to it.