• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Multicast doesn't work after update from 1.2 to 1.4.4

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    5
    641
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • krokodeilakiasK
      krokodeilakias
      last edited by

      I recently updated from 1.2 to 1.4.4 (SVN 6077) having used “-P -T -F -o” options in my CentOS 7.4 box. During my post update tests, I realized that unlike unicast, multicast is not working any more. Actions taken so far:

      • Successfully tested multicast with 1 and 2 clients according to https://wiki.fogproject.org/wiki/index.php?title=Multicast#Troubleshooting
      • Removed /opt/fog/service and rerun the installer. No luck.
      [root@ianos ~]# systemctl status -l FOGMulticastManager
      ● FOGMulticastManager.service - FOGMulticastManager
         Loaded: loaded (/usr/lib/systemd/system/FOGMulticastManager.service; enabled; vendor preset: disabled)
         Active: active (running) since Mon 2018-02-05 00:22:37 EET; 2min 28s ago
       Main PID: 1669 (FOGMulticastMan)
         CGroup: /system.slice/FOGMulticastManager.service
                 └─1669 /usr/bin/php -q /opt/fog/service/FOGMulticastManager/FOGMulticastManager &
      
      Feb 05 00:22:37 ianos.my.domain systemd[1]: Started FOGMulticastManager.
      Feb 05 00:22:37 ianos.my.domain systemd[1]: Starting FOGMulticastManager...
      Feb 05 00:22:40 ianos.my.domain FOGMulticastManager[1669]: PHP Strict Standards:  Non-static method MulticastManager::outall() should not be called statically in /opt/fog/service/FOGMulticastManager/FOGMulticastManager on line 30
      Feb 05 00:22:40 ianos.my.domain FOGMulticastManager[1669]: PHP Fatal error:  Using $this when not in object context in /var/www/html/fog/lib/fog/multicastmanager.class.php on line 9
      
      • truncated multicastSessions and multicastSessionsAssoc from DB
      • udp-receiver is not running (how should it?)
      • /opt/fog/log/multicast.log reports nothing

      So, is there anything else to try?

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Feb 05 00:22:40 ianos.my.domain FOGMulticastManager[1669]: PHP Fatal error:  Using $this when not in object context in /var/www/html/fog/lib/fog/multicastmanager.class.php on line 9
        

        This is the line that’s causing issues.

        First, I’m going to guess, and you can confirm, that you have two instances of FOG currently running. MulticastManager moved to /service/ folder for 1.4.4, so I’m guessing there’s a conflict.

        To confirm, please provide output of:

        ls -lhat /var/www
        AND
        ls -lhat /var/www/html

        I suspect both “fog” instances will show up as individual folders, rather than one being a link to the other.

        To fix quickly:
        rm -rf /var/www/fog /var/www/html/fog

        Rerun the installer.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        krokodeilakiasK 1 Reply Last reply Reply Quote 3
        • Wayne WorkmanW
          Wayne Workman @krokodeilakias
          last edited by

          @krokodeilakias Manually start the multicast manager. Something like this: systemctl start FOGMulticastManager Then look in the logs and see if there is anything. If there’s nothing in the logs, check the apache error logs.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          krokodeilakiasK 1 Reply Last reply Reply Quote 0
          • krokodeilakiasK
            krokodeilakias @Wayne Workman
            last edited by krokodeilakias

            @wayne-workman Had already tried this:

            [root@ianos ~]# tail /etc/httpd/logs/access_log
            FOGServerIP - - [05/Feb/2018:01:23:21 +0200] "GET /fog/status/bandwidth.php?dev=eth0 HTTP/1.1" 200 46 "-" "-"
            FOGServerIP - - [05/Feb/2018:01:23:21 +0200] "POST /fog/status/logtoview.php HTTP/1.1" 200 663 "-" "-"
            FOGServerIP - - [05/Feb/2018:01:23:22 +0200] "GET /fog/status/bandwidth.php?dev=eth0 HTTP/1.1" 200 46 "-" "-"
            client-1_IP - - [05/Feb/2018:01:23:22 +0200] "POST /fog/service/progress.php HTTP/1.1" 200 - "-" "curl/7.53.0"
            client-2_IP - - [05/Feb/2018:01:23:22 +0200] "POST /fog/service/progress.php HTTP/1.1" 200 - "-" "curl/7.53.0"
            FOGServerIP - - [05/Feb/2018:01:23:24 +0200] "GET /fog/status/bandwidth.php?dev=eth0 HTTP/1.1" 200 46 "-" "-"
            [...]
            

            In /opt/fog/log/multicast.log nothing appears.

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              Feb 05 00:22:40 ianos.my.domain FOGMulticastManager[1669]: PHP Fatal error:  Using $this when not in object context in /var/www/html/fog/lib/fog/multicastmanager.class.php on line 9
              

              This is the line that’s causing issues.

              First, I’m going to guess, and you can confirm, that you have two instances of FOG currently running. MulticastManager moved to /service/ folder for 1.4.4, so I’m guessing there’s a conflict.

              To confirm, please provide output of:

              ls -lhat /var/www
              AND
              ls -lhat /var/www/html

              I suspect both “fog” instances will show up as individual folders, rather than one being a link to the other.

              To fix quickly:
              rm -rf /var/www/fog /var/www/html/fog

              Rerun the installer.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              krokodeilakiasK 1 Reply Last reply Reply Quote 3
              • krokodeilakiasK
                krokodeilakias @Tom Elliott
                last edited by

                @tom-elliott

                [root@ianos ~]# ls -lhat /var/www
                total 4.0K
                drwxr-xr-x   4 root root   47 Feb  4 21:54 html
                drwxr-xr-x   4 root root   41 Feb  3 23:26 .
                lrwxrwxrwx   1 root root   18 Feb  3 23:26 fog -> /var/www/html/fog/
                drwxr-xr-x   2 root root    6 Oct 19 23:39 cgi-bin
                drwxr-xr-x. 22 root root 4.0K Aug 21 21:29 ..
                [root@ianos ~]# ls -lhat /var/www/html
                total 12K
                drwxr-xr-x 13 apache apache 4.0K Feb  4 22:31 fog
                drwxr-xr-x  4 root   root     47 Feb  4 21:54 .
                drwxr-xr-x  4 root   root     41 Feb  3 23:26 ..
                -rw-r--r--  1 root   root     45 Jan 29  2015 index.php
                

                Although the above don’t seem erroneous to me, I followed your advice and deleted
                /var/www/fog and /var/www/html/fog. After re-running the installer multicasting works as it should. Apparently it was a right guess 😉
                Thanks a lot for your nice work!

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                174

                Online

                12.1k

                Users

                17.3k

                Topics

                155.3k

                Posts
                Copyright © 2012-2024 FOG Project