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

Can't access from browser #7

Closed
kishore-negi opened this issue Jul 20, 2016 · 8 comments
Closed

Can't access from browser #7

kishore-negi opened this issue Jul 20, 2016 · 8 comments

Comments

@kishore-negi
Copy link

Hi

I can't access the https://192.168.42.173 from any browser. It's showing me an error : Bad Request (400)
But I am able to access Kibana, via; https://192.168.42.173:8443

So kindly help me to access that asap.

Thanks
Kishore

@roshanmaskey
Copy link
Collaborator

Hi Kishore,

I am assuming you are using v1.0.2.

Can you restart the service using following commands
sudo systemctl stop nighthawk
sudo systemctl start nighthawk

sudo systemctl status nighthawk (should say active (exited))

Let me know if you still have error accessing the main app.

@kishore-negi
Copy link
Author

Hi,

I have already tried this one and yes i'm using v1.0.2. But i am still facing the same error.Bad Request (400)
For your reference:

[root@nighthawk admin]# sudo systemctl stop nighthawk
[root@nighthawk admin]# sudo systemctl start nighthawk
[root@nighthawk admin]# sudo systemctl status nighthawk
nighthawk.service - nightHawk Response Service
Loaded: loaded (/usr/lib/systemd/system/nighthawk.service; enabled)
Active: active (exited) since Wed 2016-07-20 23:31:18 UTC; 2s ago
Process: 11429 ExecStop=/opt/nighthawk/bin/nighthawkctl service stop (code=exited, status=0/SUCCESS)
Process: 11453 ExecStart=/opt/nighthawk/bin/nighthawkctl service start (code=exited, status=0/SUCCESS)
Main PID: 11453 (code=exited, status=0/SUCCESS)

Jul 20 23:30:56 nighthawk.local systemd[1]: Starting nightHawk Response Service...
Jul 20 23:31:18 nighthawk.local systemd[1]: Started nightHawk Response Service.

@roshanmaskey
Copy link
Collaborator

Could you please send logs from following locations to
-- roshanmaskey@gmail.com
-- daniel.eden@gmail.com

/var/log/nginx
/var/log/audit
/opt/nighthawk/var/log

@biggiesmallsAG
Copy link
Owner

Hi kishore-negi,

Just quickly, did you change any settings after you installed the ISO? Did the web gui work at all or it wasn't working from the start?

Regards,

Daniel

@kishore-negi
Copy link
Author

Hi All,

Daniel, I haven't change any settings except ip address,gateway and dns.
The web gui didn't work from the starting for the main app but i'm able to
access the Kibana on port 8443.

Below find the attached logs .

Thanks
Kishore

On Thu, Jul 21, 2016 at 5:51 AM, biggiesmallsAG notifications@github.com
wrote:

Hi kishore-negi,

Just quickly, did you change any settings after you installed the ISO? Did
the web gui work at all or it wasn't working from the start?

Regards,

Daniel


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATnSOv20O_SS7zHxPbBDUrG-mWShPH-Bks5qXruFgaJpZM4JRPwS
.

@roshanmaskey
Copy link
Collaborator

Hi Kishore,

It looks like that while changing IP address you did not use following command
/opt/nighthawk/bin/nighthawkctl set-ip <new_ip_address>

Application needs to change IP address at multiple location so I would suggest you to use that.

You can fix your current issue by updating IP address in following file.
/opt/nighthawk/web/nighthawk/settings.py
replace 192.168.42.173 with 192.168.104.52 in ALLOWED_HOSTS
i.e. ALLOWED_HOSTS = ['192.168.104.52','nighthawk.local']

Restart the application after saving the change.

@kishore-negi
Copy link
Author

Thanks roshanmaskey and daniel for the help.

It's working now.

kishore

@biggiesmallsAG
Copy link
Owner

no worries kishore!

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

3 participants