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

Error 404 immediately after install on clean VM #58

Open
Chluz opened this issue Aug 25, 2019 · 4 comments
Open

Error 404 immediately after install on clean VM #58

Chluz opened this issue Aug 25, 2019 · 4 comments

Comments

@Chluz
Copy link

Chluz commented Aug 25, 2019

Hi, I'm trying to use this to manage my certificates for Samba domain controllers and OpenVPN. I have followed the source install steps for a source install, but get an error 404 page when loading the https page.
The logs show no error:

Aug 25 16:01:31 ca certidude[7615]: Executing log_insert_entry.sql with (datetime.datetime(2019, 8, 25, 16, 1, 31, 519141), 'certidude.api.session', 20, 'info', 'Served CA certificate to 192.168.48.69', 'session', 'on_get', 17, '', 7623, 139841744570176, 'MainThread') Aug 25 16:01:31 ca certidude[7615]: Publishing log-entry event '{"created": "2019-08-25T16:01:31.519Z", "message": "Served CA certificate to 192.168.48.69", "severity": "info"}' on http://localhost/ev/pub/lidJVVGSKNSEgV5cJ5YzmFjIYLSBatKk

Is there something obvious that I am missing ?

Thanks very much

@KNGP14
Copy link

KNGP14 commented Sep 17, 2019

Same here

@KNGP14
Copy link

KNGP14 commented Sep 17, 2019

Options in /etc/nginx/sites-available/certidude.conf pass the URI <fqdn>/api/ to http://127.0.1.1:8080/api/.

This URI is unavaible (404):
curl -k -I http://testuser:test123@127.0.1.1:8080/api/
HTTP/1.0 404 Not Found
Date: Tue, 17 Sep 2019 20:57:36 GMT
Server: WSGIServer/0.2 CPython/3.5.2
content-type: application/json
Content-Length: 0
But without the leaving / ... It works!
curl -k http://testuser:test123@127.0.1.1:8080/api
{"features": {"leases": true, "tagging": true, "token": true, "logging": "sql"}, ...

@KNGP14
Copy link

KNGP14 commented Sep 17, 2019

Found issue in Falcon API
falconry/falcon#1544

To fix the issue go to certidude/api/__init__.py...
Before:
[29] app.req_options.auto_parse_form_urlencoded = True
[30] self.attach(app)
After:
[29] app.req_options.auto_parse_form_urlencoded = True
[29] app.req_options.strip_url_path_trailing_slash = True
[31] self.attach(app)

@Chluz
Copy link
Author

Chluz commented Sep 22, 2019

Thanks, that worked for me !

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

2 participants