WebThingsIO / gateway

WebThings Gateway - a self-hosted web application for monitoring and controlling a building over the web
http://webthings.io/gateway
Mozilla Public License 2.0
2.62k stars 339 forks source link

[Snap] [pagekite] stderr: /bin/sh: 1: /snap/webthings-gateway/x1/lib/node_modules/webthings-gateway/pagekite.py: not found #3150

Closed benfrancis closed 1 month ago

benfrancis commented 3 months ago

STR:

Expected:

Actual:

Logs:

2024-07-19T15:39:39+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:39.019 INFO   : Sent subscription to registration server
2024-07-19T15:39:44+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:44.017 INFO   : Set DNS token on registration server
2024-07-19T15:39:57+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:57.424 INFO   : Received certificate from Let's Encrypt
2024-07-19T15:39:57+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:57.426 INFO   : Wrote certificates to file system
2024-07-19T15:39:58+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:58.287 INFO   : Registration success!
2024-07-19T15:39:58+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:58.306 INFO   : HTTPS server listening on port 4443
2024-07-19T15:39:58+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:58.306 INFO   : Redirector listening on port 8080
2024-07-19T15:39:58+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:58.330 INFO   : [pagekite] stderr: /bin/sh: 1: /snap/webthings-gateway/x1/lib/node_modules/webthings-gateway/pagekite.py: not found
2024-07-19T15:39:58+01:00 webthings-gateway.webthings-gateway[44699]: 
2024-07-19T15:39:58+01:00 webthings-gateway.webthings-gateway[44699]: 2024-07-19 15:39:58.334 INFO   : [pagekite] process exited with code 127

When trying to load the subdomain in a browser, get an error:


An error occurred during a connection to tola4.webthings.io. Peer received a valid certificate, but access was denied.

Error code: SSL_ERROR_ACCESS_DENIED_ALERT```
ogra1 commented 1 month ago

should be fixed with https://github.com/WebThingsIO/gateway/pull/3170

benfrancis commented 1 month ago

@ogra1 Thank you for the patch. I have landed it but have not yet been able to test the built snap due to #3171

benfrancis commented 1 month ago

I've now been able to test this and it works, thank you :)

We might want to do something similar outside the snap as well because I think this now also reproduces on Ubuntu Desktop.