Errors and warn

Thanks to gwm_admin, I am now able to check standard logs:

Do I need to pay attention to the following errors:

1.Client log: Error connecting to wss://o8o.icu:443/tracker/socket

warn[2023-07-26, 6:39:18 p.m.] Client log: Error connecting to wss://o8o.icu:443/tracker/socket

{
  "tags": [
    "client"
  ],
  "username": "root",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0",
  "stackTrace": "Error connecting to wss://o8o.icu:443/tracker/socket\n_handleError@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:78325\nk/this._ws.onerror@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:76469\nft@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:73789\ninvokeTask@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:69444\nrunTask@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:64752\ninvokeTask@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:70503\nT@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:83281\nF@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:83597\nY@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:83879\n",
  "url": "https://o8o.icu/w/uMb6Du8iSkLwZb6qSVrRdL"
}

2.Cannot run hook action:api.video.updated of plugin chapters.

error[2023-07-26, 6:39:17 p.m.] Cannot run hook action:api.video.updated of plugin chapters.

{
  "err": {
    "stack": "TypeError: Cannot read properties of null (reading 'trim')\n    at parseTableOfContents (/var/www/peertube/storage/plugins/node_modules/peertube-plugin-chapters/dist/shared/common.js:21:18)\n    at Object.<anonymous> (/var/www/peertube/storage/plugins/node_modules/peertube-plugin-chapters/dist/server/main.js:37:64)\n    at Generator.next (<anonymous>)\n    at fulfilled (/var/www/peertube/storage/plugins/node_modules/peertube-plugin-chapters/dist/server/main.js:5:58)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)",
    "message": "Cannot read properties of null (reading 'trim')"
  }
}

3.Client log: Unknown infoHash

warn[2023-07-26, 6:35:21 p.m.] Client log: Unknown infoHash 744dbb63942fa707c8087eef8f3d2a9e33c695bc requested by ip 204.197.182.XX

{
  "tags": [
    "client"
  ],
  "username": "root",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0",
  "stackTrace": "Unknown infoHash 744dbb63942fa707c8087eef8f3d2a9e33c695bc requested by ip 204.197.182.XX\n_onAnnounceResponse@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:8223\n_onSocketData@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:7641\n_openSocket/this._onSocketDataBound@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:6534\n30711/R.prototype.emit@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:17953\nV@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:28165\nW@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:27995\n53800/P.prototype.push@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:28779\n_handleMessage@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:78216\nk/this._ws.onmessage@https://o8o.icu/client/en-US/3646.744ed040f00bf9de.js:1:76385\nft@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:73789\ninvokeTask@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:69444\nrunTask@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:64752\ninvokeTask@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:70503\nT@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:83281\nF@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:83597\nY@https://o8o.icu/client/en-US/polyfills.737628ee7146c22a.js:1:83879\n",
  "url": "https://o8o.icu/w/qEgYwzR16axr8epwHniCpx"
}

4.Client log: Cannot run hook action:router.navigation-end of script /plugins/topmenu/3.5.0/client-scripts/dist/common-client-plugin.js of plugin topmenu

error[2023-07-26, 6:50:49 p.m.] Client log: Cannot run hook action:router.navigation-end of script /plugins/topmenu/3.5.0/client-scripts/dist/common-client-plugin.js of plugin topmenu

{
  "tags": [
    "client"
  ],
  "userAgent": "Mozilla/5.0 (compatible; Baiduspider-render/2.0; +http://www.baidu.com/search/spider.html)",
  "stackTrace": "Loading chunk 8148 failed.\n(error: https://o8o.icu/client/zh-Hans-CN/8148.54cf570d2aef4317.js)\nChunkLoadError: Loading chunk 8148 failed.\n(error: https://o8o.icu/client/zh-Hans-CN/8148.54cf570d2aef4317.js)\n    at t.f.j (https://o8o.icu/client/zh-Hans-CN/runtime.99fc9564df476c0d.js:1:3888)\n    at https://o8o.icu/client/zh-Hans-CN/runtime.99fc9564df476c0d.js:1:1198\n    at Array.reduce (<anonymous>)\n    at t.e (https://o8o.icu/client/zh-Hans-CN/runtime.99fc9564df476c0d.js:1:1177)\n    at https://o8o.icu/client/zh-Hans-CN/main.18895fd6dd4b2857.js:3:130992\n    at Generator.next (<anonymous>)\n    at e (https://o8o.icu/client/zh-Hans-CN/main.18895fd6dd4b2857.js:3:697124)\n    at c (https://o8o.icu/client/zh-Hans-CN/main.18895fd6dd4b2857.js:3:697326)\n    at https://o8o.icu/client/zh-Hans-CN/main.18895fd6dd4b2857.js:3:697385\n    at new E (https://o8o.icu/client/zh-Hans-CN/polyfills.737628ee7146c22a.js:1:80775)",
  "url": "https://o8o.icu/"
}

5.Cannot run hook action:api.video.updated of plugin chapters.

error[2023-07-26, 6:39:17 p.m.] Cannot run hook action:api.video.updated of plugin chapters.

{
  "err": {
    "stack": "TypeError: Cannot read properties of null (reading 'trim')\n    at parseTableOfContents (/var/www/peertube/storage/plugins/node_modules/peertube-plugin-chapters/dist/shared/common.js:21:18)\n    at Object.<anonymous> (/var/www/peertube/storage/plugins/node_modules/peertube-plugin-chapters/dist/server/main.js:37:64)\n    at Generator.next (<anonymous>)\n    at fulfilled (/var/www/peertube/storage/plugins/node_modules/peertube-plugin-chapters/dist/server/main.js:5:58)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)",
    "message": "Cannot read properties of null (reading 'trim')"
  }
}

When you see "tags": [ "client"] in a log entry, it means that it is an error log in a user’s browser.
Such errors are sent to the server, to make it easier to find some bugs.
It can be disabled (there is a parameter in the Peertube config file).

Usually, you can ignore such logs (but there are some exception… see below).

Here, it is a user that could not connect to the Websocket entrypoint.
It could be 2 things:

  • a user on a network that blocks websocket: here there is nothing to do
  • a misconfiguration on your server

For this second case, just check if it works on your browser: open your browser console panel (F12 key under firefox or chrome), go the the network tab, refresh the page. Search wss in the request filter. You should see a connection with state 101, and the blue color:

If the status is red, there might be a configuration issue to fix.

This is an issue with the chapters plugin. Check with the plugin maintainer.

You can ignore. An error in a browser, that is sent back to your server. Nothing to worry about.

A front-end issue with the topmenu plugin.

Maybe this is related to the buggy menu entry:

If not, Check with the plugin maintainer.

Same as 2.

1 « J'aime »

Thanks very much, @JohnLivingston .