chrisk2305 Tux's lil' helper
Joined: 05 Sep 2007 Posts: 110
|
Posted: Mon Jul 27, 2015 2:39 pm Post subject: TFTP Server stopped working |
|
|
Hi Guys,
hope you can help. I had a TFTP Server running for the last six month without an issue. But after I did a world update, TFTP stopped working. I am using systemd and tftp.service and tftp.socket unit files as recommended everywhere.
Here are the two files:
Code: |
[Unit]
Description=hpa's original TFTP daemon
[Service]
EnvironmentFile=/etc/conf.d/in.tftpd
ExecStart=/usr/sbin/in.tftpd -s /mnt/VM/openelec/tftpboot
#ExecStart=/usr/sbin/in.tftpd ${INTFTPD_OPTS}
StandardInput=socket
StandardOutput=inherit
StandardError=journal
|
Code: |
[Socket]
ListenDatagram=69
[Install]
WantedBy=sockets.target
|
When I start the socket manually it starts, but the ftpd.service errors:
Code: |
Jul 27 16:30:29 fileserver systemd[1]: Starting Tftp Server...
-- Subject: Unit tftp.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tftp.service has begun starting up.
Jul 27 16:30:29 fileserver in.tftpd[1363]: /tftproot: No such file or directory
Jul 27 16:30:29 fileserver systemd[1]: tftp.service: Main process exited, code=exited, status=66/n/a
Jul 27 16:30:29 fileserver polkitd[966]: Unregistered Authentication Agent for unix-process:1357:43705 (system bus name :1.13, object path /org/f
Jul 27 16:30:29 fileserver systemd[1]: tftp.service: Unit entered failed state.
Jul 27 16:30:29 fileserver systemd[1]: tftp.service: Failed with result 'exit-code'.
|
Of course I noticed the Error /tftproot: no such file or directory. But I am actually defining a different tftproot in the tftp.service and in /etc/conf.d/in.tftpd:
Code: |
# /etc/init.d/in.tftpd
# Path to server files from
# Depending on your application you may have to change this.
# This is commented out to force you to look at the file!
INTFTPD_PATH="/mnt/VM/openelec/tftpboot/"
# For more options, see in.tftpd(8)
# -R 4096:32767 solves problems with ARC firmware, and obsoletes
# the /proc/sys/net/ipv4/ip_local_port_range hack.
# -s causes $INTFTPD_PATH to be the root of the TFTP tree.
# -l is passed by the init script in addition to these options.
INTFTPD_OPTS="-R 4096:32767 -s ${INTFTPD_PATH}"
|
What I am missing here? Thanks in advance! I am also not sure if it is a kernel issue, because I got it going again with 4.1.2 and with 4.1.3 it was dead again. Tried booting 4.1.2 again, but then tftp also failed.
Cheers,
Christian |
|