Join Us and become a Member for a Verified Badge on Discord to access private areas with the latest PS4 FPKGs.
PS4 CFW and Hacks       Thread starter PSXHAX       Start date Sep 12, 2018 at 1:44 AM       55,796       161      
Since his PS4Updates.py python script, PlayStation 4 developer Zer0xFF returns with PS4_db_rebuilder which will restore your FPKGs (Fake Packages) after rebuilding the PS4 database. (y)

Download: PS4_db_rebuilder (Latest Release) / GIT / release_0.1.EXTERNAL.zip (v0.1 rebuilder for external only) via thxalot60 / Restore_DB_PS4_2020.rar (30 KB - For 6.72) / PS4_db_rebuilder_6.72-0.2.zip (Python Script with added support for 6.72 FW) / GIT Fork by lKinderBueno

Here's further details from the README.md file, to quote: PS4_db_rebuilder

PS4 built in database rebuilder has the tendency to remove FPKG from the database, this will repopulate the database with them

Requirement
How-to-use
  1. recursively clone this repo or download a Release
  2. start FTP server on the PS4
  3. run the python script though terminal/cmdline python3 fix_db.py PS4_IP (command for external via sp0k: py fix_db.py PS4_IP)
  4. wait for the script to finish, then logout of the PS4 user without closing the browser
  5. log back in and all your games should be there again
:arrow: Update: From the README.md forked by lKinderBueno: PS4_db_rebuilder - Updated to 6.72

PS4 built in database rebuilder has the tendency to remove FPKG from the database, this will repopulate the database with them

requirement
  • Python (preferably 3.0+)
how-to-use
  1. recursively clone this repo or download a Release
  2. start FTP server on the PS4
  3. run the python script though terminal/cmdline python3 fix_db.py PS4_IP
  4. wait for the script to finish, then logout of the PS4 user without closing the browser
  5. log back in and all your games should be there again
Changelog
  • Fixed error "table tbl_appbrowse_XXXXXXX has 53 columns but 47 values were supplied"
  • Support to FW 6.72
PS4_DB_Rebuilder to Restore FPKGs After PS4 Database Rebuilding.jpg
 

Comments

Artking22

Member
Contributor
guys please help me
im on 6.72

every time i launch ftp it says this page is not responding
i tried it on every known exploit site but it just wont work
 

jeanmarie

Member
Contributor
how to fix this ?? i think there is 6 pkgs in in addition
Code:
Traceback (most recent call last):
  File "fix_db.py", line 90, in <module>
    cursor.execute("INSERT INTO %s VALUES %s;" % (tbl[0], ', '.join(sql_list)))
sqlite3.OperationalError: table tbl_appbrowse_0473890920 has [B]47 columns but 53 values were supplied[/B]
thanks in advance
 

TripleH31

Member
Contributor
Hi all,

I'm on 6.72 and when running the command and i get this error when it reaches CUSA05932:
Code:
File "fix_db.py", line 81, in <module>
  cusa = get_game_info_by_id(GameID)

File "C:\......\ftplib.py", line 619, in size
  resp = self.sendcmd('SIZE ' + filename)

File "C:\....\ftplib.py", line 275, in sendcmd
return self.getresp()

File "C:\....\ftplib.py", line 248, in getresp
raise error_perm(resp)

ftplib.error_perm:  550 The file doesn't exist.
All my games are on app2usb. I thought by removing CUSA05932 from the app2usb.ini file would help but no luck.

Any advice? Thanks

A thought just occurred to me while drinking my coffee this morning. How bout reinstalling the title? Sure enough, I got my games back.

Follow up question: Just to confirm, I have to manually reinstall all my updates and DLC right?

Thanks
 

eliuuuu7

Senior Member
Contributor
Verified
Hello everyone
How to restore games on external HDD please?
I tried with the tools here but no games from externall hdd were recovered
 

dinghy

Member
Contributor
Code:
c:\Users\CaddyII\Desktop\release_0.1 EXTERNAL>.\fix_db.py 192.168.1.13
["'CUSA00049'", "'CUSA00411'", "'CUSA02168'", "'CUSA02387'", "'CUSA00633'", "'CUSA08226'",
"'CUSA08632'", "'CUSA04093'", "'CUSA05847'", "'CUSA04854'", "'CUSA08912'", "'CUSA07377'",
"'CUSA11258'", "'CUSA03648'", "'CUSA01167'", "'CUSA09958'", "'CUSA02624'", "'CUSA07062'",
"'CUSA05245'", "'CUSA00938'", "'CUSA01830'", "'CUSA12768'", "'CUSA07707'", "'CUSA12747'",
"'CUSA06355'", "'CUSA08829'"]
Processing table: tbl_appbrowse_0268435456
        Processing GameID: CUSA00411... Traceback (most recent call last):
  File "C:\Users\CaddyII\Desktop\release_0.1 EXTERNAL\fix_db.py", line 81, in <module>
    cusa = get_game_info_by_id(GameID)
  File "C:\Users\CaddyII\Desktop\release_0.1 EXTERNAL\fix_db.py", line 42, in get_game_info_by_id
    sfo = SfoFile.from_reader(buffer)
  File "C:\Users\CaddyII\Desktop\release_0.1 EXTERNAL\sfo\sfo.py", line 216, in from_reader
    header = Header().from_reader(reader)
  File "C:\Users\CaddyII\Desktop\release_0.1 EXTERNAL\sfo\sfo.py", line 56, in from_reader
    self._key_table_start = int.from_bytes(reader.read(4), _BYTE_ORDER)
