exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.72k stars 776 forks source link

Incorrect title for "Applications" section when a user doesn't have any application #616

Closed pospielov closed 3 years ago

pospielov commented 3 years ago

Describe the bug When a user doesn't have any applications, he sees the "Create Application" title instead of "Applications"

To Reproduce Steps to reproduce the behavior:

  1. Install and run CompreFace
  2. Navigate to http://localhost:8000/login
  3. Click "Sign up"
  4. Fill out the required fields -> Sign up
  5. Login with just created account
  6. Open the "Demo" application
  7. Click "delete" icon on the top right corner
  8. Confirm, you will be redirected to the main page
  9. Check the title for the application section

Actual result: The title is "Create Application" image

Expected behavior The title should be "Applications" image

iamanshulgit commented 3 years ago

Hello, Can you please assign this issue to me?

durgeshmeena commented 3 years ago

@pospielov Hi, I would like to work on this issue, could you please assign this to me ?

pospielov commented 3 years ago

Hi, thanks for the interest in our repository @iamanshulgit I assigned the issue to you as you were the first. Please notify me if you decide not to work on it. @durgeshmeena Sorry, but iamanshulgit wrote a comment first. Please look at other issues, I will also notify you if this issue will be available again.

pospielov commented 3 years ago

Hi @iamanshulgit, just wanted to know if you have any issues with the completion of this task. If you don't want to work on it anymore, please notify me, so I'll assign it to other contributors.

iamanshulgit commented 3 years ago

Yes, I am working on it. If I face any issues, I will let you know. Thank you

iamanshulgit commented 3 years ago

Hello @pospielov , I am facing issues with creating account. Error is coming "Sorry, something went wrong"

pospielov commented 3 years ago

Could you run docker ps command and how the result? Also, please run docker-compose logs command and upload the result somewhere.

iamanshulgit commented 3 years ago

for docker ps everything is up. but for docker-compose logs, I am getting errors

