Zer0xFF / PS4_db_rebuilder

ps4 built in database rebuilder has the tendency to remove fpkg from the database, this will repopulate the database with them
GNU General Public License v3.0
62 stars 18 forks source link

ftplib.error_perm: 550 Invalid directory. #1

Open hackxing opened 6 years ago

hackxing commented 6 years ago

I have problem that gives me the error

ftplib.error_perm: 550 Invalid directory. [5028] Failed to execute script fix_db

https://files.fm/u/h9hqjdrr#/view/1.jpg

so is there any solution for this error and thank you so much

Zer0xFF commented 6 years ago

ummm this is interesting, for whatever reason 1 of your game installs either didn't complete or never create an appmeta, the script tries to use that info in appmeta to rebuild the database, but since thats not there, its failing.

I've pushed a dev branch, that will ignore that entry (that means the game will remain on the PS4, but will still be missing from the list), but this should allow the script to continue and process the other games.

the script should print out error, which game id, which you can then use to either manually delete the game, or you can use it to identify the game and reinstall it.

anyway this is the branch https://github.com/Zer0xFF/PS4_db_rebuilder/tree/dev and this is the file you need https://raw.githubusercontent.com/Zer0xFF/PS4_db_rebuilder/dev/fix_db.py just replace the content of the file you have with this and try again, and let me know how it goes.

hackxing commented 6 years ago

thanks It work but many games not there I think it is bug because i'm sure that the games complete

https://files.fm/u/gr97h4rg#/

https://files.fm/u/xyejhwav

and I tried to do it with other pc but it gives me the the same error that I have it in the beginning

also the sizes of the games in the ps4 not correct like for each game 855gb or 944gb ...

Zer0xFF commented 6 years ago

I know about the size issue, I didn't get the chance to look at it in any detail yet.

However, about the main issue, I don't currently have a solution and to be honest, I'm not sure how would one go about fixing.. As I explained before I need to get the info needed to rebuild the database from specific files in the appmeta folder, however those files seem to be missing thus I can't get the info... I could use psudo info, but I can't promise the result, aka the games could show up with incorrect name, they may or may not work... And i suppose worst case scenario you'd get a corrupt db and you can run the script again.

mvergaraq commented 3 years ago

For anyone having this issue now in 2021. Regarding the Traceback error and the "ftplib.error_perm: 550 The file doesn't exist." You can solve it by going through the game folder files (CUSAXXXX) and at those ones with no pkg files inside (which are probably games you deleted manually on your external or internal drive and didn't with the official ps4 delete option) you would have to put fake pkg files (copy from a low size game) and maybe also add fake icon and info files too (not sure if these needed). This tricks the script and you will have your game library restored.

Pharaoh2k commented 1 year ago

Use Itemzflow, which works better than any script: https://github.com/LightningMods/Itemzflow