AttributeError: type object 'int' has no attribute 'from_bytes'


hello thank for the tool but it stop here.. any suggestion?
 

eliuuuu7

Senior Member
Contributor
Verified
Hello!
I used all of the tools but only few of the games were restored, the PS4 HDD and the External space is being used and also the restored games don't have delete option
please help I have 800GB of games :(
 

LuanTeles

Developer
Member
Contributor
Verified
It is not scanning for dlcs and for games installed on external drives.

Actually on mine it does not restore anything of my 200 games, it only shows few ids and nothing changes. ( most of my games are on extended storage)

Can anyone with python skills add it to scan dlcs and extended storage?

Btw i'm on 6.20

PS C:\Users\Luan Teles\Desktop\Database PS4\DB Rebuilder> py fix_db.py 192.168.0.18
Code:
["'CUSA04459'", "'CUSA06742'", "'CUSA01850'", "'CUSA04893'", "'CUSA05625'", "'CUSA01764'", "'CUSA03980'", "'CUSA03979'", "'CUSA00900'", "'CUSA00341'", "'CUSA03352'", "'CUSA07408'", "'CUSA00411'", "'CUSA10237'", "'CUSA12392'", "'CUSA00223'", "'CUSA05786'", "'CUSA05787'", "'CUSA13490'", "'CUSA03589'", "'CUSA04551'", "'CUSA02644'", "'CUSA06545'", "'CUSA05725'", "'CUSA00109'", "'CUSA02012'", "'CUSA00130'", "'CUSA01015'", "'CUSA02573'", "'CUSA03285'", "'CUSA00372'", "'CUSA00129'"]
Processing table: tbl_appbrowse_0418673077
Processing table: tbl_appbrowse_0418673078

I just find the external one in the op.

But it still not found all of my games and no dlcs
 

uhdgamer

Member
Contributor
Verified
Using internal and then external, it have this
Code:
D:\PS4\Fix DB for PS4 6.72\release_0.1.EXTERNAL\release_0.1 EXTERNAL>python fix_db.py 10.1.1.5
["'CUSA17672'", "'CUSA04480'", "'CUSA13338'", "'CUSA17615'", "'CUSA15019'", "'CUSA16113'", "'CUSA07187'", "'CUSA15023'", "'CUSA14656'", "'CUSA12943'", "'CUSA09868'", "'CUSA17932'", "'CUSA12979'", "'CUSA11112'"]
Processing table: tbl_appbrowse_0503205267
        Processing GameID: CUSA04480... Completed 36876713984
        Processing GameID: CUSA07187... Completed 90724106240
        Processing GameID: CUSA09868... Completed 702349312
        Processing GameID: CUSA11112... Completed 10798891008
        Processing GameID: CUSA12943... Completed 3049521152
        Processing GameID: CUSA12979... Completed 9898622976
        Processing GameID: CUSA13338... Completed 38047645696
        Processing GameID: CUSA14656... Completed 119799808
        Processing GameID: CUSA15019... Completed 3946840064
        Processing GameID: CUSA15023... Completed 2826305536
        Processing GameID: CUSA16113... Completed 11850088448
        Processing GameID: CUSA17615... Completed 3514957824
        Processing GameID: CUSA17672... Completed 589692928
        Processing GameID: CUSA17932... Completed 5349965824
Traceback (most recent call last):
  File "fix_db.py", line 90, in <module>
    cursor.execute("INSERT INTO %s VALUES %s;" % (tbl[0], ', '.join(sql_list)))
sqlite3.OperationalError: table tbl_appbrowse_0503205267 has 53 columns but 47 values were supplied
 

Florincrs

Member
Contributor
Hello, I would like to know if anyone has a working python script for rebuilding the FPKG database. I've tried the original one but I keep getting this error and I don't know if it's because of my FW or because it can't find some of the FPKG games as I removed some of them that needed newer firmware

I am willing to pay someone through Paypal if they can help as it would be too much effort for me to reinstall everything. This is the error I am getting currently.


 

:fire: Latest Help Topics

Top