Error code 2: Access violation

Bug #901273 reported by E.Guerra
54
This bug affects 11 people
Affects Status Importance Assigned to Milestone
netkit-tftp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

elder@elder-PC:~$ cat /etc/issue
Ubuntu 11.10 \n \l

elder@elder-PC:~$ sudo apt-get install tftp tftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  tftp tftpd
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/33.0 kB of archives.
After this operation, 168 kB of additional disk space will be used.
Selecting previously deselected package tftp.
(Reading database ... 178833 files and directories currently installed.)
Unpacking tftp (from .../tftp_0.17-18ubuntu2_amd64.deb) ...
Selecting previously deselected package tftpd.
Unpacking tftpd (from .../tftpd_0.17-18ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Setting up tftp (0.17-18ubuntu2) ...
Setting up tftpd (0.17-18ubuntu2) ...
Note: xinetd currently is not fully supported by update-inetd.
      Please consult /usr/share/doc/xinetd/README.Debian and itox(8).
elder@elder-PC:~$ sudo joe /etc/xinetd.d/tftp

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
}

elder@elder-PC:~$ sudo mkdir /tftpboot
elder@elder-PC:~$ sudo chmod -R 777 /tftpboot
elder@elder-PC:~$ sudo chown -R nobody /tftpboot
elder@elder-PC:~$ sudo service xinetd reload
elder@elder-PC:~$ touch original
elder@elder-PC:~$ tftp localhost
tftp> put original
tftp> get original
Error code 2: Access violation
tftp> quit
elder@elder-PC:~$ less /var/log/syslog

Dec 6 16:02:09 elder-PC xinetd[13864]: Started working: 0 available services
Dec 6 16:06:29 elder-PC xinetd[13864]: Starting reconfiguration
Dec 6 16:06:29 elder-PC xinetd[13864]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=14]
Dec 6 16:06:29 elder-PC xinetd[13864]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28]
Dec 6 16:06:29 elder-PC xinetd[13864]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26]
Dec 6 16:06:29 elder-PC xinetd[13864]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25]
Dec 6 16:06:29 elder-PC xinetd[13864]: Reading included configuration file: /etc/xinetd.d/tftp [file=/etc/xinetd.d/tftp] [line=26]
Dec 6 16:06:29 elder-PC xinetd[13864]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=11]
Dec 6 16:06:29 elder-PC xinetd[13864]: removing chargen
Dec 6 16:06:29 elder-PC xinetd[13864]: removing chargen
Dec 6 16:06:29 elder-PC xinetd[13864]: removing daytime
Dec 6 16:06:29 elder-PC xinetd[13864]: removing daytime
Dec 6 16:06:29 elder-PC xinetd[13864]: removing discard
Dec 6 16:06:29 elder-PC xinetd[13864]: removing discard
Dec 6 16:06:29 elder-PC xinetd[13864]: removing echo
Dec 6 16:06:29 elder-PC xinetd[13864]: removing echo
Dec 6 16:06:29 elder-PC xinetd[13864]: removing time
Dec 6 16:06:29 elder-PC xinetd[13864]: removing time
Dec 6 16:06:29 elder-PC xinetd[13864]: Swapping defaults
Dec 6 16:06:29 elder-PC xinetd[13864]: Reconfigured: new=1 old=0 dropped=0 (services)
Dec 6 16:08:16 elder-PC tftpd[13920]: tftpd: trying to get file: original
Dec 6 16:08:16 elder-PC tftpd[13920]: tftpd: serving file from /tftpboot
Dec 6 16:08:20 elder-PC tftpd[13922]: tftpd: trying to get file: original
Dec 6 16:08:20 elder-PC tftpd[13922]: tftpd: serving file from /tftpboot

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/901273/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
E.Guerra (elderguerra)
affects: ubuntu → netkit-tftp (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netkit-tftp (Ubuntu):
status: New → Confirmed
Revision history for this message
ehson Hussian (ehson-husain) wrote :

any progress on this?

Revision history for this message
Bart (bart-axelabs) wrote :

This is affecting me on Ubuntu 12.04.3 LTS. My /etc/xinet.d/tftp is http://snipt.org/Bvjb5 and tftpd is version 0.17-18ubuntu2:

$ echo test>test; tftp localhost
tftp> put test
Error code 2: Access violation

$ ls -ld /tftpboot/
drwxrwxrwx 2 nobody nogroup 4096 Dec 6 13:22 /tftpboot/

The work around seems to be creating a blank file first:

$ sudo -u nobody sh <<< "cd /tftpboot; touch test; chmod 777 test"
$ tftp localhost
tftp> put test
Sent 6 bytes in 0.0 seconds

Revision history for this message
Bart (bart-axelabs) wrote :

Here's an strace of a failed session if it helps anyone: http://snipt.org/Bwaa3

Revision history for this message
Julian Alarcon (julian-alarcon) wrote :

Hi

I'm on Ubuntu 16.04, this bug is still there.

Also, the workaround worked, created an empty file and the upload from a Cisco WLC worked.

Revision history for this message
Dinesh (kalidassan-dinesh) wrote :

The bug still exists and the workaround is time consuming when taking backup of images and configuration in the large scale networks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.