Attaching to compreface-ui, compreface-admin, compreface-api, compreface-postgres-db, compreface-core compreface-admin | Listening for transport dtsocket at address: 5005 compreface-admin | compreface-admin | . ____ compreface-admin | /\ / __' () _ \ \ \ \ compreface-admin | ( ( )_ | ' | '| | ' \/ ` | \ \ \ \ compreface-admin | \/ _)| |)| | | | | || (| | ) ) ) ) compreface-admin | ' |__| .|| ||| |\, | / / / / compreface-admin | =========|_|==============|_/=///_/ compreface-admin | :: Spring Boot :: (v2.3.4.RELEASE) compreface-admin | compreface-admin | 2021-10-11 19:43:10.279 INFO 7 --- [ main] com.exadel.frs.FrsApplication : The following profiles are active: dev compreface-admin | 2021-10-11 19:43:18.392 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFERRED mode. compreface-admin | 2021-10-11 19:43:19.672 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 1228ms. Found 10 JPA repository interfaces. compreface-admin | 2021-10-11 19:43:21.484 INFO 7 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=e7f41a96-3f70-3efd-b7dc-40aa4699bf29 compreface-admin | 2021-10-11 19:43:22.059 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.exadel.frs.commonservice.system.feign.ApperyStatisticsClient' of type [org.springframework.cloud.openfeign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) compreface-admin | 2021-10-11 19:43:25.332 INFO 7 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) compreface-admin | 2021-10-11 19:43:25.373 INFO 7 --- [ main] o.a.coyote.http11.Http11NioProtocol : Initializing ProtocolHandler ["http-nio-8080"] compreface-admin | 2021-10-11 19:43:25.383 INFO 7 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] compreface-admin | 2021-10-11 19:43:25.384 INFO 7 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.38] compreface-admin | 2021-10-11 19:43:25.788 INFO 7 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext compreface-admin | 2021-10-11 19:43:25.788 INFO 7 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 15285 ms compreface-admin | 2021-10-11 19:43:28.296 INFO 7 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... compreface-admin | 2021-10-11 19:43:29.445 INFO 7 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. compreface-admin | 2021-10-11 19:43:31.933 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:43:41.937 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:43:51.940 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:44:01.947 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:44:11.949 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:44:21.952 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:44:31.960 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:44:41.964 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:44:51.971 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:45:01.975 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:45:11.978 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:45:21.983 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:45:31.986 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:45:41.994 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:45:52.000 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:46:02.005 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:46:12.009 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:46:22.018 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:46:32.020 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:46:42.024 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:46:52.031 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:47:02.035 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:47:12.039 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:47:22.041 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:47:32.048 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:47:42.052 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:47:52.060 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:48:02.064 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:48:12.067 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-admin | 2021-10-11 19:48:22.071 INFO 7 --- [ main] liquibase.lockservice : Waiting for changelog lock.... compreface-api | Listening for transport dt_socket at address: 5005 compreface-api | compreface-api | . __ _ compreface-api | /\ / ' () _ \ \ \ \ compreface-api | ( ( )_ | ' | '| | ' \/ ` | \ \ \ \ compreface-api | \/ _)| |)| | | | | || (| | ) ) ) ) compreface-api | ' |__| .|| ||| |\, | / / / / compreface-api | =========|_|==============|__/=//// compreface-api | :: Spring Boot :: (v2.3.4.RELEASE) compreface-api | compreface-api | 2021-10-11 19:43:11.139 INFO 7 --- [ main] com.exadel.frs.TrainServiceApplication : The following profiles are active: dev compreface-api | 2021-10-11 19:43:16.765 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. compreface-api | 2021-10-11 19:43:17.256 INFO 7 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 439ms. Found 6 JPA repository interfaces. compreface-api | 2021-10-11 19:43:20.792 INFO 7 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=205fcd5f-0d69-3b59-9454-33cf48b1f0e2 compreface-api | 2021-10-11 19:43:21.144 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.exadel.frs.commonservice.system.feign.ApperyStatisticsClient' of type [org.springframework.cloud.openfeign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) compreface-api | 2021-10-11 19:43:23.008 INFO 7 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'cacheConfig' of type [com.exadel.frs.core.trainservice.config.CacheConfig$$EnhancerBySpringCGLIB$$458aac59] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) compreface-api | 2021-10-11 19:43:25.365 INFO 7 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) compreface-api | 2021-10-11 19:43:25.406 INFO 7 --- [ main] o.a.coyote.http11.Http11NioProtocol : Initializing ProtocolHandler ["http-nio-8080"] compreface-api | 2021-10-11 19:43:25.417 INFO 7 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] compreface-api | 2021-10-11 19:43:25.427 INFO 7 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.38] compreface-api | 2021-10-11 19:43:25.847 INFO 7 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext compreface-api | 2021-10-11 19:43:25.847 INFO 7 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 14523 ms compreface-api | 2021-10-11 19:43:28.179 INFO 7 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] compreface-api | 2021-10-11 19:43:29.034 INFO 7 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.21.Final compreface-api | 2021-10-11 19:43:29.047 INFO 7 --- [ main] org.hibernate.cfg.Environment : HHH000205: Loaded properties from resource hibernate.properties: {hibernate.bytecode.use_reflection_optimizer=false, hibernate.types.print.banner=false} compreface-api | 2021-10-11 19:43:30.365 INFO 7 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final} compreface-api | 2021-10-11 19:43:34.501 INFO 7 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... compreface-api | 2021-10-11 19:43:34.740 INFO 7 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. compreface-api | 2021-10-11 19:43:34.801 INFO 7 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect compreface-api | 2021-10-11 19:43:36.346 INFO 7 --- [ main] o.h.validator.internal.util.Version : HV000001: Hibernate Validator 6.1.5.Final compreface-api | 2021-10-11 19:43:38.404 INFO 7 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] compreface-api | 2021-10-11 19:43:38.414 INFO 7 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' compreface-api | 2021-10-11 19:43:44.744 INFO 7 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator' compreface-api | 2021-10-11 19:43:44.963 INFO 7 --- [ main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] compreface-api | 2021-10-11 19:43:45.137 INFO 7 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor compreface-api | 2021-10-11 19:43:45.199 INFO 7 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl compreface-api | 2021-10-11 19:43:45.199 INFO 7 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.2 created. compreface-api | 2021-10-11 19:43:45.200 INFO 7 --- [ main] org.quartz.simpl.RAMJobStore : RAMJobStore initialized. compreface-api | 2021-10-11 19:43:45.201 INFO 7 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NONCLUSTERED' compreface-api | Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. compreface-api | NOT STARTED. compreface-api | Currently in standby mode. compreface-api | Number of jobs executed: 0 compreface-api | Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. compreface-api | Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. compreface-api | compreface-api | 2021-10-11 19:43:45.202 INFO 7 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance. compreface-api | 2021-10-11 19:43:45.202 INFO 7 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.3.2 compreface-api | 2021-10-11 19:43:45.202 INFO 7 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@39004e4f compreface-api | 2021-10-11 19:43:45.267 INFO 7 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler$_NON_CLUSTERED started. compreface-core | [uWSGI] getting INI configuration from uwsgi.ini compreface-core | Starting uWSGI 2.0.19 (64bit) on [Mon Oct 11 19:42:39 2021] compreface-core | compiled with version: 10.2.1 20210110 on 08 October 2021 14:24:11 compreface-core | os: Linux-5.11.0-37-generic #41~20.04.2-Ubuntu SMP Fri Sep 24 09:06:38 UTC 2021 compreface-core | nodename: c329a8cd7c59 compreface-core | machine: x86_64 compreface-core | clock source: unix compreface-core | detected number of CPU cores: 1 compreface-core | current working directory: /app/ml compreface-core | detected binary path: /usr/local/bin/uwsgi compreface-core | !!! no internal routing support, rebuild with pcre support !!! compreface-core | setgid() to 33 compreface-core | setuid() to 33 compreface-core | your memory page size is 4096 bytes compreface-core | detected max file descriptor number: 1048576 compreface-core | lock engine: pthread robust mutexes compreface-core | thunder lock: disabled (you can enable it with --thunder-lock) compreface-core | uwsgi socket 0 bound to TCP address 0.0.0.0:3000 fd 3 compreface-core | Python version: 3.7.12 (default, Sep 28 2021, 19:53:04) [GCC 10.2.1 20210110] compreface-core | Python main interpreter initialized at 0x55b9125bc390 compreface-core | python threads support enabled compreface-core | your server socket listen backlog is limited to 100 connections compreface-core | your mercy for graceful operations on workers is 60 seconds compreface-core | mapped 218712 bytes (213 KB) for 2 cores compreface-core | Operational MODE: preforking compreface-core | {"severity": "DEBUG", "message": "Falling back to TensorFlow client; we recommended you install the Cloud TPU client directly with pip install cloud-tpu-client.", "request": null, "logger": "tensorflow", "module": "tpu_cluster_resolver", "traceback": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.7/site-packages/tensorflow/python/distribute/cluster_resolver/tpu/tpu_cluster_resolver.py\", line 33, in \n from cloud_tpu_client import client # pylint: disable=g-import-not-at-top\nModuleNotFoundError: No module named 'cloud_tpu_client'\n", "build_version": "dev"} compreface-core | {"severity": "DEBUG", "message": "Creating converter from %s to %s", "request": null, "logger": "h5py._conv", "module": "init", "traceback": null, "build_version": "dev"} compreface-core | {"severity": "DEBUG", "message": "Creating converter from %s to %s", "request": null, "logger": "h5py._conv", "module": "init", "traceback": null, "build_version": "dev"} compreface-core | {"severity": "DEBUG", "message": "Creating converter from %s to %s", "request": null, "logger": "h5py._conv", "module": "init", "traceback": null, "build_version": "dev"} compreface-core | {"severity": "DEBUG", "message": "Creating converter from %s to %s", "request": null, "logger": "h5py._conv", "module": "init__", "traceback": null, "build_version": "dev"} compreface-core | {"severity": "INFO", "message": "{'BUILD_VERSION': 'dev', 'CALCULATION_PLUGIN': 'facenet.Calculator', 'EXTRA_PLUGINS': ['facenet.LandmarksDetector', 'agegender.AgeDetector', 'agegender.GenderDetector', 'facenet.facemask.MaskDetector'], 'FACE_DETECTION_PLUGIN': 'facenet.FaceDetector', 'GPU_IDX': -1, 'IMG_LENGTH_LIMIT': 640, 'INTEL_OPTIMIZATION': False, 'IS_DEV_ENV': False, 'LOGGING_LEVEL_NAME': 'DEBUG', 'ML_PORT': 3000}", "request": null, "logger": "src.app", "module": "app", "traceback": null, "build_version": "dev"} compreface-core | {"severity": "DEBUG", "message": "Creating new app for WSGI", "request": null, "logger": "src.app", "module": "app", "traceback": null, "build_version": "dev"} compreface-core | WSGI app 0 (mountpoint='') ready in 26 seconds on interpreter 0x55b9125bc390 pid: 1 (default app) compreface-core | uWSGI is running in multiple interpreter mode compreface-core | spawned uWSGI master process (pid: 1) compreface-core | spawned uWSGI worker 1 (pid: 9, cores: 1) compreface-core | spawned uWSGI worker 2 (pid: 10, cores: 1) compreface-core | {"severity": "INFO", "message": "200 OK", "request": {"method": "GET", "path": "/status", "filename": "", "api_key": "", "remoteaddr": "172.18.0.4"}, "logger": "src.services.flask.log_response", "module": "log_response", "traceback": null, "build_version": "dev"} compreface-api | 2021-10-11 19:43:45.353 WARN 7 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. compreface-api | 2021-10-11 19:43:45.356 INFO 7 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. compreface-api | 2021-10-11 19:43:45.366 WARN 7 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. compreface-api | 2021-10-11 19:43:45.371 INFO 7 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. compreface-api | 2021-10-11 19:43:45.902 INFO 7 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' compreface-api | 2021-10-11 19:43:46.803 INFO 7 --- [ main] o.a.coyote.http11.Http11NioProtocol : Starting ProtocolHandler ["http-nio-8080"] compreface-api | 2021-10-11 19:43:46.847 INFO 7 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '' compreface-api | 2021-10-11 19:43:46.855 INFO 7 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed compreface-api | 2021-10-11 19:43:46.904 INFO 7 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Found 2 custom documentation plugin(s) compreface-api | 2021-10-11 19:43:47.184 INFO 7 --- [ main] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references compreface-api | 2021-10-11 19:43:47.682 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: recognizeBase64UsingPOST_1 compreface-api | 2021-10-11 19:43:47.690 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: downloadImgUsingGET_1 compreface-api | 2021-10-11 19:43:47.834 INFO 7 --- [ main] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references compreface-api | 2021-10-11 19:43:47.900 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getCheckDemoUsingGET_1 compreface-api | 2021-10-11 19:43:47.955 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: detectUsingPOST_1 compreface-api | 2021-10-11 19:43:47.967 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: detectBase64UsingPOST_1 compreface-api | 2021-10-11 19:43:47.978 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: addEmbeddingUsingPOST_1 compreface-api | 2021-10-11 19:43:48.043 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: addEmbeddingBase64UsingPOST_1 compreface-api | 2021-10-11 19:43:48.045 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: deleteEmbeddingByIdUsingDELETE_1 compreface-api | 2021-10-11 19:43:48.049 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: downloadImgUsingGET_2 compreface-api | 2021-10-11 19:43:48.064 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: listEmbeddingsUsingGET_1 compreface-api | 2021-10-11 19:43:48.090 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: recognizeBase64UsingPOST_2 compreface-api | 2021-10-11 19:43:48.102 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: recognizeFileUsingPOST_1 compreface-api | 2021-10-11 19:43:48.105 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: removeAllSubjectEmbeddingsUsingDELETE_1 compreface-api | 2021-10-11 19:43:48.116 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: migrateUsingPOST_1 compreface-api | 2021-10-11 19:43:48.121 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_1 compreface-api | 2021-10-11 19:43:48.127 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_2 compreface-api | 2021-10-11 19:43:48.146 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: recognizeUsingPOST_1 compreface-api | 2021-10-11 19:43:48.159 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: recognizeBase64UsingPOST_3 compreface-api | 2021-10-11 19:43:48.161 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: downloadImgUsingGET_3 compreface-api | 2021-10-11 19:43:48.170 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: createSubjectUsingPOST_1 compreface-api | 2021-10-11 19:43:48.172 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: deleteSubjectUsingDELETE_1 compreface-api | 2021-10-11 19:43:48.173 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: deleteSubjectsUsingDELETE_1 compreface-api | 2021-10-11 19:43:48.175 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: listSubjectsUsingGET_1 compreface-api | 2021-10-11 19:43:48.180 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: renameSubjectUsingPUT_1 compreface-api | 2021-10-11 19:43:48.211 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: verifyUsingPOST_1 compreface-api | 2021-10-11 19:43:48.221 INFO 7 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: verifyBase64UsingPOST_1 compreface-api | 2021-10-11 19:43:48.300 INFO 7 --- [ main] com.exadel.frs.TrainServiceApplication : Started TrainServiceApplication in 46.237 seconds (JVM running for 60.966) compreface-api | 2021-10-11 19:47:19.129 INFO 7 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' compreface-api | 2021-10-11 19:47:19.132 INFO 7 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' compreface-api | 2021-10-11 19:47:19.277 INFO 7 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 141 ms compreface-postgres-db | 2021-10-11 19:42:47.866 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 compreface-postgres-db | 2021-10-11 19:42:47.866 UTC [1] LOG: listening on IPv6 address "::", port 5432 compreface-postgres-db | 2021-10-11 19:42:47.975 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" compreface-postgres-db | 2021-10-11 19:42:48.293 UTC [22] LOG: database system was shut down at 2021-10-11 15:00:08 UTC compreface-postgres-db | 2021-10-11 19:42:49.246 UTC [1] LOG: database system is ready to accept connections compreface-postgres-db | 2021-10-11 19:43:28.712 UTC [29] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0 compreface-postgres-db | 2021-10-11 19:43:29.625 UTC [31] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0 compreface-postgres-db | 2021-10-11 19:43:29.653 UTC [33] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0 compreface-postgres-db | 2021-10-11 19:43:34.595 UTC [35] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0 compreface-postgres-db | 2021-10-11 19:43:34.858 UTC [37] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0 compreface-postgres-db | 2021-10-11 19:43:34.866 UTC [39] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0 compreface-ui | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration compreface-ui | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ compreface-ui | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh compreface-ui | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist compreface-ui | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh compreface-ui | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh compreface-ui | /docker-entrypoint.sh: Configuration complete; ready for start up compreface-ui | 2021/10/11 19:47:11 [error] 22#22: 2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: ui, request: "POST /admin/oauth/token HTTP/1.1", upstream: "http://172.18.0.5:8080/oauth/token", host: "localhost:8000", referrer: "http://localhost:8000/login" compreface-ui | 172.18.0.1 - CommonClientId [11/Oct/2021:19:47:11 +0000] "POST /admin/oauth/token HTTP/1.1" 502 150 "http://localhost:8000/login" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0" compreface-ui | 2021/10/11 19:47:16 [error] 22#22: 2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: ui, request: "POST /admin/oauth/token HTTP/1.1", upstream: "http://172.18.0.5:8080/oauth/token", host: "localhost:8000", referrer: "http://localhost:8000/login" compreface-ui | 172.18.0.1 - CommonClientId [11/Oct/2021:19:47:16 +0000] "POST /admin/oauth/token HTTP/1.1" 502 150 "http://localhost:8000/login" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0" compreface-ui | 172.18.0.1 - - [11/Oct/2021:19:47:26 +0000] "GET /api/v1/consistence/status HTTP/1.1" 200 105 "http://localhost:8000/sign-up" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0" compreface-ui | 2021/10/11 19:47:26 [error] 22#22: 2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: ui, request: "GET /admin/user/demo/model HTTP/1.1", upstream: "http://172.18.0.5:8080/user/demo/model", host: "localhost:8000", referrer: "http://localhost:8000/sign-up" compreface-ui | 172.18.0.1 - - [11/Oct/2021:19:47:26 +0000] "GET /admin/user/demo/model HTTP/1.1" 502 150 "http://localhost:8000/sign-up" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0" compreface-ui | 172.18.0.1 - - [11/Oct/2021:19:47:52 +0000] "POST /admin/user/register HTTP/1.1" 502 150 "http://localhost:8000/sign-up" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0" compreface-ui | 2021/10/11 19:47:52 [error] 22#22: 2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: ui, request: "POST /admin/user/register HTTP/1.1", upstream: "http://172.18.0.5:8080/user/register", host: "localhost:8000", referrer: "http://localhost:8000/sign-up"

