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

    Wiki: Troubleshooting Multicast

    Scheduled Pinned Locked Moved
    Tutorials
    12
    29
    21.1k
    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.
    • B
      Blackout Developer
      last edited by

      [url]http://fogproject.org/wiki/index.php?title=Troubleshooting_a_multicast[/url]


      [SIZE=6]Troubleshooting Multicast[/SIZE]

      On your server open up terminal and kill any running udpcasts by typing
      [code]sudo killall udp-sender[/code]

      now run this command
      [code]udp-sender --file /opt/fog/log/multicast.log --ttl 1[/code]

      you should see [I]broadcasting control to:[/I] and it should be the highest address of the subnet your fogserver is on
      the line before that should say your fogserver ipaddress and the interface

      Now boot up 1 client go to your pxe menu and select debug mode. Do this on the same subnet if possible. Type in:
      [code]udp-receiver --mcast-rdv-address yourfogserver[/code]
      On your server you should see that 1 client connected and then you can press any key to start the transfer
      On your client you should see the contents of your multicast log file scrolling by the screen. You can press ctrl-C to stop it.

      Hopefully that worked. Now we need to test 2 clients.

      Run the command on your server again but this time change the [I]–ttl 1[/I] to [I]–ttl 32[/I]

      You will see that this time your broadcast control is 224.0.0.1 this is the multicast address

      Boot both clients in debug mode and run the client command on each. Once you see that both clients have connected to the server press any key and see if the log file transfers again to both machines this time.

      If it does not then chances are something is not setup properly in your router possibly routing tables or multicast settings.If it does work then good lets try one more step

      On your server run this:
      [code]gunzip -c “/images/anyimagename” | /usr/local/sbin/udp-sender --min-receivers 2 --portbase 9000 --interface yourInterface --half-duplex --ttl 32[/code]

      Now boot up 2 clients in debug mode and enter
      [code]udp-receiver --portbase 9000 --mcast-rdv-address fogserverIP | partimage -f3 -b restore /dev/sda stdin[/code]

      You might need to change /dev/sda to your correct harddrive if it’s different use fdisk -l to find out

      If the clients start imaging then it seems that all of your multicast settings are correct and the problem may lie within fog configuration if it doesn’t work then you need to check your router settings

      1 Reply Last reply Reply Quote 0
      • B
        Blackout Developer
        last edited by

        [url]http://fogproject.org/wiki/index.php?title=Cisco_Multi_Cast[/url]


        [SIZE=6]Cisco Multicast[/SIZE]

        1 Reply Last reply Reply Quote 0
        • B
          Blackout Developer
          last edited by

          [url]http://fogproject.org/wiki/index.php?title=HPMulticast[/url]


          [SIZE=6]HP Multicast[/SIZE]

          1 Reply Last reply Reply Quote 0
          • C
            CamC
            last edited by

            I had trobles once with the file in /opt/fog/service/etc/config.php not containing the mySQL user/password.
            I added the info in, restarted the service and it all began working.

            1 Reply Last reply Reply Quote 0
            • O
              oludare
              last edited by

              Hi guys,
              I am having problem pushing multicast images to clients. When I start multicast deployment, boot clients from PXE, but will all hang at blue screen “Please Wait”. I checked my log viewer, and found error like “Failed to connect to database server, will try again in the next iteration. “
              I have done all like changing Mysql password in /opt/fog/service/etc/config.php and /var/www/fog/……
              I have done connect_timeout= 5000 but way out yet. I have used Ubuntu 8.04, 10.04 with FOG 0.27 and 0.32.
              I could not find FOG database created in MySQL when I checked yet it prompts me for MySQL root user password twice during installation.
              Can somebody help with suggestion?

              1 Reply Last reply Reply Quote 0
              • D
                DJCminuz
                last edited by

                Dont know if you figured it out, but when you changed your fog password did you also do it on the OS as well?
                I.E. sudo passwd fog

                1 Reply Last reply Reply Quote 0
                • A
                  adepo331
                  last edited by

                  [quote=“DJCminuz, post: 1571, member: 494”]Dont know if you figured it out, but when you changed your fog password did you also do it on the OS as well?
                  I.E. sudo passwd fog[/quote]
                  Yes!I solved the problem. It was a database issue. I had to create a new FOG user and password in MySQL, then granted it root privileges over FOG Database. So, that was it. I posted my solution in one of the threads here.

                  1 Reply Last reply Reply Quote 0
                  • falkoF
                    falko Moderator
                    last edited by

                    [quote=“adepo331, post: 1576, member: 431”]Yes!I solved the problem. It was a database issue. I had to create a new FOG user and password in MySQL, then granted it root privileges over FOG Database. So, that was it. I posted my solution in one of the threads here.[/quote]

                    [URL=‘http://fogproject.org/forum/threads/slow-multicast.217/’]yes that is how I solved my issue http://fogproject.org/forum/threads/slow-multicast.217/[/URL]

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      In my case it was a switch issue. I have a small benchmark (1 W2K3 server, 1 FOG server, 1 FOG storage node, 1 desktop, 1 laptop, 1 OvisLink switch) and everything worked fine but multicasting.
                      When I first tried multicasting I was receiving the “Please wait” message. I had to modify the /etc/hosts file and change the current IP (127.0.0.1)[SIZE=4][FONT=Calibri] to the actual IP address. Example: “192.168.0.77 myfogserver”[/FONT][/SIZE]
                      [SIZE=4][FONT=Calibri]After this modificat[/FONT][FONT=Calibri]ion, i[/FONT][/SIZE]t deployed images with intermitent stops, lasting 2 hours more unicasting.
                      The first switch wasn’t manageable, so I tried with another switch (also OvisLink but manageable, although I didn’t need to manage it). Now it only lasts 20 minutes and deploys at 600+ MB/min.

                      1 Reply Last reply Reply Quote 0
                      • C
                        Chris
                        last edited by

                        [quote=“Blackout, post: 58, member: 1”][url]http://fogproject.org/wiki/index.php?title=Troubleshooting_a_multicast[/url]

                        [code]udp-sender --file /opt/fog/log/multicast.log --ttl 1[/code]

                        you should see [I]broadcasting control to:[/I] and it should be the highest address of the subnet your fogserver is on
                        the line before that should say your fogserver ipaddress and the interface[/quote]

                        Question, if the output of this command shows a different interface name to the one you are using, can I assume that this would be the cause of a problem? In my case, it indicates that it is using eth1 when the only exisiting interface is eth0, and while unicasting works, multicasting doesn’t.

                        1 Reply Last reply Reply Quote 0
                        • Wayne WorkmanW
                          Wayne Workman
                          last edited by

                          Hello,

                          I work in a large organization and years ago, our old network admin did custom multicast setup for all of our sites. So, the standard broadcast address for our FOG server’s broadcast domain does not work.

                          Unicast works though, like a charm!

                          I need to change the multicast address to is 224.0.2.224 and I was told to use “streamport 7800”, whatever that is.

                          I’m using Fedora 21 and the latest version of fog.

                          If anyone can offer assistance, it’d be greatly appreciated.

                          Thanks,
                          Wayne

                          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/

                          1 Reply Last reply Reply Quote 0
                          • W
                            Wolfbane8653 Developer
                            last edited by

                            New page. I will be merging these wiki pages together.
                            [url]http://fogproject.org/wiki/index.php/Multicasting[/url]

                            1 Reply Last reply Reply Quote 0
                            • Wayne WorkmanW
                              Wayne Workman
                              last edited by

                              [quote=“Wolfbane8653, post: 40833, member: 3362”]New page. I will be merging these wiki pages together.
                              [url]http://fogproject.org/wiki/index.php/Multicasting[/url][/quote]

                              I’ve reviewed both of those pages before you merged them. There aren’t any instructions to change the multicast data address.

                              I’ve found instructions on other sites & forms but they are for FOG 0.32 and 0.33. I’m working with FOG 1.2.0 on Fedora 21 workstation. The files referenced here: [url]http://www.gravitycomputing.co.nz/fog-multicast-server-032/[/url] don’t exist on my installation.

                              This site [url]http://www.digriz.org.uk/debian/freeghost[/url] towards the bottom mentions changing the multicast address on Debian, however when I open those files, they look nothing like what the site has.

                              Thanks,
                              Wayne

                              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/

                              1 Reply Last reply Reply Quote 0
                              • W
                                Wolfbane8653 Developer
                                last edited by

                                “Latest Version” is really r2901. Or are you saying the latest [U]Release[/U][U]?[/U]

                                Tom is currently working on the multicast issue in the “Beta” of fog. There are multicast issues in 1.2.0 and some have been corrected in the beta.

                                I have to say that this ability to “Change the Multicasting Address” is not a current feature. BUT you have sparked our interest.

                                1 Reply Last reply Reply Quote 0
                                • Wayne WorkmanW
                                  Wayne Workman
                                  last edited by

                                  [quote=“Wolfbane8653, post: 40840, member: 3362”]“Latest Version” is really r2901. Or are you saying the latest [U]Release[/U][U]?[/U]

                                  Tom is currently working on the multicast issue in the “Beta” of fog. There are multicast issues in 1.2.0 and some have been corrected in the beta.

                                  I have to say that this ability to “Change the Multicasting Address” is not a current feature. BUT you have sparked our interest.[/quote]

                                  I’m happy to have sparked your interest to offer a feature that allows us to change the auto-calculated multicast address, because my network administrator is NOT going to update our (over 600) switches to a standard multicast configuration… He’s said so… lol, and I don’t blame him.

                                  So, without the ability to change the auto-calculated broadcast address to 224.0.2.224 with stream port set to 7800, I won’t be multicasting with FOG, ever.

                                  Pretty please with sugar on top!

                                  Thanks,
                                  Wayne

                                  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/

                                  1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman
                                    last edited by

                                    Also,

                                    Just to suggest how the functionality should work, it should be in the fog configuration, via the management console. It should be added to “Multicast settings”

                                    There should be a field in there for setting the Multicast address, however the default auto-calculated one that works for probably 99% of people should be there as default.

                                    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/

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

                                      I understand what needs to be changed. I’ve already added it, but I’ll admit I haven’t tested it.

                                      If you’d be willing and report back if it’s helping.

                                      I’ve added two parts.

                                      First is the Multicast Address to use. If it’s set, it should specify what to use, though I’m not 100% sure if th init needs to be directed as well, which I’m guessing it may be.

                                      Second is the Multicast Port Override. Normally FOG creates tasks and it randomly generates a new port to allow multiple sessions as needed. However the override will not use random ports and will always use the override if set.

                                      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

                                      1 Reply Last reply Reply Quote 0
                                      • Wayne WorkmanW
                                        Wayne Workman
                                        last edited by

                                        [quote=“Tom Elliott, post: 40849, member: 7271”]I understand what needs to be changed. I’ve already added it, but I’ll admit I haven’t tested it.

                                        If you’d be willing and report back if it’s helping.

                                        I’ve added two parts.

                                        First is the Multicast Address to use. If it’s set, it should specify what to use, though I’m not 100% sure if th init needs to be directed as well, which I’m guessing it may be.

                                        Second is the Multicast Port Override. Normally FOG creates tasks and it randomly generates a new port to allow multiple sessions as needed. However the override will not use random ports and will always use the override if set.[/quote]

                                        I’d like to try it out. Where can I find the installer?
                                        I’ll report back on how it goes.

                                        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/

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

                                          [url]http://fogproject.org/wiki/index.php/Upgrade_to_trunk[/url]

                                          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

                                          1 Reply Last reply Reply Quote 0
                                          • Wayne WorkmanW
                                            Wayne Workman
                                            last edited by

                                            [quote=“Tom Elliott, post: 40882, member: 7271”][url]http://fogproject.org/wiki/index.php/Upgrade_to_trunk[/url][/quote]

                                            I was able to get the version in Fog_Trunk going.

                                            I saw the new multicast settings, that’s great.

                                            Did have a few problems with NFS service, but I got them sorted out. The installer changed my configuration in /etc/exports and added a line to a directory that didn’t exist. I got rid of that, and set the settings back the way I had them for ProxyDHCP, then restarted NFS and all was well.

                                            After that, I double checked the other files that I made custom changes to and they were all fine. I input my multicast settings & port number. Then gave the FOG server a reboot for good measure.

                                            I created a multicast task to one client (a group with just one machine in it), and tried… and it doesn’t work… 😞

                                            Got the same issue I had before. It gets to the partclone screen and just sits saying

                                            "Starting to restore image (-) to device (/dev/sda1)

                                            inside /opt/fog/log/multicast.log there aren’t any new errors… just old ones from the 13th saying “StorageNode Not found on this system.” I think that error was from when I was still figuring out how to get NFS, and FTP to work right for the imaging process…

                                            Keeping in mind that unicast works for uploading & downloading… My images move from the /images/dev folder to the /images folder properly via FTP (that was a hard one to fix).

                                            Where should I look next? OR, Tom Elliott, would you like to mess with the multicast feature more? I understand you made these changes YESTERDAY, and man are you quick! So there might be a glitch somewhere you overlooked… I’ll be patient, because you guys are awesome.

                                            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/

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

                                            272

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project