Symptoms

A task related to Open-Xchange APS fails with the following error:

Execution of configuration script for instance with id xxxx of service with id contact of instance with id yyyyy of application with id 123 failed - returned value: -1 output: '' errors: 'Response body:
{"error_params":[],"category":2,"error":"User is deactivated","code":"AUTHORIZATION-0001","error_id":"-327702286-2685356"}
PHP Fatal error: Uncaught exception 'oxGetDataFailedException' with message 'User is deactivated'

Cause

Context is deactivated on Open-Xchange side.

Resolution

  • Find the Open-Xchange server and master admin username in task parameters, find the master admin password in global settings of Open-Xchange resource type;
  • Login to the specified Open-Xchange server;
  • Find the same error in Open-Xchange logs located in /var/log/open-xchange/ and find context ID there:

    Jan 1, 2016 1:11:11 PM com.openexchange.log.internal.LoggerTask call
    INFO: Logged at: com.openexchange.ajax.Login$11.doLogin(Login.java:971)
    Login:Username IP:100.100.100.100 AuthID:1cd101c101cd1cdea10cf101afbc1a10 Agent:null Client:com.openexchange.ox.gui.dhtml(null) Interface:HTTP_JSON Context:1001(1001._________________________________,Username||Username,BRANDING||1001||ox01.provider.com) User:2(Username) Failed.
    Jan 1, 2016 1:11:11 PM com.openexchange.log.internal.LoggerTask call
    SEVERE: Logged at: com.openexchange.ajax.Login.loginOperation(Login.java:1013)
    AUTHORIZATION-0001 Category=2 Message=User is deactivated exceptionID=-2013636039-10015
    

    In the snippet above the context ID is 1001;

  • Run this command to check the context status:

    # /opt/open-xchange/sbin/listcontext -A oxadminmaster -P **** -s <contextID>
    

    Here and below, replace **** with actual password and <contextID> with actual ID, in our example it is 1001.

    Pay attention to the 1st and the 4th column (context ID and status). If the value in the enabled column is false, that means the context is disabled:

    [root@ox01 open-xchange]# /opt/open-xchange/sbin/listcontext -A oxadminmaster -P **** -s <contextID>
    cid     fid fname           enabled qmax qused name lmappings
    1001    2   1001_ctx_store  false   1024     0 ...
    
  • Activate the context:

    # /opt/open-xchange/sbin/enablecontext -c <contextID> -A oxadminmaster -P ****
    
  • Restart failed task

- INTERNAL (content below this line is not visible in published article) -

Internal content