Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-2710

MTA on RHEL (CSB) fails after artifact upload / package identification - inotify.max_user_watches

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 5.0.0.Final
    • None
    • None
    • None

      Hi all,

      when testing MTA 5.0.0 Web Console I encountered the following error:

      After uploading an artifact, it would throw queuing-related exceptions in the log, the package identification step would never finish. 

      Drilling down, I found it was related to the "inotify.max_user_watches" on my system. Yes, I also had to up the max file handles (there's a warning in the log if too low) but that didn't fix this particular issue.

       

      This fixed it for me: (MTA 5.0.0 final Web Console on RHEL CSB 7.5)

      After checking

       

      cat /proc/sys/fs/inotify/max_user_watches

       

      (don't remember the values, but was comparatively low, must be default, as the /etc/sysctl.conf,  /etc/sysctl.d/, /usr/lib/sysctl.d/,... didn't contain this setting)

      I added the max (for testing, I haven't tested any lower settings) of 

       

      fs.inotify.max_user_watches=524288

       

      to my 

       

      /etc/sysctl.conf

       

      and then reloaded with 

       

      sudo sysctl -p

       

      and: ta-dah! It works  

      Maybe we can add a check for a sane (not 524288) value and spit out a warning. Took me some time to find the issue.

      Cheers & keep up the great work, much appreciated!!

              mrizzi@redhat.com Marco Rizzi
              mnagel@redhat.com Markus Nagel
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: