Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFS options incompatibility with Git #19

Open
lakano opened this issue Jan 18, 2018 · 1 comment
Open

NFS options incompatibility with Git #19

lakano opened this issue Jan 18, 2018 · 1 comment

Comments

@lakano
Copy link

lakano commented Jan 18, 2018

Hi,

If you try to run « git add README.md » inside a network_dir, there is a permission denied error, caused in theory of a disk full or a wrong permissions.
The permissions are correctly set, owned by gonano user, the disk isn't full, and a « git init » works correctly ( folder .git created )

If you try without the network_dirs option, this works correctly. This seems to be a bug in the NFS options, surely something to tweak to prevent this.

Currently, our company can't uses nanobox to host our Git repositories.

After some researches and help from @danhunsaker we've discovered the problem come from incompatibility of NFS options with Git.
We've found this article from GitLab and this is a problem that could be solved from server/client options with NFSv4.

They recommend to use NFS v4 and the server options no_root_squash and sync, and the client options defaults,soft,rsize=1048576,wsize=1048576,noatime,nobootwait,lookupcache=positive

Could you please upgrade to NFSv4 and permit to use EVAR to customize server/clients options?

run.config:
    engine: nodejs
    extra_packages:
        - git

data.storage:
    image: nanobox/unfs:0.9

web.site:
    start: sleep 365d
    network_dirs:
        data.storage:
            - storage

Logs:

$ git add README.md 
fatal: error when closing sha1 file: Permission denied

Regards,

@notxarb
Copy link

notxarb commented May 16, 2018

Unfortunately the unfs project doesn't support nfs v4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants