View Issue Details

IDProjectCategoryView StatusLast Update
0002886SOGoPackaging (Debian)public2016-01-05 20:54
Reportermmerlone Assigned Toludovic  
PriorityhighSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Platform[Server] LinuxOSUbuntuOS Version14.04 LTS
Product Version2.2.7 
Summary0002886: /usr/sbin/sogod: Uncaught exception NSInvalidArgumentException, reason: Tried to add nil to array
Description

After upgrading SOGo to 2.2.7 on a Ubuntu 14.04 server it was unable to reconfigure on the final steps of apt-get, failing to restart the service with the error "/usr/sbin/sogod: Uncaught exception NSInvalidArgumentException, reason: Tried to add nil to array".
Deployed a new server with no previous configuration or database and got the same result.

Steps To Reproduce

Install SOGo 2.2.7 on a fresh Ubuntu 14.04 64bits or upgrade a running one.

Additional Information

Output on upgrade:
root@venus:/etc/sogo# aptitude safe-upgrade
Os pacotes a seguir serão atualizados:
accountsservice libaccountsservice0 libsbjson2.3 libsope-appserver4.9 libsope-core4.9 libsope-gdl1-4.9
libsope-ldap4.9 libsope-mime4.9 libsope-xml4.9 python3-gi sogo sope4.9-gdl1-mysql sope4.9-libxmlsaxdriver
13 pacotes atualizados, 0 novos instalados, 0 a serem removidos e 0 não atualizados.
É preciso obter 0 B/5.168 kB de arquivos. Depois do desempacotamento, 50,2 kB serão usados.
Você deseja continuar? [Y/n/?]
(Lendo banco de dados ... 124652 ficheiros e directórios actualmente instalados.)
Preparing to unpack .../libsbjson2.3_4.9.r1664.20140730_amd64.deb ...
(...)
Configurando sogo (2.2.7-1) ...

  • Restarting SOGo sogo
    No process in pidfile '/var/run/sogo/sogo.pid' found running; none killed.
    /usr/sbin/sogod: Uncaught exception NSInvalidArgumentException, reason: Tried to add nil to array
    invoke-rc.d: initscript sogo, action "restart" failed.
    (..)

Output on new server:
root@plutao:~# aptitude install sogo sogo-activesync mysql-server-5.5 mysql-client-5.5
Os NOVOS pacotes a seguir serão instalados:
autotools-dev{a} gnustep-base-common{a} gnustep-base-runtime{a} gnustep-common{a} gnustep-make{a} gobjc{a} gobjc-4.8{a} libaio1{a} libdbd-mysql-perl{a} libdbi-perl{a} libgnustep-base1.24{a} libhtml-template-perl{a} libicu52{a}
libmemcached10{a} libobjc-4.8-dev{a} libobjc4{a} libsbjson2.3{a} libsope-appserver4.9{a} libsope-core4.9{a} libsope-gdl1-4.9{a} libsope-ldap4.9{a} libsope-mime4.9{a} libsope-xml4.9{a} libterm-readkey-perl{a} libwbxml2-0{a}
memcached{a} mysql-client-5.5 mysql-client-core-5.5{a} mysql-server-5.5 mysql-server-core-5.5{a} sogo sogo-activesync sope4.9-gdl1-mysql{a} sope4.9-libxmlsaxdriver{a} tmpreaper{a}
0 pacotes atualizados, 35 novos instalados, 0 a serem removidos e 0 não atualizados.
É preciso obter 27,8 MB de arquivos. Depois do desempacotamento, 172 MB serão usados.
Você deseja continuar? [Y/n/?]
Obter: 1 http://br.archive.ubuntu.com/ubuntu/ trusty/main libaio1 amd64 0.3.109-4 [6.364 B]
Obter: 2 http://br.archive.ubuntu.com/ubuntu/ trusty/main libicu52 amd64 52.1-3 [6.770 kB]
Obter: 3 http://inverse.ca/ubuntu/ trusty/trusty libwbxml2-0 amd64 0.11.2-1.1 [72,4 kB]

(...)

Configurando libsope-xml4.9 (4.9.r1664.20140730) ...
Configurando libsope-core4.9 (4.9.r1664.20140730) ...
Configurando libsope-mime4.9 (4.9.r1664.20140730) ...
Configurando libsope-appserver4.9 (4.9.r1664.20140730) ...
Configurando libsope-gdl1-4.9 (4.9.r1664.20140730) ...
Configurando libsope-ldap4.9 (4.9.r1664.20140730) ...
Configurando sope4.9-libxmlsaxdriver (4.9.r1664.20140730) ...
Configurando sope4.9-gdl1-mysql (4.9.r1664.20140730) ...
Configurando sogo (2.2.7-1) ...

  • Starting SOGo sogo
    /usr/sbin/sogod: Uncaught exception NSInvalidArgumentException, reason: Tried to add nil to array
    ...done.
    Processing triggers for ureadahead (0.100.0-16) ...
    Configurando sogo-activesync (2.2.7-1) ...
    Processing triggers for libc-bin (2.19-0ubuntu6.1) ...

root@plutao:~#

TagsNo tags attached.

Activities

mmerlone

mmerlone

2014-08-07 11:55

reporter  

sogod.strace (96,710 bytes)
mmerlone

mmerlone

2014-10-13 17:32

reporter   ~0007604

Workaround to get rid of the error:

cd /usr/local/lib/

ln -s /usr/share/GNUstep

cd GNUstep/Libraries/gnustep-base/Versions/1.24/Resources/Languages/

ln -s English BrasilPortuguese

Also, may be related, I get those two lines for each another line of log:

Oct 13 14:30:05 sogod [4225]: [ERROR] [we-rm] did not find locale for language: ptBR
Oct 13 14:30:05 sogod [4225]: [ERROR] [we-rm] did not find locale for language: Portuguese

ludovic

ludovic

2015-01-09 21:10

reporter   ~0008044

Looks like more a packaging GNUstep packaging bug leading to an issue in SOGo.

Set a breakpoint on -raise and start only one sogod process. Produce a stack trace.

See: http://www.sogo.nu/fr/nc/support/faq/article/how-do-i-debug-sogo.html

ludovic

ludovic

2016-01-05 20:54

reporter   ~0009237

No feedback provided in months.

Issue History

Date Modified Username Field Change
2014-08-07 11:55 mmerlone New Issue
2014-08-07 11:55 mmerlone File Added: sogod.strace
2014-10-13 17:32 mmerlone Note Added: 0007604
2015-01-09 21:09 ludovic Severity major => minor
2015-01-09 21:10 ludovic Note Added: 0008044
2016-01-05 20:54 ludovic Note Added: 0009237
2016-01-05 20:54 ludovic Status new => closed
2016-01-05 20:54 ludovic Assigned To => ludovic
2016-01-05 20:54 ludovic Resolution open => suspended