JohnXLivingston / peertube-plugin-livechat

GNU Affero General Public License v3.0
90 stars 26 forks source link

Error logs: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with #481

Closed DismalShadowX closed 3 months ago

DismalShadowX commented 3 months ago

Describe the bug Error messages appear in the logs:

[Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed

To Reproduce Steps to reproduce the behavior:

  1. Run PeerTube with plugin installed

Expected behavior No error log.

Server (please complete the following information):

Plugin diagnostic:

Diagnostic
Starting tests: OK
Browser: OK
Backend connection: OK
Test debug mode: OK
Debug mode is OFF
Webchat activated on videos: OK
Chat will not open automatically
Displaying «open in new window» button
Chat can be enabled on live videos.
Chat is enabled for all lives.
Builtin Prosody and ConverseJS: OK
The working dir is: /var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody
Prosody will run on port '52800'
Prosody will use http://127.0.0.1:9000/plugins/livechat/10.3.2/router/api/ as base uri from api calls
Prosody path will be '/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosodyAppImage/squashfs-root/AppRun'
Prosody will be using the '/var/www/peertube/storage/plugins/node_modules/peertube-plugin-livechat/dist/server/prosody/livechat-prosody-x86_64.AppImage' AppImage
Prosody AppImage extract path will be '/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosodyAppImage'
Prosody modules path will be '/var/www/peertube/storage/plugins/node_modules/peertube-plugin-livechat/dist/server/prosody-modules'
Prosody rooms will be grouped by 'channel'.
By default, room content will be archived.
Room content will be saved for '1w'
The prosody configuration file (/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.cfg.lua) exists
Prosody configuration file content is correct.
Pid file /var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.pid found
Prosodyctl status: Prosody is running with PID 27190
The prosody configuration file (/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.cfg.lua) exists
Prosody configuration file content is correct.
No missing self signed certificates.
Prosody version is 0.12.3
API Peertube -> Prosody is OK
API Prosody -> Peertube is OK
The prosody error log (/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.err) exists
Test External Auth OIDC: custom: OK
Feature disabled in plugins settings.
Test External Auth OIDC: google: OK
Feature disabled in plugins settings.
Test External Auth OIDC: facebook: OK
Feature disabled in plugins settings.
Everything seems fine: OK
If you still encounter issues with the plugin, check this documentation page: [Plugin troubleshooting](https://livingston.frama.io/peertube-plugin-livechat/documentation/installation/troubleshooting/)
Additional debugging information
Current prosody configuration
daemonize = false;
allow_registration = false;
admins = {
};
prosody_user = "peertube";
pidfile = "/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.pid";
plugin_paths = {
  "/var/www/peertube/storage/plugins/node_modules/peertube-plugin-livechat/dist/server/prosody-modules";
};
data_path = "/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/data";
storage = "internal";
modules_enabled = {
  "roster";
  "saslauth";
  "carbons";
  "version";
  "uptime";
  "ping";
  "posix";
  "disco";
  "net_multiplex";
};
modules_disabled = {
  "s2s";
};
consider_bosh_secure = true;
consider_websocket_secure = true;
certificates = "/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/data";
c2s_require_encryption = false;
interfaces = {
  "127.0.0.1";
  "::1";
};
c2s_ports = {
};
c2s_interfaces = {
  "127.0.0.1";
  "::1";
};
s2s_ports = {
};
s2s_interfaces = {
  "127.0.0.1";
  "::1";
};
ports = {
  "52800";
};
http_ports = {
};
http_interfaces = {
  "127.0.0.1";
  "::1";
};
https_ports = {
};
https_interfaces = {
  "127.0.0.1";
  "::1";
};
trusted_proxies = {
  "127.0.0.1";
  "::1";
};
c2s_close_timeout = 29;
log = {
  info = "/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.log";
  error = "/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.err";

};

VirtualHost "video.everythingbagel.me"
  authentication = "http";
  modules_enabled = {
  "ping";
  "http";
  "bosh";
  "websocket";
  "vcard_peertubelivechat";
};
  http_auth_url = "http://127.0.0.1:9000/plugins/livechat/10.3.2/router/api/user";
  allow_anonymous_s2s = false;
  http_host = "video.everythingbagel.me";
  http_external_url = "http://video.everythingbagel.me";
  peertubelivechat_vcard_peertube_url = "http://127.0.0.1:9000";

VirtualHost "anon.video.everythingbagel.me"
  authentication = "anonymous";
  modules_enabled = {
  "ping";
  "http";
  "bosh";
  "websocket";
  "random_vcard_peertubelivechat";
};
  modules_disabled = {
  "carbons";
};
  allow_anonymous_s2s = false;
  http_host = "video.everythingbagel.me";
  http_external_url = "http://video.everythingbagel.me";
  peertubelivechat_random_vcard_avatars_path = "/var/www/peertube/storage/plugins/node_modules/peertube-plugin-livechat/dist/server/avatars/cat";
  peertubelivechat_random_vcard_avatars_files = {
  "0.png";
  "1.png";
  "10.png";
  "100.png";
  "101.png";
  "102.png";
  "103.png";
  "104.png";
  "105.png";
  "106.png";
  "107.png";
  "108.png";
  "109.png";
  "11.png";
  "110.png";
  "111.png";
  "112.png";
  "113.png";
  "114.png";
  "115.png";
  "116.png";
  "117.png";
  "118.png";
  "119.png";
  "12.png";
  "120.png";
  "121.png";
  "122.png";
  "123.png";
  "124.png";
  "125.png";
  "126.png";
  "127.png";
  "128.png";
  "129.png";
  "13.png";
  "130.png";
  "131.png";
  "132.png";
  "133.png";
  "134.png";
  "135.png";
  "136.png";
  "137.png";
  "138.png";
  "139.png";
  "14.png";
  "140.png";
  "141.png";
  "142.png";
  "143.png";
  "144.png";
  "145.png";
  "146.png";
  "147.png";
  "148.png";
  "149.png";
  "15.png";
  "150.png";
  "151.png";
  "152.png";
  "153.png";
  "154.png";
  "155.png";
  "156.png";
  "157.png";
  "158.png";
  "159.png";
  "16.png";
  "160.png";
  "161.png";
  "162.png";
  "163.png";
  "164.png";
  "165.png";
  "166.png";
  "167.png";
  "168.png";
  "169.png";
  "17.png";
  "170.png";
  "171.png";
  "172.png";
  "173.png";
  "174.png";
  "175.png";
  "176.png";
  "177.png";
  "178.png";
  "179.png";
  "18.png";
  "180.png";
  "181.png";
  "182.png";
  "183.png";
  "184.png";
  "185.png";
  "186.png";
  "187.png";
  "188.png";
  "189.png";
  "19.png";
  "190.png";
  "191.png";
  "192.png";
  "193.png";
  "194.png";
  "195.png";
  "196.png";
  "197.png";
  "198.png";
  "199.png";
  "2.png";
  "20.png";
  "21.png";
  "22.png";
  "23.png";
  "24.png";
  "25.png";
  "26.png";
  "27.png";
  "28.png";
  "29.png";
  "3.png";
  "30.png";
  "31.png";
  "32.png";
  "33.png";
  "34.png";
  "35.png";
  "36.png";
  "37.png";
  "38.png";
  "39.png";
  "4.png";
  "40.png";
  "41.png";
  "42.png";
  "43.png";
  "44.png";
  "45.png";
  "46.png";
  "47.png";
  "48.png";
  "49.png";
  "5.png";
  "50.png";
  "51.png";
  "52.png";
  "53.png";
  "54.png";
  "55.png";
  "56.png";
  "57.png";
  "58.png";
  "59.png";
  "6.png";
  "60.png";
  "61.png";
  "62.png";
  "63.png";
  "64.png";
  "65.png";
  "66.png";
  "67.png";
  "68.png";
  "69.png";
  "7.png";
  "70.png";
  "71.png";
  "72.png";
  "73.png";
  "74.png";
  "75.png";
  "76.png";
  "77.png";
  "78.png";
  "79.png";
  "8.png";
  "80.png";
  "81.png";
  "82.png";
  "83.png";
  "84.png";
  "85.png";
  "86.png";
  "87.png";
  "88.png";
  "89.png";
  "9.png";
  "90.png";
  "91.png";
  "92.png";
  "93.png";
  "94.png";
  "95.png";
  "96.png";
  "97.png";
  "98.png";
  "99.png";
};

VirtualHost "bot.video.everythingbagel.me"
  modules_enabled = {
  "ping";
  "random_vcard_peertubelivechat";
};
  authentication = "peertubelivechat_bot";
  peertubelivechat_random_vcard_avatars_path = "/var/www/peertube/storage/plugins/node_modules/peertube-plugin-livechat/dist/server/bot_avatars/cat";
  peertubelivechat_random_vcard_avatars_files = {
  "1.png";
};
  livechat_bot_conf_folder = "/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/bot/room.video.everythingbagel.me";

Component "room.video.everythingbagel.me" "muc"
  admins = {
  "moderator@bot.video.everythingbagel.me";
};
  muc_room_locking = false;
  muc_tombstones = false;
  muc_room_default_language = "en";
  muc_room_default_public = false;
  muc_room_default_persistent = true;
  muc_room_default_members_only = false;
  muc_room_default_moderated = false;
  muc_room_default_public_jids = false;
  muc_room_default_change_subject = false;
  muc_room_default_history_length = 20;
  modules_enabled = {
  "muc_slow_mode";
  "pubsub_peertubelivechat";
  "muc_peertubelivechat_roles";
  "muc_peertubelivechat_terms";
  "muc_moderation_delay";
  "muc_http_defaults";
  "muc_mam";
  "muc_moderation";
  "http_peertubelivechat_manage_rooms";
  "muc_poll";
  "http_peertubelivechat_test";
};
  slow_mode_duration_form_position = {
  120;
};
  muc_terms_service_nickname = "Peertube";
  muc_terms_global = [[Please be respectful of differing opinions, viewpoints, and experiences.]];
  moderation_delay_form_position = {
  118;
};
  restrict_room_creation = false;
  http_host = "video.everythingbagel.me";
  http_external_url = "http://video.everythingbagel.me";
  muc_create_api_url = {
  "http://127.0.0.1:9000/plugins/livechat/10.3.2/router/api/room?apikey=***APIKey***&jid={room.jid|jid_node}";
};
  muc_log_by_default = true;
  muc_log_presences = true;
  log_all_rooms = false;
  muc_log_expires_after = "1w";
  muc_log_cleanup_interval = 14400;
  peertubelivechat_manage_rooms_apikey = "***APIKey***";
  poll_string_over = "This poll is now over.";
  poll_string_invalid_choice = "This choice is not valid.";
  poll_string_anonymous_vote_ok = "Your vote is taken into account. Votes are anonymous, they will not be shown to other participants.";
  poll_string_vote_instructions = "Send a message with an exclamation mark followed by your choice number to vote. Example: !1";
  peertubelivechat_test_apikey = "***APIKey***";
  peertubelivechat_test_peertube_api_url = "http://127.0.0.1:9000/plugins/livechat/10.3.2/router/api/test?apikey=***APIKey***";

Prosody version
Prosody 0.12.3

# Prosody directories
Data directory:     /var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/data
Config directory:   /var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody
Source directory:   /usr/lib/prosody
Plugin directories:
  /var/lib/prosody/custom_plugins - not a directory!
  /var/www/peertube/storage/plugins/node_modules/peertube-plugin-livechat/dist/server/prosody-modules
  /usr/lib/prosody/modules/

# Operating system
Linux 6.8.0-38-generic  

# Lua environment
Lua version:                Lua 5.2

Lua module search paths:
  /usr/lib/prosody/?.lua
  /usr/local/share/lua/5.2/?.lua
  /usr/local/share/lua/5.2/?/init.lua
  /usr/local/lib/lua/5.2/?.lua
  /usr/local/lib/lua/5.2/?/init.lua
  /usr/share/lua/5.2/?.lua
  /usr/share/lua/5.2/?/init.lua
  /var/lib/prosody/custom_plugins/share/lua/5.2/?.lua
  /var/lib/prosody/custom_plugins/share/lua/5.2/?/init.lua

Lua C module search paths:
  /usr/lib/prosody/?.so
  /usr/local/lib/lua/5.2/?.so
  /usr/lib/x86_64-linux-gnu/lua/5.2/?.so
  /usr/lib/lua/5.2/?.so
  /usr/local/lib/lua/5.2/loadall.so

LuaRocks:           Not installed

# Network

Backend: epoll

# Lua module versions
LuaExpat:       1.3.0
LuaFileSystem:  1.8.0
LuaSec:         1.0
LuaSocket:      3.0-rc1
luaunbound:     0.5 (?)
readline:       2.7

# library versions
libcrypto:      OpenSSL 1.1.1n  15 Mar 2022
libunbound:     1.13.1

Additional context Not sure how to debug or troubleshoot this on Live production without another clean local install.

sudo journalctl -fu peertube reported those errors while monitoring the install as well as error log from Admin>System>Logs>error in Peertube instance.

Other than that, the chat work, ports are open. Maybe I'm missing something?


Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:15.659 info: Registering plugin or theme peertube-plugin-livechat.
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.735 info: Checking if there is a migration script to launch...
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.739 info: [ExternalAuthOIDC startPruneTimer] Creating a timer for external account pruning, every 3600s.
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.740 info: Loading External Auth OIDC custom...
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.740 info: Loading External Auth OIDC google...
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.740 info: Loading External Auth OIDC facebook...
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.740 info: External Auth OIDC custom loaded
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.741 info: External Auth OIDC google loaded
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.741 info: External Auth OIDC facebook loaded
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.748 info: Registring federation hooks...
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.748 info: Registring room-channel hooks...
Jul 24 13:25:15 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:15.748 info: Registring RSS hooks...
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.656 info: Checking if Prosody is correctly running
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.656 info: Checking if Prosody is running
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.658 info: Prosody is not running correctly:
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.658 info: Pid file /var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.pid not found
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.658 info: Checking if Prosody is running, and shutting it down if so
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.705 info: ProsodyCtl command returned: WARNING: Use of prosodyctl start/stop/restart/reload is not recommended
Jul 24 13:25:17 Loki peertube[6023]:          if Prosody is managed by an init system - use that directly instead.
Jul 24 13:25:17 Loki peertube[6023]:          e.g. systemctl stop prosody
Jul 24 13:25:17 Loki peertube[6023]: Prosody is not running
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.710 info: Writing prosody configuration file to /var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosody/prosody.cfg.lua
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.710 info: Going to launch prosody (/var/www/peertube/storage/plugins/data/peertube-plugin-livechat/prosodyAppImage/squashfs-root/AppRun prosody)
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.729 info: Creating a new http bind proxy
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.730 info: Creating a new websocket proxy
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.730 info: Creating a new s2s websocket proxy
Jul 24 13:25:17 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:17.732 info: Waiting for the prosody process to launch
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:18.233 info: Verifying prosody is launched
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:18.286 info: Prosody status: Prosody is running with PID 27190
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:18.286 info: Prosody is running
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:18.286 info: Starting Prosody log rotation
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.287 info: Add plugin peertube-plugin-livechat CSS to global file.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:18.289 info: [Bots] Starting moderation bot...
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:18.289 info: [Bots] The bot path should be /var/www/peertube/storage/plugins/node_modules/peertube-plugin-livechat/node_modules/.bin/xmppjs-chat-bot
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.311 info: Added locale ar of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.311 info: Added locale is of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.312 info: Added locale fa-IR of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.312 info: Added locale vi-VN of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.312 info: Added locale hu-HU of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.313 info: Added locale th-TH of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.313 info: Added locale fi-FI of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.313 info: Added locale nl-NL of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.314 info: Added locale gd of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.314 info: Added locale el-GR of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.315 info: Added locale es-ES of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.315 info: Added locale oc of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.316 info: Added locale pt-BR of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.316 info: Added locale sv-SE of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.316 info: Added locale ru-RU of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.317 info: Added locale fr-FR of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.318 info: Added locale ja-JP of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.318 info: Added locale eu-ES of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.319 info: Added locale ca-ES of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.319 info: Added locale gl-ES of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.319 info: Added locale cs-CZ of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.320 info: Added locale hr of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.320 info: Added locale eo of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.320 info: Added locale de-DE of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.321 info: Added locale it-IT of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.321 info: Added locale uk-UA of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.321 info: Added locale sq of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.322 info: Added locale tok of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.322 info: Added locale tr-TR of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.322 info: Added locale nn of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.322 info: Added locale nb-NO of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.323 info: Added locale kab of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.323 info: Added locale pl-PL of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.323 info: Added locale zh-Hans-CN of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.323 info: Added locale zh-Hans-TW of plugin peertube-plugin-livechat.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.324 info: Cleaning HTML cache.
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:18.325 info: 24.50.0.0 - - [24/Jul/2024:13:25:18 +0000] "POST /api/v1/plugins/install HTTP/1.0" 200 1724 "https://video.everythingbagel.me/admin/plugins/search?pluginType=1" "Chrome"
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:18.395 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:18 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:18.396 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:19 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:19.400 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:19 Loki peertube[6023]: [video.everythingbagel.me:443] 2024-07-24 13:25:19.709 info: 52.159.142.192 - - [24/Jul/2024:13:25:19 +0000] "GET / HTTP/1.0" 200 23065 "-" "upptime.js.org"
Jul 24 13:25:20 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:20.402 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:21 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:21.405 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:22 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:22.409 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:23 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:23.411 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:24 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:24.414 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:25 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:25.416 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:26 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:26.419 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:27 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:27.422 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:28 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:28.426 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:29 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:29.428 error: [Bots] ModerationBot stderr: [Sepia] StreamError: undefined-condition - No stream features to proceed with
Jul 24 13:25:29 Loki peertube[6023]: [video.everythingbagel.me:443 peertube-plugin-livechat] 2024-07-24 13:25:29.429 error: [Bots] ModerationBot stderr: [Sepia] Error: read ECONNRESET```
JohnXLivingston commented 3 months ago

Hello,

Thanks for the report. Waiting for a solution, you can stop the error logs by disabling the moderation bot feature in the plugin's settings.

Is your OS Ubuntu 24?

JohnXLivingston commented 3 months ago

What is your NodeJS version?

JohnXLivingston commented 3 months ago

Ok, got it. This is a race condition when you disable remote chats. I will release a fix. In the meantime, you can just uncheck Don't publish chat information, and it should work.

May I ask why you disabled this feature? This will disable chat for user viewing your live from remote instances. I can be deceptive for them.

JohnXLivingston commented 3 months ago

Fixed and released in v10.3.3.

DismalShadowX commented 3 months ago

Ok, got it. This is a race condition when you disable remote chats. I will release a fix. In the meantime, you can just uncheck Don't publish chat information, and it should work.

May I ask why you disabled this feature? This will disable chat for user viewing your live from remote instances. I can be deceptive for them.

Thanks for the fix. Actually, I didn't disabled remote chats, however Don't publish chat information was indeed checked. I have updated to v10.3.3 and get this:

[Bots] ModerationBot stderr: [Sepia] Error: 805CE81B71730000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1590:SSL alert number 40

Unchecked Don't publish chat information fixes this.

JohnXLivingston commented 3 months ago

Hum, so there is still a bug...

This one could be related to your node version, or maybe to openssl version. Can you tell me which version your are using for Node ? I guess that for openSSL you have the version packaged for Ubuntu 24?

For now, i won't re-open the issue until someone else has the same bug. Seems too tricky to reproduce, and i have not the time to work on this for now.

JohnXLivingston commented 3 months ago

That said, I don't understand why it works when you uncheck the settings, and not when it is checked.

DismalShadowX commented 3 months ago

Hum, so there is still a bug...

This one could be related to your node version, or maybe to openssl version. Can you tell me which version your are using for Node ? I guess that for openSSL you have the version packaged for Ubuntu 24?

For now, i won't re-open the issue until someone else has the same bug. Seems too tricky to reproduce, and i have not the time to work on this for now.

That's fine as long the patch fixes this. :) If Don't display remote chats and Don't publish chat information is unchecked by default for clean install, then it should be. During migration to new server, it retain all data and files carried over, maybe I didn't uninstall the plugin or cache properly is why Don't publish chat information was checked when it shouldn't?

For Ubuntu 24 in case someone else reported the bug on openssl with Don't publish chat information checked:

openssl version OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

node -v v20.16.0

JohnXLivingston commented 3 months ago

If Don't display remote chats and Don't publish chat information is unchecked by default for clean install, then it should be. During migration to new server, it retain all data and files carried over, maybe I didn't uninstall the plugin or cache properly is why Don't publish chat information was checked when it shouldn't?

They are unchecked by default. Uninstalling the plugin does not reset the settings (Peertube keeps them, and this is often a good thing as you don't want to loose your configuration if you deleted the plugin temporarily). For now, there is no way to reset all settings to default. I know this could cause some troubles, as there are a lot of settings for this plugin. I'm thinking of adding a "reset" button, but i'm not 100% sure of what this button should do (there are some settings that should maybe not be reset, like ports and network interfaces, as it could break some instances when there are multiple Peertube instance on the same server).

For Ubuntu 24 in case someone else reported the bug on openssl with Don't publish chat information checked:

openssl version OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

node -v v20.16.0

Thanks.