<div dir="ltr">Hi Jordi,<div><br></div><div>while trying to update portus, it is not happenig. I guess due to different name in new repo for 2.0.3</div><div><br></div><div><div>portus:~ # zypper info portus</div><div>Loading repository data...</div><div>Reading installed packages...</div><div><br></div><div><br></div><div>Information for package portus:</div><div>-------------------------------</div><div>Repository: 2.0.3 Release (openSUSE_Leap_42.1)</div><div>Name: portus</div><div>Version: 2.0.3-9.2</div><div>Arch: x86_64</div><div>Vendor: obs://<a href="http://build.opensuse.org/Virtualization">build.opensuse.org/Virtualization</a></div><div>Installed: No</div><div>Status: not installed</div><div>Installed Size: 52.6 MiB</div><div>Summary: Authorization service and fronted for Docker registry (v2)</div><div>Description: </div><div>  Portus targets version 2 of the Docker registry API. It aims to act both as an authoritzation server and as a user interface for the next generation of the Docker registry.</div><div>  </div><div>  This package has been built with commit 2.0.3 from branch v2.0 on date Tue, 08 Mar 2016 18:56:49 +0100</div><div><br></div><div>Information for package Portus:</div><div>-------------------------------</div><div>Repository: @System</div><div>Name: Portus</div><div>Version: 2.0.1-2.1</div><div>Arch: x86_64</div><div>Vendor: obs://<a href="http://build.opensuse.org/Virtualization">build.opensuse.org/Virtualization</a></div><div>Installed: Yes</div><div>Status: up-to-date</div><div>Installed Size: 52.6 MiB</div><div>Summary: Authorization service and fronted for Docker registry (v2)</div><div>Description: </div><div>  Portus targets version 2 of the Docker registry API. It aims to act both as an authoritzation server and as a user interface for the next generation of the Docker registry.</div><div>  </div><div>  This package has been built with commit 2.0.0 from branch 2.0.0 on date Tue, 15 Dec 2015 17:47:32 +0100</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 11, 2016 at 2:00 AM, Jordi Massaguer Pla <span dir="ltr"><<a href="mailto:jmassaguerpla@suse.de" target="_blank">jmassaguerpla@suse.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <br>
    <br>
    <div>On 03/10/2016 10:38 AM, Jordi Massaguer
      Pla wrote:<br>
    </div>
    <blockquote type="cite">
      
      <font size="-1">Hi,<br>
        <br>
        zypper update works fine.<br>
        <br>
        This same package will get a rebuild during today in order to
        include some security issues. Thus you may want to run zypper
        update tomorrow to get them.<br>
        <br>
      </font></blockquote>
    <br>
    </span><small>The package has been rebuild and now it includes patches for
      latest security issues found in some rubygems.<br>
      <br>
      cheers<span class="HOEnZb"><font color="#888888"><br>
      <br>
      jordi<br>
      <br>
    </font></span></small><div><div class="h5"><br>
    <blockquote type="cite"><font size="-1"> cheers<br>
        <br>
        jordi<br>
        <br>
      </font><br>
      <div>On 03/10/2016 01:34 AM, Benjamin
        Fernandis wrote:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">Hi,
          <div><br>
          </div>
          <div>Now i can see 2.0.3 , I want to upgrade my portus with
            this new rpm. Can i do straight upgrade , i mean zypper
            update portus or do i require to do specific way? </div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Wed, Mar 2, 2016 at 8:19 PM,
            Benjamin Fernandis <span dir="ltr"><<a href="mailto:benjo11111@gmail.com" target="_blank"></a><a href="mailto:benjo11111@gmail.com" target="_blank">benjo11111@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks
              <div>
                <div><br>
                  <br>
                  On Tuesday, March 1, 2016, Miquel Sabaté Solà <<a href="mailto:msabate@suse.com" target="_blank"></a><a href="mailto:msabate@suse.com" target="_blank">msabate@suse.com</a>>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div bgcolor="#FFFFFF" text="#000000"> Hi Benjamin,<br>
                      <br>
                      We are still working on it, we had to fix some
                      other issues first :) As soon as the new RPM is
                      uploaded, I'll ping you back ;)<br>
                      <br>
                      Greetings,<br>
                      Miquel<br>
                      <br>
                      <div>On 02/29/2016 10:16 PM, Benjamin Fernandis
                        wrote:<br>
                      </div>
                      <blockquote type="cite">
                        <pre>Thanks Miquel,

