Moodle 4.3.2 file upload problem in LAN only

Moodle 4.3.2 file upload problem in LAN only

by mik dodge -
Number of replies: 8
Dear All,

we have Moodle 4.3.2 (Build: 20231222) with IIS and Win Server2019, and facing uploading files problem in our LAN only, and for all teachers. it took very long time uploading files with normal file-size and did not upload files at the end.
while over internet (outside school network) the file upload working perfect & fast...!!

upload file problem

any idea where i can find the problem and fix it ?
any help plz
Average of ratings: -
In reply to mik dodge

Re: Moodle 4.3.2 file upload problem in LAN only

by Ken Task -
Picture of Particularly helpful Moodlers
Where is your moodle server hosted?   Inside your LAN or is it hosted outside your LAN.
IF outside, students/teachers inside the LAN could be under a network filter.   No filtering when accessing the server when outside the LAN.

Check with your network folks!

'SoS', Ken

In reply to Ken Task

Re: Moodle 4.3.2 file upload problem in LAN only

by mik dodge -
thnx Ken for your reply,
our Moodle is hosted locally on our server.

and there is no filters or even antivirus.

we have our firewall pfsense control the LAN and WAN connections.
In reply to mik dodge

Re: Moodle 4.3.2 file upload problem in LAN only

by Ken Task -
Picture of Particularly helpful Moodlers
Ok, then ... "firewall pfsense" would need different rules for internal LAN access and external (outside your LAN) access ... right?

Things that are guesses ...
increase PHP time outs
Increase PHP settings for size of file to upload.
Check IIS settings for same
Check IIS logs - errors or timeouts?
Turn on debugging all the way to developer in Moodle to see if moodle is throwing errors.
Also use console of Firefox and check each tab to see what might be going on - network tab?

?????

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Moodle 4.3.2 file upload problem in LAN only

by mik dodge -
the strange thing is that the uploading any file type or size is working fine and fast from outside the network..! 
in our IIS, the "Request timeout" is set to 10000
FastCGI
In reply to mik dodge

Re: Moodle 4.3.2 file upload problem in LAN only

by Jon Witts -
Picture of Plugin developers Picture of Testers
I would strongly suggest that a Windows Server which is web-facing should most definitely have some sort of anti-virus running... mixed
Average of ratings: Useful (1)
In reply to Jon Witts

Re: Moodle 4.3.2 file upload problem in LAN only

by mik dodge -
the strange thing is that the uploading any file type or size is working fine and fast from outside the network..!
In reply to mik dodge

Re: Moodle 4.3.2 file upload problem in LAN only

by mik dodge -
1. our Moodle registered no single error regarding the file upload problem..!
2. i just found a weird thing in my pfsense firewall as show in screenshot:
sc

i'm using a Theme Academi and just found an errors registered in my firewall showed the locations for another Theme Boost.
why Moodle goto path:
GET /pluginfile.php/1/theme_boost/backgroundimage/..
while i'm using another Theme:
GET /pluginfile.php/1/theme_academi/

it could be a bug in the Theme Academi or Moodle that cause the file upload problem?!!

any thoughts ...plz
In reply to mik dodge

Re: Moodle 4.3.2 file upload problem in LAN only

by Ken Task -
Picture of Particularly helpful Moodlers
Check the www url in config.php of the site.
It should be: https://fullyqualifeddomainname as in public_internet domain.
and
The internal LAN DNS needs to have a mapping for the 192.x.x.x address to the FQDN of the server.
You also need to check into proxy setup
https://docs.moodle.org/402/en/Reverse_proxy_frontend

The theme:
https://moodle.org/plugins/theme_academi
has a 4.2 version available ...
https://moodle.org/plugins/theme_academi/versions

'SoS', Ken


Average of ratings: Useful (1)