Multicast doesn't work after update from 1.2 to 1.4.4
-
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?
-
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.
-
@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. -
@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.
-
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.
-
[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!