after hard reboot, of my Google VM:
git pull error:
fatal: protocol error: unexpected 'Error running git: fork/exec /usr/bin/git-upload-pack: stale NFS file handle'
git push error:
fatal: protocol error: unexpected 'Error running git: fork/exec /usr/bin/git-receive-pack: stale NFS file handle'
What i can do to fix this?
You will need to unmount the NFS file system and remount it. A hard reboot might also require a file system check fsck of the VM's file systems.
Note: the umount will probably report an error/warning as the system thinks the NFS file system is mounted when it is not.
Related
I am trying to send logs stored in Amazon Elastic File System (EFS) mounted volume to Logstash using Filebeat running in an EC2 instance. But getting the error "stale NFS file handle".
ERROR log/log.go:170 Unexpected error reading from /var/efs/logs/my-app.log; error: stat /var/efs/logs/my-app.log: stale NFS file handle.
ERROR log/harvester.go:330 Read line error: stat /var/efs/logs/my-app.log: stale NFS file handle; File: /var/efs/logs/my-app.log
I saw this section in Filebeat common problems page. Please inform if there is any workaround for the issue.
Im trying to do mount to a nfs server as follow - mount -t nfs 127.0.0.1 /mnt/mountPointToTest (I know it is local host, it is just for testing) and I got this error message:
mount.nfs: remote share not in 'host:dir' format .
Does anyone know how I can fix this error ?
Thank you.
--
edit: after changing to mount -t nfs 127.0.0.1:/var/share /mnt/mountPointToTest
got error :
mount.nfs: No such device.
my /etc/exports looks like:
You are missing the exported remote share. Let's say you have exported /var/share as a share, then your mount command would be
mount -t nfs 127.0.0.1:/var/share /mnt/mountPointToTest
I am trying to do an NFS mount using CHEF. I have mounted it successfully. Please find the below code.
# Execute mount
node['chef_book']['mount_path'].each do |path_name|
mount "/#{path_name['local']}" do
device "10.34.56.1:/data"
fstype 'nfs'
options 'rw'
retries 3
retry_delay 30
action %i[mount enable]
end
end
i am able to successfully mount and make an entry in fstab file. But, after mounting the user:group for the mount linked is changing to root:root , which i was not expecting.
i want to use myuser:mygroup as owner:group. I tried changing the same using chown command but am getting permission denied issue
request some guidance
As mentioned in the comment, this is not something Chef controls per se. After the mount, the folder will be owned by whatever the NFS server says. You can try to chmod the folder after mounting but that's up to your NFS configuration and whatnot as to if it will be allowed.
I want to mount a folder which is on some other machine to my linux server. To do that i am using the following command
mount -t nfs 192.xxx.x.xx:/opt/oracle /
Which is executing with the following error
mount.nfs: access denied by server while mounting 192.xxx.x.xx:/opt/oracle
Do anyone knows what's going on ??? I am new to linux.
Depending on what distro you're using, you simply edit the /etc/exports file on the remote machine to export the directories you want, then start your NFS daemon.
Then on the local PC, you mount it using the following command:
mount -t nfs {remote_pc_address}:/remote/dir /some/local/dir
Please try with your home directory as per my knowledge you can't dump anything directly on root like that.
For more reference, find full configuration steps here.
I'm a first-time-user of Linux, using Ubuntu 14.04
I installed gitolite on /git (which is home directory for user 'git-repo') and there is a mounted directory /git/repositories (I tried to mount both network drive(CIFS), and hard disk drive(FAT32). Of course all the permissions on mounted /git/repositories for user 'git-repo' is granted)
However, when I try to setup, (with public key of admin user 'gitolite') it fails with an fatal error:
$ ./gitolite/src/gitolite setup -pk ./.ssh/gitolite.pub
Initialized empty Git repository in /git/repositories/gitolite-admin.git/
FATAL: could not symlink /git/.gitolite/hooks/common/update to gitolite-admin.git/hooks
at /git/gitolite/src/lib/Gitolite/Conf/Store.pm line 372.
I tried without mounting drive, It successed.
What is that FATAL error talking about, what is the problem, what is the difference between mounted directory and normal directory???