Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
atscub opened this issue Dec 8, 2019 · 5 comments
Open

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

atscub opened this issue Dec 8, 2019 · 5 comments

Comments

@atscub
Copy link

atscub commented Dec 8, 2019

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:https://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:https://192.168.0.107:8000/CUSA07402_00_Crash_Bandicoot_N.Sane_Trilogy.pkg'.",
    "status": "fail"
}

Context

My Setup:

  • PS4 PRO
  • Firmware 5.05
  • Hen 2.0+
  • More than 100 GB available on PS4 storage
  • Ubuntu 18.04
  • python3 -m http.server 8000 for serving pkg files

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
Copy link
Owner

flatz commented Aug 16, 2020

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
Copy link

lvitti commented Dec 2, 2020

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:

  • PS4
  • Firmware 6.72
  • Hen 2.1.3b/Mira/Mira (Unofficial)
  • 200 GB available

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

@WMP
Copy link

WMP commented Dec 14, 2020

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

@lvitti
Copy link

lvitti commented Dec 14, 2020

You are right, thanks !

@asbachb
Copy link

asbachb commented Nov 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants