Error Connecting to Server

Error Connecting to Server

by Aditya Dubay -
Number of replies: 12

Hi,

I upgrade my Moodle from 3.4.2 to 3.5

When I try to DRAG and DROP Folder in Folder Resource it says "Error Connecting to Server"

What to Do??

Please help

Average of ratings: -
In reply to Aditya Dubay

Re: Error Connecting to Server

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Open the javascript console in your web browser, do it again, what error (if any) is displayed in the console?

In reply to Howard Miller

Re: Error Connecting to Server

by Aditya Dubay -

Hi Howard,

It shows:

POST http://mysite.com/lms/repository/repository_ajax.php?action=upload 0 ()
upload_file @ dndupload.js:52
do_upload @ dndupload.js:44
process_renames @ dndupload.js:35
start_upload @ dndupload.js:25
drop @ dndupload.js:21
_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13680
notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13709
_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13372
_procSubs @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13498
fireSimple @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13465
_fire @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13447
fire @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13416
cewrapper.fn @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:20467

In reply to Aditya Dubay

Re: Error Connecting to Server

by Joan Pujol -

Have you been able to solve it? Same issue with Moodle 3.5 (Build: 20180517):

Request URL: http://moodle35.mimosinnet.org/moodle/repository/repository_ajax.php?action=upload
Request Method: POST
Status Code: 500 Internal Server Error
Remote Address: 192.168.1.100:80
Referrer Policy: no-referrer-when-downgrade


upload_file	@	dndupload.js:52
do_upload @ dndupload.js:44
process_renames @ dndupload.js:35
start_upload @ dndupload.js:25
drop @ dndupload.js:21
_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13680
notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13709
_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13372
_procSubs @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13498
fireSimple @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13465
_fire @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13447
fire @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13416
cewrapper.fn @ yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:20467
In reply to Joan Pujol

Re: Error Connecting to Server

by Joan Pujol -

After examining nginx logs:

 "/var/lib/nginx/tmp/client/0000000001" failed (13: Permission denied), client: 192.168.10.100, server: moodle35.mimosinnet.org, request[0/977] /moodle/repository/repository_ajax.php?action=upload HTTP/1.0", host: "192.168.10.101:82", referrer: "http://moodle35.mimosinnet.org/moodle/user/editadvanced.php?id=2&course=1&returnto=profile"

Setting correct permissions in /var/lib/nginx solved the issue. 


Cheers!

In reply to Joan Pujol

Re: Error Connecting to Server

by Aditya Dubay -

Hi Joan

Thanks for your replies and sorry for late smile

Nginx is disabled in my server as it creates session swapping problems for me.

I still get the same error sad

In reply to Aditya Dubay

Re: Error Connecting to Server

by Aditya Dubay -

Hi,

New Update:

Server Rebuild.

Basic Linux server.

Moodle 3.5

Still Getting "Error Connecting Server" error while Drag and Drop Folder in Folder Resource.

Debug is On and not giving any additional info.

No Nginx installed.

Please Help

 

In reply to Aditya Dubay

Re: Error Connecting to Server

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Did try clearing the browser cache?
In reply to Visvanath Ratnaweera

Re: Error Connecting to Server

by Aditya Dubay -

Yes but its Moodle problem I feel

In reply to Aditya Dubay

Re: Error Connecting to Server

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

...then why doesn't everybody else have the problem?

Can I confirm that you have debugging on (full), have checked your web server logs and have checked your javascript console (since you rebuilt)?

Please also confirm that you have no optional plugins or themes. Get rid of them if you do. If only to eliminate them.

In reply to Howard Miller

Re: Error Connecting to Server

by Aditya Dubay -

Hi Howard,

May be others didnt tried yet or they know its hard to get exact solution here smile

Debug is on and at Developer level but as you see in image there is no information about error.

Console shows this:

I have lots and lots of big files which I cant upload one by one thats why I want to upload them as folder and DRAG AND DROP

 Optional Plugin installed:

Profile field based theme delivery and some themes

Please help

In reply to Aditya Dubay

Re: Error Connecting to Server

by Aditya Dubay -

Waiting for needful help

In reply to Aditya Dubay

Re: Error Connecting to Server

by César Iván Mullo -

Hi,  I had the same problem: "Error Connecting to Server" when I was uploading a file .

I´m working with moodle 3.5.1.

What I did to solve this problem was add this line in: /etc/nginx/nginx.conf:

# set client body size to 2M #
client_max_body_size 2M;

And reload nginx service:

systemctl reload nginx


IvanM
Average of ratings: Useful (1)