pospielov commented 3 years ago

Hi looks like something didn't initialized the first time you started the CompreFace Try to clean the installation: Run docker command: docker volume ls Find volume with name <folder_with_compreface_name>_postgres-data Probably it will be compreface_060_postgres-data run: docker volume rm compreface_060_postgres-data

iamanshulgit commented 3 years ago

Hi, I was checking the volume, but it was compreface_postgres-data Am I doing it wrong somewhere? I am going to try it again. Thank you for the help.

durgeshmeena commented 3 years ago

Hey @iamanshulgit The project is successfully running on my machine. I've checked my docker configuration and found out to be

I followed README.md inside the dev folder; everything worked fine (from dev/README.md)

Tips for Windows (use Git Bash terminal)

  1. Turn off the git autocrlf with the command: git config --global core.autocrlf false
  2. Make sure all your containers are down: docker ps
  3. In case some containers are working, they should be stopped: docker-compose down
  4. Clean all local databases and images: docker system prune --volumes
  5. Go to Dev folder cd dev
  6. Run sh start.sh and make sure http://localhost:4200/ starts

How to start for UI development:

Open a new terminal window and run the following commands:

Go to http://localhost:4200/ and you can sign up with any credentials.

pospielov commented 3 years ago

Hi, I was checking the volume, but it was compreface_postgres-data Am I doing it wrong somewhere? I am going to try it again. Thank you for the help.

The name is totally ok So you need to run: docker-compose down docker volume rm compreface_postgres-data docker-compose up -d Then check the logs: docker-compose logs -f --tail=100 when they stop appearing, try to open the browser: http://localhost:8000/login

pospielov commented 3 years ago

merged