SUSE Support

Here When You Need Us

tftp claims: "no such file or directory"

This document (7023207) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 11 Service Pack 4 (SLES 11 SP4)
SUSE Linux Enterprise Server 11 Service Pack 3 (SLES 11 SP3)

Situation

A TFTP Server is configured to serve pxelinux.0 for server installations and started, but when accessing a file "No such file or directory" is being reported even if the link to the file is not broken or the file present.

Filename: pxelinux.0
tftp://172.17.0.13/pxelinux.0... No such file or directory (http://ipxe.org/2d12603b)
mytftpserver:/srv/tftpboot # ls -l pxelinux.0
lrwxrwxrwx 1 root root 29 25. Jul 10:01 pxelinux.0 -> /srv/tftpboot/test/pxelinux.0
smt:/srv/tftpboot #

Resolution

Linking the file using a relative path solves the issue:

mytftpserver:/srv/tftpboot # ln -s test/pxelinux.0 pxelinux.0
mytftpserver:/srv/tftpboot # ls -l pxelinux.0
lrwxrwxrwx 1 root root 15 25. Jul 10:11 pxelinux.0 -> test/pxelinux.0
mytftpserver:/srv/tftpboot #

Cause

The TFTP runs per default in a chrooted environment, setting the entry directory to /srv/tftpboot as specified in
/etc/xinet.d/tftp:

service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        flags                   = IPv6 IPv4
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -u tftp -s /srv/tftpboot
        disable                 = no
}

Using absolute path names in links will end up in a "No such file or directoy" message as the absolute name cannot be found.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7023207
  • Creation Date: 25-Jul-2018
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.