[SOLVED] Fop2 Don't start

Hi! guys I'm trying to find a solution to my problem:

I tried to install and configure Fop2, but I can not start the services:
when I start the service, the script does not give any response..
root@hosting [~]# /usr/local/fop2/fop2_server
root@hosting [~]# /usr/local/fop2/fop2_server -v
root@hosting [~]# /usr/local/fop2/fop2_server -X 15
root@hosting [~]# service fop2 start
Starting Flash Operator Panel 2:                           [FAILED]
root@hosting [~]# /etc/init.d/fop2 start
Starting Flash Operator Panel 2:                           [FAILED]

Info:
CentOS 5 64bits with CPanel
Asterisk 1.6
FreePBX 2.8.1

root@hosting [/usr/local/fop2]# uname -a
root@hosting [/usr/local/fop2]
Linux hosting.xxxxxx.xx 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

root@hosting [/usr/local/fop2]# /lib/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-50).
Compiled on a Linux 2.6.9 system on 2011-04-26.
Available extensions:
        The C stubs add-on version 2.1.2.
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        GNU libio by Per Bothner
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        RT using linux kernel aio
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

root@hosting [/usr/local/fop2]# /lib64/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-50).
Compiled on a Linux 2.6.9 system on 2011-04-26.
Available extensions:
        The C stubs add-on version 2.1.2.
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        GNU libio by Per Bothner
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        RT using linux kernel aio
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

I hope your help, and to purchase a license and even I can not use

Best regards

David Ulloa



[SOLUTION]

this script use a tmp folder with permisions to exec by default /tmp
in my case, I have CPANEL, and by default does not stop running scripts in the / tmp

then...

it is necessary to create a tmp directory..
# mkdir /usr/local/fop2/tmp

and set a new tmp folder
# export PAR_GLOBAL_TMPDIR=/usr/local/fop2/tmp

edit a init script
# nano /etc/init.d/fop2
case "$1" in
  start)
        echo -n "Starting Flash Operator Panel 2: "

        # Here set a new tmp folder
        export PAR_GLOBAL_TMPDIR=/usr/local/fop2/tmp

        daemon $DAEMON $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/fop2_server
        ;;
stop)

and now,

root@hosting [/usr/local/fop2]# ./fop2_server -X 3
** MANAGER CONNECTION Connecting to localhost:5038 (Server 0)
** MANAGER CONNECTION Connected to localhost:5038 (Server 0)
....

its working :)

Regards!

Comments

  • Are you running selinux? If so, disable it or look at its log to enable fop2_server run. You can try by typing in the command line:
    setenforce 0
    

    After that, try to start the server in debug mode:
    /usr/local/fop2/fop2_server -X 3
    

    After a few seconds, you should start seeing quite a lot of lines of output.. If you do not see anything, you might want to stop it with ctrl-C, then removing the /tmp/par-root directory and try again.

    Once you see some output, the service should start normally.

    Best regards,
  • root@hosting [~]# setenforce 0
    setenforce: SELinux is disabled
    

    start and .... shows nothing
    root@hosting [~]# /usr/local/fop2/fop2_server -X 3
    root@hosting [~]#
    
  • root@hosting [/usr/local/fop2]# setenforce 0
    setenforce: SELinux is disabled
    

    and try again:
    root@hosting [/tmp]# ls |grep root
    hsperfdata_root/
    par-root/
    pdk-root/
    root@hosting [/tmp]# rm -rf hsperfdata_root/ par-root/ pdk-root/
    root@hosting [/tmp]# /usr/local/fop2/fop2_server -X 3
    root@hosting [/tmp]# 
    root@hosting [/tmp]# ls |grep root
    par-root/
    root@hosting [/tmp]# ls par-root/cache-7e11dcc5170cf8f736ef8efe689ab86e/
    ./  ../  fop2_server*  libperl.so*
    root@hosting [/tmp]#
    
  • What happens when you run fop2_server -X 3 ? Do you stop it with ctrl-c ? Did you download the correct version for your distro? Are you running selinux ?
  • 1.- when i run: ./fop2_server -X 3 dont show nothing (dont start)
    2.- SELinux is disabled
    3.- i have FOP for: Centos 5 - 64bits
    4.- sorry for my english
  • But when you run fop2_server it returns to the command prompt ? or it takes the terminal? How long did you wait if it is taking the terminal? A few seconds, A couple of minutes? Did you hit ctrl-c to stop it at any time? Did you download fop2 for centos5 64 bits?
  • I recorded this video to show what happens [url:pkq7jnu7]

    best regards
  • Are you mounting /tmp with noexec ? Try to catch me on the live help, I am online now.
  • What time I can find you online?
  • /etc/fstab
    LABEL=/                 /                       ext3    defaults,usrquota        1 1
    LABEL=/tmp              /tmp                    ext3    defaults        1 2
    LABEL=/home             /home                   ext3    defaults,usrquota        1 2
    LABEL=/backup           /backup                 ext3    defaults        1 2
    LABEL=/var              /var                    ext3    defaults,usrquota        1 2
    LABEL=/usr              /usr                    ext3    defaults,usrquota        1 2
    LABEL=/boot             /boot                   ext3    defaults        1 2
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
    LABEL=SWAP-sda6         swap                    swap    pri=0,defaults        0 0
    /tmp             /var/tmp                    ext3    defaults,usrquota,bind,noauto        0 0
    
  • I am not sure the options for the /tmp directory, please follow the directions from the FAQ number 14.

    And try to catch me on the live help if you can provide access to your server.
  • solved! read the first post
Sign In or Register to comment.