When I go to https://< ip > the login box appears. I can see in the firefox developer tools that it is continuously hitting https://< ip >/api/ and returning 200 OK and receiving a json object with cluster_id, node_id, version and tagline.
However when ever I try to login using the default admin account I receive error
Error - the server returned: 404 - cannot POST https://<ip>/api/system/sessions (404)
As the instructions only require these commands to be run and I can see the webpage successfully hitting /api/ I figured that I did not mess up the configuration.
Would anybody be able to point me in the right direction to fix this issue?
Because I couldn’t get it working I followed the exact steps in the official documentation just in case which includes providing 443 as the port. I did note that the graylog-settings.conf file strips out the port anyway so you are correct that it is not needed.
Am I correct in thinking that it should work with the self signed certificates and I don’t have to installed custom certificates?
I am pretty sure the external URI is correct, I triple checked it to make sure I entered the right IP. I would have also thought that the initial call to /api/ would fail if the URI was incorrect. The calls to /API/ work it is only when calling /api/system/sessions that I get the 404.
Hello,
I think that I have figured this out. I was having the same issue on the Virtual Appliance.
Here is the diff of opt/graylog/conf/nginx/nginx.conf. The left side is after running sudo graylog-ctl enforce-ssl and the right side is after editing the file directly to fix it. The part that was really stumping me was on line 53, where the config that was generated for nginx should not have the /api appended to it.
This is the diff of /opt/graylog/conf/graylog.conf. Again, this is showing the left side after running sudo graylog-ctl enforce-ssl and the right side is after editing the file directly to fix it.