Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11004

Warnings in the Rails console in System pods

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • System
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      We have the following appearing on the System pods when starting Rails console:

      fatal: not a git repository (or any of the parent directories): .git
      fatal: not a git repository (or any of the parent directories): .git
      /usr/share/ruby/irb/completion.rb:18: warning: already initialized constant IRB::InputCompletor::ReservedWords
      /usr/share/gems/gems/irb-1.2.6/lib/irb/completion.rb:18: warning: previous definition of ReservedWords was here
      /usr/share/ruby/irb/completion.rb:39: warning: already initialized constant IRB::InputCompletor::BASIC_WORD_BREAK_CHARACTERS
      /usr/share/gems/gems/irb-1.2.6/lib/irb/completion.rb:39: warning: previous definition of BASIC_WORD_BREAK_CHARACTERS was here
      /usr/share/ruby/irb/completion.rb:41: warning: already initialized constant IRB::InputCompletor::CompletionProc
      /usr/share/gems/gems/irb-1.2.6/lib/irb/completion.rb:41: warning: previous definition of CompletionProc was here
      /usr/share/ruby/irb/completion.rb:268: warning: already initialized constant IRB::InputCompletor::PerfectMatchedProc
      /usr/share/gems/gems/irb-1.2.6/lib/irb/completion.rb:268: warning: previous definition of PerfectMatchedProc was here
      /usr/share/ruby/irb/completion.rb:294: warning: already initialized constant IRB::InputCompletor::Operators
      /usr/share/gems/gems/irb-1.2.6/lib/irb/completion.rb:294: warning: previous definition of Operators was here
      

      Also, there are warnings that appear also on the system pods when Rails server is started (and also for console):

      /opt/system/vendor/bundle/ruby/2.7.0/gems/anyway_config-2.5.0/lib/anyway/type_casting.rb:116: warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!
      /opt/system/vendor/bundle/ruby/2.7.0/gems/anyway_config-2.5.0/lib/anyway/rbs.rb:40: warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!
      WARNING: The Rust extension for prometheus-client-mmap is unavailable, falling back to the legacy C extension.
        The Rust extension will be required in the next version. If you are compiling this gem from source,
        ensure your build system has a Rust compiler and clang: https://gitlab.com/gitlab-org/ruby/gems/prometheus-client-mmap
      

      We need to look into it and ideally get rid of these warnings.

            Unassigned Unassigned
            rhn-support-dmayorov Daria Mayorova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: