Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload-service doesnt start in OpenShift #21

Open
aureamunoz opened this issue Apr 17, 2023 · 0 comments
Open

upload-service doesnt start in OpenShift #21

aureamunoz opened this issue Apr 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@aureamunoz
Copy link
Owner

Upload service is not starting on OpenShift after deploy.

Before moving forward:

  • Install the latest quarkus client
sdk install quarkus 3.0.0.CR2
  • Or start the upload-service in dev mode and go to the dev-ui:
    quarkus dev or mvn quarkus:dev
    and navigate to http://localhost:8080/q/dev-ui

  • Make sure that you are connected to an OpenShift cluster (I used the SandBox Openshift)**

Steps to reproduce:

1 - Checkout the secret-access-issue branch.
git checkout secret-access-issue

2- Navigate to upload-service

cd upload-service

3 - Before deploy the upload-service, apply the following files in order to create the DB, secret and route that upload-service needs.

kubectl apply -f ../kubernetes

4-Deploy upload-microservice via the quarkus cli:

quarkus deploy openshift --image-build

You can also deploy from the dev-ui by clicking in the corresponding link listed in the OpenShift extension.

5 - Go to OpenShift console and check the upload-service pod logs:

Starting the Java application using /opt/jboss/container/java/run/run-java.sh ...
INFO exec java -Xms125m -Xmx500m -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError -cp "." -jar /deployments/quarkus-run.jar
Model classes are defined for the default persistence unit <default> but configured datasource <default> not found: the default EntityManagerFactory will not be created. To solve this, configure the default datasource. Refer to https://quarkus.io/guides/datasource for guidance.

The application is not able to access upload-service secret and can not start.

@aureamunoz aureamunoz added the bug Something isn't working label Apr 17, 2023
@aureamunoz aureamunoz self-assigned this Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant