Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47584

Result screen not refreshing with error "Cannot read property 'self' of undefined"

    • Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 2, Blue Ocean - Candidates, Blue Ocean 1.6 - beta 2
    • 1.14.0

      Sometimes Blue-Ocean page get stuck in a step and displayed page is not refreshing. After Refreshing browser (with F5 for instance) you can see real step progress.

      In browser console (chrome) I can see this:

       

      blueocean.js:149535 Unhandled Rejection: TypeError: Cannot read property 'self' of undefined
      at ActivityService.bunkerKey (blueocean.js:5616)
      at ActivityService.setItem (blueocean.js:5659)
      at executeAction (blueocean.js:103343)
      at ActivityService.res (blueocean.js:103315)
      at blueocean.js:5910
      at <anonymous>
      logUnhandledPromiseRejection @ blueocean.js:149535
      blueocean.js:5500 There has been an error while trying to get the data. TypeError: Cannot read property 'toLowerCase' of null
      at RunDetailsHeader.render (jenkins-js-extension.js:85421)
      at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (blueocean.js:124443)
      at ReactCompositeComponentWrapper._renderValidatedComponent (blueocean.js:124466)
      at ReactCompositeComponentWrapper._updateRenderedComponent (blueocean.js:124390)
      at ReactCompositeComponentWrapper._performComponentUpdate (blueocean.js:124368)
      at ReactCompositeComponentWrapper.updateComponent (blueocean.js:124289)
      at ReactCompositeComponentWrapper.receiveComponent (blueocean.js:124191)
      at Object.receiveComponent (blueocean.js:130996)
      at Object.updateChildren (blueocean.js:122170)
      at ReactDOMComponent._reconcilerUpdateChildren (blueocean.js:129770)
      at ReactDOMComponent._updateChildren (blueocean.js:129869)
      at ReactDOMComponent.updateChildren (blueocean.js:129856)
      at ReactDOMComponent._updateDOMChildren (blueocean.js:125614)
      at ReactDOMComponent.updateComponent (blueocean.js:125432)
      at ReactDOMComponent.receiveComponent (blueocean.js:125390)
      at Object.receiveComponent (blueocean.js:130996)
      at ReactCompositeComponentWrapper._updateRenderedComponent (blueocean.js:124398)
      at ReactCompositeComponentWrapper._performComponentUpdate (blueocean.js:124368)
      at ReactCompositeComponentWrapper.updateComponent (blueocean.js:124289)
      at ReactCompositeComponentWrapper.receiveComponent (blueocean.js:124191)
      at Object.receiveComponent (blueocean.js:130996)
      at Object.updateChildren (blueocean.js:122170)
      blueocean.js:149535 Unhandled Rejection: TypeError: Cannot read property 'self' of undefined
      at ActivityService.bunkerKey (blueocean.js:5616)
      at ActivityService.setItem (blueocean.js:5659)
      at executeAction (blueocean.js:103343)
      at ActivityService.res (blueocean.js:103315)
      at blueocean.js:5910
      at <anonymous>
      logUnhandledPromiseRejection @ blueocean.js:149535
      blueocean.js:103663 [mobx] An uncaught exception occurred while calculating your computed value, autorun or transformer. Or inside the render() method of an observer based React component. These functions should never throw exceptions as MobX will not always be able to recover from them. Please fix the error reported after this message or enable 'Pause on (caught) exceptions' in your debugger to find the root cause. In: 'ToastService@10.toasts[..].onActionClick'. For more details see https://github.com/mobxjs/mobx/issues/462
      handleExceptionInDerivation @ blueocean.js:103663
      trackDerivedFunction @ blueocean.js:103643
      ComputedValue.trackAndCompute @ blueocean.js:103538
      ComputedValue.get @ blueocean.js:103504
      get @ blueocean.js:104988
      _onActionClick @ blueocean.js:11338
      onActionClick @ blueocean.js:11400
      onActionClick @ blueocean.js:11145
      onClick @ blueocean.js:11173
      invokeGuardedCallback @ blueocean.js:128462
      executeDispatch @ blueocean.js:120586
      executeDispatchesInOrder @ blueocean.js:120609
      executeDispatchesAndRelease @ blueocean.js:120063
      executeDispatchesAndReleaseTopLevel @ blueocean.js:120074
      forEachAccumulated @ blueocean.js:134731
      processEventQueue @ blueocean.js:120250
      runEventQueueInBatch @ blueocean.js:128520
      handleTopLevel @ blueocean.js:128531
      handleTopLevelImpl @ blueocean.js:128598
      perform @ blueocean.js:134115
      batchedUpdates @ blueocean.js:127798
      batchedUpdates @ blueocean.js:132014
      dispatchEvent @ blueocean.js:128675
      blueocean.js:149523 Hnhandled Error: Error: [mobx] Invariant failed: Computed values or transformers should not invoke actions or trigger other side effects
      at invariant (blueocean.js:105314)
      at executeAction (blueocean.js:103321)
      at LocationService.res (blueocean.js:103315)
      at blueocean.js:150184
      at blueocean.js:82616
      at blueocean.js:82332
      at blueocean.js:81696
      at Array.forEach (<anonymous>)
      at updateLocation (blueocean.js:81695)
      at blueocean.js:81757
      at blueocean.js:81733
      at next (blueocean.js:80914)
      at Object.loopAsync (blueocean.js:80918)
      at confirmTransitionTo (blueocean.js:81719)
      at transitionTo (blueocean.js:81745)
      at Object.push (blueocean.js:81768)
      at Object.push (blueocean.js:82338)
      at Object.push (blueocean.js:82622)
      at switchRunDetails (jenkins-js-extension.js:84816)
      at Object.onActionClick (blueocean.js:402)
      at ComputedValue.peek (blueocean.js:103468)
      at trackDerivedFunction (blueocean.js:103638)
      logApplicationError @ blueocean.js:149523
      blueocean.js:2708 GET https://jenkins.eprinsa.es/blue/rest/organizations/jenkins/pipelines/analyzer_Check_syslog/runs/14987/ 404 (Not Found)
      request @ blueocean.js:2708
      dedupe @ blueocean.js:8088
      dedupe @ blueocean.js:8111
      rawFetchJSON @ blueocean.js:2734
      fetchJSON @ blueocean.js:2820
      fetchActivity @ blueocean.js:5494
      _updateRun @ blueocean.js:5909
      queueEnter @ blueocean.js:5834
      DefaultSSEHandler.handleEvents @ blueocean.js:5770
      (anonymous) @ blueocean.js:6787
      _handleJobEvent @ blueocean.js:6786
      (anonymous) @ blueocean.js:6746
      listener @ blueocean.js:52516
      blueocean.js:5500 There has been an error while trying to get the data. Error: fetch failed: 404 for https://jenkins.eprinsa.es/blue/rest/organizations/jenkins/pipelines/analyzer_Check_syslog/runs/14987/
      at checkStatus (blueocean.js:2572)
      at <anonymous>

       

        1. screenshot-after-upgrading-1.4.beta-3.png
          screenshot-after-upgrading-1.4.beta-3.png
          196 kB
        2. screenshot-3.png
          screenshot-3.png
          645 kB
        3. screenshot-2.png
          screenshot-2.png
          413 kB
        4. Pipeline_Shared_Library_translated.zip
          65 kB
        5. simple-test-project_translated.zip
          2 kB
        6. screenshot-1.png
          screenshot-1.png
          358 kB
        7. jenkins.eprinsa.es-2.zip
          2.93 MB
        8. Pipeline_Shared_Library.zip
          59 kB
        9. simple-test-project.zip
          2 kB
        10. jenkins.eprinsa.es.har.zip
          2.90 MB
        11. Waiting.png
          Waiting.png
          21 kB

          [JENKINS-47584] Result screen not refreshing with error "Cannot read property 'self' of undefined"

          James Dumay added a comment -

          jlp01 what version of Blue Ocean are you using? Are you able to reproduce this and capture a HAR file for diagnosis purposes?

          James Dumay added a comment - jlp01 what version of Blue Ocean are you using? Are you able to reproduce this and capture a HAR file for diagnosis purposes?

          Blue Ocen versions at page foot: 1.3.1 · Core 2.73 · 53e58f2 · 28th October 2017 05:45 AM

          I'm going to record HAR files as per the provided Diagnosis Pages Resolution and I'm attaching it in no time.

          Thanks in advance.

          Jesús Lunar Pérez added a comment - Blue Ocen versions at page foot: 1.3.1 · Core 2.73 · 53e58f2 · 28th October 2017 05:45 AM I'm going to record HAR files as per the provided Diagnosis Pages Resolution and I'm attaching it in no time. Thanks in advance.

          Attached HAR file (compressed in zip) and a screenshot.

          Jesús Lunar Pérez added a comment - Attached HAR file (compressed in zip) and a screenshot.

          James Dumay added a comment -

          Thanks so much jlp01!

          James Dumay added a comment - Thanks so much jlp01 !

          Michael Neale added a comment -

          jlp01 can you provide possibly a pipeline or sample that may reproduce this? I am sure I have seen this before. The har file points to some of the problem, but the best woudl be if we could see it live. 

          Michael Neale added a comment - jlp01 can you provide possibly a pipeline or sample that may reproduce this? I am sure I have seen this before. The har file points to some of the problem, but the best woudl be if we could see it live. 

          Our pipelines are very tied to the infrastructure and projects so I think they are not going to be useful for you. I'm going to take time for preparing an example pipeline.

          But, notice that it doesn't happen always and at the same point: just happens sometimes and in different steps. I think the common pattern is that it happens either before step execution starts or after execution finishes (never in the middle of the execution).

          I'll upload something.

          Thanks in advance.

          Jesús Lunar Pérez added a comment - Our pipelines are very tied to the infrastructure and projects so I think they are not going to be useful for you. I'm going to take time for preparing an example pipeline. But, notice that it doesn't happen always and at the same point: just happens sometimes and in different steps. I think the common pattern is that it happens either before step execution starts or after execution finishes (never in the middle of the execution). I'll upload something. Thanks in advance.

          I have attached two zips:

          • simple-project-test.zip: contains a simple pom.xml project and a pipeline (inside jenkins folder) which runs this pom.xml.
          • Pipeline_Shared_Library.zip: the "by-default" shared library required by using the pipeline

          After answering the input, page is not refreshing anymore (you have to reload it by pressing F5).

          I have tested it in Chrome 61.0.3163.100 (Build oficial) (64 bits)

          PS: The input and some other displayed texts are in spanish. Sorry for the inconvenience.

          Jesús Lunar Pérez added a comment - I have attached two zips: simple-project-test.zip: contains a simple pom.xml project and a pipeline (inside jenkins folder) which runs this pom.xml. Pipeline_Shared_Library.zip: the "by-default" shared library required by using the pipeline After answering the input, page is not refreshing anymore (you have to reload it by pressing F5). I have tested it in Chrome 61.0.3163.100 (Build oficial) (64 bits) PS: The input and some other displayed texts are in spanish. Sorry for the inconvenience.

          Michael Neale added a comment -

          ok thanks jlp01 - can take a look some time. 

          Michael Neale added a comment - ok thanks jlp01 - can take a look some time. 

          Michael Neale added a comment -

          jlp01 is there by any chance a large number of stages/parallels? as there was a fix in 1.3.3 for this (probably not related, but worth asking)

          Michael Neale added a comment - jlp01 is there by any chance a large number of stages/parallels? as there was a fix in 1.3.3 for this (probably not related, but worth asking)

          Jesús Lunar Pérez added a comment - - edited

          Actually not a large number of them: just 2 parallel executions in 2 different stages. I guess you couldn't reproduce the problem, could you?

          Today our System department is planning to update Jenkins plugins and core. I'll let you know in case it just has been fixed somehow in these last versions.

          Jesús Lunar Pérez added a comment - - edited Actually not a large number of them: just 2 parallel executions in 2 different stages. I guess you couldn't reproduce the problem, could you? Today our System department is planning to update Jenkins plugins and core. I'll let you know in case it just has been fixed somehow in these last versions.

          Michael Neale added a comment -

          jlp01 close, but not yet. Should be doable, just wanted to check, I didn't think this was related but thought I should check, given the version number. 

          Michael Neale added a comment - jlp01 close, but not yet. Should be doable, just wanted to check, I didn't think this was related but thought I should check, given the version number. 

          Still happenning with 1.3.3 · Core 2.91 · 5cc0807 · 16th November 2017 03:28 AM

          Attached a new HAR file in jenkins.eprinsa.es-2.zip

          Jesús Lunar Pérez added a comment - Still happenning with 1.3.3 · Core 2.91 · 5cc0807 · 16th November 2017 03:28 AM Attached a new HAR file in jenkins.eprinsa.es-2.zip

          Karl Shultz added a comment -

          Testing Notes:

          • If we are able to recreate this, and root cause it, tests should accompany whatever fix goes in to resolve the issue.
          • On a broader level, if this turns out to be something specific to the user's repository or libraries, we could think about including this in a list of "known to recreate bugs" Jenkinsfiles. I've started gathering some thoughts on that idea here, but should probably make the "known offenders" repo a separate issue from the "complicated test cases" issue.

          Karl Shultz added a comment - Testing Notes: If we are able to recreate this, and root cause it, tests should accompany whatever fix goes in to resolve the issue. On a broader level, if this turns out to be something specific to the user's repository or libraries, we could think about including this in a list of "known to recreate bugs" Jenkinsfiles. I've started gathering some thoughts on that idea here , but should probably make the "known offenders" repo a separate issue from the "complicated test cases" issue.

          Karl Shultz added a comment -

          Also, jlp01 - I've got the code that you so kindly provided (seriously, thanks for that!) up on a Bitbucket server and I'm attempting to recreate the issue now.

          I've made a small handful of changes, just to get it to work in my environment. I don't think they'll affect the outcome, but so far, I've:

          1. Taken the space out of the filename of your Jenkinsfile. It now lives in repository-name/jenkins/Integracion-continua.pipeline
          2. Changed the tools section to point to my existing mvn and jdk setups.

          I can get the project to try and build, but there's a small problem...I don't speak Spanish. But once I've got everything set up, I started answering "No" to the interactive inputs in the build. It's passing, as far as I can tell, and I'm not getting any error messages from Blue Ocean itself.

          Am I on the right track as far as retracing your steps?

          Karl Shultz added a comment - Also, jlp01 - I've got the code that you so kindly provided (seriously, thanks for that!) up on a Bitbucket server and I'm attempting to recreate the issue now. I've made a small handful of changes, just to get it to work in my environment. I don't think they'll affect the outcome, but so far, I've: Taken the space out of the filename of your Jenkinsfile. It now lives in repository-name/jenkins/Integracion-continua.pipeline Changed the tools section to point to my existing mvn and jdk setups. I can get the project to try and build, but there's a small problem...I don't speak Spanish. But once I've got everything set up, I started answering "No" to the interactive inputs in the build. It's passing, as far as I can tell, and I'm not getting any error messages from Blue Ocean itself. Am I on the right track as far as retracing your steps?

          Ok, I'm going to translate it quickly in order you to work more comfortable  .

          You are doing right clicking "No" as answer doesn't matter in order to get the problem in our systems.

          Just to spot some hints, our systems are behind a proxy and a firewall. Once in a while, I get a "Proxy error" at first time I open Blue-Ocean. After refreshing browser it doesn't show up anymore but I'm starting to think It could be related since you can't reproduce the problem easily whereas in our system it is happening in every execution.

          I'll attach translated pipeline as soon as possible

          Jesús Lunar Pérez added a comment - Ok, I'm going to translate it quickly in order you to work more comfortable  . You are doing right clicking "No" as answer doesn't matter in order to get the problem in our systems. Just to spot some hints, our systems are behind a proxy and a firewall. Once in a while, I get a "Proxy error" at first time I open Blue-Ocean. After refreshing browser it doesn't show up anymore but I'm starting to think It could be related since you can't reproduce the problem easily whereas in our system it is happening in every execution. I'll attach translated pipeline as soon as possible

          I've made some "Search/Replace" in source files and I've traslated main parts involved. I haven't tested it, sorry, but I think even so, it can be helpful for you.

          Jesús Lunar Pérez added a comment - I've made some "Search/Replace" in source files and I've traslated main parts involved. I haven't tested it, sorry, but I think even so, it can be helpful for you.

          Karl Shultz added a comment -

          jlp01 I think you're on to something with the proxy being part of the problem. In the Blue Ocean wiki, there are some suggestions to work around potential issues caused by running behind a proxy. I'll paste them here:

          In some cases proxies can rewrite URIs that have encoding in them and break web apps.

          • For apache - please follow this guide very carefully, especially the bit about nocanon
          • For nginx - please see this. Generally if you use proxy_pass directly to the Jenkins port, you are ok, otherwise see this.

          You're correct that when trying to recreate this issue, I'm not running behind any proxy. I think we're probably getting close to a root cause.

          Thanks again for providing all the information you've provided, it's really been very helpful in troubleshooting.

          Karl Shultz added a comment - jlp01 I think you're on to something with the proxy being part of the problem. In the Blue Ocean wiki , there are some suggestions to work around potential issues caused by running behind a proxy. I'll paste them here: In some cases proxies can rewrite URIs that have encoding in them and break web apps. For apache - please follow this guide very carefully, especially the bit about nocanon For nginx - please see this . Generally if you use proxy_pass directly to the Jenkins port, you are ok, otherwise see this . You're correct that when trying to recreate this issue, I'm not running behind any proxy. I think we're probably getting close to a root cause. Thanks again for providing all the information you've provided, it's really been very helpful in troubleshooting.

          Ok, I'm going to provide this information to our system department and we'll see if it solves the problem  

          I'll let you know any progress we do in order to close the issue or update the guide if we find out something new. 

          Thanks a lot.

          Jesús Lunar Pérez added a comment - Ok, I'm going to provide this information to our system department and we'll see if it solves the problem   I'll let you know any progress we do in order to close the issue or update the guide if we find out something new.  Thanks a lot.

          Karl Shultz added a comment -

          Sounds good jlp01. In the meantime, if you know anything about this proxy (which one it is, any unusual setup it's got), I might be able to try and do a recreate in a few days. We're on holiday until Monday in the US, but when I come back, I could see about setting up a quick proxy in a docker container or something similar. Might help narrow things down.

          Karl Shultz added a comment - Sounds good jlp01 . In the meantime, if you know anything about this proxy (which one it is, any unusual setup it's got), I might be able to try and do a recreate in a few days. We're on holiday until Monday in the US, but when I come back, I could see about setting up a quick proxy in a docker container or something similar. Might help narrow things down.

          Jesús Lunar Pérez added a comment - - edited

          We are using an Apache 2.4.16 running on a CentOS release 6.4. Our System department is confirming me they followed the proxy guide when they installed the plugin at the first time. I'll try to get the config file in order to attach it here.

          Jesús Lunar Pérez added a comment - - edited We are using an Apache 2.4.16 running on a CentOS release 6.4. Our System department is confirming me they followed the proxy guide when they installed the plugin at the first time. I'll try to get the config file in order to attach it here.

          Apart from proxy issues, we have found out something weird:

          Our Jenkins has 11 nodes for running jobs. Most of them are used internally by System department whereas "master" and a labeled node 'linux' are used by Development department. So our jobs (development department) just run in these 2 nodes (master and linux).

          But when I open Blue-Ocean in a particular development job execution, I can see in browser console that Blue-Ocean is trying to get "something" from an URL which points to another jobs which is running at this moment in another different node. I saw this URL:

          blueocean.js:2711 GET https://jenkins.eprinsa.es/blue/rest/organizations/jenkins/pipelines/cd2.eprinsa.org_Check_DNS/runs/25329/ 404 (Not Found)

          cd2.eprinsa.org is a System department internal node which we don't use it, and Check DNS is a system job running at that moment. That job is configured for running every 5 minutes. So what I want to point out is that my job and this job are not related.

          Why Blue-Ocean is trying to get something from an URL which is from another non-related job?

          I hope it may clue you on some wrong behaviour.

          Thanks in advance.

          Jesús Lunar Pérez added a comment - Apart from proxy issues, we have found out something weird: Our Jenkins has 11 nodes for running jobs. Most of them are used internally by System department whereas "master" and a labeled node 'linux' are used by Development department. So our jobs (development department) just run in these 2 nodes (master and linux). But when I open Blue-Ocean in a particular development job execution, I can see in browser console that Blue-Ocean is trying to get "something" from an URL which points to another jobs which is running at this moment in another different node. I saw this URL: blueocean.js:2711 GET https://jenkins.eprinsa.es/blue/rest/organizations/jenkins/pipelines/cd2.eprinsa.org_Check_DNS/runs/25329/ 404 (Not Found) cd2.eprinsa.org is a System department internal node which we don't use it, and Check DNS is a system job running at that moment. That job is configured for running every 5 minutes. So what I want to point out is that my job and this job are not related. Why Blue-Ocean is trying to get something from an URL which is from another non-related job? I hope it may clue you on some wrong behaviour. Thanks in advance.

          These are the lines which have been changed in httpd.conf file:

          SSLProxyEngine on
                 ProxyPreserveHost On
                 ProxyRequests     Off
                 AllowEncodedSlashes NoDecode
          
          
                 ProxyPass         /  http://xxx:8080/ nocanon connectiontimeout=5 keepalive=On retry=60 timeout=900 ttl=900
                 ProxyPassReverse  /  http://xxx:8080/
                 ProxyPassReverse  /  http://xxx/
          
                 Header edit Location ^http://xxx/ https://xxx/
          
                 RequestHeader set X-Forwarded-Proto "https"
                 RequestHeader set X-Forwarded-Port "443"
          

          where "xxx" is our server name

          Jesús Lunar Pérez added a comment - These are the lines which have been changed in httpd.conf file: SSLProxyEngine on        ProxyPreserveHost On        ProxyRequests     Off        AllowEncodedSlashes NoDecode        ProxyPass         /  http: //xxx:8080/ nocanon connectiontimeout=5 keepalive=On retry=60 timeout=900 ttl=900        ProxyPassReverse  /  http: //xxx:8080/        ProxyPassReverse  /  http: //xxx/        Header edit Location ^http: //xxx/ https://xxx/        RequestHeader set X-Forwarded-Proto "https"        RequestHeader set X-Forwarded-Port "443" where "xxx" is our server name

          Michael Neale added a comment -

          1.4 beta is out - which has some fixes in this area, given we can't quite reproduce this, I think will close this. Can open new/link to this if we can see it on 1.4

          Michael Neale added a comment - 1.4 beta is out - which has some fixes in this area, given we can't quite reproduce this, I think will close this. Can open new/link to this if we can see it on 1.4

          When is planned 1.4 release?

          Jesús Lunar Pérez added a comment - When is planned 1.4 release?

          Michael Neale added a comment -

          beta 1 went out today - so any day soon. if you get a chance to try it, that would be great

          Michael Neale added a comment - beta 1 went out today - so any day soon. if you get a chance to try it, that would be great

          How can we install a beta plugin? Is there some guideline to do that?

          Thanks in advance.

          Jesús Lunar Pérez added a comment - How can we install a beta plugin? Is there some guideline to do that? Thanks in advance.

          It still fails in 1.4.beta-3. Attached screenshot-after-upgrading-1.4.beta-3.png

          Jesús Lunar Pérez added a comment - It still fails in 1.4.beta-3. Attached screenshot-after-upgrading-1.4.beta-3.png

          It still fails in 1.4.0 · Core 2.101

           

          There has been an error while trying to get the data. TypeError: Cannot read property 'toLowerCase' of null
          at RunDetailsHeader.render (jenkins-js-extension.js:102986)
          at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (jenkins-design-language.js:48404)
          at ReactCompositeComponentWrapper._renderValidatedComponent (jenkins-design-language.js:48427)
          at ReactCompositeComponentWrapper._updateRenderedComponent (jenkins-design-language.js:48351)
          at ReactCompositeComponentWrapper._performComponentUpdate (jenkins-design-language.js:48329)
          at ReactCompositeComponentWrapper.updateComponent (jenkins-design-language.js:48250)
          at ReactCompositeComponentWrapper.receiveComponent (jenkins-design-language.js:48152)
          at Object.receiveComponent (jenkins-design-language.js:54282)
          at Object.updateChildren (jenkins-design-language.js:47514)
          at ReactDOMComponent._reconcilerUpdateChildren (jenkins-design-language.js:53140)
          at ReactDOMComponent._updateChildren (jenkins-design-language.js:53239)
          at ReactDOMComponent.updateChildren (jenkins-design-language.js:53226)
          at ReactDOMComponent._updateDOMChildren (jenkins-design-language.js:49530)
          at ReactDOMComponent.updateComponent (jenkins-design-language.js:49348)
          at ReactDOMComponent.receiveComponent (jenkins-design-language.js:49310)
          at Object.receiveComponent (jenkins-design-language.js:54282)
          at ReactCompositeComponentWrapper._updateRenderedComponent (jenkins-design-language.js:48359)
          at ReactCompositeComponentWrapper._performComponentUpdate (jenkins-design-language.js:48329)
          at ReactCompositeComponentWrapper.updateComponent (jenkins-design-language.js:48250)
          at ReactCompositeComponentWrapper.receiveComponent (jenkins-design-language.js:48152)
          at Object.receiveComponent (jenkins-design-language.js:54282)
          at Object.updateChildren (jenkins-design-language.js:47514)
          
          blueocean.js:58253 Unhandled Rejection: "TypeError: Cannot read property 'self' of undefined\n at ActivityService.bunkerKey (https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:67429:26)\n at ActivityService.setItem (https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:67472:26)\n at executeAction (https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:43377:19)\n at ActivityService.res (https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:43349:16)\n at https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:67744:40\n at <anonymous>"
          logUnhandledPromiseRejection @ blueocean.js:58253
          

          Jesús Lunar Pérez added a comment - It still fails in 1.4.0 · Core 2.101   There has been an error while trying to get the data. TypeError: Cannot read property 'toLowerCase' of null at RunDetailsHeader.render (jenkins-js-extension.js:102986) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (jenkins-design-language.js:48404) at ReactCompositeComponentWrapper._renderValidatedComponent (jenkins-design-language.js:48427) at ReactCompositeComponentWrapper._updateRenderedComponent (jenkins-design-language.js:48351) at ReactCompositeComponentWrapper._performComponentUpdate (jenkins-design-language.js:48329) at ReactCompositeComponentWrapper.updateComponent (jenkins-design-language.js:48250) at ReactCompositeComponentWrapper.receiveComponent (jenkins-design-language.js:48152) at Object .receiveComponent (jenkins-design-language.js:54282) at Object .updateChildren (jenkins-design-language.js:47514) at ReactDOMComponent._reconcilerUpdateChildren (jenkins-design-language.js:53140) at ReactDOMComponent._updateChildren (jenkins-design-language.js:53239) at ReactDOMComponent.updateChildren (jenkins-design-language.js:53226) at ReactDOMComponent._updateDOMChildren (jenkins-design-language.js:49530) at ReactDOMComponent.updateComponent (jenkins-design-language.js:49348) at ReactDOMComponent.receiveComponent (jenkins-design-language.js:49310) at Object .receiveComponent (jenkins-design-language.js:54282) at ReactCompositeComponentWrapper._updateRenderedComponent (jenkins-design-language.js:48359) at ReactCompositeComponentWrapper._performComponentUpdate (jenkins-design-language.js:48329) at ReactCompositeComponentWrapper.updateComponent (jenkins-design-language.js:48250) at ReactCompositeComponentWrapper.receiveComponent (jenkins-design-language.js:48152) at Object .receiveComponent (jenkins-design-language.js:54282) at Object .updateChildren (jenkins-design-language.js:47514) blueocean.js:58253 Unhandled Rejection: "TypeError: Cannot read property 'self' of undefined\n at ActivityService.bunkerKey (https: //jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:67429:26)\n at ActivityService.setItem (https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:67472:26)\n at executeAction (https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:43377:19)\n at ActivityService.res (https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:43349:16)\n at https://jenkins.eprinsa.es/adjuncts/a933cd3c/io/jenkins/blueocean/blueocean-core-js.js:67744:40\n at <anonymous>" logUnhandledPromiseRejection @ blueocean.js:58253

          As I indicate in my last comment, it still happens. I re-open it.

          Jesús Lunar Pérez added a comment - As I indicate in my last comment, it still happens. I re-open it.

          Michael Neale added a comment -

          jlp01 right - I think sophistifunk discovered this problem when working on something else recently. 

          What it appears to be is something causes a property in an object to not be serializable to json (perhaps a bug from a plugin), and it then skips over that field, vs logging the error. This means the front end expects to find some value that isn't there. 

          Do you think this is possibly the same problem as https://issues.jenkins-ci.org/browse/JENKINS-48198 ?

          In fact jlp01 if you have the means - trying out https://github.com/jenkinsci/blueocean-plugin/pull/1625 would be interesting for you, as it may log the actual problem ...

          Michael Neale added a comment - jlp01 right - I think sophistifunk discovered this problem when working on something else recently.  What it appears to be is something causes a property in an object to not be serializable to json (perhaps a bug from a plugin), and it then skips over that field, vs logging the error. This means the front end expects to find some value that isn't there.  Do you think this is possibly the same problem as https://issues.jenkins-ci.org/browse/JENKINS-48198  ? In fact jlp01 if you have the means - trying out https://github.com/jenkinsci/blueocean-plugin/pull/1625  would be interesting for you, as it may log the actual problem ...

          After upgrading plugin, it stil happens in 1.4.1:

          blueocean.js:58253 Unhandled Rejection: "TypeError: Cannot read property 'self' of undefined
              at ActivityService.bunkerKey (https://jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:67429:26)
              at ActivityService.setItem (https://jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:67472:26)
              at executeAction (https://jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:43377:19)
              at ActivityService.res (https://jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:43349:16)
              at https://jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:67744:40
              at <anonymous>"
          

          As you mention, I guess it's similar but not same problem  as in 48198 issue.

          Jesús Lunar Pérez added a comment - After upgrading plugin, it stil happens in 1.4.1: blueocean.js:58253 Unhandled Rejection: "TypeError: Cannot read property 'self' of undefined     at ActivityService.bunkerKey (https: //jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:67429:26)     at ActivityService.setItem (https: //jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:67472:26)     at executeAction (https: //jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:43377:19)     at ActivityService.res (https: //jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:43349:16)     at https: //jenkins.eprinsa.es/adjuncts/ad10514b/io/jenkins/blueocean/blueocean-core-js.js:67744:40     at <anonymous>" As you mention, I guess it's similar but not same problem  as in 48198 issue.

          James Dumay added a comment -

          vivek the last report by jlp01 looks like a SSE problem. An event is coming in, updating the run information but we might not have a reference... perhaps the bunker here needs to be more resiliant to those problems? WDYT sophistifunk?

          James Dumay added a comment - vivek the last report by jlp01 looks like a SSE problem. An event is coming in, updating the run information but we might not have a reference... perhaps the bunker here needs to be more resiliant to those problems? WDYT sophistifunk ?

          Michael Neale added a comment -

          jamesdumay yes it seems very different from the toLowerCase on an undefined pointer. 

          Michael Neale added a comment - jamesdumay yes it seems very different from the toLowerCase on an undefined pointer. 

          Josh McDonald added a comment -

          It's probably unrelated to the deserialisation problem. Looks like a response / message is coming in from the server with no payload. We could cover up the exception in the client-side by simply ignoring `setItem(undefined)` but then we'd still be doing whatever is causing the response to be null in the first place.

          Josh McDonald added a comment - It's probably unrelated to the deserialisation problem. Looks like a response / message is coming in from the server with no payload. We could cover up the exception in the client-side by simply ignoring `setItem(undefined)` but then we'd still be doing whatever is causing the response to be null in the first place.

          Vivek Pandey added a comment -

          sophistifunk I see 404s in the attached HAR. Is it the case where frontend code is not handling 404 well and goes ahead trying to render it?

          Vivek Pandey added a comment - sophistifunk  I see 404s in the attached HAR. Is it the case where frontend code is not handling 404 well and goes ahead trying to render it?

          Josh McDonald added a comment -

          It shouldn't, but it's hard to say for sure. Without a local replication to step through there's just not a lot of insight I can give, the karaoke code is too convoluted.

          Josh McDonald added a comment - It shouldn't, but it's hard to say for sure. Without a local replication to step through there's just not a lot of insight I can give, the karaoke code is too convoluted.

          I am able to reproduce this in a declarative pipeline that has a user input step. After pressing on the button to proceed, sometimes the pipeline continues to the next stage without refreshing the page, other times the UI just hangs there until I refresh it although things are happening and visible in the standard console logs.

          Jenkins version: 2.180

          Tried with a few different versions of Blue Ocean to no avail: 1.17.0. 1.11.0, 1.8.0, 1.7.3

          Andrei Muresianu added a comment - I am able to reproduce this in a declarative pipeline that has a user input step. After pressing on the button to proceed, sometimes the pipeline continues to the next stage without refreshing the page, other times the UI just hangs there until I refresh it although things are happening and visible in the standard console logs. Jenkins version: 2.180 Tried with a few different versions of Blue Ocean to no avail: 1.17.0. 1.11.0, 1.8.0, 1.7.3

          Could we please reopen this?

          Andrei Muresianu added a comment - Could we please reopen this?

            Unassigned Unassigned
            jlp01 Jesús Lunar Pérez
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: