Can't delete images


  • Moderator

    SVN Revision 4477 cloud 5612
    Fedora 23 Server

    SELinux is set to Enforcing per Jbob’s instructions
    Firewalld is turned on per Jbob’s instructions.

    When I unprotect an image, then click the delete link on the left menu, and check the checkbox for Delete file data and then click “Remove:

    The browser’s progress bar just spins and spins. The data is not deleted.

    And in the log viewer, the Apache Error logs are missing from the drop down selector. None of the logs seem to work.

    Looking at the logs on the OS, I find this:

    [root@fog-server trunk]# tail /var/log/httpd/error_log
    [Wed Dec 02 22:32:53.233879 2015] [:error] [pid 27147] [client 192.168.1.228:59342] PHP Warning:  fopen(/var/log/fog/multicast.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 15, referer: http://192.168.1.7/fog/management/index.php?node=about&sub=log
    [Wed Dec 02 22:32:56.216670 2015] [:error] [pid 24702] [client 192.168.1.228:59347] PHP Warning:  fopen(/var/log/fog/multicast.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 15, referer: http://192.168.1.7/fog/management/index.php?node=about&sub=log
    [Wed Dec 02 22:32:57.225838 2015] [:error] [pid 27084] [client 192.168.1.228:59352] PHP Warning:  fopen(/var/log/fog/multicast.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 15, referer: http://192.168.1.7/fog/management/index.php?node=about&sub=log
    [Wed Dec 02 22:32:59.245748 2015] [:error] [pid 27091] [client 192.168.1.228:59374] PHP Warning:  fopen(/var/log/fog/multicast.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 15, referer: http://192.168.1.7/fog/management/index.php?node=about&sub=log
    

    There are no Apache errors about deleting the image.


  • Senior Developer

    As this isn’t really a BUG in FOG or something, I’m solving this thread so people don’t think this is an issue directly relatable to FOG as a whole.


  • Moderator

    @Jbob @Developers

    Setting SELinux to permissive fixes the issue about deleting the images.
    setenforce 0

    So it’s an SELinux issue.


Log in to reply
 

475
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.