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

Intermittent startup error on Ubuntu Core 24 #3180

Open
benfrancis opened this issue Nov 22, 2024 · 1 comment
Open

Intermittent startup error on Ubuntu Core 24 #3180

benfrancis opened this issue Nov 22, 2024 · 1 comment
Labels
bug snap Issues relating to the snap package
Milestone

Comments

@benfrancis
Copy link
Member

STR:

  • Install webthings-gateway snap on Ubuntu Core 24 on Intel NUC

Expected:

  • Runs reliably

Actual:

  • At some point the gateway daemon crashed and failed to restart.

$ sudo journalctl -fu snap.webthings-gateway.webthings-gateway.service

Nov 22 18:43:43 localhost.localdomain systemd[1]: snap.webthings-gateway.webthings-gateway.service: Scheduled restart job, restart counter is at 4.
Nov 22 18:43:43 localhost.localdomain systemd[1]: Started snap.webthings-gateway.webthings-gateway.service - Service for snap application webthings-gateway.webthings-gateway.
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2236]: > [email protected] run-only
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2236]: > node build/app.js
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]: Opening database: /root/snap/webthings-gateway/19/.webthings/config/db.sqlite3
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]: /snap/webthings-gateway/19/lib/node_modules/webthings-gateway/node_modules/express/lib/router/route.js:16
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]: [57B blob data]
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:                              ^^^^^^^^^^^^^^^^^^^^^^^^
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]: SyntaxError: Invalid or unexpected token
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at wrapSafe (node:internal/modules/cjs/loader:1378:20)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at Module._compile (node:internal/modules/cjs/loader:1428:41)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at Module.load (node:internal/modules/cjs/loader:1288:32)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at Module._load (node:internal/modules/cjs/loader:1104:12)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at Module.require (node:internal/modules/cjs/loader:1311:19)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at require (node:internal/modules/helpers:179:18)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at Object.<anonymous> (/snap/webthings-gateway/19/lib/node_modules/webthings-gateway/node_modules/express/lib/router/index.js:16:13)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at Module._compile (node:internal/modules/cjs/loader:1469:14)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]:     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
Nov 22 18:43:43 localhost.localdomain webthings-gateway.webthings-gateway[2266]: Node.js v20.18.0
Nov 22 18:43:43 localhost.localdomain systemd[1]: snap.webthings-gateway.webthings-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 22 18:43:43 localhost.localdomain systemd[1]: snap.webthings-gateway.webthings-gateway.service: Failed with result 'exit-code'.
Nov 22 18:43:43 localhost.localdomain systemd[1]: snap.webthings-gateway.webthings-gateway.service: Scheduled restart job, restart counter is at 5.
Nov 22 18:43:43 localhost.localdomain systemd[1]: snap.webthings-gateway.webthings-gateway.service: Start request repeated too quickly.
Nov 22 18:43:43 localhost.localdomain systemd[1]: snap.webthings-gateway.webthings-gateway.service: Failed with result 'exit-code'.
Nov 22 18:43:43 localhost.localdomain systemd[1]: Failed to start snap.webthings-gateway.webthings-gateway.service - Service for snap application webthings-gateway.webthings-gateway.

Before this occured there was also an error on the console displayed via the HDMI output (transcribed by hand so there may be errors):

[ 1549.688665 ] DMAR: DRHD: handling fault status reg 3
[ 1549.693670] DMAR: [DMA Read NO_PASID] Request device [00:02.0] fault addr 0x892d6000 [fault reason 0x0c] non-zero reserved fields in PTE
@benfrancis benfrancis added bug snap Issues relating to the snap package labels Nov 22, 2024
@benfrancis
Copy link
Member Author

Started successfully after a reboot

@benfrancis benfrancis added this to the 2.0 milestone Nov 22, 2024
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: Sprint Backlog
Development

No branches or pull requests

1 participant