Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: DC/OS 1.10.4
    • Fix Version/s: DC/OS 1.10.5
    • Component/s: navstar
    • Labels:
    • Sprint:
      Networking Team 1.11 Sprint 13
    • Story Points:
      3

      Description

      How to reproduce

      git clone git@github.com:dcos/navstar.git
      ./rebar3 update
      ./rebar3 compile
      
      ===> Plugin rebar3_gpb_plugin not available. It will not be used.
      ===> Verifying dependencies...
      ===> Compiling gpb
      ===> Plugin {rebar3_gpb_plugin,".*",
                             {git,
                                 "https://github.com/lrascao/rebar3_gpb_plugin.git",
                                 {tag,"1.10.0"}}} not available. It will not be used.
      ===> Compiling gpb
      ===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
      

      I'm not an Erlang expert but there seems to be some dependency issue that might be caused by including repositories from master branch:

          {eflame, ".*", {git, "https://github.com/slfritchie/eflame.git", {branch, "master"}}},
          {lashup, ".*", {git, "https://github.com/dcos/lashup.git", {branch, "master"}}},
          {dns, {git, "https://github.com/aetrion/dns_erlang.git", {branch, "master"}}},
          {mesos_state, {git, "https://github.com/dcos/mesos_state.git", {branch, "master"}}},
          {enacl, {git, "https://github.com/jlouis/enacl.git", {branch, "master"}}},
          {gen_netlink, ".*", {git, "https://github.com/mesosphere/gen_netlink.git", {branch, "master"}}},
          {ip_vs_conn, ".*", {git, "https://github.com/mesosphere/ip_vs_conn", {branch, "master"}}},
          {tcp_metrics, ".*", {git, "https://github.com/mesosphere/tcp_metrics", {branch, "master"}}},
          {telemetry, ".*", {git, "git://github.com/dcos/telemetry-net.git", master}},
          {inotify, ".*", {git, "https://github.com/goeldeepak/inotify.git", {branch, "master"}}}
      

      I think the problem might be in this commit: https://github.com/dcos/mesos_state/commit/1a02de9bbe018eab4c6eefaf30ab91f181c7d837

      which bumps plugin version:

      +    {rebar3_gpb_plugin, "2.1.1"},
      

      here's crashdump:

      Error: undef
      [{leex,file,
             ["/home/deric/navstar/_build/default/lib/gpb/src/gpb_scan.xrl",
              [{return,true}]],
             []},
       {rebar_erlc_compiler,compile_xrl_yrl,5,
                            [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_erlc_compiler.erl"},
                             {line,622}]},
       {rebar_base_compiler,compile_each,3,
                            [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_base_compiler.erl"},
                             {line,200}]},
       {rebar_erlc_compiler,compile,2,
                            [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_erlc_compiler.erl"},
                             {line,102}]},
       {rebar_prv_compile,compile,3,
                          [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_compile.erl"},
                           {line,122}]},
       {rebar_prv_compile,'-build_apps/3-lc$^0/1-0-',3,
                          [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_compile.erl"},
                           {line,81}]},
       {rebar_prv_compile,'-build_apps/3-lc$^0/1-0-',3,
                          [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_compile.erl"},
                           {line,81}]},
       {rebar_prv_compile,do,1,
                          [{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_compile.erl"},
                           {line,48}]}]
      

      crash report:

      $ DEBUG=1 ./rebar3 report "./rebar3 compile"
      ===> 19.2.1 satisfies the requirement for minimum OTP version 19.1
      ===> Evaluating config script "/home/deric/navstar/_build/default/plugins/rebar_covertool/rebar.config.script"                           
      ===> Evaluating config script "/home/deric/navstar/_build/default/plugins/rebar_covertool/rebar.config.script"                           
      ===> Expanded command sequence to be run: [{default,report}]                                                                             
      Rebar3 report
       version 3.3.5
       generated at 2018-02-08T19:49:35+00:00
      =================
      Please submit this along with your issue at https://github.com/erlang/rebar3/issues (and feel free to edit out private information, if any)
      -----------------
      Task: ./rebar3
      Entered as:
        ./rebar3 compile
      -----------------
      Operating System: x86_64-pc-linux-gnu
      ERTS: Erlang/OTP 19 [erts-8.2.1] [source] [64-bit] [smp:12:12] [async-threads:0] [kernel-poll:false]
      Root Directory: /usr/lib/erlang
      Library directory: /usr/lib/erlang/lib
      -----------------
      Loaded Applications:
      bbmustache: 1.3.0
      certifi: 0.4.0
      cf: 0.2.2
      compiler: 7.0.3
      crypto: 3.7.2
      cth_readable: 1.2.3
      dialyzer: 3.0.3
      edoc: 0.8.1
      erlware_commons: 1.0.0
      eunit: 2.3.2
      eunit_formatters: 0.3.1
      getopt: 0.8.2
      inets: 6.3.4
      kernel: 5.1.1
      providers: 1.6.0
      public_key: 1.3
      relx: 3.22.2
      sasl: 3.0.2
      snmp: 5.2.4
      ssl_verify_fun: 1.1.1
      stdlib: 3.2
      syntax_tools: 2.1.1
      tools: 2.9
      
      -----------------
      Escript path: /home/deric/navstar/rebar3
      Providers:
        app_discovery as clean compile compile cover ct deps dialyzer do edoc escriptize eunit generate get-deps help install install_deps list lock new path pkgs release relup report shell state tar tree unlock update upgrade upgrade upgrade version xref
      

        Attachments

          Activity

            People

            • Assignee:
              sergeyurbanovich Sergey Urbanovich (Inactive)
              Reporter:
              deric deric (Inactive)
              Team:
              DELETE Networking Team
              Watchers:
              Deepak Goel, deric (Inactive), Marco Monaco, Senthil Kumaran (Inactive), Sergey Urbanovich (Inactive)
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your JIRA administrators.