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

[FSTrigger] Jenkins Freezing after i'm trying to save settings

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • fstrigger-plugin
    • None
    • Jenkins 2.277.3

      Hello.

      New issue about FSTrigger.

      I am trying to create a multitask with fstrigger enabled and build steps.
      When I only enable FSTrigger it works fine. But when I try to create a new build step and save them together, I get an error in the screenshot.

      Also sometimes Jenkins freezes and I need to restart it.

      Jenkins 2.277.3
      FSTrigger 0.41

       

          [JENKINS-65652] [FSTrigger] Jenkins Freezing after i'm trying to save settings

          Sergei added a comment -

          Hi stealthdj

           

          Could you please take a look a new issue. If you need some info, please ping me there.

           

          And sorry for foreng language on screenshot.

           

          Thank you

          Sergei added a comment - Hi stealthdj   Could you please take a look a new issue. If you need some info, please ping me there.   And sorry for foreng language on screenshot.   Thank you

          Tony Noble added a comment -

          Hi sijay ,

          I've been unable to reproduce this locally, to start with, could you please detail:

          • The exact steps (including project type) you followed to cause this behaviour
          • Any errors or stacktrace seen in the Jenkins log when this occurs

          Thanks,

          Tony

          Tony Noble added a comment - Hi sijay , I've been unable to reproduce this locally, to start with, could you please detail: The exact steps (including project type) you followed to cause this behaviour Any errors or stacktrace seen in the Jenkins log when this occurs Thanks, Tony

          Sergei added a comment -

          Hi stealthdj

          I am trying to clone one project (I think it is multijob: there are many build steps, svn clone and other steps) and include FSTrigger. After that Jenkins freezes.

          In Jenkins logs I am getting below warning:

          2021-05-18 19:56:53.237+0000 [id=25028] WARNING o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class org.jenkinsci.lib.envinject.service.EnvVarsResolver$1 in file:/D:/Jenkins/plugins/fstrigger/WEB-INF/lib/envinject-lib-1.19.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/2021-05-18 19:56:53.237+0000 [id=25028] WARNING o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class org.jenkinsci.lib.envinject.service.EnvVarsResolver$1 in file:/D:/Jenkins/plugins/fstrigger/WEB-INF/lib/envinject-lib-1.19.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

          Sergei added a comment - Hi stealthdj I am trying to clone one project (I think it is multijob: there are many build steps, svn clone and other steps) and include FSTrigger. After that Jenkins freezes. In Jenkins logs I am getting below warning: 2021-05-18 19:56:53.237+0000 [id=25028] WARNING o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class org.jenkinsci.lib.envinject.service.EnvVarsResolver$1 in file:/D:/Jenkins/plugins/fstrigger/WEB-INF/lib/envinject-lib-1.19.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/2021-05-18 19:56:53.237+0000 [id=25028] WARNING o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class org.jenkinsci.lib.envinject.service.EnvVarsResolver$1 in file:/D:/Jenkins/plugins/fstrigger/WEB-INF/lib/envinject-lib-1.19.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

          Sergei added a comment - - edited

          I tried to create a new multi-job with only FSTrigger plugin enabled.

          And got warning (with Jenkins freezing):

          2021-05-18 20:12:28.299+0000 [id=224] WARNING o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger$1 in file:/D:/Jenkins/plugins/fstrigger/WEB-INF/lib/fstrigger.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/2021-05-18 20:12:28.299+0000 [id=224] WARNING o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger$1 in file:/D:/Jenkins/plugins/fstrigger/WEB-INF/lib/fstrigger.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

          Sergei added a comment - - edited I tried to create a new multi-job with only FSTrigger plugin enabled. And got warning (with Jenkins freezing): 2021-05-18 20:12:28.299+0000 [id=224] WARNING o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger$1 in file:/D:/Jenkins/plugins/fstrigger/WEB-INF/lib/fstrigger.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/2021-05-18 20:12:28.299+0000 [id=224] WARNING o.j.r.u.AnonymousClassWarnings#warn: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger$1 in file:/D:/Jenkins/plugins/fstrigger/WEB-INF/lib/fstrigger.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

          Sergei added a comment -

          If you need to get additional info i may try to record the screen for you.

          Sergei added a comment - If you need to get additional info i may try to record the screen for you.

          Sergei added a comment -

          Hi, stealthdj ,

          Have you been able to reproduce this problem?

          Thanks

          Sergei added a comment - Hi,  stealthdj , Have you been able to reproduce this problem? Thanks

          Sergei added a comment -

          Hi stealthdj

          Any updates here?

          Sergei added a comment - Hi stealthdj Any updates here?

          Tony Noble added a comment -

          Hi sijay ,

          Not having much luck replicating this one, unfortunately.

          Can you provide more detail?  Versions of the relevant plugins, plus a sample job config that fails (or screenshots of each step)?  Apologies for the requirement, but this one isn't showing for me so far...

           

          Tony Noble added a comment - Hi sijay , Not having much luck replicating this one, unfortunately. Can you provide more detail?  Versions of the relevant plugins, plus a sample job config that fails (or screenshots of each step)?  Apologies for the requirement, but this one isn't showing for me so far...  

          Sergei added a comment - - edited

          stealthdj

          Recorded the video for you. Please, take a look

          https://drive.google.com/file/d/1dY4tVF-7bVWhP6ErX2O2lOa4E7evTlMj/view

          Short story:

          1. I had restart Jenkins and showed you a clean error logs, without major issues
          2. Open Jenkins.
          3. Create a new item like as Free Configuration Mode
          4. Setup FSTrigger and try to save

           

          FSTrigger 0.41

          Jenkins 2.277.3

          EnvInject 2.4.0

           

          Sergei added a comment - - edited stealthdj Recorded the video for you. Please, take a look https://drive.google.com/file/d/1dY4tVF-7bVWhP6ErX2O2lOa4E7evTlMj/view Short story: I had restart Jenkins and showed you a clean error logs, without major issues Open Jenkins. Create a new item like as Free Configuration Mode Setup FSTrigger and try to save   FSTrigger 0.41 Jenkins 2.277.3 EnvInject 2.4.0  

          Tony Noble added a comment -

          Thanks sijay , hopefully that should be enough to pin this one down.

          Tony Noble added a comment - Thanks sijay , hopefully that should be enough to pin this one down.

          Tony Noble added a comment -

          sijay - the video was helpful, though I'm still not able to reproduce the issue.  I note that you're monitoring a network path though - could you also try:

          • Monitoring the contents of a local folder
          • Monitor the contents of a location you specified before, but using the drive identifier rather than the network location

          And let me know what results you see for those?

          The warning message you are seeing is just that, I think - a warning (and generated by the envinject-lib, which shouldn't have changed between releases)

          Thanks,

          Tony

          Tony Noble added a comment - sijay - the video was helpful, though I'm still not able to reproduce the issue.  I note that you're monitoring a network path though - could you also try: Monitoring the contents of a local folder Monitor the contents of a location you specified before, but using the drive identifier rather than the network location And let me know what results you see for those? The warning message you are seeing is just that, I think - a warning (and generated by the envinject-lib, which shouldn't have changed between releases) Thanks, Tony

          Sergei added a comment - - edited

          Hi stealthdj

          You're right. It works as expected, if i monitor a location using the drive identifier.

           

          But what about network location. Will it be work in next releases? If no, i think, this nuance should be noteced in readme.

           

          thanks for your kindness

          Sergei added a comment - - edited Hi  stealthdj You're right. It works as expected, if i monitor a location using the drive identifier.   But what about network location. Will it be work in next releases? If no, i think, this nuance should be noteced in readme.   thanks for your kindness

          Sergei added a comment - - edited

          Wait...

          It works, but i'm getting the message below:

          Trying to monitor the folder 'S:\Builds\Branches\trunk\consultdllrelease'
          The directory 'S:\Builds\Branches\trunk\consultdllrelease' doesn't exist.

          It is network folder.

          But if i save the job config file with this location: "\\KC.KPlus\EtalonS\Builds\Branches\trunk\consultdllrelease\"

          FSTrigger trying to monitor, but after it show me next mess:

          "Polling has not run yet."

           

          Sergei added a comment - - edited Wait... It works, but i'm getting the message below: Trying to monitor the folder 'S:\Builds\Branches\trunk\consultdllrelease' The directory 'S:\Builds\Branches\trunk\consultdllrelease' doesn't exist. It is network folder. But if i save the job config file with this location: "\\KC.KPlus\EtalonS\Builds\Branches\trunk\consultdllrelease\" FSTrigger trying to monitor, but after it show me next mess: "Polling has not run yet."  

          Tony Noble added a comment -

          Hi sijay

          Can you restrict the polling to run on master node only and see if that makes a difference to either of the two methods?

          Apologies for the constant queries - I don't currently have a windows machine with required network setup to test this on.

          Tony Noble added a comment - Hi sijay Can you restrict the polling to run on master node only and see if that makes a difference to either of the two methods? Apologies for the constant queries - I don't currently have a windows machine with required network setup to test this on.

          Sergei added a comment -

          Hi stealthdj

          How can i restrict the polling to run on master node only? Unfortunataly, i didn't find this setting.

          Sergei added a comment - Hi stealthdj How can i restrict the polling to run on master node only? Unfortunataly, i didn't find this setting.

          Sergei added a comment -

          Hi stealthdj

          I can't to choose specific slave for monitor folder by FSTrigger. It is choosing automatically.

          i tried limiting the use of slaves thru Jenkins nodes configuration, but it didn't help.
          What else could i do?

          Sergei added a comment - Hi  stealthdj I can't to choose specific slave for monitor folder by FSTrigger. It is choosing automatically. i tried limiting the use of slaves thru Jenkins nodes configuration, but it didn't help. What else could i do?

          I have exactly the same problem.

          Sergey Beketov added a comment - I have exactly the same problem.

            stealthdj Tony Noble
            sijay Sergei
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: