aldostools / webMAN-MOD

Extended services for PS3 console (web server, ftp server, netiso, ntfs, ps3mapi, etc.)
https://aldostools.github.io/webMAN-MOD/
GNU General Public License v3.0
1.31k stars 175 forks source link

webmanMOD stops working if fan control is set to SYSCON #342

Open Osama-Alhumaimidi opened 4 years ago

Osama-Alhumaimidi commented 4 years ago

So I've been trying to check why webmanMOD always tells me "webmanMOD not ready" and keeps lagging the PS3, I narrowed the issue down and realized that it'll only work correctly if there is some sort of a USB storage device connected to the console. I tried to disable content scan from all USB devices in the settings (disabled content scan all together) yet it still hangs and seems like it keeps looking for a USB device

I need help in this issue

Thanks

Osama-Alhumaimidi commented 4 years ago

ok, I have changed the title because I just discovered the cause of the issue, setting the fan speed to SYSCON will always break webmanMOD until its set back to dynamic

Osama-Alhumaimidi commented 4 years ago

also if you set fan speed to SYSCON, the only way to get webmanMOD to work is to connect a USB storage device, which is weird because the two should be unrelated

googo1 commented 4 years ago

Hi, I have the same problem as you. Webman only works with the fan control activated. Or only if a USB stick is connected, then also with Syscon. Were you able to fix the problem? I have also completely reinstalled everything. but always the same mistake. I have a 2504 with Full CFW.

googo1 commented 4 years ago

Do you use an SSD? I noticed that the error only occurs with an SSD (MX500). With normal HDD (HGST 7K1000) I can change the settings! I have now tested several times.

hippie68 commented 4 years ago

I confirm this bug exists. Whenever the fan control is set to 'syscon', webMAN MOD is 'not ready' at boot. Thanks @daking1512 for finding the cause. This bug has been there for quite a while, buy no one found out why. @aldostools now that the bug is known and confirmed, will you fix it?

aldostools commented 4 years ago

Thank you guys for your feedback. Unfortunately I haven't been able to reproduce this issue (it seems to be an issue with HEN, and I use CFW). So, for the moment there is not a fix for it.

I suggest that on PS3HEN select Manual fan speed (e.g. 50% or the speed that you find appropriate that don't be too loud and keep your console cool).

Dynamic or Auto2 are the recommended settings, but unfortunately on PS3HEN it may cause random black screens specially when the fan speed change while a game is being loaded. IMO it should be solved in the payload, since webMAN doesn't have a full tracking of what is happening at kernel level.

hippie68 commented 4 years ago

@aldostools it is an issue with CFW, too! I use Rebug 4.85.1 Lite on a PS3 Slim.

aldostools commented 4 years ago

@hippie68 Thank you for your feedback. As I mentioned in my previous post, I haven't been able to reproduce this issue consistently. This is important to trace the cause of the bug.

Maybe there are other variables involved like if syscalls are enabled or disabled, the exact moment when it happens (e.g. when the mode is changed to SYSCON, at boot, mounting a game, starting a game, when the temperature change, returning to XMB, etc.). That information could give some hint of where to look.

Whenever I find a solution, be assured that a fix will be released... over a thousand of commits with new features & fixes to regression issues demonstrate it 😄 it's a matter of time to find them.

hippie68 commented 4 years ago

It happens right at boot, because webMAN MOD then doesn't load at all. The usual message that it's loaded doesn't even appear then. If I should take a shot, I'd say it has to do with stuff happening either too early or too late at boot. Maybe some sort of forced delay would fix the issue, seeing that people fix it by attaching a, potentially delaying, USB device, or a slower HDD. I'd be happy to provide any info that is needed. I did not change/enable/disable any syscalls on my own, as far as I know. I do use ps3netsrv, and I have no USB devices attached.

aldostools commented 4 years ago

Ok I will investigate... if I cannot reproduce it, I cannot promise any fix.

aldostools commented 4 years ago

I tested setting SYSCON in fan control and rebooted multiple times. Each time webMAN MOD displayed the notification at start up.

I suspect the issue could be related to the content scanning on startup. I suggest to disable that option in /setup.ps3

image

hippie68 commented 4 years ago

I already had that option enabled. It did not help. I will post a screenshot of my webMAN MOD settings to help you narrow down the bug: Screenshot_2020-06-28 webMAN MOD I think it is important to note that the bug occurs when my PS3 is started from powered-off state. Rebooting usually makes webMAN MOD load. I hope this info helps find the bug. SYSCON is definitely required for this bug to happen.

aldostools commented 4 years ago

I configured my console with your settings in the picture, powered-off, waited like a minute and turned it on: webMAN worked fine. Repeated the process 5 times without any issues.

The notification was displayed and the games can be mounted. However show temp didn't work (as expected) because SELECT+START is disabled in your configuration. Maybe it's a issue related to the model. I use a slim 25xx.

Try restoring the default settings using http://127.0.0.1/setup.ps3? <-- include the question mark Then only change disable content scanning on startup and SYSCON. Save and restart.

hippie68 commented 4 years ago

Now I did restore the settings like you described, and now when booting from powered-off state, having only SYSCON and disable content scanning on startup changed, sometimes webMAN MOD loads, but sometimes not. The PS3 boot animation takes longer than usual when webMAN doesn't load. It seems something is delaying the boot process for a few seconds. In the event the loading succeeds, the boot animation is as fast as ever.

I tried it 10 times, and the loading succeeded 3 times.

I then removed my 2nd controller that is connected via USB (port 2), and loading succeded 5/5 times. I then plugged it back in, this time port 1: success 2/6 I again removed it completely: 5/5.

Having the 2nd controller attached to USB seems to be part of the bug here.

If it helps: The original webMAN 1.47n always loads no matter what, even with fan control disabled.

aldostools commented 4 years ago

Try reinstalling the CFW to discard the possibility of a corrupted file. Also check that boot_plugins.txt is only loading webMAN MOD. The controller connected on USB seems to cause random BSOD. I have reported this to Joonie, but he doesn't have a clue either of what could be causing that issue on Rebug.. IIRC habib made some changes in Cobra 8.2 to fix that.

Also you could try booting with Mamba 8.3 to test if behaves different.

It's difficult to compare with webMAN 1.47n... webMAN MOD has too much changes.

aldostools commented 4 years ago

In the release page I updated the PKG with a new version that will add a delay of few seconds when the system starts. The time is the number of seconds used as additional wait for USB defined at the bottom of /setup.ps3.

I hope that this delay help with your issue.

Declow commented 4 years ago

aldostools the problem still persists using 1.47.30. Not sure what version you are referring to in the release page. Do you use an SSD in your playstation? This problem started when I changed my hdd to an ssd.

aldostools commented 4 years ago

Try increasing the wait time in /setup.ps3 (expand the last section at the bottom of the page).

I don't have an SSD in the PS3 to test.

Declow commented 4 years ago

Hmm okay. As long as I have a USB device connect to the console webman mod works fine. Changing the wait time for USB does not fix the problem. Just tried with both settings at 15 seconds.

Is it possible to setup some kind of logging using an environment variable?

Rast1234 commented 4 years ago

I experienced same issues with webman mod not loading at boot (but working after manual reinstalling). Tried different versions, settings, reset settings, uninstall, manually delete files... Finally something helped when i was desperate and tried different things together.

Strangely enough i always had a pop-up at boot with webman mod version, which should mean it is loaded, but then always "webman not ready" and http/ftp not responding.

Totally +1 for some logging, maybe to a file. It would greatly help to understand why it crashes or at least a stage when it crashes.