Coder Social home page Coder Social logo

Unable to connect to webserver about crapi HOT 8 CLOSED

owasp avatar owasp commented on August 30, 2024
Unable to connect to webserver

from crapi.

Comments (8)

dravadhis avatar dravadhis commented on August 30, 2024 3

Hi!
I faced the same error after running the deploy command. Fixed it by following the below steps:

  1. Navigate to crAPI/deploy/docker/ and open docker-compose.yml.
  2. Scroll through the file and uncomment the wherever you see a ports reference. (ports for all services have been commented for some reason). Save the file and exit.
  3. Don't run the deploy command right now since the postgresdb container wil conflict with the postgresql installed on your system. First run sudo service postgresql status to check whether postgres is running or not. If it is running, stop it using this command, sudo service postgresql stop.
  4. Now run the deploy command, docker-compose -f deploy/docker/docker-compose.yml --compatibility up -d.

These steps worked for my system (OS: Ubuntu 20.04 LTS).

If it's not working even after all this, run the deploy command and inspect the containers using docker inspect <container_name>. The command lists whether a container is running and healthy. If it isn't, check the container logs whose location is mentioned somewhere in the output of the docker inspect command. For container names, refer to the docker-compose.yml file.

Regards

from crapi.

vtnrd avatar vtnrd commented on August 30, 2024 1

If you need to configure crAPI to be accessible from another machine over a private (or public IP address), then follow these instructions. Note that these instructions are specific to Ubuntu 20.04 LTS.

To find the 'docker-compose.yml' config file and configure the private (or public) IP address you can use to access the crAPI web UI page from another machine, i.e. Kali:

  1. run 'sudo docker ps' and note the container ID associated with 'crapi-web'
  2. Run 'sudo docker inspect | grep com.docker.compose'
  3. Note the path of the file in the line that reads "com.docker.compose.project.config_files": "/home//docker-compose.yml",
  4. gedit '/home//docker-compose.yml' to edit the config file.
  5. Add the private (or public) IP address to the section of the config file labeled 'crapi-web':
    #The following entry is already present.
  • "127.0.0.1:8888:80"
    #Add the IP address associated with the machine that hosts crAPI. I'm using VMware Workstation and my crAPI VM happened to assign the following IP address:
  • "192.168.216.132:8888:80"
  1. Read and follow dravadhis' instructions above. You can run the following command to determine all services are running: 'sudo service --status-all'. Also, you may need to change the path to your 'docker-compose.yaml' file.

Note 1. On Ubuntu Linux, run 'ip address' to find the IP address associated with the ens33 interface.
Note 2. You may need to edit the host firewall (iptables), specifically the DOCKER chain, to allow connectivity to crAPI over the private (or public) API.

from crapi.

victorwaldron avatar victorwaldron commented on August 30, 2024 1

Hello, I installed craPI and I can open both http://localhost:8888 and http://localhost:8025/#, but when I try to register in craPI, and put the password and also use the one suggested by the system, this one by More than I change the password, I still get this message: Password should contain at least one digit, one small letter and one capital letter and should at least contain 8 characters.
I don't understand why it won't let me register.
Any suggestion for that?
Thank you
crapi singup

from crapi.

monrax avatar monrax commented on August 30, 2024 1

Hello @victorwaldron , I was facing the same issue. Turns out the password validation regex looks for one of the following symbols: #$@!%&*? besides what the message states (one digit, one small letter, one capital letter and at least 8 characters long).

Hope this helps!

from crapi.

vdvcoder avatar vdvcoder commented on August 30, 2024

Also worked for me on Macbook Air M1

from crapi.

razvan22 avatar razvan22 commented on August 30, 2024

Hi ! I just installed crAPI and it works on http://localhost:8888 but not by ip ex:http://192.168.0.107:8888 , i want to access it from another machine it works with Juice Shop any suggestions?

from crapi.

vtnrd avatar vtnrd commented on August 30, 2024

Hi ! I just installed crAPI and it works on http://localhost:8888 but not by ip ex:http://192.168.0.107:8888 , i want to access it from another machine it works with Juice Shop any suggestions?

#18 (comment)

from crapi.

elcreek avatar elcreek commented on August 30, 2024

@monrax, thank you

from crapi.

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.