Code Monkey home page Code Monkey logo

Comments (10)

vmpowercli avatar vmpowercli commented on July 23, 2024

561d5e883d86:/$ curl http://localhost:8080
<!doctype html><title>HTTP Status 404 – Not Found</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style>

HTTP Status 404 – Not Found


Type Status Report

Message Not found

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat/9.0.8

561d5e883d86:/$

from cloud-portal.

chrisipa avatar chrisipa commented on July 23, 2024

Can you post the log file of the Spring boot application? It seems like there was a problem creating the Spring context. My guess is that the connection to the MongoDB is not working properly. It would also be helpful to get your Docker compose configuration file here (please remove any passwords, secrets, etc.).

from cloud-portal.

vmpowercli avatar vmpowercli commented on July 23, 2024

I just created a docker image from this configuration
mongodb:
image: mongo:3.4.10
volumes:
- /opt/cloud-portal/data:/data/db

tomcat:
image: chrisipa/cloud-portal-server:latest
links:
- mongodb
ports:
- 80:8080
- 443:8443
volumes:
- /opt/cloud-portal/logs:/opt/tomcat/logs
environment:
- 'APPLICATION_TITLE=My Cloud Portal'
- 'APPLICATION_ADMIN_GROUP=my-admin-group'
- 'ENCRYPTOR_SECRET=my-encryptor-secret'
- 'LDAP_BASE_DN=dc=my,dc=domain'
- 'LDAP_GROUP_ATTRIBUTE=memberOf'
- 'LDAP_LOGIN_ATTRIBUTE=userPrincipalName'
- 'LDAP_PASSWORD=my-ldap-password'
- 'LDAP_PRINCIPAL=cn=my-admin-user,ou=users,dc=my,dc=domain'
- 'LDAP_URL_STRING=ldap://my-ldap-server-1:389,ldap://my-ldap-server-2:389'
- 'LDAP_USER_SEARCH_FILTER=(objectClass=inetOrgPerson)'
- 'MAIL_FROM=[email protected]'
- 'MAIL_CC=[email protected]'
- 'MAIL_HOST=my-mail-server'
- 'MAIL_SEND=true'
- 'MONGO_DB_URI=mongodb://mongodb:27017/cloud-portal'

from cloud-portal.

chrisipa avatar chrisipa commented on July 23, 2024

Can you please attach the cloud-portal.log file here?

from cloud-portal.

vmpowercli avatar vmpowercli commented on July 23, 2024

I found the location for Cloud-portal/logs but there are no logs inside the folder.

from cloud-portal.

chrisipa avatar chrisipa commented on July 23, 2024

I think now I know what could be the problem. Please make sure to create a underprivileged user to run the cloud portal container. Also make sure that this user must be the owner of the cloud portal root folder:

/opt/cloud-portal

See this url as a reference:

https://github.com/chrisipa/docker-library/blob/master/debian-pom/java-pom/tomcat-pom/tomcat/README.md#preparation-create-a-underprivileged-user-on-the-host-system

from cloud-portal.

vmpowercli avatar vmpowercli commented on July 23, 2024

I followed the above doc and added right permissions.. but still it did not work...

from cloud-portal.

chrisipa avatar chrisipa commented on July 23, 2024

Can you post the output of the following command here?

docker-compose logs tomcat

from cloud-portal.

chrisipa avatar chrisipa commented on July 23, 2024

So did you gave up or does everything work as expected?

from cloud-portal.

vmpowercli avatar vmpowercli commented on July 23, 2024

I gave up.. I tried all possible ways and it wont work.. Sorry :)

from cloud-portal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.