[GELÖST] SOGo - NSInvalidArgumentException

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
BrotherJ
Beiträge: 323
Registriert: 15.11.2018 07:56:18

[GELÖST] SOGo - NSInvalidArgumentException

Beitrag von BrotherJ » 20.01.2021 08:50:03

Hallo,

wenn ich auf einem Debian 10 mit Apache 2.4, PHP 7.3 und SOGo 5 die URL https://example.tld/SOGo aufrufe, dann wird mir nicht der SOGo-Login angezeigt, sondern eine weiße Website. In den Logs zu SOGo /var/log/sogo/sogo.log sehe ich dann

Code: Alles auswählen

Jan 20 08:21:08 sogod [14620]: |SOGo| starting method 'GET' on uri '/SOGo'
2021-01-20 08:21:09.517 sogod[14620:14620] EXCEPTION: <NSException: 0x555f38fd9760> NAME:NSInvalidArgumentException REASON:Can not determine type information for -[GSCInlineString count] INFO:(null)
Jan 20 08:21:09 sogod [14620]: |SOGo| request took 0.698522 seconds to execute
Jan 20 08:21:09 sogod [14620]: 93.195.95.32 "GET /SOGo HTTP/1.1" 501 0/0 0.828 - - 3M - 10
Zu "NSInvalidArgumentException" explizit zu "GSCInlineString count" finde ich nichts im Internet.
Was läuft da falsch, bzw. welcher Parameter ist in der sogo.conf falsch gesetzt?

Code: Alles auswählen

{
  SOGoProfileURL = "mysql://postfix:password@localhost:5432/postfix/sogo_user_profile";
  OCSFolderInfoURL = "mysql://postfix:password@localhost:5432/postfix/sogo_folder_info";
  OCSSessionsFolderURL = "mysql://postfix:password@localhost:5432/postfix/sogo_sessions_folder";

  MySQL4Encoding = "utf8mb4";

  SOGoUserSources =
    (
      {
        type = sql;
        id = directory;
        viewURL = "mysql://postfix:password@127.0.0.1:5432/postfix/sogo_view";
        canAuthenticate = YES;
        isAddressBook = YES;
        userPasswordAlgorithm = md5;
      }
    );

  SOGoPageTitle = SOGo;
  SOGoVacationEnabled = YES;
  SOGoForwardEnabled = YES;
  SOGoSieveScriptsEnabled = YES;
  SOGoMailAuxiliaryUserAccountsEnabled = YES;
  SOGoTrustProxyAuthentication = NO;
  SOGoXSRFValidationEnabled = YES;

  SOGoLanguage = German;
  SOGoTimeZone = Europe/Berlin;
  SOGoSuperUsernames = (admin); // This is an array - keep the parens!
  
  SOGoDebugRequests = YES;
}
Beste Grüße

BrotherJ
Zuletzt geändert von BrotherJ am 02.02.2021 09:30:26, insgesamt 1-mal geändert.

BrotherJ
Beiträge: 323
Registriert: 15.11.2018 07:56:18

Re: SOGo - NSInvalidArgumentException

Beitrag von BrotherJ » 02.02.2021 09:26:58

Ich bin inzwischen soweit vorgestossen, dass dieses Problem nur im Zusammenhang dieser Anleitung in einigen SOGo-Howtos auftritt:

Code: Alles auswählen

# su - sogo -s /bin/bash

defaults write sogod SOGoTimeZone "Europe/Berlin"
defaults write sogod SOGoMailDomain "mydomain.de"
defaults write sogod SOGoLanguage "German"
defaults write sogod SOGoAppointmentSendEMailNotifications YES
defaults write sogod SOGoFoldersSendEMailNotifications YES
defaults write sogod SOGoACLsSendEMailNotifications YES
defaults write sogod SOGoCalendarDefaultRoles '("PublicViewer","ConfidentialDAndTViewer")'
defaults write sogod SOGoUserSources '\''({type = sql;id = directory;viewURL = mysql://postfix:password@localhost:3306/postfix/postfix_view;canAuthenticate = YES;isAddressBook = YES;displayName = "Global Address Book";MailFieldNames = (aliases, ad_aliases, senderacl);userPasswordAlgorithm = ssha256;})'\'
defaults write sogod SOGoAppointmentSendEMailNotifications YES
defaults write sogod SOGoFoldersSendEMailNotifications YES
defaults write sogod SOGoACLsSendEMailNotifications YES
defaults write sogod SOGoMailingMechanism smtp
defaults write sogod SOGoSMTPServer smtp.mydomain.de
defaults write sogod SOGoIMAPServer imap.mydomain.de
defaults write sogod SOGoMemcachedHost 127.0.0.1
defaults write sogod SOGoEnableEMailAlarms YES
defaults write sogod OCSFolderInfoURL "mysql://postfix:password@localhost:3306/postfix/postfix_folder_info"
defaults write sogod SOGoProfileURL "mysql://postfix:password@localhost:3306/postfix/postfix_user_profile"
defaults write sogod OCSEMailAlarmsFolderURL "mysql://postfix:password@localhost:3306/postfix/postfix_alarms_folder"
defaults write sogod OCSSessionsFolderURL "mysql://postfix:password@localhost:3306/postfix/postfix_sessions_folder"
defaults write sogod SOGoLoginModule Calendar
defaults write sogod SOGoSieveScriptsEnabled YES
defaults write sogod SOGoSieveServer sieve://localhost:4190
defaults write sogod SOGoVacationEnabled YES
defaults write sogod SOGoMailMessageCheck every_5_minutes
defaults write sogod SOGoFirstDayOfWeek 1
defaults write sogod SOGoSuperUsernames '( "admin" )'
defaults write sogod SOGoDraftsFolderName "INBOX.Drafts"
defaults write sogod SOGoSentFolderName "INBOX.Sent"
defaults write sogod SOGoTrashFolderName "INBOX.Trash"
defaults write sogod NGImap4ConnectionStringSeparator "."
Damit wird beim User sogo unterhalb von "GNUstep/Defaults/" eine XML-Datei angelegt.

Wenn ich das weglasse und stattdessen nur die "/etc/sogo/sogo.conf" befülle, dann tritt die Exception nicht auf. Ich muss aber SOGo komplett vorher löschen und neu installieren. Verstehen kann ich diesen Weg nicht, wenn diese Exception auftritt. Zumal er somit sinnlos ist.

Antworten