Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TFTP Server stopped working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
chrisk2305
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 110

PostPosted: Mon Jul 27, 2015 2:39 pm    Post subject: TFTP Server stopped working Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum