Gkiokan / ps4-remote-pkg-sender

264 stars 23 forks source link

Sender keeps to lose connection with RPI when transferring large files (PS4 11.00, macOS 14) #79

Open serista opened 3 weeks ago

serista commented 3 weeks ago

RPS v2 2.10.4 (Mac build). RPI from the Homebrew store. Mac Mini M1 connected to PS4 with LAN. Plain FTP transfer works fine for any files (embedded GoldHEN server).

When installing large games, eventually after about 5-20 minutes RPS stops to update progress bar and estimated time, also pause/resume stops to work. Tried to increase timeout to no avail. On the PS4 side RPI continues to receive file to the very end, but after the download finished PS4 shows a message that the file can not be installed.

Works fine for smaller files.

PS: May be a problem of RPI, I also tried original RPS 1.0.3, it seems it does the same - after some short time it refuses to update info in the log, or to stop/pause/resume transfer, like it loses connection with PS4. PS4 continues to receive file however even after I remove the task in RPS unless I entirely close the RPS.

Gkiokan commented 3 weeks ago

Hi there,

thanks for reporting back the issue!

Probably same issue as the Issue https://github.com/Gkiokan/ps4-remote-pkg-sender/issues/78#issuecomment-2133466750

Explanation in the Troubleshooting Guide: https://github.com/Gkiokan/ps4-remote-pkg-sender/blob/master/Troubleshoot.md#my-rpi-crashes-on-console

My RPI crashes on console
This happend to a couple of users when we try to hit RPI too hard.
RPI cann't handle too many concurrent requests and crashes after a while
especially when you try to install something big 100GB+ PKG files or
installing multiple files at once and have a low update interval value.

It may help if you leave the interval value arround 2-3 secs because
updating progress info is also a request that will be sent upon the interval.

In v2.4.2 you can still send as many install request as you want, that is not limited yet,
but consider the fact that once the installation starts, RPI has nothing more to do with it.
Download still continues on PS4 even if you jump out of RPI! Keep that in mind!

The Solution to this is first update the Update Interval to max, that will prevent the RPI to crash later then sooner.
If you want to keep update ticks, you may restart the RPI on the playstation that will fix the "crashed state" of it. That is a known bug with the RPI and happens if you go to hard on it - very large files.

The RPI is good, but it was made for the 5.05 back then. It never was planed to "life" that long. But luckly I am working with @SiSTR0 on a embeeded RPI within the GoldHEN. This should fix all issues and update the dependencies to the latest Standards.

Reminder: 
If you like and love our stuff, you can help us speeding up the development with your support and donations.
I think I am talking to all of us devs who spends their times into free Projects like this.  
serista commented 3 weeks ago

Well, I'll try to increase Update interval but the thing is that 1) the RPS may get stuck even for files much smaller than 100GB in my case, 2) when it gets stuck and I switch to PS4 and wait until the download is finished the PS4 shows message that the file can not be installed somehow. If not the latter, it wouldn't be big problem.

Is it safe to switch from the RPI splash screen to XMB to check the progress?

serista commented 3 weeks ago

Ok, I tried again and this time Uncharted 4 was transferred without getting stuck but still it "could not be installed" in the end somehow. Also tried RDR, the transfer kept stopping immediately on the PS4 end with the same message (tried it 3 times). The very same RDR I installed just fine yesterday by transferring it via FTP and then installing with pkg installer. It's strange, it seems something is wrong with some games being installed via RPI.

Gkiokan commented 3 weeks ago

Interesting insights. That has been never reported but it may be also in conjunction with FW 11.00.
We will keep an eye on it once we are ready with the new RPI Implementation.