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

Open
opened 2019-12-08 11:22:56 -06:00 by atscub · 5 comments
atscub commented 2019-12-08 11:22:56 -06:00 (Migrated from github.com)

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:

  • 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

Hello, great work: I'm using [HTTPie](https://httpie.org) to query the API, and I am getting the following when trying to install a package ```bash $ 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__: - 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(...)](https://github.com/flatz/ps4_remote_pkg_installer/blob/f12834101553d0f42c36107cff2b3d1708574937/server.c#L359): ```c ... 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 2020-08-16 15:57:41 -05:00 (Migrated from github.com)

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.

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 2020-12-01 21:16:59 -06:00 (Migrated from github.com)

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 ?

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 commented 2020-12-14 03:21:16 -06:00 (Migrated from github.com)

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

Http server based on python http.server dont works, i have this same error, and wheni use nginx, all works good.
lvitti commented 2020-12-14 04:54:20 -06:00 (Migrated from github.com)

You are right, thanks !

You are right, thanks !
asbachb commented 2021-11-24 17:07:00 -06:00 (Migrated from github.com)

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

If you have ruby installed: this works for me: `ruby -run -ehttpd . -p8000`
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-flatz/ps4_remote_pkg_installer#1
No description provided.