TFTP Host Error: Access violation

Hi guys,

I am pretty new in this forum.
I've been using MACBOOK and MAC OS X since middle 2009.
I am using the host tftp server to upload files into my embedded boards.
This time i upgraded do Snow Leopard and tftp does not work anymore.
I always have the following message: Host Error: Access violation.

I tried many thing but i can not solve this puzzle.
The following is what i tried:

1) chmod 777 all the folder and files;
2) Allow all users to conect the TFTP folder (in System Preferences);
3) Firewall is on now, but even with firewall off I have the same problem;
3) I tried to check the file tftp.plist (System/Library/LaunchDaemons) and i noticed two major differences: a) It was written DISABLED and b) the flag was for secure -s. Well i root and changed the file with ENABLED and -i insecure, but nothing changed. The strange thing also is that after i star the computer the back to its normal like the changes i made weren't saved, but i was root and they saved.

I am also using the TFTP Server 3.3.1 from Mr Fabrizio Larosa. Permissions and other stuff are ok when using this software.

Am i forgetting something special?
Can somebody help me? I do not know what to do anymore.

Thanks volks.

MacBook Pro 17", Mac OS X (10.6.2)

Posted on Jan 21, 2010 2:17 PM

Reply
7 replies

Jan 21, 2010 3:50 PM in response to N@ndO

There are some inconsistencies in your post...

2) Allow all users to conect the TFTP folder (in System Preferences);


There is no TFTP option in System Preferences, so I'm not sure what you're seeing... FTP, maybe?

Well i root and changed the file with ENABLED and -i insecure


There is no enabled tag in launchd. Processes are inherently enabled unless they have the <disabled> tag. The right way to enable a process is to remove the disabled tag (and the corresponding <true/> tag, or use launchctl.
I don't know if the presence of the illegal enabled key is having any effect or not.

I am also using the TFTP Server 3.3.1 from Mr Fabrizio Larosa


What's wrong with the built-in TFTP server? That's the one that launchd is configured to start/stop. There's no guarantee that tftp.plist will work with another TFTP server, so the changes you make there might not be relevant anyway.

Jan 21, 2010 4:46 PM in response to N@ndO

Yes i know that there is no TFTP in System Preferences:
What i meant is that I configured the sharing permissions in System Preferences for the TFTP folder i am using. For example, my folder is: /Volumes/Ncb002 D/00_TFTPbootFiles. Fro that i used the System Preferences and added the folder.

Ok i understand that, so how can assure i can have my TFTPserver Enabled using launchctl and how can i change it from secure to insecure? More than that i am loosing my hair, i need the TFTP working. Without that i can not transfer files to my embedded board.

Last version was working. I was using Leopard and everything was ok, the TFTP was working. After i changed to Snow Leopard i can not do anything without a Host access error.

So i compared the 2 tftp.plist files, Leopard working and Snow Leopard not working. As i wrote the major differences are: ENABLED tag in first line and -s tag (secure mode) in tftp.plist for Snow Leopard. In Leopard the tftp.plist has no ENABLE tag and it is by default -i (insecure).

I really do not know if that is the reason, i just do not know what to do to get this to work.

Jan 21, 2010 4:49 PM in response to N@ndO

Sorry correcting the paragraph:

So i compared the 2 tftp.plist files, Leopard working and Snow Leopard not working. As i wrote the major differences are: DISABLED tag in first line and -s tag (secure mode) in tftp.plist for Snow Leopard. In Leopard the tftp.plist has no DISABLED tag and it is by default -i (insecure).

Please use this paragraph.

Jan 21, 2010 6:05 PM in response to N@ndO

What i meant is that I configured the sharing permissions in System Preferences for the TFTP folder i am using


That has no relevance. The sharing preferences only relate to AFP, NFS, SMB and FTP sharing, and have no effect on TFTP.

TFTP has no concept of authentication - if the file is there, anyone can read it. As such ownership of the file is important - you need to make sure the directory and all its files are world-readable (and world-writable if you want clients to save to the TFTP server).

I would suspect this is the root of your problem, although it isn't yet clear if tftpd is actually running or not.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

TFTP Host Error: Access violation

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.