>From where I can download latest rpm for portus. As I am trying to get it
but i got below versions from internet.

Information for package Portus:
-------------------------------
Repository: 2.0.1 Release (openSUSE_Leap_42.1)
Name: Portus
Version: 2.0.1-2.1
Arch: x86_64
Vendor: obs://<a href="http://build.opensuse.org/Virtualization" target="_blank">build.opensuse.org/Virtualization</a>
Installed: Yes
Status: up-to-date
Installed Size: 52.6 MiB
Summary: Authorization service and fronted for Docker registry (v2)
Description:
  Portus targets version 2 of the Docker registry API. It aims to act both
as an authoritzation server and as a user interface for the next generation
of the Docker registry.

  This package has been built with commit 2.0.0 from branch 2.0.0 on date
Tue, 15 Dec 2015 17:47:32 +0100

Information for package Portus:
-------------------------------
Repository: 2.0.0 Release (openSUSE_Leap_42.1)
Name: Portus
Version: 2.0.0-3.2
Arch: x86_64
Vendor: obs://<a href="http://build.opensuse.org/Virtualization" target="_blank">build.opensuse.org/Virtualization</a>
Installed: No
Status: not installed
Installed Size: 52.6 MiB
Summary: Authorization service and fronted for Docker registry (v2)
Description:
  Portus targets version 2 of the Docker registry API. It aims to act both
as an authoritzation server and as a user interface for the next generation
of the Docker registry.

  This package has been built with commit 2.0.0 from branch 2.0.0 on date
Tue, 15 Dec 2015 17:47:32 +0100


And if i want to compile from source code , then what would be method, I
tried to find install read me to get information like other tools require (
configure, make, make install ).

Regards



On Fri, Feb 26, 2016 at 1:27 AM, Miquel Sabaté Solà <a><msabate@suse.com></a>
wrote:

</pre>
                        <blockquote type="cite">
                          <pre>Hi Benjamin,

Portus 2.0.3 has been released [1]. We will update the RPM in the next
days.

Cheers,
Miquel

[1] <a href="https://github.com/SUSE/Portus/releases/tag/2.0.3" target="_blank">https://github.com/SUSE/Portus/releases/tag/2.0.3</a>

On 02/18/2016 01:07 AM, Benjamin Fernandis wrote:

Thanks Miquel,

i setup portus by rpm on opensuse vm so wait for updated rpm.

eager to see fix my problem.

On Tue, Feb 16, 2016 at 9:36 PM, Miquel Sabaté Solà <a><msabate@suse.com></a>
wrote:

</pre>
                          <blockquote type="cite">
                            <pre>Hi there,

This sounds very familiar actually. If I'm not mistaken this was fixed
quite recently. The fix is already in both master and in the v2.0 branch.
You can pull from these branches and test it again. That being said, we
expect to release a 2.0.3 with this fix included soon enough (hopefully
this friday).

Greetings,
Miquel

On 02/16/2016 12:55 AM, Benjamin Fernandis wrote:

Hi,

after enable debug mode i can see below logs in portus log.i can see all
logs like select . insert and all looks fine. but alos getting warning like
below.

please let me know if is there any configuration problem or , but still
there is no data in portus web page for repositories.



