iPhoneHandle & json.pl

Moderator: crythias

Locked
reeckz
Znuny newbie
Posts: 2
Joined: 07 Jan 2013, 09:44
Znuny Version: 3.1.12
Real Name: Andreas M
Company: The Reddit cup

iPhoneHandle & json.pl

Post by reeckz »

Hi OTRS Forums,

I've been having issues with the iPhone Handle 1.1.1 Package, it seems like it doesn't create the json.pl file.
If i try the following command, i just get a 502 Bad Gateway page

Code: Select all

http://HOSTNAME/OTRSPATH/json.pl?User=test&Password=test
So I think the json.pl file is not created / accessible or something along those lines.

I've got OTRS 3.1.12 running a on ubuntu 12.04 VPS with 512MB ram & nginx, mysql etc.

Below is whatever the package install outputs:

Code: Select all

root@s2:/home/otrs/otrs# sudo bin/otrs.PackageManager.pl -a install -p /root/iPhoneHandle-1.1.1.opm

Notice: Install /home/otrs/otrs/bin/cgi-bin/json.pl (755)!
Notice: Install /home/otrs/otrs/Kernel/Config/Files/iPhone_Deprecated.xml (644)!
Notice: Install /home/otrs/otrs/Kernel/Config/Files/iPhone.xml (644)!
Notice: Install /home/otrs/otrs/Kernel/System/DynamicField/iPhone/Backend/Checkbox.pm (644)!
Notice: Install /home/otrs/otrs/Kernel/System/DynamicField/iPhone/Backend/Date.pm (644)!
Notice: Install /home/otrs/otrs/Kernel/System/DynamicField/iPhone/Backend/DateTime.pm (644)!
Notice: Install /home/otrs/otrs/Kernel/System/DynamicField/iPhone/Backend/Dropdown.pm (644)!
Notice: Install /home/otrs/otrs/Kernel/System/DynamicField/iPhone/Backend/Multiselect.pm (644)!
Notice: Install /home/otrs/otrs/Kernel/System/DynamicField/iPhone/Backend/Text.pm (644)!
Notice: Install /home/otrs/otrs/Kernel/System/DynamicField/iPhone/Backend/TextArea.pm (644)!
Notice: Install /home/otrs/otrs/Kernel/System/DynamicField/iPhone/iPhoneBackend.pm (644)!
Notice: Install /home/otrs/otrs/var/packagesetup/iPhoneHandle.pm (644)!
Notice: Install /home/otrs/otrs/Kernel/System/iPhone.pm (644)!
Notice: Install /home/otrs/otrs/doc/en/iPhoneHandle.pdf (644)!
Code:

        # define function name
        my $FunctionName = 'CodeInstall';

        # create the package name
        my $CodeModule = 'var::packagesetup::' . $Param{Structure}->{Name}->{Content};

        # load the module
        if ( $Self->{MainObject}->Require($CodeModule) ) {

            # create new instance
            my $CodeObject = $CodeModule->new( %{$Self} );

            if ($CodeObject) {

                # start method
                if ( !$CodeObject->$FunctionName(%{$Self}) ) {
                    $Self->{LogObject}->Log(
                        Priority => 'error',
                        Message  => "Could not call method $FunctionName() on $CodeModule.pm."
                    );
                }
            }

            # error handling
            else {
                $Self->{LogObject}->Log(
                    Priority => 'error',
                    Message  => "Could not call method new() on $CodeModule.pm."
                );
            }
        }


Subroutine Load redefined at /home/otrs/otrs-3.1.12/Kernel/Config/Files/ZZZAAuto.pm line 5.
Subroutine Load redefined at /home/otrs/otrs-3.1.12/Kernel/Config/Files/ZZZAuto.pm line 5.

So, I'm pretty lost on what to do to get it to work, since I'd love to be able to answer tickets from my cellphone / ipad.
Any help is appreciated!

Best regards,
Reeckz
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: iPhoneHandle & json.pl

Post by reneeb »

Can you show us your nginx config?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
reeckz
Znuny newbie
Posts: 2
Joined: 07 Jan 2013, 09:44
Znuny Version: 3.1.12
Real Name: Andreas M
Company: The Reddit cup

Re: iPhoneHandle & json.pl

Post by reeckz »

This should be it, it's my nginx.conf file(/usr/local/nginx/conf/nginx.conf)

Code: Select all

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

events {
        worker_connections 1024;
        # multi_accept on;
}

http {

        ##
        # Basic Settings
        ##

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        types_hash_max_size 2048;

        ##
        # Hardening Settings
        ##

        ## Size Limits
        client_body_buffer_size   1k;
        client_header_buffer_size 1k;
        client_max_body_size      10m;
        large_client_header_buffers  2 1k;

        ## Timeouts
        client_body_timeout     10;
        client_header_timeout   10;
        keepalive_timeout       5 5;
        send_timeout            10;

        ## Limits
        limit_conn_zone $binary_remote_addr zone=name:10m;

        server_tokens           off;

        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;

        include 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 "MSIE [1-6]\.(?!.*SV1)";

        gzip_vary on;
        gzip_http_version 1.1;
        gzip_comp_level 6;
        gzip_min_length 700;
        # gzip_proxied any;
        # gzip_buffers 16 8k;
        # gzip_types text/plain text/css application/json application/x-javascr$

        ##
        # Virtual Host Configs
        ##
        include /usr/local/nginx/sites-enabled/*;
}


Locked