Comments (20)
cheers!
from crapi.
Can you please provide container logs and compose file used.
from crapi.
Loading default JWKS file.
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v2.6.1)
2023-05-30 04:16:46.784 INFO 8 --- [ main] com.crapi.CRAPIBootApplication : Starting CRAPIBootApplication using Java 11.0.15 on 2362df02c372 with PID 8 (/app/identity-service-1.0-SNAPSHOT.jar started by root in /)
2023-05-30 04:16:46.787 INFO 8 --- [ main] com.crapi.CRAPIBootApplication : No active profile set, falling back to default profiles: default
2023-05-30 04:16:48.311 INFO 8 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-05-30 04:16:48.416 INFO 8 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 99 ms. Found 8 JPA repository interfaces.
2023-05-30 04:16:49.400 INFO 8 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-05-30 04:16:49.407 INFO 8 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-05-30 04:16:49.407 INFO 8 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.55]
2023-05-30 04:16:49.500 INFO 8 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-05-30 04:16:49.500 INFO 8 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2583 ms
2023-05-30 04:16:49.596 WARN 8 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2023-05-30 04:16:49.798 INFO 8 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2023-05-30 04:16:49.910 INFO 8 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.1.Final
2023-05-30 04:16:50.190 INFO 8 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2023-05-30 04:16:50.306 INFO 8 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2023-05-30 04:16:50.508 INFO 8 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2023-05-30 04:16:50.572 INFO 8 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect
2023-05-30 04:16:52.226 INFO 8 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2023-05-30 04:16:52.272 INFO 8 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-05-30 04:16:54.701 DEBUG 8 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : 28 mappings in 'requestMappingHandlerMapping'
2023-05-30 04:16:54.892 DEBUG 8 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Patterns [/webjars/, /] in 'resourceHandlerMapping'
2023-05-30 04:16:54.903 INFO 8 --- [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@b73433, org.springframework.security.web.context.SecurityContextPersistenceFilter@31db34da, org.springframework.security.web.header.HeaderWriterFilter@2da16263, org.springframework.web.filter.CorsFilter@1bf14704, org.springframework.security.web.authentication.logout.LogoutFilter@2a097d77, com.crapi.config.JwtAuthTokenFilter@2c7a8af2, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@5edacf20, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1220ef43, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@5a545b0f, org.springframework.security.web.session.SessionManagementFilter@311ff287, org.springframework.security.web.access.ExceptionTranslationFilter@235d659c, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@5b88b8e]
2023-05-30 04:16:55.006 DEBUG 8 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice
2023-05-30 04:16:55.121 DEBUG 8 --- [ main] .m.m.a.ExceptionHandlerExceptionResolver : ControllerAdvice beans: 1 @ExceptionHandler, 1 ResponseBodyAdvice
2023-05-30 04:16:55.484 INFO 8 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2023-05-30 04:16:55.491 INFO 8 --- [ main] com.crapi.CRAPIBootApplication : Started CRAPIBootApplication in 9.612 seconds (JVM running for 10.289)
^C
root@ubuntu-linux-22-04-desktop:~# docker ps
from crapi.
![image](https://private-user-images.githubusercontent.com/47629854/241847607-0648c410-8e62-485b-a406-f93d70e01b4f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcyMDc3MjEsIm5iZiI6MTcxNzIwNzQyMSwicGF0aCI6Ii80NzYyOTg1NC8yNDE4NDc2MDctMDY0OGM0MTAtOGU2Mi00ODViLWE0MDYtZjkzZDcwZTAxYjRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjAxVDAyMDM0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhYzZlMzI1YzNmNWRkYjE1NTM5NDg4NGJhYTRlYTI1MWU1M2ViODU5OTk3YTRkNzI4ZWYxODI5MTEzOGEyNzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Zj98xO5oJWX3nwCd-Wy_vEU0-n4Y4Ve1S1FNeP4m7V0)
from crapi.
![image](https://private-user-images.githubusercontent.com/47629854/241847681-40f0d8b7-29f6-432c-8758-64afd8248886.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcyMDc3MjEsIm5iZiI6MTcxNzIwNzQyMSwicGF0aCI6Ii80NzYyOTg1NC8yNDE4NDc2ODEtNDBmMGQ4YjctMjlmNi00MzJjLTg3NTgtNjRhZmQ4MjQ4ODg2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjAxVDAyMDM0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5ZTFkZGU5MWRhMDM0M2Q2Y2FjZDkxMDMzZTNjNGQ1YzM1YTVjYThlNTU0NTU4YzcwZTYxMzYyMmJlOWVjMmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4FK_iSWEe9au6YVGJAdTRC200hbkjVa6GFfKDEJO2Lg)
from crapi.
![image](https://private-user-images.githubusercontent.com/47629854/241847898-e40133cb-db38-480c-ae6a-85d559137492.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcyMDc3MjEsIm5iZiI6MTcxNzIwNzQyMSwicGF0aCI6Ii80NzYyOTg1NC8yNDE4NDc4OTgtZTQwMTMzY2ItZGIzOC00ODBjLWFlNmEtODVkNTU5MTM3NDkyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjAxVDAyMDM0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU4ZGY0OTkyMDgwMjg2YzFiZTM2ZTNmNTY4ODdmMTU2NTY4OGIzMWUyZGY5Y2FjYjRkZjFiYzBkOTZjNjg4N2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Eg8LSlldgzV5eXqgssFzFbqb-b-t8B_0bw-O1NV7jjU)
from crapi.
samething happens to me if the mongodb is healthy the crapi community is unhealthy and vice versa
I tired everything
this is so boring and time consuming
from crapi.
mine doesn't even returns an error code, just says "crAPI container is unhealthy"
steps i've taken
- clear any reminisce of crAPI
- purged and reinstalled docker-compose
- downloaded the yml file
- ran it still the same issue
- setup a new instance of ubuntu and built it from scratch with same results
one thing i noticed is that amongst all, the "crAPI-identity" takes the longest to run
hopefully this helps.
from crapi.
Can you run docker logs crapi-identity
and provide the output
from crapi.
just after that you run sudo docker-compose restart and it will work
from crapi.
docker logs crapi-identity
sure, here you go;
crapi_log.txt
from crapi.
just after that you run sudo docker-compose restart and it will work
tried that and it did not work. :(
from crapi.
delete crAPI and installed again
use sudo to run the commands
I faced same issues and that is how I fixed
sudo docker-compose start => crapi-community or crapi-identity error
I kill the execution and then I run sudo docker-compose restart
it works for me
from crapi.
delete crAPI and installed again use sudo to run the commands I faced same issues and that is how I fixed sudo docker-compose start => crapi-community or crapi-identity error I kill the execution and then I run sudo docker-compose restart it works for me
tyvm for that, i'll give that a try, btw are you on Twitter or LinkedIn ?
from crapi.
from crapi.
just after that you run sudo docker-compose restart and it will work
In my case, crapi-web
was the one being unhealthy.
What I did was the following:
- docker-compose restart
- docker-compose up
from crapi.
it doesnot work for me. I have the same issue.
from crapi.
from crapi.
Hi all,
Try with these commands, it's worked for me
VERSION=develop docker-compose -f docker-compose.yml pull
and then
VERSION=develop docker-compose -f docker-compose.yml --compatibility up -d
from crapi.
install the latest version of docker-compose and move it to /usr/local/bin/. If you still get the error "crapi-identity is unhealthy" type "dokcer-compose restart" if it doesn't work uninstall and repeat. It just worked for me
from crapi.
Related Issues (20)
- Can't reach localhost:8888 after suspending my virtual machine HOT 1
- Coupon and Coupons are different collections ? HOT 2
- Inacessible mechanic_api when using HTTPS HOT 2
- Traceback (most recent call last): crapi-workshop | File "/app/crapi/merchant/tests.py", line 134, in test_contact_mechanic
- Vagrant deploy does not work as documentation
- Container Mongodb error HOT 1
- Unable to get crAPI deployed via k8s HOT 6
- `docker-compose -f docker-compose.yml --compatibility up -d` doesn't build anything HOT 1
- crapi/gateway-service:latest always turns unhealthy HOT 6
- api.mypremiumdealership.com is unhealthy and crapi-web does not load HOT 1
- Root path HOT 1
- error when trying to run crAPI using docker-compose HOT 1
- crAPI main page not loading on localhost
- required but undefined property 'converstion_params' in openapi-spec.json
- Can't uninstall crAPI completely HOT 4
- Need help with challenge 13
- PostgreSQL database not accepting edits
- Getting Core Dumped Error!!
- Install crAPI in userland Kali Linux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crapi.