I tried to change the tcp timestamps in Ec2 instance (which is Ubuntu 12.04). I opened up the editor and changed the value 1
from 0
. And when I tried to save the file I get this error:
/proc/sys/net/ipv4/tcp_timestamps" E667: Fsync failed
I'm very new to Ubuntu. Can anyone help me in this out?
Your editor is probably doing funny things to that file (files in /proc are not actual files, they're an interface to lower-levels of the operating system). While the change is probably working okay, the usual way of updating things in proc is directly with a shell command, like:
If you want this setting to be applied every time you boot, create a file called
/etc/sysctl.d/tcp-timestamps.conf
, containing the following:Sometime back we were getting exact same error. After wasting several minutes in investigation found there was no space left on the device. You can check if it is the case for you. Try freeing up some storage to quickly fix the issue.
Note: This could not be the best technical description of the problem but it might help in quickly fixing the issue. The verified answer explain this in more detail. My answer was just to share how I fixed this issue.
I see this was correctly answered a long time ago, but there is simpler command:
Also you can do the same with other settings like:
As you can see, you can modify any file in /proc/sys/ by specifying the rest of its location, while changing delimiter from "/" to "."
Example: "/proc/sys/net/ipv4/tcp_timestamps" is specified as "net.ipv4.tcp_timestamps"
Fsync failed WARNING: Original file may be lost or damaged don't quit the editor until the file is successfully written!
Could be a space issue as clearing a couple of files worked for me