0x0FB0 / pulsar

Network footprint scanner platform. Discover domains and run your custom checks periodically.
https://0x0fb0.github.io/pulsar/
Apache License 2.0
404 stars 84 forks source link

Installation Error #26

Closed emrahkocabuga closed 4 years ago

emrahkocabuga commented 4 years ago

Hi, I'm trying to install Pulsar on Centos but when it comes to the final stage, it stays on the screen below:

Error1

And I'm later trying to connection through browser i receive these errors:

Error2

What should I do to fix this error, can you help?

    Operating System: CentOS Linux 7 (Core)
    CPE OS Name: cpe:/o:centos:centos:7
    Kernel: Linux 3.10.0-1062.18.1.el7.x86_64
    Architecture: x86-64

centos-release-7-7.1908.0.el7.centos.x86_64

@FooBallZ

0x0FB0 commented 4 years ago

Check out this issue: https://github.com/FooBallZ/pulsar/issues/25

emrahkocabuga commented 4 years ago

Hi,

Thank you for the quick return. I tried many times your proposed solutions in #25 but the result is the same.. problem still continues

image

0x0FB0 commented 4 years ago

Make sure you are trying to access either https://localhost:8443 or https://127.0.0.1:8443. Otherwise you will get a 400 error.

So far I can see that installation seems to be broken. Password in db.env is not the same as the one that containers were built with.

Have you ran install.sh more than once?

Can you send me output of your install.sh, so I can investigate?

emrahkocabuga commented 4 years ago

Hi,

Yes i'm sure, I trying the access attempt correctly.

Yes I have ran install.sh more than once. But i before deleted containers completely and i fresh install docker then i tried.

I attached the install.sh output file.

Pulsar_Install.txt

0x0FB0 commented 4 years ago

Can you do:

# cat db.env
# docker-compose down
# docker-compose build --no-cache
# docker-compose up --force-recreate
# p=$(cat db.env | grep MYSQL_PASSW | cut -d '=' -f 2); docker-compose exec db mysql -u pulsar_db_user --password=$p -e 'USE pulsar; SHOW TABLES'

and send me the output?

emrahkocabuga commented 4 years ago

Hi,

I attached the Pulsar_Output.txt file.

Pulsar_Output.txt

0x0FB0 commented 4 years ago

Ok, you've stopped it with ^C but I saw migrations were successfull so It should work now.

do

docker-compose down
docker-compose up --force-recreate

And it will be working.

emrahkocabuga commented 4 years ago

Hi,

I did not stop the running process. The process stopped again on the screen at the last stage. Therefore I made ^C

I did something like this later: I installed fresh centos os and i did again installation pulsar with install.sh But the process stopped again on the screen at the last stage: image

I ran this command you gave in a different session: p=$(cat db.env | grep MYSQL_PASSW | cut -d '=' -f 2); docker-compose exec db mysql -u pulsar_db_user --password=$p -e 'USE pulsar; SHOW TABLES'

and result: image

What would you suggest me to do after this stage?

0x0FB0 commented 4 years ago

Open a browser and go to https://localhost:8443

emrahkocabuga commented 4 years ago

I get 400 error again:

79041829-90871100-7bfb-11ea-8ef7-887bef463b72

0x0FB0 commented 4 years ago

Can you run:

# docker-compose exec web tail -f /var/log/nginx/error.log
# docker-compose exec web tail -f logs/django.log

try to access the web app and check if any error appear?

emrahkocabuga commented 4 years ago

I ran first code but it stopped on the screen and then i ran second code, result: image

79041829-90871100-7bfb-11ea-8ef7-887bef463b72

0x0FB0 commented 4 years ago

I've mentioned at the very beginning:

Make sure you are trying to access either https://localhost:8443 or https://127.0.0.1:8443. Otherwise you will get a 400 error.

See TRUBLESHOOTING.md For external access you will need to configure ALLOWED_HOSTS and rebuild containers.