PermissionError while runing bitbake in ubuntu 24.04

Asked by mohammed

mohammed@mohammed:/mnt/data/openembedded_core/build$ bitbake core-image-minimal
WARNING: Host distribution "ubuntu-24.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##################################################################################################################################################| Time: 0:00:55
Parsing of 921 .bb files complete (0 cached, 921 parsed). 1879 targets, 46 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.9.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-24.04"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "5.0+snapshot-4758e1c43aa4327d452a9470d59a01c04f6cb736"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "master:4758e1c43aa4327d452a9470d59a01c04f6cb736"

NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/4.4/x86_64-nativesdk-libc-4.4.tar.xz;sha256sum=d81c54284be2bb886931fc87281d58177a2cd381cf99d1981f8923039a72a302 (will check PREMIRRORS first)
Sstate summary: Wanted 1867 Local 0 Mirrors 0 Missed 1867 Current 0 (0% match, 0% complete)############################################################### | ETA: 0:00:00
Initialising tasks: 100% |###############################################################################################################################################| Time: 0:00:04
NOTE: Executing Tasks
ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mohammed/Documents/poky/bitbake/bin/bitbake-worker", line 278, in child
    bb.utils.disable_network(uid, gid)
  File "/home/mohammed/Documents/poky/bitbake/lib/bb/utils.py", line 1696, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

ERROR: Task (/home/mohammed/Documents/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_unpack) failed with exit code '1'
ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mohammed/Documents/poky/bitbake/bin/bitbake-worker", line 278, in child
    bb.utils.disable_network(uid, gid)
  File "/home/mohammed/Documents/poky/bitbake/lib/bb/utils.py", line 1696, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

ERROR: Task (/home/mohammed/Documents/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_prepare_recipe_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 18 tasks of which 0 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /home/mohammed/Documents/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_unpack
  /home/mohammed/Documents/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_prepare_recipe_sysroot
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mohammed (mohms) said (last edit ):
#1

How to solve this problem?"happened while trying to build bitbake "
ERROR: Task (/home/mohammed/Documents/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_unpack) failed with exit code '1'
ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mohammed/Documents/poky/bitbake/bin/bitbake-worker", line 278, in child
    bb.utils.disable_network(uid, gid)
  File "/home/mohammed/Documents/poky/bitbake/lib/bb/utils.py", line 1696, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

ERROR: Task (/home/mohammed/Documents/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_prepare_recipe_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 18 tasks of which 0 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /home/mohammed/Documents/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_unpack
  /home/mohammed/Documents/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_prepare_recipe_sysroot
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Is this a known bug? Ubuntu 24.04 is still very new

Revision history for this message
SRD Status (srd-status) said :
#3

If you encounter a `PermissionError` while running Bitbake on Ubuntu 24.04, it may be due to insufficient permissions for accessing certain files or directories. The SRD Status Checker, for instance, requires appropriate permissions to execute and access the necessary resources. To resolve this issue, ensure that you have the necessary permissions by running the following command with elevated privileges:

```bash
sudo chmod -R 755 /path/to/your/bitbake/project
```

Additionally, verify that you are part of the required user groups that have access to the directories Bitbake needs to write to. Running the SRD Status Checker and similar tools often necessitates administrative privileges, so using `sudo` when executing Bitbake commands might help. Always ensure that your user has the correct permissions to avoid `PermissionError` and allow seamless operation of your build processes. https://www.srdstatuschecker.co.za/sassa-status-check/

Can you help with this problem?

Provide an answer of your own, or ask mohammed for more information if necessary.

To post a message you must log in.