Tuesday, June 29, 2010

Check Out failed. Message "Operation failed because it requires both read and write privileges"

The files with the problem reported originated from the project that had some security access restrictions set.

Some time ago these security restrictions were lifted on all the projects, but the files that became members of the derived (subsequent) projects retained these restrictions.
If these restrictions are no longer relevant - ask an admin or a member of original security group to remove them, by checking out files and changing the security on each file individually,
if they still are - see if you should be the member of the group that does have the write access to these files.

To remove files access restrictions:
- create a task and check out the file(s),
- right click the file object,
- select Properties -> Security.
- see the groups managing the object,
-
remove the check mark by the group name or check the appropriate radio button to remove the restrictions altogether,
- complete task.

"ACcent execution aborted in module ..."

There are several reasons for failures reported as "ACcent execution aborted in module".
Some are described and detailed in IBM Tech notes (like the DCM related here), others are said to be caused by the inconsistency in the server and client versions.

What I found yesterday was the location of the local copy of the database files that can be passed to the ccm start command with the "-u" flag.

At first we had these lines reported as a warning upon session start. They say in this situation session would start and we saw some operations performed, but some would fail, so it is not safe to ignore these:

ACcent execution aborted in module attr:10028, file /tmp/acAAEFBD.TMP.ac, line 14
ACcent execution aborted in module modinit, file src/base/model_init.ac, line 63
ACcent execution aborted in module remote_client, file src/base/remote_client.ac, line 59
ACcent execution aborted in module remote_client, file src/base/remote_client.ac, line 42
ACcent execution aborted in module base, file src/base/base.ac, line 401
ACcent execution aborted in module base, file src/base/base.ac, line 275
Warning: operand of generic cast has an incompatible type
Starting in multiple server mode.
Set the environment variable CCM_ADDR to machine:PID:IP to send commands to this server.


Then we zerroed out all the user ini files (.ccm.ini, ccm.properties etc.) and started afresh.
Now even the status command failed:

> ccm status
Warning: ACcent execution aborted in 'lscmds:status'
ACcent execution aborted in module lscmds, file src/foci/lscmds.ac, line 136
ACcent execution aborted in module base, file src/base/base.ac, line 401
ACcent execution aborted in module base, file src/base/base.ac, line 325
Warning: Lost connection to engine, exiting
Warning: Command execution failed.
Check user interface log file for error messages.

This helped at the end:
ccm start -d -h -m -nogui -u /tmp/whateverlocation -rc

Thursday, June 10, 2010

Synergy: release attributes

Just in case, here are the release attributes (and how to list them)

> ccm query -type releasedef -name "KUKU"
...
> ccm attr -la @1
_import_status_order (string) (inherited)
active (boolean) (local)
allow_dcm_transfer (boolean) (local)
allow_delimiter_in_name (boolean) (inherited)
allow_delimiter_in_version (boolean) (inherited)
atcp_attrs (text) (inherited)
auto_merge_cmd (string) (inherited)
baseline (string) (local)
can_be_product (boolean) (inherited)
cli_compare_cmd (string) (inherited)
cli_merge_cmd (string) (inherited)
component_name (string) (local)
component_release (string) (local)
create (acc_method) (inherited)
create_time (time) (local)
cvtype (string) (local)
dcm_has_modifiable_in (boolean) (inherited)
dcm_non_specific_instance (boolean) (inherited)
delete (acc_method) (inherited)
derive (acc_method) (inherited)
description (text) (local)
dflt_status (string) (inherited)
diff_source_attr (string) (inherited)
displayname (acc_method) (inherited)
export_exclude_attrs (text) (inherited)
export_exclude_relations (text) (inherited)
groups (text) (local)
gui_compare_cmd (string) (inherited)
gui_merge_cmd (string) (inherited)
icon (string) (inherited)
import_ignore_attrs (text) (inherited)
included_releases (text) (local)
is_asm (boolean) (local)
is_model (boolean) (local)
is_versioned (boolean) (inherited)
keyword_expand_attrs (text) (inherited)
manager (string) (local)
max_component_name_length (string) (inherited)
max_component_release_length (string) (inherited)
modify_time (time) (local)
name (string) (local)
next_version (acc_method) (inherited)
no_copy_on_derive (text) (inherited)
objectname (acc_method) (inherited)
owner (string) (local)
parallel_check_in (boolean) (local)
parallel_check_out (boolean) (local)
parallel_create (boolean) (inherited)
parallel_promote (boolean) (inherited)
parallel_promote_defs (text) (inherited)
parallel_promote_states (string) (inherited)
phase (text) (local)
phase_log (text) (local)
post_create (acc_method) (inherited)
post_derive (acc_method) (inherited)
post_set_status (acc_method) (inherited)
pre_create (acc_method) (inherited)
pre_derive (acc_method) (inherited)
pre_set_status (acc_method) (inherited)
relate (acc_method) (inherited)
require_task (string) (inherited)
restricted_attributes (text) (inherited)
set_status (acc_method) (inherited)
source_attrs (text) (inherited)
source_diff (acc_method) (inherited)
source_merge (acc_method) (inherited)
status (string) (local)
status_log (uptext) (local)
subsystem (string) (local)
super_type (string) (inherited)
type_description (string) (inherited)
ui_defs (acc_method) (inherited)
unrelate (acc_method) (inherited)
version (string) (local)
version_delims (text) (inherited)
version_diff (acc_method) (inherited)
wa_type (string) (inherited)
xml_export_exclude_attrs (text) (inherited)
xml_export_exclude_relations (text) (inherited)
xml_import_ignore_attrs (text) (inherited)
xml_import_noimage_attrs (text) (inherited)