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

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

Closed
benfrancis opened this issue Aug 20, 2024 · 3 comments
Labels
bug snap Issues relating to the snap package
Milestone

Comments

@benfrancis
Copy link
Member

benfrancis commented Aug 20, 2024

STR:

Expected:

  • Successfully registers subdomain and redirects to it

Actual:

  • Web interface appears to freeze with a message seeing Processing...

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```
@benfrancis benfrancis added the snap Issues relating to the snap package label Aug 20, 2024
@benfrancis benfrancis added this to the 2.0 milestone Aug 20, 2024
@benfrancis benfrancis added the bug label Sep 3, 2024
@ogra1
Copy link
Contributor

ogra1 commented Sep 30, 2024

should be fixed with #3170

@benfrancis
Copy link
Member Author

@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
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug snap Issues relating to the snap package
Projects
Status: Done
Development

No branches or pull requests

2 participants