Open-Xchange task fails: Failed to create OX context: This mapping is already in use
Original Publishing Date:
2020-01-22
Symptoms
An Open-Xchange task fails:
Task name: APS application 'Open-Xchange', id 109, instance 3525 -> service 'context', instance 18705: executing configuration script
Output: Execution of configuration script for instance with id 18705 of service with id context of instance with id 3525 of application with id 109 failed - returned value: -1 output: '' errors: 'Creating OX context 5360
Cannot map '<USER>||<USER>' to the newly created context. This mapping is already in use.
Failed to create OX context 5360: Cannot map '<USER>||<USER>' to the newly created context. This mapping is already in use.
Cause
This issue is caused by an issue with the ID APS-12159.
Resolution
Please contact your Account Manager to track the status of request APS-12159.
As a workaround, you can:
-
Change context login '<USER>'
to '<USER>1'
in the Parallels Operations Automation (POA) database. Please note that it is recommended you make backups before manual database modification:
plesk=> begin; update aps_registry_object_setting set value= '`' where value= '' and name='admin_login' and registry_object_id in (select registry_object_id from aps_registry_object_setting where value='');
-
Use the pem.rescheduleTask.xml
API method to reschedule pending tasks with the new parameter env_var_SETTINGS_admin_login = '<USER>1'
(instead of '<USER>'
):
<?xml version="1.0"?>
<methodCall><methodName>pem.tasks.rescheduleTask</methodName><params>
<param><value><struct>
<member><name>task_id</name>
<value>
<int><TASK_ID></int>
</value></member>
<member>
<name>params</name>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>name</name>
<value>
<string>env_var_SETTINGS_admin_login</string>
</value>
</member>
<member>
<name>value</name>
<value>
<string><USER>1</string>
</value>
</member>
</struct>
</value>
</data>
</array>
</value>
</member></struct></value></param></params></methodCall>
Process pending tasks by rescheduling with the new parameter env_var_SETTINGS_admin_login = '<USER>1'
-
After the instance will be configured with the new context ID, revert your changes to the POA database back:
plesk=> begin; update aps_registry_object_setting set value= '' where value= '1' and name='admin_login' and registry_object_id in (select registry_object_id from aps_registry_object_setting where value='1');
- Check that it is now possible to create a Service User with Open-Xchange Webmail.
Internal content