D, [2016-02-16T10:46:37.115000 #1145] DEBUG -- :   Registry Load (1.2ms)
 SELECT  `registries`.* FROM `registries`  ORDER BY `registries`.`id` ASC
LIMIT 1000
D, [2016-02-16T10:46:37.677148 #1145] DEBUG -- :    (0.3ms)  BEGIN
D, [2016-02-16T10:46:37.678519 #1145] DEBUG -- :    (0.5ms)  SELECT
`repositories`.`id` FROM `repositories`
D, [2016-02-16T10:46:37.679620 #1145] DEBUG -- :   Namespace Load (0.6ms)
 SELECT  `namespaces`.* FROM `namespaces` WHERE `namespaces`.`name` =
'jack' LIMIT 1
D, [2016-02-16T10:46:37.680299 #1145] DEBUG -- :    (0.2ms)  ROLLBACK
W, [2016-02-16T10:46:37.680551 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
D, [2016-02-16T10:46:37.682409 #1145] DEBUG -- :   Crono::CronoJob Load
(0.4ms)  SELECT  `crono_jobs`.* FROM `crono_jobs` WHERE `crono_jobs`.`id` =
2 LIMIT 1



W, [2016-02-16T12:12:37.880039 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:14:37.885128 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:16:37.967088 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:18:38.087636 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:20:37.873064 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:22:37.900357 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:24:37.932614 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:26:37.916510 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:28:37.891098 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:30:37.916941 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:32:37.881212 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:34:37.906411 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:36:37.845196 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:38:37.857684 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:40:38.107515 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:42:37.885080 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:44:37.880108 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:46:37.885044 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:48:37.832047 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass
W, [2016-02-16T12:50:37.843278 #1145]  WARN -- : Exception: undefined
method `id' for nil:NilClass




On Sat, Feb 13, 2016 at 1:18 AM, Jordi Massaguer Pla <
<a><jmassaguerpla@suse.de></a><a>jmassaguerpla@suse.de</a>> wrote:

</pre>
                            <blockquote type="cite">
                              <pre>look also in the apache2 logs, if you are using apache.
you can add more debugging in config/environments/*.yml and also if you
run passenger+apache, you can add more debugging to passenger
(/etc/apache2/conf.d/... if you are using passenger rpm from SUSE).


On 02/12/2016 12:36 AM, Benjamin Fernandis wrote:

is there a way to enable debug mode in portus to see what happening. As
can't find anything in logs.

On Fri, Feb 12, 2016 at 12:17 PM, Benjamin Fernandis <
<a><benjo11111@gmail.com></a><a>benjo11111@gmail.com</a>> wrote:

</pre>
                              <blockquote type="cite">
                                <pre>I don't know where i m doing mistake, but if i add another registry
which is not using ssl and with same configuration in portus and in
registry, it works. I can see data in portus webpage.

but while adding ssl enabled registry facing problem.



On Fri, Feb 12, 2016 at 2:24 AM, Miquel Sabaté Solà <
<a><msabate@suse.com></a><a>msabate@suse.com</a>> wrote:

</pre>
                                <blockquote type="cite">
                                  <pre>Hello Benjamin,

On 02/11/2016 03:02 AM, Benjamin Fernandis wrote:

Hi,

we using docker v2.2 registry with ssl cert on centos 7 and it is
working fine.

we can push and pull from network without --insecure-registry flag.

today, we deployed portus on opensuse vm and then added registry in
webpage of portus.

but we have not see any repositories or namespace data in portus web
page. Even when tried to check in DB it shows empty.


Right. I think that it's expected for Portus to automatically "import"
the images from the registry you just configured. This is tricky mainly
because: what if you have images contained inside of namespaces Portus
knows nothing about ? which team should own these missing namespaces ? This
is a question that we plan to fix as soon as possible, but we are still
discussing the best way to do it.

Now, you could say, well, at least import the images that are not
contained in namespaces, right ? We can do this, but you have to use Crono.
See more about Crono in our documentation [1]. Basically, it will
periodically check for images available in the registry and not registered
in Portus. Because of the aforementioned limitation with namespaces, Crono
will only import images that are not contained in namespaces that are
unknown to Portus. One way to work-around this limitation is to create the
namespaces manually, and let Crono update the DB on the next iteration.

That being said, there's a known bug in our code regarding the
synchronization with crono (see [2]). This is fixed in both master and
2.0.3 (which will be released next week).


there is no error in portus log and while checking in registry logs, i
can see request comes from portus and i can see repositories data as per
registry but nothing comes in portus web page.

there is no error in reigstry log.

i copied registry certificate to portus /etc/pki/trust/anchors folder.

please suggest me if i m missing anything here.

registry config.

docker run \
        -d  --restart=always --name registry \
        -e REGISTRY_LOG_LEVEL=info \
        -p 5000:5000 \
        -e SEARCH_BACKEND=sqlalchemy \
        -v `pwd`/certs:/certs \
        -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/xyz.crt \
        -e REGISTRY_HTTP_TLS_KEY=/certs/xyz.key \
        -v /etc/localtime:/etc/localtime:ro \
        -v /data/docker-v2:/var/lib/registry \
         registry:2.2


registry is running in container on centos 7.
portus is running in opensuse vm.

Thanks
Ben


_______________________________________________
Containers mailing <a>listContainers@lists.suse.comhttp://lists.suse.com/mailman/listinfo/containers</a>


Hope this helps,
Miquel

[1]
<a href="http://port.us.org/features/1_Synchronizing-the-Registry-and-Portus.html" target="_blank"><http://port.us.org/features/1_Synchronizing-the-Registry-and-Portus.html></a>
<a href="http://port.us.org/features/1_Synchronizing-the-Registry-and-Portus.html" target="_blank">http://port.us.org/features/1_Synchronizing-the-Registry-and-Portus.html</a>
[2] <a href="https://github.com/SUSE/Portus/issues/720" target="_blank"><https://github.com/SUSE/Portus/issues/720></a>
<a href="https://github.com/SUSE/Portus/issues/720" target="_blank">https://github.com/SUSE/Portus/issues/720</a>

_______________________________________________
Containers mailing list
<a><Containers@lists.suse.com></a><a>Containers@lists.suse.com</a>
<a href="http://lists.suse.com/mailman/listinfo/containers" target="_blank"><http://lists.suse.com/mailman/listinfo/containers></a>
<a href="http://lists.suse.com/mailman/listinfo/containers" target="_blank">http://lists.suse.com/mailman/listinfo/containers</a>


</pre>
                                </blockquote>
                              </blockquote>
                              <pre>_______________________________________________
Containers mailing <a>listContainers@lists.suse.comhttp://lists.suse.com/mailman/listinfo/containers</a>



_______________________________________________
Containers mailing list
<a>Containers@lists.suse.com</a>
<a href="http://lists.suse.com/mailman/listinfo/containers" target="_blank">http://lists.suse.com/mailman/listinfo/containers</a>


</pre>
                            </blockquote>
                            <pre>_______________________________________________
Containers mailing <a>listContainers@lists.suse.comhttp://lists.suse.com/mailman/listinfo/containers</a>



_______________________________________________
Containers mailing list
<a>Containers@lists.suse.com</a>
<a href="http://lists.suse.com/mailman/listinfo/containers" target="_blank">http://lists.suse.com/mailman/listinfo/containers</a>


</pre>
                          </blockquote>
                          <pre>_______________________________________________
Containers mailing <a>listContainers@lists.suse.comhttp://lists.suse.com/mailman/listinfo/containers</a>



_______________________________________________
Containers mailing list
<a>Containers@lists.suse.com</a>
<a href="http://lists.suse.com/mailman/listinfo/containers" target="_blank">http://lists.suse.com/mailman/listinfo/containers</a>


</pre>
                        </blockquote>
                        <br>
                        <fieldset></fieldset>
                        <br>
                        <pre>_______________________________________________
Containers mailing list
<a>Containers@lists.suse.com</a>
<a href="http://lists.suse.com/mailman/listinfo/containers" target="_blank">http://lists.suse.com/mailman/listinfo/containers</a>
</pre>
                      </blockquote>
                      <br>
                    </div>
                  </blockquote>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_______________________________________________
Containers mailing list
<a href="mailto:Containers@lists.suse.com" target="_blank">Containers@lists.suse.com</a>
<a href="http://lists.suse.com/mailman/listinfo/containers" target="_blank">http://lists.suse.com/mailman/listinfo/containers</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Containers mailing list<br>
<a href="mailto:Containers@lists.suse.com">Containers@lists.suse.com</a><br>
<a href="http://lists.suse.com/mailman/listinfo/containers" rel="noreferrer" target="_blank">http://lists.suse.com/mailman/listinfo/containers</a><br>
<br></blockquote></div><br></div>