Jump to content


Photo

enigma-info error


  • Please log in to reply
30 replies to this topic

#1 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 11 August 2024 - 11:38

Hi,

 

I'm getting the below error when building the development feed for a Dreambox dm8000.

 

My build environment is Debian 12.

 

My last build was about 2 months ago without any error.

 

I have tried the suggestions in the error text, but still get the same.

 

Any suggestions?

 

ERROR: enigma-info-homebuild-r0 do_install: ExecutionError('/media/dream/Media1/OpenPLi-develop/build/tmp/work/dm8000-oe-linux/enigma-info/homebuild-r0/temp/run.do_install.2759', 128, None, None)

ERROR: Logfile of failure stored in: /media/dream/Media1/OpenPLi-develop/build/tmp/work/dm8000-oe-linux/enigma-info/homebuild-r0/temp/log.do_install.2759
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/media/dream/Media1/OpenPLi-develop/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['pseudo-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| /media/dream/Media1/OpenPLi-develop/build/tmp/work/dm8000-oe-linux/enigma-info/homebuild-r0/temp/run.do_install.2759: 160: [[: not found
| fatal: detected dubious ownership in repository at '/media/dream/Media1/OpenPLi-develop'
| To add an exception for this directory, call:
|
|       git config --global --add safe.directory /media/dream/Media1/OpenPLi-develop
| fatal: detected dubious ownership in repository at '/media/dream/Media1/OpenPLi-develop/openembedded-core'
| To add an exception for this directory, call:
|
|       git config --global --add safe.directory /media/dream/Media1/OpenPLi-develop/openembedded-core
| fatal: detected dubious ownership in repository at '/media/dream/Media1/OpenPLi-develop'
| To add an exception for this directory, call:
|
|       git config --global --add safe.directory /media/dream/Media1/OpenPLi-develop
| WARNING: exit code 128 from a shell command.
| ERROR: ExecutionError('/media/dream/Media1/OpenPLi-develop/build/tmp/work/dm8000-oe-linux/enigma-info/homebuild-r0/temp/run.do_install.2759', 128, None, None)
ERROR: Task (/media/dream/Media1/OpenPLi-develop/meta-openpli/recipes-openpli/enigma2/enigma-info.bb:do_install) failed with exit code '1'

Edited by TheCount, 11 August 2024 - 11:43.


Re: enigma-info error #2 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 13 August 2024 - 18:29

I think it is something to do with these lines of code in the enigma-info.bb : -

 

"# OE version info

OE_NAME=`cd ${OPENPLI_BASE} && git submodule | grep "meta-openembedded" | cut -d '(' -f 2 | cut -d ')' -f 1 | cut -d '/' -f 3`
OE_VERSION=`cd "${OPENPLI_BASE}/openembedded-core" && git describe --match=yocto* | cut -d '-' -f 2`
 
# OE revision info
OE_REVISION=`cd ${OPENPLI_BASE} && git rev-list --count HEAD`
OE_HASH=`cd ${OPENPLI_BASE} && git rev-parse --short HEAD`
 

"

 

Not sure though. :-(



Re: enigma-info error #3 WanWizard

  • PLi® Core member
  • 69,809 posts

+1,780
Excellent

Posted 13 August 2024 - 19:22

Eh, the error is very clear:

 

| fatal: detected dubious ownership in repository at '/media/dream/Media1/OpenPLi-develop'
| fatal: detected dubious ownership in repository at '/media/dream/Media1/OpenPLi-develop/openembedded-core'
| fatal: detected dubious ownership in repository at '/media/dream/Media1/OpenPLi-develop'

 

this is an error message from git. It is required that you don't use "root" to build, and that ALL files have the same ownership as the user you use to build.
 

The error isn't caused, but triggered by enigma-info. But the root cause is the incorrect ownership of files in your repo directory.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: enigma-info error #4 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 13 August 2024 - 20:23

Hi,

 

The repo is owned by user dream and all execution is done by that user.

 

drwxrwxr-x 33 dream dream  4096 Aug 10 21:09 .
drwxrwxr-x 14 dream dream  4096 Aug  3  2023 ..
drwxr-xr-x  8 dream dream  4096 Aug 10 21:05 bitbake
drwxr-xr-x  7 dream dream  4096 Aug 13 15:41 build
drwxr-xr-x  9 dream dream  4096 Aug 13 10:25 .git
-rw-r--r--  1 dream dream   144 Aug 11 10:22 .gitignore
-rw-r--r--  1 dream dream  2742 Aug 10 20:58 .gitmodules
-rw-r--r-- 10 dream dream 18011 Aug 10 20:58 LICENSE
-rw-r--r--  1 dream dream  7216 Aug 10 20:58 Makefile
drwxr-xr-x  5 dream dream  4096 Aug 10 21:05 meta-abcom
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-amiko
drwxr-xr-x  5 dream dream  4096 Aug 10 21:05 meta-axas
drwxr-xr-x  6 dream dream  4096 Aug 10 21:05 meta-dream
drwxr-xr-x  7 dream dream  4096 Aug 10 21:05 meta-edision
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-formuler
drwxr-xr-x  5 dream dream  4096 Aug 10 21:05 meta-gfutures
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-gi
drwxr-xr-x  5 dream dream  4096 Aug 10 21:05 meta-gigablue
drwxr-xr-x  4 dream dream  4096 Aug 10 20:58 meta-local
drwxr-xr-x  5 dream dream  4096 Aug 10 21:05 meta-maxytec
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-miraclebox
drwxr-xr-x  9 dream dream  4096 Aug 10 21:05 meta-octagon
drwxr-xr-x 13 dream dream  4096 Aug 10 21:05 meta-openembedded
drwxr-xr-x 23 dream dream  4096 Aug 10 20:58 meta-openpli
drwxr-xr-x 12 dream dream  4096 Aug 10 21:05 meta-python2
drwxr-xr-x 10 dream dream  4096 Aug 10 21:05 meta-qt5
drwxr-xr-x 10 dream dream  4096 Aug 10 21:05 meta-qviart
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-sab
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-spycat
drwxr-xr-x  9 dream dream  4096 Aug 10 21:05 meta-uclan
drwxr-xr-x 10 dream dream  4096 Aug 10 21:05 meta-vuplus
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-xp
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-xpeedc
drwxr-xr-x  5 dream dream  4096 Aug 10 21:05 meta-xsarius
drwxr-xr-x  4 dream dream  4096 Aug 10 21:05 meta-xtrend
drwxr-xr-x  6 dream dream  4096 Aug 10 21:05 meta-zgemma
drwxr-xr-x  7 dream dream  4096 Aug 10 21:05 openembedded-core
-rw-r--r--  1 dream dream    91 Aug 10 20:58 README
-rw-r--r--  1 dream dream   176 Aug 10 21:05 site.conf
 

 

 

 

Root is not used at all.



Re: enigma-info error #5 WanWizard

  • PLi® Core member
  • 69,809 posts

+1,780
Excellent

Posted 13 August 2024 - 21:05

I can only say what git reports there.
 
You'll have to check any file in any directory, or force it with a "chown dream:dream -r .".
 
Also, this

/media/dream/Media1/OpenPLi-develop/build/tmp/work/dm8000-oe-linux/enigma-info/homebuild-r0/temp/run.do_install.2759: 160: [[: not found

is not ok.

Which may come from

	# Image version
	if [[ "$x" =~ "^[0-9]\.[0-9]*\-.*$" ]]; then
		IMAGE_VERSION=`echo ${DISTRO_VERSION} | cut -d "-" -f 1`
	fi

which means that for some reason it's building with a non-compatible shell ( i.e. not bash ).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: enigma-info error #6 WanWizard

  • PLi® Core member
  • 69,809 posts

+1,780
Excellent

Posted 13 August 2024 - 21:08

That $x there seems odd though, I need to look at that...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: enigma-info error #7 WanWizard

  • PLi® Core member
  • 69,809 posts

+1,780
Excellent

Posted 13 August 2024 - 21:21

I've pushed a fix for that regex.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: enigma-info error #8 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 13 August 2024 - 21:22

I will take a look.

 

Thanks for your time. :-)



Re: enigma-info error #9 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 13 August 2024 - 21:28

Now getting a different error

 

WARNING: /media/dream/Media1/OpenPLi-develop/meta-openpli/recipes-openpli/enigma2/enigma-info.bb: Exception during build_dependencies for do_install         | ETA:  0:01:18
WARNING: /media/dream/Media1/OpenPLi-develop/meta-openpli/recipes-openpli/enigma2/enigma-info.bb: Error during finalise of /media/dream/Media1/OpenPLi-develop/meta-openpli/recipes-openpli/enigma2/enigma-info.bb
ERROR: Unable to parse /media/dream/Media1/OpenPLi-develop/meta-openpli/recipes-openpli/enigma2/enigma-info.bb
Traceback (most recent call last):
  File "/media/dream/Media1/OpenPLi-develop/bitbake/lib/bb/codeparser.py", line 415, in process_token_list(tokens=<itertools.chain object at 0x7fd13fed52a0>):
                     if more_tokens:
    >                    self.process_tokens(more_tokens)
 
  File "/media/dream/Media1/OpenPLi-develop/bitbake/lib/bb/codeparser.py", line 420, in ShellParser.process_tokens(tokens=[('simple_command', <bb.pysh.pyshyacc.SimpleCommand object at 0x7fd13fea96d0>)]):
 
    >        process_token_list(tokens)
 
  File "/media/dream/Media1/OpenPLi-develop/bitbake/lib/bb/codeparser.py", line 418, in process_token_list(tokens=[('simple_command', <bb.pysh.pyshyacc.SimpleCommand object at 0x7fd13fea96d0>)]):
                     if words:
    >                    self.process_words(words)
 
  File "/media/dream/Media1/OpenPLi-develop/bitbake/lib/bb/codeparser.py", line 430, in ShellParser.process_words(words=[('cmd_name', '[['), ('TOKEN', '"$DISTRO_VERSION"'), ('TOKEN', '=~'), ('TOKEN', '^[0-9]+\\.[0-9]+\\-.*$'), ('TOKEN', ']]')]):
             for word in list(words):
    >            wtree = pyshlex.make_wordtree(word[1])
                 for part in wtree:
  File "/media/dream/Media1/OpenPLi-develop/bitbake/lib/bb/pysh/pyshlex.py", line 384, in make_wordtree(token='^[0-9]+\\.[0-9]+\\-.*$', here_document=False):
             except NeedMore:
    >            raise ShellSyntaxError('Invalid token "%s"')
             tree.append(result)
bb.pysh.sherrors.ShellSyntaxError: Invalid token "%s"


Re: enigma-info error #10 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 13 August 2024 - 21:36

This looks all wrong.

I will delete the whole tree and start again



Re: enigma-info error #11 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 13 August 2024 - 22:06

Getting the same error

 

Time for bed. :-)


Edited by TheCount, 13 August 2024 - 22:09.


Re: enigma-info error #12 Tech

  • Forum Moderator
    PLi® Core member
  • 14,833 posts

+481
Excellent

Posted 13 August 2024 - 22:44

Getting the same error

 

Time for bed. :-)

With 'git revert d43027987a1275b04a0a11c7c5f96a692aaff281' you'll be able to build without that error (for the time being.....)


Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

On the edge of the abyss, a step forward is not always progress....

Hardware: 2x Daily used Vu+ Ultimo 4K - Vu+ Duo 4K SE and a lot more.... - VisioSat BiBigsat - Jultec Unicable Multiswitch 4 positions: 19.2/23.5/28.2 East - Diseqc motorized flatdish antenna

Software : HomeBuild OpenPLi Develop and Scarthgap builds, local cards driven by OsCam

Press the Geplaatste afbeelding button on the buttom right of this message ;)

Have you tried our wiki yet? Many answers can be found in our OpenPLi wiki


Re: enigma-info error #13 ims

  • PLi® Core member
  • 13,732 posts

+214
Excellent

Posted 14 August 2024 - 08:27

or try add " " to line in enigma-info.bb:

if [[ "$DISTRO_VERSION" =~ ^[0-9]+\.[0-9]+\-.*$ ]]; then

to

if [[ "$DISTRO_VERSION" =~ "^[0-9]+\.[0-9]+\-.*$" ]]; then

 


Kdo nic nedělá, nic nezkazí!

Re: enigma-info error #14 ims

  • PLi® Core member
  • 13,732 posts

+214
Excellent

Posted 14 August 2024 - 10:01

or

    regex='^[0-9]\.[0-9]*\-.*$'
    if [[ "$DISTRO_VERSION" =~ $regex ]]; then
        IMAGE_VERSION=`echo ${DISTRO_VERSION} | cut -d "-" -f 1`
    fi

 

 

 
 
 


Kdo nic nedělá, nic nezkazí!

Re: enigma-info error #15 ims

  • PLi® Core member
  • 13,732 posts

+214
Excellent

Posted 14 August 2024 - 11:05

fixed by WW


Kdo nic nedělá, nic nezkazí!

Re: enigma-info error #16 WanWizard

  • PLi® Core member
  • 69,809 posts

+1,780
Excellent

Posted 14 August 2024 - 11:30

Sorry about that, it seems that the bitbake parser can only handle a subset of bash functionality, and regex testing isn't included.

 

Worked around it for the moment.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: enigma-info error #17 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 14 August 2024 - 12:26

Thanks to all for your time.

 

So I started again and still have the git error.

 

My workflow

 

in user dream home directory

mkdir dm8000

cd dm8000

mkdir OpenPLi-develop

cd OpenPLi-develop

 

git clone --branch develop --single-branch https://github.com/O...pli-oe-core.git .

 

make -f Makefile

 

cd build/conf

edit local.conf adding MACHINE = "dm8000"

 

Add my recipes to meta-local

 

cd build

bitbake enigma-info

 

 

log.do_install

 

DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/home/dream/dm8000/OpenPLi-develop/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['pseudo-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_install
fatal: detected dubious ownership in repository at '/home/dream/dm8000/OpenPLi-develop'
To add an exception for this directory, call:
 
        git config --global --add safe.directory /home/dream/dm8000/OpenPLi-develop
fatal: detected dubious ownership in repository at '/home/dream/dm8000/OpenPLi-develop/openembedded-core'
To add an exception for this directory, call:
 
        git config --global --add safe.directory /home/dream/dm8000/OpenPLi-develop/openembedded-core
fatal: detected dubious ownership in repository at '/home/dream/dm8000/OpenPLi-develop'
To add an exception for this directory, call:
 
        git config --global --add safe.directory /home/dream/dm8000/OpenPLi-develop
WARNING: exit code 128 from a shell command.
 

 

 

git version 2.39.2 debian 12



Re: enigma-info error #18 WanWizard

  • PLi® Core member
  • 69,809 posts

+1,780
Excellent

Posted 14 August 2024 - 12:56

The same problem still exists:

fatal: detected dubious ownership in repository at '/home/dream/dm8000/OpenPLi-develop'

if /home/dream is local storage, make sure your permissions are ok, also in the hidden .git directory:

cd /home/dream/dm8000
chown -R dream:dream OpenPLi-develop

if it is a mounted device, you need to add the location to the safe directory list, as instructed, as git not only checks the repo directory.

 

You also need to do this if the rights on directories higher up ( /home in this case ), git gives this error if other users have rights on any part of this directory ( which is almost always the case ).

 

It is a git change in response to https://nvd.nist.gov.../CVE-2022-24765

 

If this is your local system and no other users are present, you can also use

 git config --global --add safe.directory '*'

to silence it for all directories.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: enigma-info error #19 TheCount

  • Senior Member
  • 38 posts

0
Neutral

Posted 14 August 2024 - 13:14

 git config --global --add safe.directory '*'

to silence it for all directories.

 

I used this and it works.

 

The system only has one user (dream) so not sure why it complains.

 

I only use root to do system updates via sudo.

 

Many thanks.



Re: enigma-info error #20 WanWizard

  • PLi® Core member
  • 69,809 posts

+1,780
Excellent

Posted 14 August 2024 - 13:17

Like I said, it also checks all directories up to the root, for access rights by others.

 

And by design, /home on a linux system has access for all users, otherwise you couldn't access your own home directory. So using git in your home directory will always generate this error.

 

It is extremely annoying at times, and essentially they have pushed the responsibility for that vulnerability to the users of git ( i.e. by marking a directory safe, you made the decision and git is off the hook if something happens ).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users