Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Soporte de la comunidad Apparently something went wrong executing the command or writing the output.

  • Apparently something went wrong executing the command or writing the output.

    Posted by chismoro on November 7, 2013 at 18:34

    Buenas Tardes

    Al actualizar desde la 4.0.1 a la 5.0 he pasado el script de migracion , todo bien, me ha pasado el problema de la columna ‘last_error’ y ahora tengo este que no se como solucionarlo.

    Me sale cuando pido la carga de un mapa.

    ERROR
    El mapa no pudo ser generado
    Apparently something went wrong executing the command or writing the output.

    Is twopi (usually part of GraphViz) and echo installed and able to be executed by the webserver process?

    Is your webserver restricted from executing command line tools through the system() call (PHP Safe Mode or SELinux)

    Is /srv/www/htdocs/pandora_console/attachment writeable by the webserver process? To change this do the following (POSIX-based systems): chown /srv/www/htdocs/pandora_console/attachment

    La carpeta attachments tiene como dueño el www-data que es el usuario que levanta apache.
    El twopi he probado a generar un grafico y me funciona.

    ¿Como se cambia el command line tools through the system() ? Entiendo que es este el problema ¿no?

    chismoro replied 11 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • chismoro

    Member
    November 8, 2013 at 13:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    La funcion system() no es porque devuelve la salida de un ls

    ¿Que puede ser?

  • Mario

    Administrator
    November 8, 2013 at 14:02
    1150 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hola buenas

    Prueba con borrar todo el contenido que hay dentro de la carpeta attachment, sin borrar la carpeta.
    Si con esto sigue sin funcionar comprueba si no tienes el selinux habilitado en el servidor.

    Una pregunta, ¿te ocurre al crear nuevos mapas o con alguno que tuvieses ya creado antes de la migración?

    Un saludo

  • chismoro

    Member
    November 8, 2013 at 15:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ya esta!! el problema era que crei que la ruta del attachment era la de defecto y en Setup esta puesta otra. Cambiado y funcionando!!