mkuchin / docker-registry-web

Web UI for private docker registry v2
https://hub.docker.com/r/hyper/docker-registry-web/
GNU General Public License v2.0
534 stars 135 forks source link

Problem to access repository from interface #74

Open adriano-fonseca opened 7 years ago

adriano-fonseca commented 7 years ago

Gettiing "Cannot get property 'private' on null object" after login:

java.lang.NullPointerException: Cannot get property 'private' on null object
registry-web_1  |   at docker.registry.web.TokenService.generate(TokenService.groovy:97)
registry-web_1  |   at docker.registry.web.RestService.request(RestService.groovy:61)
registry-web_1  |   at docker.registry.web.RestService.get(RestService.groovy:42)
registry-web_1  |   at docker.registry.web.RepositoryController.index(RepositoryController.groovy:29)
registry-web_1  |   at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
registry-web_1  |   at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
registry-web_1  |   at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
registry-web_1  |   at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)
registry-web_1  |   at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59)
registry-web_1  |   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
registry-web_1  |   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
registry-web_1  |   at java.lang.Thread.run(Thread.java:745)
registry-web_1  | 2017-01-29 03:25:47,286 [http-bio-8080-exec-8] ERROR web.RepositoryController  - Can't access registry: _catalog?n=100
registry-web_1  | java.lang.NullPointerException: Cannot get property 'private' on null object
registry-web_1  |   at docker.registry.web.TokenService.generate(TokenService.groovy:97)
registry-web_1  |   at docker.registry.web.RestService.request(RestService.groovy:61)
registry-web_1  |   at docker.registry.web.RestService.get(RestService.groovy:42)
registry-web_1  |   at docker.registry.web.RepositoryController.index(RepositoryController.groovy:29)
registry-web_1  |   at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
registry-web_1  |   at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
registry-web_1  |   at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
registry-web_1  |   at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)
registry-web_1  |   at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59)
registry-web_1  |   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
registry-web_1  |   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
registry-web_1  |   at java.lang.Thread.run(Thread.java:745)

I have a NGINX in front of my registry., providing https and authentication. I tried to adapt your configuration to my case. My registry is running, I can authenticate in it, without problems, but unfortunately I can't list my images through the your interface.

If you want to reproduce. The project can be checked out in https://github.com/adriano-fonseca/Dockerfiles