Fog.32 on Ubuntu 11.10 Unable to upload image



  • Hi Guys, Any help will be much appreciated. Busy pulling my hair out.
    Had a fog32 server working on 10.04 for 2 years now, until hard drive crashed.
    Put in new hard drive and did clean install of Ubuntu lts 10.04 and then clean install of fog.32.
    No errors.
    Changed
    /etc/mysql/my.cnf
    for bind address. That is all.
    i registered one MAC address and created an upload task. The machine boots via WOL and boots into pxe and starts the task until it gets to “Connecting to NFS server” Then I get error message “RPC error - unable to connect to nfs server” and client shuts down.
    What have I missed -pretty please!!!



  • After testing that .29 worked, I upgraded to .32 and that also worked. In fact the image uploaded much faster after installing .32
    Still none the wiser why .32 wont install correctly. I have checked the settings and to me they look the same but I am no Linux guru.



  • Hmmm… I’ve never encountered this issue before, and without actually seeing it in person I’m not sure what other steps to take. I’ve installed 0.32 on multiple versions of Ubuntu and CentOS from scratch, and this one is new to me. Perhaps somebody else on the forums has some suggestions.



  • I checked iptables status. disabled and I checked ufw status, also disabled. I am still none the wiser as to why fresh install of .32 does not work on ubuntu - any flavour, but .29 does.



  • Congrats on getting it working; if you ever want to check on a linux firewall (iptables) just run [CODE]/etc/init.d/iptables status[/CODE]



  • So could not get this to work, so here is what I did as a test:

    loaded 10.04 lts on hyper-v 2008 R2. blacklisted the framebuffer. Installed the HV modules. rebuilt initramfs. reboot
    setup eth0. downloaded and installed fog .29
    setup an image, added a client(win7 on hyper-v), added a task to upload the client.

    [B]VOILA - it works.[/B] Client is busy uploading as I type.
    Once the image upload is complete I will upgrade the server to FOG .32 and see what happens!



  • [quote=“BryceZ, post: 3934, member: 2”]SSH into fogserver and try
    [CODE]mkdir /tmp/images
    mount -t nfs fogserver:/images/ /tmp/images/[/CODE]
    If you can’t mount it locally then you’ve got a problem with NFS. If you can mount it locally then it must be a networking issue, perhaps a wrong ip address or dns record for your fog server, or maybe a firewall.[/quote]
    The local mount works.
    checked the dns records, and using the same box as before so mac address is still the same.
    Checked the ISA firewall logs. There is no evidence of anything being blocked.
    How do I check if there is a firewall on the linux machine?



  • SSH into fogserver and try
    [CODE]mkdir /tmp/images
    mount -t nfs fogserver:/images/ /tmp/images/[/CODE]
    If you can’t mount it locally then you’ve got a problem with NFS. If you can mount it locally then it must be a networking issue, perhaps a wrong ip address or dns record for your fog server, or maybe a firewall.



  • [EMAIL]tim@fogserver:~$[/EMAIL] sudo service nfs-kernel-server restart

    • Stopping NFS kernel daemon [ OK ]
    • Unexporting directories for NFS kernel daemon… [ OK ]
    • Exporting directories for NFS kernel daemon… exportfs: /etc/exports [1]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “:/images".
      Assuming default behaviour (‘no_subtree_check’).
      NOTE: this default has changed since nfs-utils version 1.0.x
      exportfs: /etc/exports [2]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export "
      :/images/dev”.
      Assuming default behaviour (‘no_subtree_check’).
      NOTE: this default has changed since nfs-utils version 1.0.x
      exportfs: scandir /etc/exports.d: No such file or directory
      [ OK ]
    • Starting NFS kernel daemon [ OK ]
      [EMAIL]tim@fogserver:~$[/EMAIL] sudo exportfs -av
      exportfs: /etc/exports [1]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “:/images".
      Assuming default behaviour (‘no_subtree_check’).
      NOTE: this default has changed since nfs-utils version 1.0.x
      exportfs: /etc/exports [2]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export "
      :/images/dev”.
      Assuming default behaviour (‘no_subtree_check’).
      NOTE: this default has changed since nfs-utils version 1.0.x
      exportfs: scandir /etc/exports.d: No such file or directory
      exporting *:/images/dev
      exporting *:/images
      [EMAIL]tim@fogserver:~$[/EMAIL] cat /etc/exports
      /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
      /images/dev *(rw,sync,no_wdelay,no_root_squash,insecure)
      [EMAIL]tim@fogserver:~$[/EMAIL]
      login as: tim
      [EMAIL]tim@192.168.103.246’s[/EMAIL] password:
      Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-20-generic-pae i686)
    • Documentation: [url]https://help.ubuntu.com/[/url]
      New release ‘12.04 LTS’ available.
      Run ‘do-release-upgrade’ to upgrade to it.
      Last login: Wed Jun 6 14:45:22 2012 from 192.168.103.178
      [EMAIL]tim@fogserver:~$[/EMAIL] sudo service nfs-kernel-server restart
      [sudo] password for tim:
    • Stopping NFS kernel daemon [ OK ]
    • Unexporting directories for NFS kernel daemon… [ OK ]
    • Exporting directories for NFS kernel daemon… exportfs: /etc/exports [1]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “:/images".
      Assuming default behaviour (‘no_subtree_check’).
      NOTE: this default has changed since nfs-utils version 1.0.x
      exportfs: /etc/exports [2]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export "
      :/images/dev”.
      Assuming default behaviour (‘no_subtree_check’).
      NOTE: this default has changed since nfs-utils version 1.0.x
      exportfs: scandir /etc/exports.d: No such file or directory
      [ OK ]
    • Starting NFS kernel daemon [ OK ]
      [EMAIL]tim@fogserver:~$[/EMAIL] sudo exportfs -av
      [sudo] password for tim:
      exportfs: /etc/exports [1]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “:/images".
      Assuming default behaviour (‘no_subtree_check’).
      NOTE: this default has changed since nfs-utils version 1.0.x
      exportfs: /etc/exports [2]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export "
      :/images/dev”.
      Assuming default behaviour (‘no_subtree_check’).
      NOTE: this default has changed since nfs-utils version 1.0.x
      exportfs: scandir /etc/exports.d: No such file or directory
      exporting *:/images/dev
      exporting *:/images
      [EMAIL]tim@fogserver:~$[/EMAIL] cat /etc/exports
      /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
      /images/dev *(rw,sync,no_wdelay,no_root_squash,insecure)
      [EMAIL]tim@fogserver:~$[/EMAIL] cat /etc/exports
      /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
      /images/dev *(rw,sync,no_wdelay,no_root_squash,insecure)
      [EMAIL]tim@fogserver:~$[/EMAIL] /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
      -bash: /images: Is a directory
      [EMAIL]tim@fogserver:~$[/EMAIL] /images/dev *(rw,sync,no_wdelay,no_root_squash,insecure)
      -bash: /images/dev: Is a directory
      [EMAIL]tim@fogserver:~$[/EMAIL] ^C
      [EMAIL]tim@fogserver:~$[/EMAIL] cls
      No command ‘cls’ found, but there are 18 similar ones
      cls: command not found
      [EMAIL]tim@fogserver:~$[/EMAIL] clear
      [EMAIL]tim@fogserver:~$[/EMAIL] cat /etc/exports
      /images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
      /images/dev *(rw,sync,no_wdelay,no_root_squash,insecure)
      [EMAIL]tim@fogserver:~$[/EMAIL] ls -l /images
      total 4
      drwxrwxrwx 2 root root 4096 2012-06-06 15:51 dev
      [EMAIL]tim@fogserver:~$[/EMAIL] ls -a /images
      . … dev .mntcheck
      [EMAIL]tim@fogserver:~$[/EMAIL] sudo chown -R fog:root /images
      [EMAIL]tim@fogserver:~$[/EMAIL]

    Still no joy! Any help appreciated, please…



  • try [CODE]sudo service nfs-kernel-server service[/CODE] to make sure that it’s actually running, and then [CODE]cat /etc/exports[/CODE] to get the config file. I’d also check the permissions on /images/ and /images/dev/ to make sure they’re correct.



  • [quote=“BryceZ, post: 3913, member: 2”]Try running [CODE]sudo service nfs-kernel-server restart[/CODE][/quote]
    Thanks for the reply.
    Tried it. No difference. client still not connecting to nfs server.
    Tried to connect to server using nfsaxe map drive tool. The tool sees the fog server shares but can also not connect to them.



  • Try running [CODE]sudo service nfs-kernel-server restart[/CODE]


Log in to reply
 

483
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.