[bug] Error while installing main Fabrik component on NGINX.

batonac

Member
While installing the latest Fabrik 3.1 on the latest Joomla 3.1, all the plugins/modules install without a hitch except for the fabrik component. When trying to run that install, i get a '502 Bad Gateway' error, which corresponds to this line in my nginx error.log:
Code:
2013/07/11 15:29:08 [error] 1782#0: *821 upstream sent invalid status "-1 Source folder not found" while reading response header from upstream, client: 174.49.214.254, server: ft.3cordinc.com, request: "POST /administrator/index.php?option=com_installer&view=discover HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "ft.3cordinc.com", referrer: "http://ft.3cordinc.com/administrator/index.php?option=com_installer&view=discover"
For whatever reason the component still installs and seems to run fine, but it's weird and unsettling when you get an error on install.

Here's my nginx site config:
Code:
server {
        listen 80;
        server_name ft.3cordinc.com;
 
        root /srv/www/fabrik_test;
        index index.php index.html index.htm;
   
        location / {
                try_files $uri $uri/ /index.php?q=$uri&$args;
        }
 
        # deny running scripts inside writable directories
        location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
                return 403;
                error_page 403 /403_error.html;
        }
       
        location ~ \.php$ {
            try_files $uri $uri/ /index.php?q=$uri&$args;
        fastcgi_split_path_info ^(.+.php)(.*)$;
            fastcgi_pass  unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
 
        # caching of files
        location ~* \.(ico|pdf|flv)$ {
                expires 1y;
        }
 
        #location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
        #        expires 14d;
        #}
}

Here's my nginx.conf:
Code:
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;
   
    # enable large file uploads
    client_max_body_size 8M;
    client_body_buffer_size 256k;
    # server_tokens off;
 
    server_names_hash_bucket_size 64;
    server_name_in_redirect off;
 
    include /etc/nginx/mime.types;
    default_type application/octet-stream;
 
    ##
    # Logging Settings
    ##
 
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;
 
    ##
    # Gzip Settings
    ##
 
    gzip on;
    gzip_disable "msie6";
 
    # 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/x-javascript text/xml application/xml application/xml+rss text/javascript;
 
    ##
    # nginx-naxsi config
    ##
    # Uncomment it if you installed nginx-naxsi
    ##
 
    include /etc/nginx/naxsi_core.rules;
 
    ##
    # nginx-passenger config
    ##
    # Uncomment it if you installed nginx-passenger
    ##
   
    #passenger_root /usr;
    #passenger_ruby /usr/bin/ruby;
 
    ##
    # Virtual Host Configs
    ##
 
    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

I'll be glad to attach and config and/or log files that you'd like to study.
 
Sorry I have never use nginx so can't comment about installing on it. The error doesn't really help much as it doesn't say what folder is missing.
I'll run the build here and check the install xml file to see if there are any discrepancies there but beyond that I don't know where to look
 
I've never used nginx either, can't really help. We can't really support anything but the mainstream web servers, like Apache and IIS. And afaik the current 3.1 build installs fine on both of those.

-- hugh
 
Maybe I got everyone off-track with my NGINX assumptions. I just installed this on a traditional shared-hosting provider (1and1) which uses Apache web server. I got exactly the same error when installing the main fabrik component: "-1 Source folder not found".

I don't need "professional-priority" fixes on this bug, it doesn't really keep me from working. I just thought you guys might want to know so your software is ready for public launch...
 
OK. It's pretty much impossible to work out what that is, as it's not giving us the folder name, without running through a from scratch install to test it here.

As it's not a show stopper, if it's cool with you, we'll just wait till the next time we build the installer for the next version, and test some from-scratch installs.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top