<div dir="ltr">Awesome, thanks! <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 17, 2021 at 8:50 AM Ben Stanley <<a href="mailto:ben.stanley@gmail.com">ben.stanley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>I have now solved this problem.</p>
    <p>The answer is that the pulp-2to3-migration process was trying to
      contact mongod at <a href="http://172.17.0.1:27017" target="_blank">172.17.0.1:27017</a>. This is the wrong address. The
      following information was found in /var/log/messages:<br>
    </p>
    <p>May 13 13:04:23 honeybee gunicorn: pulp
      [f3e566cf4f3a4007bcd171939c14d88b]:
      pulp_2to3_migration.pulp2.connection:INFO: Attempting to connect
      to <a href="http://172.17.0.1:27017" target="_blank">172.17.0.1:27017</a><br>
    </p>
    <p>The documentation [1] says that by default its configured to
      connect to localhost:27017.</p>
    <p>localhost is not 172.17.0.1.</p>
    <p>localhost should be 127.0.0.1.</p>
    <p>Perhaps the default IP address is coded incorrectly?</p>
    <p>I have changed the configuration in /etc/pulp/settings.py and
      added te PULP2_MONGODB section as described in the documentation
      [1], and restarted the pulpcore-api process</p>
    <p>systemctl restart pulpcore-api</p>
    <p>I am now able to create the plan sucessfully:</p>
    <p>[root@honeybee plans]# pulp migration plan create
      --plan='{"plugins": [{"type": "rpm"}]}'<br>
      {<br>
        "pulp_href": "/pulp/api/v3/migration-plans/<UUID>/",<br>
        "pulp_created": "2021-05-17T06:34:34.750318Z",<br>
        "plan": {<br>
          "plugins": [<br>
            {<br>
              "type": "rpm"<br>
            }<br>
          ]<br>
        }<br>
      }<br>
      [root@honeybee plans]# <br>
    </p>
    <p>Finally it worked!</p>
    <p>Ben.<br>
    </p>
    <p><br>
    </p>
    <p>[1]
      <a href="https://pulp-2to3-migration.readthedocs.io/en/latest/configuration.html" target="_blank">https://pulp-2to3-migration.readthedocs.io/en/latest/configuration.html</a><br>
    </p>
    <div>On 14/5/21 4:34 pm, Matthias Dellweg
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>It seems to be the mongodb pulp is unable to connect to.</div>
        <div>Can you check with systemctl it is up and running after the
          upgrade?<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, May 14, 2021 at 4:32
          AM Ben Stanley <<a href="mailto:ben.stanley@gmail.com" target="_blank">ben.stanley@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This
          problem is preventing me from making further progress
          migrating my <br>
          server now.<br>
          <br>
          Could I please get some help to diagnose the problem and get
          the system <br>
          going again?<br>
          <br>
          Thanks,<br>
          Ben Stanley<br>
          <br>
          On 13/5/21 1:20 pm, Ben Stanley wrote:<br>
          > Hello pulp-list,<br>
          ><br>
          > I was able to migrate my pulp2 iso repos using
          pulp-2to3-migration, <br>
          > but now that I try to do the same with my rpm repos, I
          get the following:<br>
          ><br>
          > [root@honeybee ~]# pulp migration plan create
          --plan='{"plugins": <br>
          > [{"type": "rpm"}]}'<br>
          > Error: <h1>Server Error (500)</h1><br>
          > [root@honeybee ~]#<br>
          ><br>
          > In between the successful and the failed migration, I
          have upgraded <br>
          > pulp to 3.12.2.<br>
          ><br>
          > [root@honeybee ~]# pulp status<br>
          > {<br>
          >   "versions": [<br>
          >     {<br>
          >       "component": "core",<br>
          >       "version": "3.12.2"<br>
          >     },<br>
          >     {<br>
          >       "component": "pulp_2to3_migration",<br>
          >       "version": "0.11.0"<br>
          >     },<br>
          >     {<br>
          >       "component": "rpm",<br>
          >       "version": "3.10.0"<br>
          >     },<br>
          >     {<br>
          >       "component": "python",<br>
          >       "version": "3.2.0"<br>
          >     },<br>
          >     {<br>
          >       "component": "file",<br>
          >       "version": "1.7.0"<br>
          >     },<br>
          >     {<br>
          >       "component": "deb",<br>
          >       "version": "2.11.1"<br>
          >     },<br>
          >     {<br>
          >       "component": "container",<br>
          >       "version": "2.5.1"<br>
          >     },<br>
          >     {<br>
          >       "component": "ansible",<br>
          >       "version": "0.7.2"<br>
          >     }<br>
          >   ],<br>
          ><br>
          > I looked at the system log (attached) and I found that it
          failed to <br>
          > initialise the database connection. How can I
          diagnose/repair this <br>
          > problem?<br>
          ><br>
          > Thanks,<br>
          > Ben Stanley.<br>
          ><br>
          ><br>
          <br>
          _______________________________________________<br>
          Pulp-list mailing list<br>
          <a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
          <a href="https://listman.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://listman.redhat.com/mailman/listinfo/pulp-list</a></blockquote>
      </div>
    </blockquote>
  </div>

</blockquote></div>