Project

General

Profile

Bug #8484

Mantenimiento - Importar cursos 110: Connection timed out

Added by Alejandro Mejia about 5 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/11/2016
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Cordial saludo

En la version 1.11.0, se presenta le error 110: Connection timed out en la importaciĆ³n de backup de cursos

Administracion -> Lista deCursos -> Curso -> Mantenimiento del Curso -> Importar una copia de seguridad

El registro de errores de la plataforma es :

2016/11/03 22:33:14 [notice] 1263#0: *31 "^/courses/([^/]+)/$" does not match "/web/assets/image-map-resizer/js/imageMapResizer.map", client: 192.168.2.1, server: chamilo.aulal.com, request: "GET /web/assets/image-map-resizer/js/imageMapResizer.map HTTP/1.1", host: "chamilo.aulal.com"
2016/11/03 22:33:14 [notice] 1263#0: *31 "^/courses/([^/]+)/index.php$" does not match "/web/assets/image-map-resizer/js/imageMapResizer.map", client: 192.168.2.1, server: chamilo.aulal.com, request: "GET /web/assets/image-map-resizer/js/imageMapResizer.map HTTP/1.1", host: "chamilo.aulal.com"
2016/11/03 22:33:14 [notice] 1263#0: *32 "^/main/admin/$" does not match "/main/inc/lib/javascript/bootstrap-select/js/bootstrap-select.js.map", client: 192.168.2.1, server: chamilo.aulal.com, request: "GET /main/inc/lib/javascript/bootstrap-select/js/bootstrap-select.js.map HTTP/1.1", host: "chamilo.aulal.com"
2016/11/03 22:33:14 [notice] 1263#0: *32 "^/courses/([^/]+)/$" does not match "/web/assets/bootstrap/dist/css/bootstrap.min.css.map", client: 192.168.2.1, server: chamilo.aulal.com, request: "GET /web/assets/bootstrap/dist/css/bootstrap.min.css.map HTTP/1.1", host: "chamilo.aulal.com"
2016/11/03 22:33:14 [notice] 1263#0: *32 "^/courses/([^/]+)/index.php$" does not match "/web/assets/bootstrap/dist/css/bootstrap.min.css.map", client: 192.168.2.1, server: chamilo.aulal.com, request: "GET /web/assets/bootstrap/dist/css/bootstrap.min.css.map HTTP/1.1", host: "chamilo.aulal.com"

> 2016/11/03 22:33:49 [error] 1264#0: *19 upstream timed out (110: Connection timed out) while reading upstream, client: 192.168.2.1, server: chamilo.aulal.com, request: "POST /main/coursecopy/import_backup.php?cidReq=C111&id_session=0&gidReq=0&gradebook=0&origin= HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "chamilo.aulal.com", referrer: "http://chamilo.aulal.com/main/coursecopy/import_backup.php?cidReq=C111&id_session=0&gidReq=0&gradebook=0&origin=" 
<pre>
</pre>

En el archivo de configuracion de php la directiva de tiempo de ejecucion esta asi: (Adjunto php.ini)

max_execution_time = 360000

Despues de un tiempo la pagina de carga retorna una pagina completamente en blanco el error solo se puede observar en el log

El curso se actualiza pero es necesario volver a la pantalla de inicio de chamilo manualmente

Saludos


Files

php.ini (69.7 KB) php.ini Alejandro Mejia, 03/11/2016 23:51

History

#1

Updated by Julio Montoya about 5 years ago

Maybe the size of the file is too big try to change this settings to something highter, are you using apache or nginx?

upload_max_filesize = 128M
post_max_size = 64M

#2

Updated by Alejandro Mejia about 5 years ago

Hello Julio,

In fact those values are already setted (You can see it on php.ini file included in report)

upload_max_filesize = 128M
post_max_size = 64M

Course backup size is 24.6 Mb, that is inside limits of upload and post sizes

Server is NGINX

Configuration files:

nginx.conf

user www-data;
worker_processes 4;
pid /run/nginx.pid;

events {
worker_connections 768; # multi_accept on;
}

http {

##
        # Basic Settings
        ##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048; # server_tokens off;
  1. server_names_hash_bucket_size 64; # server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
        # SSL Settings
        ##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
        # Logging Settings
        ##
access_log /var/log/nginx-access.log;
error_log /var/log/nginx-error.log;
gzip on;
gzip_disable "msie6";
  1. gzip_vary on; # gzip_proxied any; # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; # gzip_types text/plain text/css application/json application/javascript text/xml appl$
##
        # Virtual Host Configs
        ##
  1. set client body size to 2M #
    client_max_body_size 64M;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

site configuration
/etc/nginx/sites-enabled/chamilo

server {
listen 80;
server_name chamilo.aulal.com;
rewrite_log on;
access_log /var/log/nginx/my.chamilo.net-access.log;
error_log /var/log/nginx/my.chamilo.net-error.log notice;
root /var/www/html/chamilo111/;
index index.php;
port_in_redirect off;

charset utf-8;
location @rewrite{
rewrite /courses/([/]+)/scorm/(.*)$ /main/document/download_scorm.php?doc_url=/$2&cDir=$$
rewrite /courses/([/]+)/document/(.*)$ /main/document/download.php?doc_url=/$2&cDir=$1 l$
rewrite /courses/([/]+)/work/(.*)$ /main/work/download.php?file=work/$2&cDir=$1 last;
rewrite /courses/([/]+)/upload/(.*)$ /app/courses/$1/upload/$2 last;
try_files $uri /index.php;
break;
}
location / {
rewrite /courses/([/]+)/$ /main/course_home/course_home.php?cDir=$1 last;
rewrite /courses/([/]+)/index.php$ main/course_home/course_home.php?cDir=$1 last;
try_files $uri @rewrite;
}
location /main {
rewrite ^/main/admin/$ /main/admin/index.php last;
}
location ~ \.php$ {
client_max_body_size 128M;
try_files $uri /index.php$is_args$args;
rewrite /certificates/$ /certificates/index.php?id=%1  last;
rewrite ^/courses/([
/]+)/$ /main/course_home/course_home.php?cDir=$1 last;
rewrite /courses/([/]+)/index.php$ /main/course_home/course_home.php?cDir=$1 last;
rewrite /session/([/]+)/about/?$ /main/session/about.php?session_id=$1 last;
rewrite "^/badge/(\d{1,})/user/(\d{1,})$" main/badge/issued.php?skill=$1&user=$2 last;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
  1. Serve static files directly
    location * \.(png|jpe?g|gif|ico)$ {
    expires 1y;
    access_log off;
    rewrite /courses/([/]+)/course-pic85x85.png$ /app/courses/$1/course-pic85x85.png last;
    rewrite /courses/([/]+)/course-pic.png$ /app/courses/$1/course-pic.png last;
    rewrite /courses/([/]+)/scorm/(.*)$ /main/document/download_scorm.php?doc_url=/$2&cDir=$$
    rewrite /courses/([/]+)/document/(.*)$ /main/document/download.php?doc_url=/$2&cDir=$1 l$
    rewrite /courses/([/]+)/work/(.*)$ /main/work/download.php?file=work/$2&cDir=$1 last;
    rewrite /courses/([/]+)/upload/(.*)$ /app/courses/$1/upload/$2 last;
    try_files $uri @rewrite;
    }
    location ~ ~\.(ht|git){
    deny all;
    }
    location ^
    /tests/ {
    deny all;
    }
    }

Thanks

#3

Updated by Julio Montoya about 5 years ago

I meant to increase those values and try again.

Also available in: Atom PDF