Comments (8)
Hi!
I faced the same error after running the deploy command. Fixed it by following the below steps:
- Navigate to
crAPI/deploy/docker/
and opendocker-compose.yml
. - 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.
- Don't run the deploy command right now since the
postgresdb
container wil conflict with the postgresql installed on your system. First runsudo service postgresql status
to check whether postgres is running or not. If it is running, stop it using this command,sudo service postgresql stop
. - 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.
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:
- run 'sudo docker ps' and note the container ID associated with 'crapi-web'
- Run 'sudo docker inspect | grep com.docker.compose'
- Note the path of the file in the line that reads "com.docker.compose.project.config_files": "/home//docker-compose.yml",
- gedit '/home//docker-compose.yml' to edit the config file.
- 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"
- 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.
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
from crapi.
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.
Also worked for me on Macbook Air M1
from crapi.
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.
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.
@monrax, thank you
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
- Install crapi for the first time(ERROR: for crapi-web Container "28eac0bf7569" is unhealthy.) HOT 20
- 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.