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

Kernel update 6 hours later

Scheduled Pinned Locked Moved
FOG Problems
4
44
14.0k
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.
  • T
    Tom Elliott
    last edited by Jul 15, 2014, 10:54 PM

    Which issue is back? The kernel download issue or tftp open timeout?

    If it’s the kernel download you’re referring to, what is the output of:
    [code]ls -l /var/www/fog/service/ipxe[/code]

    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
    • I
      ianabc Testers
      last edited by Jul 15, 2014, 11:09 PM

      OK, if you test the ftp manually can you put files etc., go to a client machine with vsftp installed and try to “put” a file
      [CODE]
      $ echo “test Test test” >mytest
      $ ftp IP.OF.YOUR.FOG
      Connected to IP.OF.YOUR.FOG
      220 (vsFTPd 2.2.2)
      Name (IP.OF.YOUR.FOG:iana): fog
      331 Please specify the password.
      Password:<PASSWORD OF YOUR FOG TFTP USER HERE>
      230 Login successful.
      Remote system type is UNIX.

      Using binary mode to transfer files.

      ftp> put mytest
      200 PORT command successful. Consider using PASV.
      150 Ok to send data.
      226 Transfer complete.

      7 bytes sent in 0.00 secs (159.0 kB/s)
      ftp> quit
      [/CODE]
      You should be able to see that file in your fog user’s home directory
      [CODE]
      $ ls -l /home/fog/
      total 4

      -rw-r–r–. 1 fog fog 7 Jul 15 16:03 myfile
      [/CODE]
      Does that work on your system?

      1 Reply Last reply Reply Quote 0
      • N
        NDNtech
        last edited by Jul 15, 2014, 11:11 PM

        Well, both I guess. The Kernel looks like it’s downloading okay from the looks of the /tmp directory, but tftp won’t transfer it to /var/www/fog/service/ipxe.

        [CODE]> ls -l /var/www/fog/service/ipxe
        total 33640
        -rwxrwxrwx 1 fog www-data 503 Jul 15 16:42 advanced.php
        -rwxrwxrwx 1 fog www-data 44908 Jul 15 16:42 bg.png
        -rwxrwxrwx 1 fog www-data 756 Jul 15 16:42 boot.php
        -rwxrwxrwx 1 fog www-data 6148400 Jul 15 16:42 bzImage
        -rwxrwxrwx 1 fog www-data 6157296 Jul 15 16:42 bzImage32
        -rwxrwxrwx 1 fog www-data 234697 Jul 15 16:42 grub.exe
        -rwxrwxrwx 1 fog www-data 10429892 Jul 15 16:42 init.xz
        -rwxrwxrwx 1 fog www-data 9541876 Jul 15 16:42 init_32.xz
        -rwxrwxrwx 1 fog www-data 25340 Jul 15 16:42 memdisk
        -rwxrwxrwx 1 fog www-data 1839104 Jul 15 16:42 memtest.bin[/CODE]

        1 Reply Last reply Reply Quote 0
        • I
          ianabc Testers
          last edited by Jul 15, 2014, 11:19 PM

          Could you try that ftp transfer that I did in my last post. Make sure you use the username and password from the fog settings page.

          1 Reply Last reply Reply Quote 0
          • N
            NDNtech
            last edited by Jul 15, 2014, 11:41 PM

            I wasn’t sure exactly how to do all of that stuff you listed, so I used FileZilla because I know it allowed for manual sftp transfers, I hope that’s the same thing. Here’s the output from FileZilla on a Windows machine:

            [CODE]Status: Connecting to SC-Image…
            Response: fzSftp started
            Command: open “fog@SC-Image” 22
            Command: Pass: *****
            Status: Connected to [EMAIL]SC-Image@domain.org[/EMAIL]
            Status: Starting upload of C:\Users\user\Pictures\Graphics\ISDTech Serv.png
            Command: cd “/home/fog”
            Response: New directory is: “/home/fog”
            Command: put “C:\Users\user\Pictures\Graphics\ISD Tech Serv.png” “isd.png”
            Status: local:C:\Users\ccolley\Pictures\Graphics\ISD Tech Serv.png => remote:/home/fog/jisd.png
            Status: File transfer successful, transferred 16,384 bytes in 1 second[/CODE]

            Output from FOG server:

            [CODE]fog@SC-Image:~$ ls -l /home/fog
            total 20
            -rw-rw-r-- 1 fog fog 18304 Jul 15 18:24 isd.png
            [/CODE]

            1 Reply Last reply Reply Quote 0
            • I
              ianabc Testers
              last edited by Jul 16, 2014, 12:04 AM

              Hmmm… I think that might be transferring over ssh (port 22). If you know FileZilla well you should be able to tell it to use ftp (port 23) somewhere, but if not, you should be able to run the commands above on your fog server after installing an ftp client, e.g.
              [CODE]
              $ apt-get install ftp
              $ ftp IP.OF.YOUR.FOG
              [/CODE]

              You should be prompted for your username and password, then you should try “putting” a file as above “put <FILENAME>”.

              Any (small) file in the directory where you ran the ftp command should work, I created one by echoing some text into a file called myfile before running the ftp command (echo ‘test Test test’ > myfile).

              1 Reply Last reply Reply Quote 0
              • N
                NDNtech
                last edited by Jul 16, 2014, 12:15 AM

                From Windows CMD:
                [CODE]H:>ftp 10.120.88.146
                Connected to 10.120.88.146.
                220 (vsFTPd 2.3.5)
                ftp> user
                Username fog
                331 Please specify the password.
                Password:
                230 Login successful.
                ftp> put C:/dfinstall.log /home/fog/dfinstall.log
                200 PORT command successful. Consider using PASV.
                150 Ok to send data.
                226 Transfer complete.[/CODE]

                From SSH to FOG Server
                [CODE]fog@SC-Image:~$ ls
                dfinstall.log isd.png[/CODE]

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Jul 16, 2014, 12:16 AM

                  try:
                  [code]ftp 10.120.88.146
                  user fog
                  enter pass
                  put c:/dfinstall.log /var/www/fog/service/ipxe/dfinstall.log
                  [/code]

                  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
                  • N
                    NDNtech
                    last edited by Jul 16, 2014, 12:25 AM

                    Tom:

                    It transferred correctly

                    1 Reply Last reply Reply Quote 0
                    • I
                      ianabc Testers
                      last edited by Jul 16, 2014, 12:44 AM

                      That’s basically all that portion of the fog code is doing (ajax/kernel-fetcher.php), so I’m not sure what could be going wrong. The permissions on some of the files under services/ipxe look a bit odd, could you send the output of “ls -ld /var/www/html/fog/service/ipxe”, i.e. the ipxe directory, NOT it’s contents.

                      1 Reply Last reply Reply Quote 0
                      • N
                        NDNtech
                        last edited by Jul 16, 2014, 12:48 AM

                        [CODE]root@SC-Image:/home/fog# ls -ld /var/www/fog/service/ipxe
                        drwxrwxrwx 2 www-data www-data 4096 Jul 15 19:22 /var/www/fog/service/ipxe
                        [/CODE]

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tom Elliott
                          last edited by Jul 16, 2014, 12:58 AM

                          Run this:
                          [code]chown -R fog:www-data /var/www/fog/service/ipxe[/code]

                          Please try again.

                          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
                          • N
                            NDNtech
                            last edited by Jul 16, 2014, 1:13 AM

                            Okay, I ran the command and tried to install the kernel but it’s not moving out of /tmp

                            1 Reply Last reply Reply Quote 0
                            • I
                              ianabc Testers
                              last edited by Jul 16, 2014, 3:57 AM

                              ooff…this is getting ugly! Could you try running the same commands as the fog user, i.e. log in to the fog server and try this
                              [CODE]
                              $ sudo su - fog
                              $ cd /tmp
                              $ echo “test” > testFile

                              $ ftp 10.120.88.146
                              Connected to 10.120.88.146 (10.120.88.146).
                              220 (vsFTPd 2.2.2)
                              Name (10.120.88.146:fog): fog
                              331 Please specify the password.
                              Password: ********
                              230 Login successful.
                              Remote system type is UNIX.
                              Using binary mode to transfer files.
                              ftp> put testFile /var/www/fog/service/ipxe/testFile
                              local: testFile remote: /var/www/html/fog/service/ipxe/testFile
                              227 Entering Passive Mode (10,128,128,146,125,20).
                              150 Ok to send data.
                              226 Transfer complete.
                              ftp> quit
                              221 Goodbye.

                              $ ls -l /var/www/fog/service/ipxe/testFile
                              -rw-r–r–. 1 fog fog 0 Jul 15 20:47 /var/www/fog/service/ipxe/testFile
                              [/CODE]

                              Additionally, just confirm that the [FONT=Ubuntu][COLOR=#555555]FOG_TFTP_HOST[/COLOR][/FONT] in your fog configuration is set to 10.120.88.146. Also Since that section of code relies on Javascript and ajax, can you confirm that the browser you’re using to do this doesn’t have javascript disabled.

                              1 Reply Last reply Reply Quote 0
                              • N
                                NDNtech
                                last edited by Jul 16, 2014, 2:07 PM

                                [CODE]
                                fog@SC-Image:~$ sudo su - fog
                                [sudo] password for fog:
                                fog@SC-Image:~$ cd /tmp
                                fog@SC-Image:/tmp$ echo “test” > testFile
                                fog@SC-Image:/tmp$ ftp 10.120.88.146
                                Connected to 10.120.88.146.
                                220 (vsFTPd 2.3.5)
                                Name (10.120.88.146:fog): fog
                                331 Please specify the password.
                                Password:
                                230 Login successful.
                                Remote system type is UNIX.
                                Using binary mode to transfer files.
                                ftp> put testFile /var/www/fog/service/ipxe/testFile
                                local: testFile remote: /var/www/fog/service/ipxe/testFile
                                200 PORT command successful. Consider using PASV.
                                150 Ok to send data.
                                226 Transfer complete.
                                5 bytes sent in 0.00 secs (157.5 kB/s)
                                ftp> quit
                                221 Goodbye.

                                fog@SC-Image:/tmp$ ls -l /var/www/fog/service/ipxe/testFile
                                -rw-r–r-- 1 fog fog 5 Jul 16 08:58 /var/www/fog/service/ipxe/testFile
                                [/CODE]

                                JavaScript is enabled.

                                1 Reply Last reply Reply Quote 0
                                • N
                                  NDNtech
                                  last edited by Jul 16, 2014, 2:14 PM

                                  Holy cow, I just tried this in Chrome and it went through correctly. All this for a browser issue. When you mentioned checking settings I figured I’d try Chrome. I updated both the 32 bit and 64 bit kernels without an issue when I used Chrome.

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    NDNtech
                                    last edited by Jul 16, 2014, 2:15 PM

                                    Apparently updating kernels doesn’t work in IE11, or at least it doesn’t for me.

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      NDNtech
                                      last edited by Jul 16, 2014, 2:22 PM

                                      But this doesn’t solve my long withstanding problem of why bzimage takes forever to load up on the client I’m trying to image.

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        Jaymes Driver Developer
                                        last edited by Jul 16, 2014, 2:24 PM

                                        [quote=“NDNtech, post: 33253, member: 23658”]But this doesn’t solve my long withstanding problem of why bzimage takes forever to load up on the client I’m trying to image.[/quote]

                                        This could be due to the drivers that are included in the bzImage, if you are feeling up to the task, you can always create your own bzImage that includes ONLY the drivers you need, this will increase the speed in which bzimage is loaded.

                                        WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          NDNtech
                                          last edited by Jul 16, 2014, 2:29 PM

                                          😞 I’ve tried to avoid this for as long as I can. lol Can this only be done on a Linux machine?

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          2 / 3
                                          • First post
                                            21/44
                                            Last post

                                          192

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project