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

Cannot start Webinterface #412

Open
bypass1 opened this issue Oct 9, 2019 · 9 comments
Open

Cannot start Webinterface #412

bypass1 opened this issue Oct 9, 2019 · 9 comments

Comments

@bypass1
Copy link

bypass1 commented Oct 9, 2019

What do you want to Launch?:
1+) Redis
2+) Ardb
3+) Logs
4+) Queues
5+) Scripts
6 ) Killall
7 ) Shutdown
8 ) Update-config
9 ) Update-thirdparty
Scripts was checked
Check an option (again to uncheck, ENTER when done):
* Launching Redis servers
* Launching ARDB servers
* Launching logging process
* Launching all the queues
* Checking configuration
* Configuration up-to-date
* Launching ZMQ scripts
Launching web interface, 3 seconds to escape
Misp not connected
The HIVE not connected
Traceback (most recent call last):
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 484, in connect
sock = self._connect()
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 541, in _connect
raise err
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 529, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/client.py", line 667, in execute_command
connection.send_command(*args)
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 610, in send_command
self.send_packed_command(self.pack_command(*args))
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 585, in send_packed_command
self.connect()
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6382. Connection refused.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 484, in connect
sock = self._connect()
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 541, in _connect
raise err
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 529, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Flask_server.py", line 126, in
r_serv_tags.sadd('active_taxonomies', 'infoleak')
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/client.py", line 1600, in sadd
return self.execute_command('SADD', name, *values)
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/client.py", line 673, in execute_command
connection.send_command(*args)
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 610, in send_command
self.send_packed_command(self.pack_command(*args))
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 585, in send_packed_command
self.connect()
File "/home/ail/AIL-framework/AILENV/lib/python3.5/site-packages/redis/connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6382. Connection refused.

@Terrtia
Copy link
Member

Terrtia commented Oct 9, 2019

HI @bypass1 !

It seem that you are using an outdated version of AIL.
You need to update to the last version and use the launcher -l flag

git pull
./LAUNCH -l

@bypass1
Copy link
Author

bypass1 commented Oct 9, 2019

thanks for quick reply...:)
Now i updated with git pull....but the webinterface isnt start anyway

(AILENV) ail@ail:~/AIL-framework/bin$ ./LAUNCH.sh -l
        * Checking configuration
Config File: Nothing to update
Config File: Nothing to update
        * Configuration up-to-date
******************************************************************
*                        Updating AIL ...                        *
******************************************************************
Check if this repository is a fork:
    This repository is a fork

... Updating fork ...
Fork Auto-Update disabled in config file

Aborting ...
******************************************************************
*                    AIL Not Updated                             *
******************************************************************

        * Launching Redis servers
        * Launching ARDB servers
        * Launching logging process
        * Launching all the queues
Could not connect to Redis at 127.0.0.1:6382: Connection refused
        6382 ARDB not ready
        Script not started, waiting 5 more secondes
        * Checking configuration
Config File: Nothing to update
Config File: Nothing to update
        * Configuration up-to-date
        * Launching scripts
        * Launching Flask server
(AILENV) ail@ail:~/AIL-framework/bin$

@Terrtia
Copy link
Member

Terrtia commented Oct 9, 2019

        * Launching Flask server

Everything seem to works as expected.
You should get access to the web interface: https://localhost:7000/

You can check the status of the flask server: screen -r AIL_FLASK

Are you using a fork or a clone ?

@bypass1
Copy link
Author

bypass1 commented Oct 9, 2019

i reset to the old snapshot and do the process again:

git pull
-> not working because "modified: bin/feeder/test-zmq.py"
git stash
git pull
git stash pop
./LAUNCH -l


        * Configuration up-to-date
******************************************************************
*                        Updating AIL ...                        *
******************************************************************
Modified Files:
bin/feeder/test-zmq.py

Please, commit your changes or stash them before you can update AIL

Aborting ...
******************************************************************
*                    AIL Not Updated                             *
******************************************************************

        * Launching Redis servers
        * Launching ARDB servers
        * Launching logging process
        * Launching all the queues
Could not connect to Redis at 127.0.0.1:6382: Connection refused
        6382 ARDB not ready
        Script not started, waiting 5 more secondes
Could not connect to Redis at 127.0.0.1:6382: Connection refused
        6382 ARDB not ready
        Script not started
        Script not started, waiting 5 more secondes
Could not connect to Redis at 127.0.0.1:6382: Connection refused
        6382 ARDB not ready
        Script not started
        Script not started, waiting 5 more secondes
Could not connect to Redis at 127.0.0.1:6382: Connection refused
        6382 ARDB not ready
        Script not started
        Script not started, waiting 5 more secondes
Could not connect to Redis at 127.0.0.1:6382: Connection refused
        6382 ARDB not ready
        Script not started
        Script not started, waiting 5 more secondes
        * Checking configuration
Config File: Nothing to update
Config File: Nothing to update
        * Configuration up-to-date
        * Launching scripts
        * Launching Flask server

(AILENV) ail@ail:~/AIL-framework/bin$ screen -r AIL_FLASK
There is no screen to be resumed matching AIL_FLASK.
(AILENV) ail@ail:~/AIL-framework/bin$ wget localhost:7000
--2019-10-09 16:06:05--  http://localhost:7000/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:7000... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:7000... failed: Connection refused.

@bypass1
Copy link
Author

bypass1 commented Oct 9, 2019

i dont use a fork or clone....i deployed the .ova image

@michaelhku2002
Copy link

I also downloaded the OVA file and then imported in to VirtualBox to try to run it for comparing my installation of the framework starting from scratch. However, I also had the error messages as the OP has. Then I tried to search for the root cause, finding surprisingly that there is no apache in the OVA. So I wish to know that if the web UI can really be accessible even though no apache is needed? Thanks!

@SalmounHaytam
Copy link

Any Update on this situation

@michaelhku2002
Copy link

michaelhku2002 commented Mar 10, 2021 via email

@SalmounHaytam
Copy link

SalmounHaytam commented Mar 10, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants