Jump to content


Photo

How to get rid of "Taskhash mismatch"


  • Please log in to reply
40 replies to this topic

Re: How to get rid of "Taskhash mismatch" #21 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 3 August 2016 - 13:52

Would the imageversion file still contain a date then?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: How to get rid of "Taskhash mismatch" #22 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 3 August 2016 - 14:28

yeah, but forget it...

just cleansstated the image and after rebuild I got familiar taskhash mismatch error (no idea why it's been temporarily absent when I tested before?)

anyway, I still got this error only for et9500 so it suggests the problem lays in bsp layer(s)
(and still may by caused by this {DATE} in the ubi_append, but the solution is not correct /?/)
True sarcasm doesn't need green font...

Re: How to get rid of "Taskhash mismatch" #23 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 3 August 2016 - 14:43

I think this one explain our problems: https://patchwork.op...g/patch/121025/

 

 

Lets see this one..

diff --git a/meta-openpli/recipes-openpli/images/openpli-enigma2-image.bb b/meta-openpli/recipes-openpli/images/openpli-enigma2-image.bb
index f14d2f0..0115258 100644
--- a/meta-openpli/recipes-openpli/images/openpli-enigma2-image.bb
+++ b/meta-openpli/recipes-openpli/images/openpli-enigma2-image.bb
@@ -92,3 +92,4 @@ IMAGE_INSTALL += " \
        "

 export IMAGE_BASENAME = "openpli-enigma2"
+IMAGE_CMD[vardepsexclude] = "DATE"

Edited by athoik, 3 August 2016 - 14:53.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: How to get rid of "Taskhash mismatch" #24 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 3 August 2016 - 15:07

after quick test - seems to do the job :)

(I thought about this at first too, but somehow was afraid that date won't be added to imageversion with this, so I turned toward more difficult solutions instead just try ;))
True sarcasm doesn't need green font...

Re: How to get rid of "Taskhash mismatch" #25 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 3 August 2016 - 15:27

Athoik, this indeed looks familiar. I guess it's the appropriate solution.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: How to get rid of "Taskhash mismatch" #26 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 4 August 2016 - 17:46

bummer :-/
today I had taskhash mismatch error again
so exclude DATE didn't help (for long...)
True sarcasm doesn't need green font...

Re: How to get rid of "Taskhash mismatch" #27 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 5 August 2016 - 20:12

For your own building environment you could always resort to my "solution", just disable the two lines of python code that perform the check ;)


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: How to get rid of "Taskhash mismatch" #28 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 6 August 2016 - 09:43

well, this error seems to be completely harmless,
as I said, image is built successfully despite it...
so, that's rather cosmetics
True sarcasm doesn't need green font...

Re: How to get rid of "Taskhash mismatch" #29 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 6 August 2016 - 19:40

Looks like that "imageversion" hack ought to be removed from all layers.

Proper way to do that is in the image recipe, as a post-rootfs step. That way, it doesn't participate in the hash.
Real musicians never die - they just decompose

Re: How to get rid of "Taskhash mismatch" #30 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 August 2016 - 08:39

So we need to use ROOTFS_POSTPROCESS_COMMAND?

openembedded-core/meta/classes/rootfs-postcommands.bbclass:ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; "


# Can be use to create /etc/timestamp during image construction to give a reasonably
# sane default time setting
rootfs_update_timestamp () {
        date -u +%4Y%2m%2d%2H%2M%2S >${IMAGE_ROOTFS}/etc/timestamp
}
Something like the following?

ROOTFS_POSTPROCESS_COMMAND += "deploy_dir_imageversion ; "

deploy_dir_imageversion () {
        echo ${DISTRO_NAME}-${DISTRO_VERSION}-${DATE} > ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/imageversion
}

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: How to get rid of "Taskhash mismatch" #31 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 8 August 2016 - 09:33

you need to create IMAGEDIR first,
I exeperimented with something similar:
createimageversionfile() {
	mkdir ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}
	echo ${DISTRO_NAME}-${DISTRO_VERSION}-${DATE} > ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/imageversion
}
ROOTFS_POSTINSTALL_COMMAND += "createimageversionfile;"
and it did the job,

however, the problem is how to exclude boxes that don't need it (dm, vu, wetek, xsarius)?
for vu it just creates unnecessary IMAGEDIR/imageversion in deploy but build is ok, but for xsarius build fails with this
True sarcasm doesn't need green font...

Re: How to get rid of "Taskhash mismatch" #32 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,603 posts

+62
Good

Posted 9 August 2016 - 07:45

doesn't something like ROOTFS_POSTINSTALL_COMMAND_machinename work?


Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: How to get rid of "Taskhash mismatch" #33 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 10 August 2016 - 07:09

it does not...
True sarcasm doesn't need green font...

Re: How to get rid of "Taskhash mismatch" #34 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 10 August 2016 - 14:37

How about simply removing that DATE? I doubt it's actually being used at all.
Real musicians never die - they just decompose

Re: How to get rid of "Taskhash mismatch" #35 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 10 August 2016 - 20:09

might be the easiest solution for this gordian knot indeed (still would need bsp layers adjustments though)...

the only use of this DATE in imageversion that I know is that it could have saved you once from accidental flashing some ooold image
(which somehow happened to be on your pendrive instead of that brand new you were going to install ;))
True sarcasm doesn't need green font...

Re: How to get rid of "Taskhash mismatch" #36 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 15 August 2016 - 14:10

How about an alternative to include the date without OE noticing it ;)


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: How to get rid of "Taskhash mismatch" #37 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 15 August 2016 - 18:18

I've only found putting date stamps and such into software a stupid idea. It should not matter when something was built. And if I build the same software twice, using the same compiler and settings, I should get the exact same result.
Real musicians never die - they just decompose

Re: How to get rid of "Taskhash mismatch" #38 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 15 August 2016 - 18:23

The first comment, opinions may differ, but the second, yeah, I guess you have a strong point there.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: How to get rid of "Taskhash mismatch" #39 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,603 posts

+62
Good

Posted 17 August 2016 - 06:35

yeah, like I have two version, no dates or version numbers. So which is the latest one?

And when you build something twice, without differences, this 'date' also shouldn't change so you end up with the same thing (unless for some reason you want to contain the builddate in your build)


Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: How to get rid of "Taskhash mismatch" #40 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 17 August 2016 - 13:19

I don't know what kind of machine you're using, but on my machine, the date changes quite often. At least once a day.
Real musicians never die - they just decompose


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users