[GH-ISSUE #58] Error 404 immediately after install on clean VM #50

Open
opened 2026-02-26 03:33:34 +03:00 by kerem · 4 comments
Owner

Originally created by @Chluz on GitHub (Aug 25, 2019).
Original GitHub issue: https://github.com/laurivosandi/certidude/issues/58

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

Originally created by @Chluz on GitHub (Aug 25, 2019). Original GitHub issue: https://github.com/laurivosandi/certidude/issues/58 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
Author
Owner

@KNGP14 commented on GitHub (Sep 17, 2019):

Same here

<!-- gh-comment-id:532359314 --> @KNGP14 commented on GitHub (Sep 17, 2019): Same here
Author
Owner

@KNGP14 commented on GitHub (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"}, ...

<!-- gh-comment-id:532402266 --> @KNGP14 commented on GitHub (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"}, ...`
Author
Owner

@KNGP14 commented on GitHub (Sep 17, 2019):

Found issue in Falcon API
https://github.com/falconry/falcon/issues/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)

<!-- gh-comment-id:532406593 --> @KNGP14 commented on GitHub (Sep 17, 2019): Found issue in Falcon API https://github.com/falconry/falcon/issues/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)`
Author
Owner

@Chluz commented on GitHub (Sep 22, 2019):

Thanks, that worked for me !

<!-- gh-comment-id:533876924 --> @Chluz commented on GitHub (Sep 22, 2019): Thanks, that worked for me !
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certidude-laurivosandi#50
No description provided.