Can't run a SOGo Backup

sogo

(kieran) #1

When I try to use the sogo-tool to backup my emails, calendar and contacts etc… I get the following error:
2018-01-03 08:26:15.145 sogo-tool[12971] ERROR(-[NGLdapSearchResultEnumerato r nextObject]): does not support result references yet …
It seems to generate one of these errors per user and if I run the backup for a single user then it only shows this error once.

What is going on?


So, what are you working on? - 8 Jan 18
(Mark Verlinde) #2

Hi kis2006,

i’m still catching up with the last sogo configurations so cant tell you whats going on in detail.
Can you give us some insight which command your running doing the backup?

(sudo) sogo-tool backup …?


(Markus Neuberger) #3

I can confirm and reproduce this error with AD, it’s not occuring with LDAP.

[root@server etc]# sogo-tool backup /tmp/sogobkp ALL
<0x0x13fdc70[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x13fdc70[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
2018-01-03 20:46:57.350 sogo-tool[28667:28667] ERROR(-[NGLdapSearchResultEnumerator nextObject]): does not support result references yet ..

This error seems to be known:

https://sogo.nu/bugs/print_bug_page.php?bug_id=4298


(kieran) #4

Hi, I have seen this error code appear on the internet over a few different SOGo issues, it may be that this error gets returned for a number of reasons.
I do not have a high CPU load but this thread is similar from 2016

" I just had the same error message when running sogo-tool
and an overall very slow behaviour of SOGo with very high cpu load.

I found this old post from 2008 about the same error:
http://comments.gmane.org/gmane.comp.cms.opengroupware.sogo/858

Back then it happened when using Active Directory as LDAP source in combination with Thunderbird, which is also my scenario.

the solution was

You have to write
IDFieldName = sAMAccountName;
instead of
IDFieldName = cn;

in the config of AD LDAP source.

This helped to solve my issue."


(kieran) #5

I used this from the SOGo site

sudo /usr/sbin/sogo-tool backup /home/dave/Documents/ ALL

and

sudo /usr/sbin/sogo-tool backup /sogo/backups sarah.smith


(Mark Verlinde) #6

That makes sencse, (local) Ldap is listing on the local host, samba-AD (running in a container) has an IP for it self.
EDIT forget this:
Not sure about this but gut feeling is memcached running on the local host gets in the way.


(Mark Verlinde) #7

Do you use ‘shared resources’ as in ACL’s for address books and/or calenders?

If so: could you remove them for one user and try to backup this user?


(kieran) #8

Yes I do. I will create a new user without the shared cal and back that up now…


(kieran) #9

Same result I’m afraid.
I created 2 new users.
1, I logged into the webmail and sent an email from (john.smith)
2, the other I didn’t even log into to the webmail (user.test)
Both give the same error as before.

Thanks for looking into this.


(Mark Verlinde) #10

Sooner or later we will find an answer, it’s going to be later as i’m going to sleep now.


(Stéphane de Labrusse) #11

I can find this in /var/log/sogo/sogo.log

Jan 03 22:50:07 sogod [26991]: <0x0x55b8b4e81e40[LDAPSource]> <NSException: 0x55b8b5ad7450> NAME:LDAPException REASON:operation bind failed: Invalid credentials (0x31) INFO:{"error_code" = 49; login = "samaccountname=stephane,dc=ad,dc=de-labrusse,dc=fr"; }
2018-01-03 22:50:07.876 sogod[26991:26991] ERROR(-[NGLdapSearchResultEnumerator nextObject]): does not support result references yet ..

(Markus Neuberger) #12

I don’t have any error in sogo.log, just in the output of sogo-tool backup /tmp/sogobkp ALL
Don’t know if the credentials error is relevant in this case…

@kis2006, after restarting sogo with systemctl restart sogod, the error seems to be away.


(kieran) #13

Thanks for your help thus far.

Is there anything special about this restart command? as I have tried a server reboot twice?

Restarting the sogo service doesn’t seem to clear the error, next time I try the sogo-tool to backup I get the same.


(Markus Neuberger) #14

No, it’s just restarting the service. But maybe it depends on starting order. I tried it again after a reboot, first the error, after restarting service the error is away:

[root@testserver ~]# sogo-tool backup /tmp/sogobkp ALL
<0x0x1b1a190[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x1b1a190[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
2018-01-04 01:36:53.821 sogo-tool[30089:30089] ERROR(-[NGLdapSearchResultEnumerator nextObject]): does not support result references yet ..
[root@testserver ~]# systemctl restart sogod
[root@testserver ~]# sogo-tool backup /tmp/sogobkp ALL
<0x0x1583190[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x1583190[SOGoCache]> Using host(s) '127.0.0.1' as server(s)

(kieran) #15

Unfortunately restarting the service doesn’t seem to have any affect for me.


(Markus Neuberger) #16

Did you try to backup and restore a testuser? Does restore work? Does the error still occur after backup/restore a testuser?


(kieran) #17

it still happens with a test user. I don’t have any backups to restore from.
new install


(Markus Neuberger) #18

I meant the sogo-tool backup/restore.
Does the sogo-tool backup not write the user file when you get the error?

What about using the new cron backup method by @stephdl ?

https://wiki.nethserver.org/doku.php?id=sogo&s[]=sogo#backup_sogo


(kieran) #19

it does write the user file that contains the sogo settings for each user yes.i will look at some alternatives if I cant get the sogo-tool going.thanks


(Markus Neuberger) #20

You’re welcome!