Permission denied with NFS shared download and sstate-cache

Bel Hadj Salem Talel <bhstalel@...>

Hi All,

I have a server that's holding downloads and sstate-cache.

I have a docker-compose file with nfs server that exposes the dowloads/sstate-cache volume.

When I mount that in my PC and set the path into DL_DIR and SSTATE_DIR, I get this error :

ERROR: grub-efi-native-2.04-r0 do_configure: Build of do_configure failed
ERROR: grub-efi-native-2.04-r0 do_configure: Traceback (most recent call last):
  File "/home/talel/Desktop/YoctoWork/sources/poky/bitbake/lib/bb/", line 644, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File "/home/talel/Desktop/YoctoWork/sources/poky/bitbake/lib/bb/", line 618, in _exec_task, fn, logfn, localdata), localdata)
  File "/home/talel/Desktop/YoctoWork/sources/poky/bitbake/lib/bb/", line 215, in fire
    fire_class_handlers(event, d)
  File "/home/talel/Desktop/YoctoWork/sources/poky/bitbake/lib/bb/", line 122, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File "/home/talel/Desktop/YoctoWork/sources/poky/bitbake/lib/bb/", line 94, in execute_handler
    ret = handler(event)
  File "/home/talel/Desktop/YoctoWork/sources/poky/meta/classes/sstate.bbclass", line 1094, in sstate_eventhandler
    bb.siggen.dump_this_task(sstatepkg + '_' + taskname + ".tgz" ".siginfo", d)
  File "/home/talel/Desktop/YoctoWork/sources/poky/bitbake/lib/bb/", line 648, in dump_this_task
    bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile:" + referencestamp)
  File "/home/talel/Desktop/YoctoWork/sources/poky/meta/lib/oe/", line 202, in dump_sigtask
    super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigtask(fn, task, stampbase, runtime)
  File "/home/talel/Desktop/YoctoWork/sources/poky/bitbake/lib/bb/", line 362, in dump_sigtask
    fd, tmpfile = tempfile.mkstemp(dir=os.path.dirname(sigfile), prefix="sigtask.")
  File "/usr/lib/python3.8/", line 470, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags, output_type)
  File "/usr/lib/python3.8/", line 389, in _mkstemp_inner
    fd =, flags, 0o600)
PermissionError: [Errno 13] Permission denied: '/home/talel/Desktop/YoctoShare/tethys-cache/ubuntu-20.04/dd/sigtask.dgjx7ngq'

ERROR: Task (virtual:native:/home/talel/Desktop/YoctoWork/sources/poky/meta/recipes-bsp/grub/ failed with exit code '1'

I can modify the mounted folder by creating a directory or a file, but it fails with yocto.

How can I solve the issue?


Join { to automatically receive all group messages.