Skip to content

Can't change the permission of a symbolic link #22

Description

@fflorent

Steps to reproduce

  1. Clone the grist-core repository: git clone git@github.com:gristlabs/grist-core.git
  2. go to the cloned repository, create an VM through agent-vm and start a shell: cd grist-core; agent-vm shell
  3. inside the VM, run the following command: yarn install

Actual behavior

I get this error:

error Error: EPERM: operation not permitted, chmod '/home/florentpro/projects/grist-core/node_modules/@babel/core/node_modules/.bin/parser'

Expected behavior

The command should succeed (and the chmod work)

Analysis

It appears that the mountpoint type is fuse.sshfs:

vm:grist-core% mount | grep grist-core
:/home/florentpro/projects/grist-core on /home/florentpro/projects/grist-core type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=1001,group_id=1001,allow_other)

Which causes the described issue, i.e. some relative symlinks don't work.

Suggested fix

  1. Replace the type of mountpoint from sshfs to virtio
  2. Suggest the installation of virtiofs (on Linux: virtiofsd which is available on Debian)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions