flatz / ps4_remote_pkg_installer

Remote Package Installer
144 stars 38 forks source link

500 Internal Server Error: Unable to load system file object #1

Open atscub opened 4 years ago

atscub commented 4 years ago

Hello, great work:

I'm using HTTPie to query the API, and I am getting the following when trying to install a package

$ http 192.168.0.105:12800/api/install type=direct packages:='["http://192.168.0.107:8000/CUSA07402_00_Crash_Bandicoot_N.Sane_Trilogy.pkg"]'
HTTP/1.1 500 Internal server error
Access-Control-Allow-Origin: *
Connection: close
Content-Type: application/json

{
    "error": "Unable to load system file object for package 'http://192.168.0.107:8000/CUSA07402_00_Crash_Bandicoot_N.Sane_Trilogy.pkg'.",
    "status": "fail"
}

Context

My Setup:

The error is thrown on server.c > handle_api_install_direct(...):

...
    if (!sfo_load_from_file(sfo, param_sfo_path)) {
    THROW_ERROR("Unable to load system file object for package '%s'.", piece_urls[0]);
    }
...

but when looking inside sfo_load_from_file(...) I found there is many reasons for this to happen. I could not go any further because I'm new to all this.

Thanks in advance.

Abraham

tags: @flatz

flatz commented 4 years ago

Try to narrow down the problem by putting more messages inside sfo_load_from_file. I have no guesses about the package file you use which could lead to this problem.

lvitti commented 3 years ago

I have the same problem with almost all the pkgs, but if i try to install through HB or debug settings works fine. And some packages in some moment install fine but in other times it gives the error 500

My Setup:

There is any log file? or how can i get more detailed information ?

WMP commented 3 years ago

Http server based on python http.server dont works, i have this same error, and wheni use nginx, all works good.

lvitti commented 3 years ago

You are right, thanks !

asbachb commented 2 years ago

If you have ruby installed: this works for me: ruby -run -ehttpd . -p8000