EionRobb / purple-mattermost

A libpurple/Pidgin plugin for Mattermost
GNU General Public License v3.0
93 stars 23 forks source link

immediate crash on adding mattermost account #152

Open alexishuxley opened 2 months ago

alexishuxley commented 2 months ago

OS: Debian 12 Pidgin: 2.14.12-11 purple-mattermost plugin: cloned 14:15 24.09.2024 UTC mattermost: 10.0.0

I built the plugin according to https://github.com/EionRobb/purple-mattermost/blob/master/INSTALL.md#linux-client-install-guide.

I restart pidgin, I go to add the account, fill in the details (no advanced settings), click 'Add' and it crashes.

I made a debug.log of 630 lines, so I won't paste here unless asked. The last entries in the debug.log are:

(16:21:52) mattermost: unknown websocket error 97
(16:21:52) mattermost: unknown websocket error 116
(16:21:52) mattermost: unknown websocket error 117
(16:21:52) mattermost: unknown websocket error 115
(16:21:52) mattermost: unknown websocket error 95
(16:21:52) mattermost: unknown websocket error 99
(16:21:52) mattermost: unknown websocket error 111
(16:21:52) mattermost: unknown websocket error 100
(16:21:52) mattermost: unknown websocket error 101
(16:21:52) mattermost: unknown websocket error 34
(16:21:52) mattermost: unknown websocket error 58
(16:21:52) mattermost: unknown websocket error 52
(16:21:52) mattermost: unknown websocket error 48
(16:21:52) mattermost: unknown websocket error 48
(16:21:52) mattermost: unknown websocket error 125
(16:21:52) mattermost: got errno 11, read_len 0 from websocket thread
(16:21:52) connection: Connection error on 0x5558fd4b7f60 (reason: 0 description: Lost connection to server)
(16:21:52) http: Request 0x5558fd476420 performed successfully.
(16:21:52) mattermost: Got response: {"AboutLink":"https://mattermost.com/pl/about-mattermost","AllowBannerDismissal":"false","AllowCustomThemes":"true","AllowPersistentNotifications":"true","AllowPersistentNotificationsForGuests":"false","AllowSyncedDrafts":"true","AllowedThemes":"","AndroidAppDownloadLink":"https://mattermost.com/pl/android-app/","AndroidLatestVersion":"","AndroidMinVersion":"","AppDownloadLink":"https://mattermost.com/pl/download-apps","AsymmetricSigningPublicKey":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEG6nJXj9nwj6K/Hgu/tsfKoT3dSuxjK6TurhOPquXGJjQCT8+BfeNvHM/2a/kbILf0YSEd63FLrvSwmIzQqaiEg==","AvailableLocales":"","BannerColor":"","BannerText":"","BannerTextColor":"","BuildDate":"Mon Sep  2 17:59:10 UTC 2024","BuildEnterpriseReady":"true","BuildHash":"2d83d21388f3111bffe4b1f63521b21d77ec2cef","BuildHashEnterprise":"7f7db4bf26eff4db14ee68e501b25a64d6f6dff9","BuildNumber":"10671348655","CWSMock":"false","CWSURL":"https://customers.mattermost.com","CollapsedThreads":"always_on","CustomBrandText":"","CustomDescriptionText":"","CustomUrlSchemes":"","DataRetentionEnableFileDeletion":"false","DataRetentionEnableMessageDeletion":"false","DataRetentionFileRetentionHours":"0","DataRetentionMessageRetentionHours":"0","DefaultClientLocale":"en","DefaultTheme":"","DelayChannelAutocomplete":"false","DiagnosticId":"b6hyyoaerpdzim7p743g5z4mhe","DiagnosticsEnabled":"true","DisableAppBar":"false","DisableRefetchingOnBrowserFocus":"false","DisableWakeUpReconnectHandler":"false","EmailLoginButtonBorderColor":"#2389D7","EmailLoginButtonColor":"#0000","EmailLoginButtonTextColor":"#2389D7","EmailNotificationContentsType":"full","EnableAskCommunityLink":"true","EnableBanner":"false","EnableBotAccountCreation":"false","EnableChannelViewedMessages":"true","EnableClientMetrics":"true","EnableClientPerformanceDebugging":"false","EnableCluster":"false","EnableCommands":"true","EnableCompliance":"false","EnableComplianceExport":"false","EnableConfirmNotificationsToChannel":"true","EnableCustomBrand":"false","EnableCustomEmoji":"true","EnableCustomGroups":"false","EnableCustomUserStatuses":"true","EnableDeveloper":"false","EnableDiagnostics":"true","EnableEmailBatching":"false","EnableEmailInvitations":"false","EnableEmojiPicker":"true","EnableFile":"true","EnableFileAttachments":"true","EnableGifPicker":"true","EnableGuestAccounts":"false","EnableIncomingWebhooks":"true","EnableInlineLatex":"true","EnableJoinLeaveMessageByDefault":"true","EnableLastActiveTime":"true","EnableLatex":"false","EnableLdap":"false","EnableLinkPreviews":"true","EnableMarketplace":"true","EnableMetrics":"false","EnableMobileFileDownload":"true","EnableMobileFileUpload":"true","EnableMultifactorAuthentication":"false","EnableOAuthServiceProvider":"true","EnableOnboardingFlow":"true","EnableOpenServer":"false","EnableOutgoingOAuthConnections":"false","EnableOutgoingWebhooks":"true","EnablePermalinkPreviews":"true","EnablePostIconOverride":"false","EnablePostUsernameOverride":"false","EnablePreviewModeBanner":"true","EnablePublicLink":"false","EnableSVGs":"false","EnableSaml":"false","EnableSignInWithEmail":"true","EnableSignInWithUsername":"true","EnableSignUpWithEmail":"true","EnableSignUpWithGitLab":"false","EnableSignUpWithGoogle":"false","EnableSignUpWithOffice365":"false","EnableSignUpWithOpenId":"false","EnableTesting":"false","EnableThemeSelection":"true","EnableTutorial":"true","EnableUserAccessTokens":"false","EnableUserCreation":"true","EnableUserDeactivation":"false","EnableUserStatuses":"true","EnableUserTypingMessages":"true","EnforceMultifactorAuthentication":"false","ExperimentalEnableAuthenticationTransfer":"true","ExperimentalEnableAutomaticReplies":"false","ExperimentalEnableDefaultChannelLeaveJoinMessages":"true","ExperimentalEnablePostMetadata":"true","ExperimentalGroupUnreadChannels":"disabled","ExperimentalPrimaryTeam":"","ExperimentalSharedChannels":"false","ExperimentalTimezone":"true","ExperimentalViewArchivedChannels":"true","ExtendSessionLengthWithActivity":"true","FeatureFlagAppsEnabled":"false","FeatureFlagChannelBookmarks":"false","FeatureFlagCloudAnnualRenewals":"false","FeatureFlagCloudDedicatedExportUI":"false","FeatureFlagCloudIPFiltering":"false","FeatureFlagConsumePostHook":"false","FeatureFlagDeprecateCloudFree":"false","FeatureFlagEnableExportDirectDownload":"false","FeatureFlagEnableRemoteClusterService":"false","FeatureFlagExperimentalAuditSettingsSystemConsoleUI":"false","FeatureFlagMoveThreadsEnabled":"false","FeatureFlagNormalizeLdapDNs":"false","FeatureFlagNotificationMonitoring":"true","FeatureFlagOnboardingTourTips":"true","FeatureFlagPermalinkPreviews":"false","FeatureFlagStreamlinedMarketplace":"true","FeatureFlagTestBoolFeature":"false","FeatureFlagTestFeature":"off","FeatureFlagWebSocketEventScope":"true","FeatureFlagWysiwygEditor":"false","FileLevel":"INFO","ForgotPasswordLink":"","GiphySdkKey":"jNpuYkwrrXqXHuhK8fL3CKRFkAk4b3u8","GitLabButtonColor":"","GitLabButtonText":"","GoogleDeveloperKey":"","GuestAccountsEnforceMultifactorAuthentication":"false","HasImageProxy":"false","HelpLink":"https://mattermost.com/pl/help/","HideGuestTags":"false","InstallationDate":"1727178984408","IosAppDownloadLink":"https://mattermost.com/pl/ios-app/","IosLatestVersion":"","IosMinVersion":"","IsDefaultMarketplace":"true","LdapFirstNameAttributeSet":"false","LdapLastNameAttributeSet":"false","LdapLoginButtonBorderColor":"","LdapLoginButtonColor":"","LdapLoginButtonTextColor":"","LdapLoginFieldName":"","LdapNicknameAttributeSet":"false","LdapPictureAttributeSet":"false","LdapPositionAttributeSet":"false","LockTeammateNameDisplay":"false","ManagedResourcePaths":"","MaxFileSize":"104857600","MaxMarkdownNodes":"0","MaxNotificationsPerChannel":"1000","MaxPostSize":"16383","MinimumHashtagLength":"3","NoAccounts":"false","OpenIdButtonColor":"","OpenIdButtonText":"","PasswordEnableForgotLink":"true","PasswordMinimumLength":"8","PasswordRequireLowercase":"false","PasswordRequireNumber":"false","PasswordRequireSymbol":"false","PasswordRequireUppercase":"false","PersistentNotificationIntervalMinutes":"5","PersistentNotificationMaxCount":"6","PersistentNotificationMaxRecipients":"5","PluginsEnabled":"true","PostEditTimeLimit":"-1","PostPriority":"true","PrivacyPolicyLink":"https://mattermost.com/pl/privacy-policy/","ReportAProblemLink":"https://mattermost.com/pl/report-a-bug","RequireEmailVerification":"false","RestrictDirectMessage":"any","RunJobs":"true","SQLDriverName":"postgres","SamlFirstNameAttributeSet":"false","SamlLastNameAttributeSet":"false","SamlLoginButtonBorderColor":"","SamlLoginButtonColor":"","SamlLoginButtonText":"","SamlLoginButtonTextColor":"","SamlNicknameAttributeSet":"false","SamlPositionAttributeSet":"false","SchemaVersion":"125","SendEmailNotifications":"false","SendPushNotifications":"true","ServiceEnvironment":"production","ShowEmailAddress":"true","ShowFullName":"true","SiteName":"Mattermost","SiteURL":"https://mattermost.pasta.freemyip.com","SupportEmail":"","TeammateNameDisplay":"username","TelemetryId":"b6hyyoaerpdzim7p743g5z4mhe","TermsOfServiceLink":"https://mattermost.com/pl/terms-of-use/","TimeBetweenUserTypingUpdatesMilliseconds":"5000","UniqueEmojiReactionLimitPerPost":"50","UpgradedFromTE":"false","UsersStatusAndProfileFetchingPollIntervalMilliseconds":"3000","Version":"10.0.0","WebsocketPort":"80","WebsocketSecurePort":"443","WebsocketURL":"","WranglerAllowedEmailDomain":"","WranglerMoveThreadFromDirectMessageChannelEnable":"false","WranglerMoveThreadFromGroupMessageChannelEnable":"false","WranglerMoveThreadFromPrivateChannelEnable":"false","WranglerMoveThreadMaxCount":"100","WranglerMoveThreadToAnotherTeamEnable":"false","WranglerPermittedWranglerRoles":""}

(16:21:52) account: Disconnecting account alexis|mattermost.pasta.freemyip.com (0x5558fd4b3d30)
(16:21:52) connection: Disconnecting connection 0x5558fd4b7f60
(16:21:52) mattermost: Fetching url https://mattermost.pasta.freemyip.com/api/v4/users/ph9a67uistfy8b64piz5sdmn3y/status
(16:21:52) mattermost: With postdata {"status":"online","user_id":"ph9a67uistfy8b64piz5sdmn3y"}
(16:21:52) http: Performing new request 0x5558fd353c00 to mattermost.pasta.freemyip.com.
(16:21:52) http: Request 0x5558fd353c00 performed without success.
(16:21:52) mattermost: Got response: 
(16:21:52) connection: Destroying connection 0x5558fd4b7f60
(16:21:52) http: Request 0x5558fd488240 performed successfully.
(16:21:52) mattermost: Got response: [{"id":"589tzreikibejxt817ehmue8qa","create_at":1727185645966,"update_at":1727185645966,"delete_at":0,"display_name":"pasta.net","name":"pastanet","description":"","email":"alexis@pasta.net","type":"O","company_name":"","allowed_domains":"","invite_id":"9erwn6yjab8z8q1t8f7rdw7nco","allow_open_invite":false,"scheme_id":"","group_constrained":false,"policy_id":null,"cloud_limits_archived":false}]

There are plenty of those unknown websocket error messages, almost from the top of the log, so I suspect that isn't actually the cause of the crash.

If you need more info then just let me know what. Thanks for your support and software!

alexishuxley commented 2 months ago

The unknown websocket error XX actually was relevant: after completing the WS-related bits of https://docs.mattermost.com/configure/config-proxy-apache2.html it worked. However, I would prefer not to close this bug because even if the mattermost server is misconfigured, the plugin should not crash.

EionRobb commented 2 months ago

Agreed, definitely don't close the issue until the crash is fixed 🙂